Ad

CVE-2026-99600

NONE EPSS 0.21%
Обновлено 23 ноября 2026
Linux
Параметр Значение
Поставщик Linux
Публичный эксплойт Нет

В ядре Linux была устранена следующая уязвимость: udf: fix prealocation discounting before a empty assocation extend udf_discard_prealloc() находит последнюю степень файла, подглядывая в следующую с udf_next_aext() и останавливаясь, когда она возвращает 0. Заглядывание читается в eloc и elen, и код затем использует их в качестве последней степени. Но когда udf_next_aext() возвращает 0, они не имеют определенного значения: если список протяженностей заканчивается дескриптором продолжения, который приводит к пустой протяженности выделения, они описывают это продолжение, то есть блок пустой протяженности выделения, длиной в один блок.

Ядро само создает такие списки: когда udf_delete_aext() удаляет единственный дескриптор последнего объема выделения в списке, оно оставляет этот объем выделения пустым, а продолжение к нему на месте. udf_discard_prealloc() удаляет его с помощью udf_delete_aext(), который находит следующую область распределения пустой, поэтому он также удаляет продолжение и освобождает блок этой области распределения. udf_discard_prealloc() затем освобождает eloc и elen: этот блок во второй раз, вместо предварительно выделенных блоков. На растровом растровом изображении предварительно выделенные блоки протекают, а количество свободных блоков дрейфует. На нераспределенном пробеле второй бесплатный добавляет вторую свободную степень для того же блока, который позже раздается дважды: fsx, запущенный generic/091 и generic/263, заканчивает двумя частями своего тестового файла в одном блоке и считывает плохие данные.

Взгляните на отдельные переменные, так что eloc и elen сохраняют последнюю степень, что udf_next_aext () вернулся с 1.

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

In the Linux kernel, the following vulnerability has been resolved: udf: fix preallocation discarding before an empty allocation extent udf_discard_prealloc() finds the last extent of a file by peeking at the next one with udf_next_aext() and stopping when that returns 0. The peek reads into eloc and elen, and the code then uses them as the last extent. But when udf_next_aext() returns 0 they hold no defined value: if the extent list ends in a continuation descriptor that leads to an empty allocation extent, they describe that continuation, i.e. the block of the empty allocation extent, one block long. The kernel creates such lists itself: when udf_delete_aext() removes the only descriptor of the last allocation extent in a list, it leaves that allocation extent empty and the continuation to it in place. If the last extent is a preallocation, udf_discard_prealloc() deletes it with udf_delete_aext(), which finds the following allocation extent empty, so it also removes the continuation and frees that allocation extent's block. udf_discard_prealloc() then frees eloc and elen: that block a second time, instead of the preallocated blocks. On a space bitmap the preallocated blocks leak and the free block count drifts. On an unallocated space table the second free adds a second free extent for the same block, which is later handed out twice: fsx as run by generic/091 and generic/263 ends up with two parts of its test file in one block and reads back bad data. Peek into separate variables, so that eloc and elen keep the last extent that udf_next_aext() returned with 1.