В ядре Linux устранена следующая уязвимость: platform/x86: asus-wmi: fix resource leaks on probe failure Во время инициализации драйверов в asus_wmi_add() различные подсистемы регистрируются последовательно. Тем не менее, метки пути ошибки не в порядке относительно последовательности регистрации. Конкретно: 1.
Если asus_wmi_custom_fan_curve_init() выходит из строя, водитель переходит к fail_custom_fan_curve. Поскольку эта метка расположена ниже fail_sysfs, она обходит вызовы очистки для устройств ввода и групп sysfs, которые были успешно зарегистрированы ранее, утекая эти ресурсы. 2. Если asus_screenpad_init() выходит из строя, водитель переходит к fail_screenpad.
Поскольку fail_screenpad расположен ниже fail_backlight, он обходит требования очистки для подсветки и rfkill, утечки этих ресурсов. Исправьте эти утечки ресурсов, переупорядочив метки пути ошибок в asus_wmi_add(), чтобы соответствовать точному обратному порядку распределения ресурсов.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: platform/x86: asus-wmi: fix resource leaks on probe failure During driver initialization in asus_wmi_add(), various subsystems are registered sequentially. However, the error path labels are out of order relative to the registration sequence. Specifically: 1. If asus_wmi_custom_fan_curve_init() fails, the driver jumps to fail_custom_fan_curve. Because this label is placed below fail_sysfs, it bypasses the cleanup calls for the input device and sysfs groups, which were successfully registered before, leaking those resources. 2. If asus_screenpad_init() fails, the driver jumps to fail_screenpad. Because fail_screenpad is placed below fail_backlight, it bypasses the cleanup calls for backlight and rfkill, leaking those resources. Fix these resource leaks by reordering the error path labels in asus_wmi_add() to match the exact reverse order of the resource allocations.
Характеристики атаки
Последствия
Строка CVSS v3.1