В ядре Linux устранена следующая уязвимость:
pmdomain: mediatek: mfg: инициализировать prev_o в mtk_mfg_attach_dev()
mtk_mfg_attach_dev() считывает prev_o на первой итерации своего цикла,
в «if (prev_o && prev_o->freq == o->freq)», прежде чем будет назначен prev_o
в конце тела цикла. На этой первой итерации оценка prev_o
читает неопределенное значение. Если оно не NULL, условие
разыменовывает устаревший или недействительный указатель, что может привести к сбою или
неправильно пропускаю первый OPP.
Инициализируйте prev_o значением NULL. Это также соответствует замыслу: нет
предыдущий OPP для сравнения на первой итерации. Найден с помощью Clang -Wconditional-uninitialized.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: pmdomain: mediatek: mfg: initialize prev_o in mtk_mfg_attach_dev() mtk_mfg_attach_dev() reads prev_o on the first iteration of its loop, in "if (prev_o && prev_o->freq == o->freq)", before prev_o is assigned at the end of the loop body. On that first iteration, evaluating prev_o reads an indeterminate value. If it is non-NULL, the condition dereferences a stale or invalid pointer, potentially faulting or incorrectly skipping the first OPP. Initialize prev_o to NULL. This matches the intent as well: there is no previous OPP to compare against on the first iteration. Found with Clang's -Wconditional-uninitialized.
Характеристики атаки
Последствия
Строка CVSS v3.1
Уязвимые продукты 2
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.1.10
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.2
|