В ядре Linux устранена следующая уязвимость:
предохранитель: отклонять слишком большие ссылки в страничном кеше
Fuse_add_dirent_to_cache() вычисляет сериализованный размер dirent из
поле namelen, управляемое сервером, и копирует dirent в один
страница кэша страниц. Существующая логика только проверяет, подходит ли прямой
в оставшемся пространстве текущей страницы и переходит на новую страницу
если нет. Он никогда не проверяет, превышает ли сам размер страницы PAGE_SIZE.
В результате вредоносный сервер FUSE может вернуть адрес с
namelen=4095, создавая сериализованную запись размером 4120 байт. На 4 КиБ
страничные системы, это приводит к тому, что memcpy() переполняет страницу кэша на 24 байта.
на следующую страницу ядра. Отклоняйте каталоги, которые не могут поместиться на одной странице, прежде чем копировать их в
кэш чтения.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: fuse: reject oversized dirents in page cache fuse_add_dirent_to_cache() computes a serialized dirent size from the server-controlled namelen field and copies the dirent into a single page-cache page. The existing logic only checks whether the dirent fits in the remaining space of the current page and advances to a fresh page if not. It never checks whether the dirent itself exceeds PAGE_SIZE. As a result, a malicious FUSE server can return a dirent with namelen=4095, producing a serialized record size of 4120 bytes. On 4 KiB page systems this causes memcpy() to overflow the cache page by 24 bytes into the following kernel page. Reject dirents that cannot fit in a single page before copying them into the readdir cache.
Характеристики атаки
Последствия
Строка CVSS v3.1
Уязвимые продукты 8
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.20
|
6.6.136
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.12.84
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.25
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.0.2
|
|
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:*:*:*:*:*:*
|
— | — |
|
Siemens Simatic_S7-1500_Tm_Mfp_Firmware
cpe:2.3:o:siemens:simatic_s7-1500_tm_mfp_firmware:-:*:*:*:*:*:*:*
|
— | — |
|
Siemens Simatic_S7-1500_Tm_Mfp
cpe:2.3:h:siemens:simatic_s7-1500_tm_mfp:-:*:*:*:*:*:*:*
|
— | — |