В ядре Linux устранена следующая уязвимость:
nilfs2: добавлена отсутствующая проверка номеров индексных дескрипторов в записях каталога. Syzbot сообщил, что монтирование и размонтирование определенного шаблона
поврежденные образы файловой системы nilfs2 приводят к использованию метаданных после освобождения
файловые индексные дескрипторы, что вызывает ошибку ядра в lru_add_fn(). Как отметил Ян Кара, это связано с тем, что количество ссылок файла метаданных
повреждается до 0, и nilfs_evict_inode(), вызываемый из iput(),
пытается удалить этот индексный дескриптор (в данном случае индексный дескриптор ifile).
Несоответствие возникает из-за того, что каталоги, содержащие номера индексных дескрипторов из этих файлов метаданных, которые не должны быть видны в пространстве имен, читать не проверяя. Устраните эту проблему, рассматривая номера индексных дескрипторов этих внутренних файлов как ошибки в помощнике проверки работоспособности при чтении фолио/страниц каталога. Также спасибо Hillf Danton и Matthew Wilcox за первоначальный мм-слой. анализ.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: nilfs2: add missing check for inode numbers on directory entries Syzbot reported that mounting and unmounting a specific pattern of corrupted nilfs2 filesystem images causes a use-after-free of metadata file inodes, which triggers a kernel bug in lru_add_fn(). As Jan Kara pointed out, this is because the link count of a metadata file gets corrupted to 0, and nilfs_evict_inode(), which is called from iput(), tries to delete that inode (ifile inode in this case). The inconsistency occurs because directories containing the inode numbers of these metadata files that should not be visible in the namespace are read without checking. Fix this issue by treating the inode numbers of these internal files as errors in the sanity check helper when reading directory folios/pages. Also thanks to Hillf Danton and Matthew Wilcox for their initial mm-layer analysis.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 7
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
— |
4.19.318
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.20
|
5.4.280
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.5
|
5.10.222
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.11
|
5.15.163
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.16
|
6.1.98
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.2
|
6.6.39
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.9.9
|