В ядре Linux устранена следующая уязвимость:
enetc: исправлен несанкционированный доступ при чтении affinity_hint.
irq_set_affinity_hit() сохраняет ссылку на cpumask_t.
параметр в дескрипторе irq, и эта ссылка может быть
доступ к нему возможен позже из irq_affinity_hint_proc_show(). Поскольку
параметр cpu_mask, переданный в irq_set_affinity_hit(), имеет
только временное хранилище (оно находится в памяти стека), позже
доступ к нему незаконен. Таким образом, читается из соответствующего
procfs affinity_hint может привести к ошибке запроса на подкачку.
Проблема устраняется помощником get_cpu_mask(), который предоставляет
постоянное хранилище параметра cpumask_t.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: enetc: Fix illegal access when reading affinity_hint irq_set_affinity_hit() stores a reference to the cpumask_t parameter in the irq descriptor, and that reference can be accessed later from irq_affinity_hint_proc_show(). Since the cpu_mask parameter passed to irq_set_affinity_hit() has only temporary storage (it's on the stack memory), later accesses to it are illegal. Thus reads from the corresponding procfs affinity_hint file can result in paging request oops. The issue is fixed by the get_cpu_mask() helper, which provides a permanent storage for the cpumask_t parameter.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 5
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.1
|
5.4.150
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.5
|
5.10.70
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.11
|
5.14.9
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:5.15:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:5.15:rc2:*:*:*:*:*:*
|
— | — |