В ядре Linux устранена следующая уязвимость:
net: mctp i3c: очистить уведомитель и шины в случае сбоя регистрации драйвера
mctp_i3c_mod_init() регистрирует уведомитель шины I3C, а затем проходит
существующие автобусы с i3c_for_each_bus_locked(mctp_i3c_bus_add_new, NULL)
перед регистрацией драйвера устройства I3C. Если i3c_driver_register()
не удается, функция возвращает ошибку напрямую, оставляя уведомитель
зарегистрирован и каждый объект mctp_i3c_bus создан для существующих шин
выделено. Уведомитель остается указывающим на модуль, который не удалось выполнить.
нагрузка и список шин просочился.
Отразите путь выхода модуля в случае этой ошибки: отмените регистрацию уведомителя и снести добавленные шины перед возвратом ошибки. Эта проблема была выявлена в ходе нашего текущего исследования статического анализа. просмотр кода ядра.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: net: mctp i3c: clean up notifier and buses if driver register fails mctp_i3c_mod_init() registers the I3C bus notifier and then walks the existing buses with i3c_for_each_bus_locked(mctp_i3c_bus_add_new, NULL) before registering the I3C device driver. If i3c_driver_register() fails, the function returns the error directly, leaving the notifier registered and every mctp_i3c_bus object created for the existing buses allocated. The notifier is left pointing into the module that failed to load and the bus list is leaked. Mirror the module exit path on this failure: unregister the notifier and tear down the buses that were added before returning the error. This issue was identified during our ongoing static-analysis research while reviewing kernel code.
Характеристики атаки
Последствия
Строка CVSS v3.1
Уязвимые продукты 4
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.12.101
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.18.42
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
7.1.6
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
7.2
|