В ядре Linux устранена следующая уязвимость:
mm/damon/reclaim: обработать ошибку выделения ctx
Серия патчей «mm/damon/{reclaim,lru_sort}: обработка ошибок выделения ctx».
DAMON_RECLAIM и DAMON_LRU_SORT могут разыменовывать NULL-указатели, если их
Не удалось выделить объект damon_ctx. Ожидается, что ошибки произойдут
нечасто, потому что ассигнования, возможно, слишком малы, чтобы потерпеть неудачу
общие настройки. Но теоретически они возможны и последствия
плохие.
Исправьте это. Проблемы были обнаружены [1] Сашико. Этот патч (из 2):
DAMON_RECLAIM выделяет объект damon_ctx для своего kdamond в своей инициализации.
функция. damon_reclaim_enabled_store() ошибочно предполагает выделение
всегда добьюсь успеха, попробовав.
Если выделение damon_ctx не удалось,
следовательно, выполнение кода достигает damon_commit_ctx(), в то время как 'ctx'
НУЛЬ. В результате он разыменовывает NULL-указатель «ctx». Избегайте
Разыменование NULL путем возврата -ENOMEM, если 'ctx' имеет значение NULL.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: mm/damon/reclaim: handle ctx allocation failure Patch series "mm/damon/{reclaim,lru_sort}: handle ctx allocation failures". DAMON_RECLAIM and DAMON_LRU_SORT could dereference NULL pointers if their damon_ctx object allocations fail. The bugs are expected to happen infrequently because the allocations are arguably too small to fail on common setups. But theoretically they are possible and the consequences are bad. Fix those. The issues were discovered [1] by Sashiko. This patch (of 2): DAMON_RECLAIM allocates the damon_ctx object for its kdamond in its init function. damon_reclaim_enabled_store() wrongly assumes the allocation will always succeed once tried. If the damon_ctx allocation was failed, therefore, code execution reaches to damon_commit_ctx() while 'ctx' is NULL. As a result, it dereferences the NULL 'ctx' pointer. Avoid the NULL dereference by returning -ENOMEM if 'ctx' is NULL.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 9
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.18
|
6.18.36
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.0.13
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc4:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc5:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc6:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc7:*:*:*:*:*:*
|
— | — |