В ядре Linux устранена следующая уязвимость:
isofs: проверка степени продолжения Rock Ridge CE по размеру тома.
rock_continue() дословно считывает rs->cont_extent из Rock Ridge CE
запись и передает ее в sb_bread(), не проверяя, что блок
номер находится в пределах смонтированного тома ISO 9660. зафиксировать e595447e177b
(«[PATCH] rock.c: обрабатывать поврежденные каталоги») добавлен cont_offset
и отклонение cont_size для продолжения CE, но не проверено
сам номер блока экстентов. commit f54e18f1b831 («isofs: исправление
бесконечный цикл по записям CE") позже ограничил длину цепочки CE
при RR_MAX_CE_ENTRIES = 32, но снова оставил номер блока непроверенным. Со созданным ISO, смонтированным через udisks2 (оптическое автоматическое монтирование на рабочем столе)
или через монтирование CAP_SYS_ADMIN, поэтому rs->cont_extent может указывать на
блок вне диапазона или блоки, принадлежащие соседнему
файловая система на том же блочном устройстве. sb_bread() за пределами диапазона
блок возвращает NULL чисто по пути EIO блочного уровня, поэтому
не является нарушением безопасности памяти. Для чтения в пределах диапазона соседних
данные файловой системы, буфер CE анализируется как записи Rock Ridge и
только текст подзаписей SL достигает пользовательского пространства через
readlink(), что делает канал утечки информации узким и трудным.
эксплуатировать; тем не менее, полный отказ от искаженного CE соответствует
форма отклонения уже присутствует в той же функции для
cont_offset и cont_size.
Далее добавьте проверку границ ISOFS_SB(sb)->s_nzones в rock_continue().
к существующему отклонению смещения/размера, печатая то же самое
уведомление о поврежденной записи в каталоге.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: isofs: validate Rock Ridge CE continuation extent against volume size rock_continue() reads rs->cont_extent verbatim from the Rock Ridge CE record and passes it to sb_bread() without checking that the block number is within the mounted ISO 9660 volume. commit e595447e177b ("[PATCH] rock.c: handle corrupted directories") added cont_offset and cont_size rejection for the CE continuation but did not validate the extent block number itself. commit f54e18f1b831 ("isofs: Fix infinite looping over CE entries") later capped the CE chain length at RR_MAX_CE_ENTRIES = 32 but again left the block number unchecked. With a crafted ISO mounted via udisks2 (desktop optical auto-mount) or via CAP_SYS_ADMIN mount, rs->cont_extent can therefore point at an out-of-range block or at blocks belonging to an adjacent filesystem on the same block device. sb_bread() on an out-of-range block returns NULL cleanly via the block layer EIO path, so there is no memory-safety violation. For in-range reads of adjacent- filesystem data, the CE buffer is parsed as Rock Ridge records and only the text of SL sub-records reaches userspace through readlink(), which makes the info-leak channel narrow and difficult to exploit; still, rejecting the malformed CE outright matches the rejection shape already present in the same function for cont_offset and cont_size. Add an ISOFS_SB(sb)->s_nzones bounds check to rock_continue() next to the existing offset/size rejection, printing the same corrupted-directory-entry notice.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 15
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.32.66
|
2.6.33
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
3.2.67
|
3.3
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
3.4.107
|
3.5
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
3.10.64
|
3.11
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
3.12.36
|
3.13
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
3.14.28
|
3.15
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
3.17.8
|
3.18
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
3.18.2
|
5.10.258
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.11
|
5.15.209
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.16
|
6.1.175
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.2
|
6.6.140
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.12.88
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.30
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.0.7
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*
|
— | — |