Ad

CVE-2026-99717

NONE EPSS 0.21%
Обновлено 23 ноября 2026
Linux
Параметр Значение
Поставщик Linux
Публичный эксплойт Нет

В ядре Linux была устранена следующая уязвимость: hwmon: (pmbus/q54sj108a2) Add отсутствует NULL проверка указателя When CONFIG_DEBUG_FS включена, и создание каталога debugfs для клиента PMBus не удается в течение pmbus_do_probe(), q54sj108a2_probe() передает указатель NULL, возвращенный pmbus_get_debugfs_dir() в debugfs_create_dir() без проверки, создавая свой каталог debugfs в корне debugfs вместо каталога клиента. Если pmbus_init_debugfs() не может создать каталог клиента, data->debugfs остается как NULL или ERR_PTR, который pmbus_get_debugfs_dir() преобразуется в NULL. Передача родителя NULL в debugfs_create_dir() помещает q54sj108a2_dir в корень файловой системы debugfs и заполняет его файлами атрибутов, чьи частные данные указывают на psu->debugfs_entries.

Поскольку этот каталог корневого уровня находится за пределами иерархии отладки клиента, очистка ядра PMBus не удаляет его на устройстве, утекая записи отладки и вызывая use-after-free из выделенной devm структуры q54sj108a2_data, если к осиротевшим файлам обращаются через q54sj108a2_debugfs_read() или q54sj108a2_debugfs_write() после удаления устройства. Исправьте проблему, добавив недостающую проверку указателя NULL.

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

In the Linux kernel, the following vulnerability has been resolved: hwmon: (pmbus/q54sj108a2) Add missing NULL pointer check When CONFIG_DEBUG_FS is enabled and per-client PMBus debugfs directory creation fails during pmbus_do_probe(), q54sj108a2_probe() passes the NULL pointer returned by pmbus_get_debugfs_dir() to debugfs_create_dir() without validation, creating its debugfs directory at the debugfs root instead of under the client directory. If pmbus_init_debugfs() fails to create the client directory, data->debugfs is left as NULL or an ERR_PTR, which pmbus_get_debugfs_dir() converts to NULL. Passing a NULL parent to debugfs_create_dir() places q54sj108a2_dir in the root of the debugfs filesystem and populates it with attribute files whose private data pointers reference psu->debugfs_entries. Because this root-level directory is outside the client debugfs hierarchy, PMBus core cleanup does not remove it on device unbind, leaking the debugfs entries and causing a use-after-free of the devm-allocated struct q54sj108a2_data if the orphaned files are accessed via q54sj108a2_debugfs_read() or q54sj108a2_debugfs_write() after device removal. Fix the problem by adding the missing NULL pointer check.