В ядре Linux устранена следующая уязвимость:
soc: qcom: rpmpd: проверка нулевого возврата devm_kcalloc
Из-за возможного сбоя распределения данные->домены могут
быть NULL-указателем и приведет к разыменованию NULL-указателя
позже.
Поэтому, возможно, лучше проверить это и напрямую вернуть -ENOMEM.
без освобождения данных вручную в случае неудачи, поскольку комментарий
devm_kmalloc() говорит: «Память, выделенная с помощью этой функции,
автоматически освобождается при отсоединении драйвера.".
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: soc: qcom: rpmpd: Check for null return of devm_kcalloc Because of the possible failure of the allocation, data->domains might be NULL pointer and will cause the dereference of the NULL pointer later. Therefore, it might be better to check it and directly return -ENOMEM without releasing data manually if fails, because the comment of the devm_kmalloc() says "Memory allocated with this function is automatically freed on driver detach.".
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 5
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.1
|
5.4.189
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.5
|
5.10.110
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.11
|
5.15.33
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.16
|
5.16.19
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.17
|
5.17.2
|