В ядре Linux устранена следующая уязвимость:
nilfs2: исправлена ошибка использования после освобождения nilfs_root в nilfs_evict_inode(). Во время процесса размонтирования nilfs2 ничто не сохраняет структуру nilfs_root после
nilfs2 отключает записывающее устройство в nilfs_detach_log_writer(). Однако, поскольку
nilfs_evict_inode() использует nilfs_root для некоторых операций очистки, это может
вызвать чтение use-after-free, если индексные дескрипторы остались в «garbage_list» и
выпущенный функцией nilfs_dispose_list() в конце nilfs_detach_log_writer().
Исправьте эту проблему, изменив nilfs_evict_inode() так, чтобы он очищал только индексный дескриптор.
без дополнительных изменений метаданных, использующих nilfs_root, если файловая система
переведен в режим «только для чтения» или модуль записи отключен.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix use-after-free bug of nilfs_root in nilfs_evict_inode() During unmount process of nilfs2, nothing holds nilfs_root structure after nilfs2 detaches its writer in nilfs_detach_log_writer(). However, since nilfs_evict_inode() uses nilfs_root for some cleanup operations, it may cause use-after-free read if inodes are left in "garbage_list" and released by nilfs_dispose_list() at the end of nilfs_detach_log_writer(). Fix this issue by modifying nilfs_evict_inode() to only clear inode without additional metadata changes that use nilfs_root if the file system is degraded to read-only or the writer is detached.
Характеристики атаки
Последствия
Строка CVSS v3.1