Ad

CVE-2026-99602

HIGH CVSS 3.1: 7,1 EPSS 0.18%
Обновлено 23 ноября 2026
Linux
Параметр Значение
CVSS 7,1 (HIGH)
Поставщик Linux
Публичный эксплойт Нет

In the Linux kernel, the following vulnerability has been resolved: udf: don't let the extent type hide an exhausted free-space table extent udf_table_new_block() takes the first block of the free-space table extent closest to the goal. Он сохраняет тип и длину этой протяженности вместе в goal_elen, вычитает один блок и удаляет протяженность только в том случае, если goal_elen тогда достигает нуля. UDF 2.60 раздел 2.3.7.1 требует, чтобы пространства свободного пространства Unallocated Space Entry были типа 1 (выделены, но не записаны), и mkudffs пишет их таким образом.

Для такой степени биты типа сохраняют goal_elen ненулевым, поэтому последний блок оставляет нулевую длину типа 1, начиная с блока после используемой длины. Следующее выделение, которое выбирает этот пустой объем, возвращает этот используемый блок. Вычитание блока из 0x40000000 затем заимствует из битов типа, и объем становится типом 0 с длиной 2 30 - размер блока: около гигабайта «free» пространства, перекрывающего живые метаданные, другие размеры таблицы и все, что лежит за разделом.

С тех пор блоки выдаются дважды, или мимо конца раздела. udf_table_free_blocks() добавляет тип 0, где проверка работает, поэтому затрагиваются только таблицы, написанные mkudffs или другой реализацией. Не требуется ничего, кроме заполнения такой файловой системы: на свежем образе 1 MiB "mkudffs --spaceunalloctable", создавая пустые файлы, пока раздел не будет полон, записывает записи файлов по последовательности дескриптора резервного тома и резервного якоря, а затем df сообщает об отрицательном количестве используемого пространства. На изображениях Syzbot такое же двойное распределение, как и в двух отчетах ниже.

Во-первых, ftruncate() расширяет новый файл с достаточным количеством отверстий, чтобы нуждаться в цепочке дескрипторов протяженности распределения; один AED помещается на запись файла другого inode, а более поздний помещается на блок AED, который в настоящее время заполняется, что udf_setup_indirect_aext() обнуляет, поэтому __udf_add_aext() находит lengthAllocDescs не в шаге со своим курсором. Во втором случае AED размещается после конца устройства, sb_getblk () выходит из строя, и путь ошибки udf_do_extend_file () вызывает udf_truncate_extents () в списке протяженности, который больше не покрывает i_size. Держите тип отдельно от длины, как это уже делает udf_table_prealloc_blocks().

Показать оригинальное описание (EN)

In the Linux kernel, the following vulnerability has been resolved: udf: don't let the extent type hide an exhausted free-space table extent udf_table_new_block() takes the first block of the free-space table extent closest to the goal. It keeps that extent's type and length together in goal_elen, subtracts one block, and deletes the extent only if goal_elen then reaches zero. UDF 2.60 section 2.3.7.1 requires the free-space extents of an Unallocated Space Entry to be of type 1 (allocated but not recorded), and mkudffs writes them that way. For such an extent the type bits keep goal_elen non-zero, so taking its last block leaves a type-1 extent of length zero behind, starting at the block after the extent, which is in use. The next allocation that picks this empty extent returns that in-use block. Subtracting a block from 0x40000000 then borrows from the type bits, and the extent becomes type 0 with a length of 2^30 - blocksize: about a gigabyte of "free" space overlapping live metadata, the other table extents and whatever lies behind the partition. From then on blocks are handed out twice, or past the end of the partition. Extents that udf_table_free_blocks() adds are type 0, where the check works, so only tables written by mkudffs or by another implementation are affected. Nothing more than filling such a filesystem is needed: on a fresh 1 MiB "mkudffs --space=unalloctable" image, creating empty files until the partition is full writes file entries over the reserve volume descriptor sequence and the backup anchor, and df then reports a negative amount of used space. On syzbot's images the same double allocation is what the two reports below trip over. In the first, ftruncate() extends a new file with enough hole extents to need a chain of allocation extent descriptors; one AED is placed on another inode's file entry, and a later one is placed on the block of the AED currently being filled, which udf_setup_indirect_aext() zeroes, so __udf_add_aext() finds lengthAllocDescs out of step with its cursor. In the second, an AED is placed past the end of the device, sb_getblk() fails, and the error path of udf_do_extend_file() calls udf_truncate_extents() on an extent list that no longer covers i_size. Keep the type separately from the length, as udf_table_prealloc_blocks() already does.

Характеристики атаки

Способ атаки
Локальный
Нужен локальный доступ
Сложность
Низкая
Легко эксплуатировать
Нужны права
Не требуются
Права не нужны
Участие пользователя
Требуется
Нужно действие пользователя

Последствия

Конфиденциальность
Нет
Нет утечки данных
Целостность
Высокое
Полная модификация данных
Доступность
Высокое
Полный отказ в обслуживании

Строка CVSS v3.1