В ядре Linux была устранена следующая уязвимость: cachefiles: Fix potential UAF/KASAN warning Currently, trace_cachefiles_coherency() передается указателем на __be64, лежащим над данными когерентности в struct cachefiles_xattr, чтобы он мог отображать первые 8 байтов. Однако данные имеют переменную длину и могут даже составлять 0 байт. Это может привести к предупреждению UAF или KASAN.
Исправьте это, убедившись, что в буфере есть место по крайней мере для 8 байт и что эти 8 байт предварительно очищены. Кроме того, эти байты не выровнены по 8 байт, поэтому исправьте точку трассировки, чтобы извлечь данные в виде четырех 2-байтовых слов (они выровнены по 2 байта) и повторно соберите __be64. Компилятор преобразует это в одну 8-байтовую нагрузку, где CPU поддерживает его.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: cachefiles: Fix potential UAF/KASAN warning Currently, trace_cachefiles_coherency() is being passed a pointer to a __be64 lain over the coherency data in struct cachefiles_xattr so that it can display the first 8 bytes. However, the data is of variable length and could even be 0 bytes. This could lead to a UAF or KASAN warning. Fix this by making sure the buffer has room for at least 8 bytes and that those 8 bytes are pre-cleared. Further, those bytes are not 8-byte aligned, so fix the tracepoint to extract the data as four 2-byte words (they are 2-byte aligned) and reassemble the __be64. The compiler will convert this into a single 8-byte load where the CPU supports it.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 5
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.14
|
6.18.53
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.14
|
7.2.7
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.14
|
7.3
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.3:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.3:rc2:*:*:*:*:*:*
|
— | — |