В ядре Linux устранена следующая уязвимость:
nfsd: переместите nfsd_debugfs_init() после nfsd4_init_slabs() в init_nfsd()
nfsd_debugfs_init() выполняется до nfsd4_init_slabs() в init_nfsd(). Если выделение плит не удается, простой «возвратный возврат» обходит
nfsd_debugfs_exit(), оставляя бесхозные файлы debugfs с устаревшими файлами
указатели на освобожденный текст модуля. Переместите nfsd_debugfs_init() после успешной инициализации slab, чтобы
при раннем возврате нет состояния debugfs, которое нужно было бы очистить.
Поскольку debugfs теперь инициализируется позже двух, также
обновите пути очистки, чтобы они соответствовали порядку обратной инициализации (LIFO):
запустите nfsd_debugfs_exit() перед nfsd4_free_slabs() в обоих
Путь ошибки init_nfsd() и exit_nfsd(). Только файлы отладки nfsd
ссылается на глобальное состояние модуля и не зависит от плиты
кэшей, так что переупорядочение представляет собой очистку без каких-либо функциональных изменений.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: nfsd: move nfsd_debugfs_init() after nfsd4_init_slabs() in init_nfsd() nfsd_debugfs_init() runs before nfsd4_init_slabs() in init_nfsd(). If the slab allocation fails, the bare "return retval" bypasses nfsd_debugfs_exit(), leaving orphan debugfs files with stale fops pointers into the freed module text. Move nfsd_debugfs_init() to after the slab init succeeds, so the early return has no debugfs state to clean up. Since debugfs is now the more recently initialized of the two, also update the unwind paths to match reverse-initialization (LIFO) order: run nfsd_debugfs_exit() before nfsd4_free_slabs() in both the init_nfsd() error path and exit_nfsd(). The nfsd debugfs files only reference module-global state and have no dependency on the slab caches, so that reordering is a cleanup with no functional change.
Характеристики атаки
Последствия
Строка CVSS v3.1