Ad

CVE-2023-53440

MEDIUM CVSS 3.1: 5,5 EPSS 0.16%
Обновлено 4 августа 2026
Linux
Параметр Значение
CVSS 5,5 (MEDIUM)
Уязвимые версии 3.17 — 6.2.11
Устранено в версии 4.14.313
Тип уязвимости CWE-476 (Разыменование нулевого указателя)
Поставщик Linux
Публичный эксплойт Нет

В ядре Linux устранена следующая уязвимость: nilfs2: исправлено время жизни интерфейса sysfs Текущая поддержка sysfs nilfs2 имеет проблемы со сроками создания. и удаление записей sysfs, что потенциально может привести к нулевому указателю разыменования, использования после освобождения и предупреждения блокировки. Некоторые атрибуты sysfs для экземпляра nilfs2 для каждой файловой системы относятся к файл метаданных «cpfile», «sufile» или «dat», но nilfs_sysfs_create_device_group, создающая эти атрибуты, выполняется. перед загрузкой индексных дескрипторов для этих файлов метаданных и nilfs_sysfs_delete_device_group, которая удаляет эти записи sysfs, вызывается после освобождения индексных дескрипторов файлов метаданных. Таким образом, доступ к некоторым из этих атрибутов sysfs может осуществляться за пределами время жизни этих файлов метаданных, в результате чего индексный дескриптор NULL разыменования или использование после освобождения.

Кроме того, вызов nilfs_sysfs_create_device_group() выполняется во время период блокировки семафора «ns_sem» объекта nilfs, поэтому вызов сжатия, вызванный выделением памяти для записей sysfs, может получить зависимости блокировок "ns_sem" -> (сжиматель) -> "блокировки, полученные в nilfs_evict_inode()". Поскольку nilfs2 может получить «ns_sem» глубоко в стеке вызовов, содержащем другие блокируется через обработчик ошибок __nilfs_error(), это заставляет lockdep сообщать круговой замок. Это ложное срабатывание и нет циклической блокировки. на самом деле происходит, поскольку индексные дескрипторы еще не существуют, когда Вызывается nilfs_sysfs_create_device_group().

К счастью, замок предупреждения можно устранить, просто переместив вызов на nilfs_sysfs_create_device_group() из «ns_sem». Это устраняет эти проблемы с sysfs, изменяя расположение sysfs устройства. интерфейс создается/удаляется и сохраняет свое время жизни в течение всего времени жизни файлов метаданных, указанных выше.

Показать оригинальное описание (EN)

In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix sysfs interface lifetime The current nilfs2 sysfs support has issues with the timing of creation and deletion of sysfs entries, potentially leading to null pointer dereferences, use-after-free, and lockdep warnings. Some of the sysfs attributes for nilfs2 per-filesystem instance refer to metadata file "cpfile", "sufile", or "dat", but nilfs_sysfs_create_device_group that creates those attributes is executed before the inodes for these metadata files are loaded, and nilfs_sysfs_delete_device_group which deletes these sysfs entries is called after releasing their metadata file inodes. Therefore, access to some of these sysfs attributes may occur outside of the lifetime of these metadata files, resulting in inode NULL pointer dereferences or use-after-free. In addition, the call to nilfs_sysfs_create_device_group() is made during the locking period of the semaphore "ns_sem" of nilfs object, so the shrinker call caused by the memory allocation for the sysfs entries, may derive lock dependencies "ns_sem" -> (shrinker) -> "locks acquired in nilfs_evict_inode()". Since nilfs2 may acquire "ns_sem" deep in the call stack holding other locks via its error handler __nilfs_error(), this causes lockdep to report circular locking. This is a false positive and no circular locking actually occurs as no inodes exist yet when nilfs_sysfs_create_device_group() is called. Fortunately, the lockdep warnings can be resolved by simply moving the call to nilfs_sysfs_create_device_group() out of "ns_sem". This fixes these sysfs issues by revising where the device's sysfs interface is created/deleted and keeping its lifetime within the lifetime of the metadata files above.

Характеристики атаки

Способ атаки
Локальный
Нужен локальный доступ
Сложность
Низкая
Легко эксплуатировать
Нужны права
Низкие
Нужны базовые права
Участие пользователя
Не требуется
Не нужно действие пользователя

Последствия

Конфиденциальность
Нет
Нет утечки данных
Целостность
Нет
Нет модификации данных
Доступность
Высокое
Полный отказ в обслуживании

Строка CVSS v3.1

Уязвимые продукты 12

Конфигурация От (включительно) До (исключительно)
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
3.17 4.14.313
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
4.15 4.19.281
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
4.20 5.4.241
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
5.5 5.10.178
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
5.11 5.15.107
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
5.16 6.1.24
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
6.2 6.2.11
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.3:rc1:*:*:*:*:*:*
— —
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.3:rc2:*:*:*:*:*:*
— —
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.3:rc3:*:*:*:*:*:*
— —
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.3:rc4:*:*:*:*:*:*
— —
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.3:rc5:*:*:*:*:*:*
— —