В ядре Linux устранена следующая уязвимость:
sched_ext: удалить лишний css_put() в scx_cgroup_init(). Итератор css_for_each_descendant_pre() проходит по иерархии контрольных групп.
под cgroup_lock(). Он не увеличивает счетчик ссылок на
дали CSS-структуры.
Согласно документации cgroup, css_put() следует использовать только
чтобы освободить ссылку, полученную с помощью css_get() или css_tryget_online(). Поскольку итератор не использует ни один из них для получения ссылки,
вызов css_put() в пути ошибки scx_cgroup_init() вызывает ошибку
перерасход рефсчета. Удалите несбалансированный css_put(), чтобы предотвратить потенциальное использование после освобождения.
(УАФ) уязвимость.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: sched_ext: Remove redundant css_put() in scx_cgroup_init() The iterator css_for_each_descendant_pre() walks the cgroup hierarchy under cgroup_lock(). It does not increment the reference counts on yielded css structs. According to the cgroup documentation, css_put() should only be used to release a reference obtained via css_get() or css_tryget_online(). Since the iterator does not use either of these to acquire a reference, calling css_put() in the error path of scx_cgroup_init() causes a refcount underflow. Remove the unbalanced css_put() to prevent a potential Use-After-Free (UAF) vulnerability.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 5
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.12
|
6.12.78
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.19
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
6.19.9
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
|
— | — |