В ядре Linux устранена следующая уязвимость: аудит: исправлено чтение out-of-bounds в audit_compare_dname_path() When часы на dir/ объединены с событием fsnotify для односимвольного имени непосредственно под / (например, создание /a), чтение out-of-bounds может происходить в audit_compare_dname_path(). Помощник parent_len () возвращает 1 для "/". В audit_compare_dname_path(), когда родитель равен полной длине пути (1), код устанавливает p путь + 1 и pathlen 1 - 1 0.
Последующий цикл затем делиферирует p[pathlen - 1] (т.е. p[-1]), вызывая чтение out-of-bounds. Исправьте это, добавив проверку pathlen > 0 к условию цикла while, чтобы предотвратить доступ out-of-bounds. [PM: настройка темы, исправления электронной почты для входа]
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: audit: fix out-of-bounds read in audit_compare_dname_path() When a watch on dir=/ is combined with an fsnotify event for a single-character name directly under / (e.g., creating /a), an out-of-bounds read can occur in audit_compare_dname_path(). The helper parent_len() returns 1 for "/". In audit_compare_dname_path(), when parentlen equals the full path length (1), the code sets p = path + 1 and pathlen = 1 - 1 = 0. The subsequent loop then dereferences p[pathlen - 1] (i.e., p[-1]), causing an out-of-bounds read. Fix this by adding a pathlen > 0 check to the while loop condition to prevent the out-of-bounds access. [PM: subject tweak, sign-off email fixes]
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 5
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.14
|
6.16.6
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.17:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.17:rc2:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.17:rc3:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.17:rc4:*:*:*:*:*:*
|
— | — |