Ad

CVE-2026-98971

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

В ядре Linux была устранена следующая уязвимость: gpio: exar: инициализируйте ID перед регистрацией его очистки devm_add_action_or_reset() вызывает действие очистки сразу же при регистрации сбоя. gpio_exar_probe() в настоящее время хранит выделенный ID в exar_gpio только после регистрации действия, так что сбой заставляет exar_devm_ida_free() выпустить ID 0. Если выделенный ID не равен нулю, это приводит к утечке ID и может освободить ID 0, принадлежащий другому устройству. Храните ID перед регистрацией действия очистки, чтобы как немедленный путь отказа, так и обычный выход устройства из строя высвободили правильное распределение.

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

In the Linux kernel, the following vulnerability has been resolved: gpio: exar: initialize the ID before registering its cleanup devm_add_action_or_reset() invokes the cleanup action immediately when registering the action fails. gpio_exar_probe() currently stores the allocated ID in exar_gpio only after registering the action, so that failure makes exar_devm_ida_free() release ID 0. If the allocated ID is nonzero, this leaks that ID and can free ID 0 belonging to another device. Store the ID before registering the cleanup action so both the immediate failure path and normal device teardown release the correct allocation.