In the Linux kernel, the following vulnerability has been resolved: i3c: master: Fix use-after-free of master->this sysfs attribute callbacks for the master controller device dereference master->this. Тем не менее, master->this освобождается в i3c_master_detach_free_devs() до выпуска самого главного устройства. В результате sysfs accesses может лишить ссылки освободившийся указатель master->this, что приводит к use-after-free.
Держите master->this живым до тех пор, пока i3c_masterdev_release (), который вызывается после того, как основное устройство и его состояние sysfs не будут снесены. Не освобождайте master->this как часть обычного пути отсоединения устройства. На пути ошибки в i3c_master_set_info(), сбросьте master->this и bus.cur_master на NULL, прежде чем освободить выделенное устройство.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: i3c: master: Fix use-after-free of master->this sysfs attribute callbacks for the master controller device dereference master->this. However, master->this is freed in i3c_master_detach_free_devs() before the master device itself is released. As a result, sysfs accesses can dereference a freed master->this pointer, leading to a use-after-free. Keep master->this alive until i3c_masterdev_release(), which is called after the master device and its sysfs state are being torn down. Do not free master->this as part of the normal device detach path. On the error path in i3c_master_set_info(), reset master->this and bus.cur_master to NULL before freeing the allocated device.
Уязвимые продукты 3
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.0
|
6.18.52
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.0
|
7.2.6
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.0
|
7.3-rc1
|