cvelo
P4 · InfoEPSS 0.2%

udf: fix preallocation discarding before an empty allocation extent

  • CVE-2026-99600
  • GHSA-3cx6-ppmp-63c8
  • EUVD-2026-131050

Description

Show the whole description

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.

Text from the CVE.org record.

Recommendation

  • Linux

    • If you run 6.1.xupdate to 6.1.193 or laterPatch update: breaking changes are unlikely
    • If you run a version from 6.0.15 to before 6.1update to 6.1 or laterMinor version change: check the release notes
    • If you run 5.15.xupdate to 5.15.226 or laterPatch update: breaking changes are unlikely
    • If you run 5.10.xupdate to 5.10.275 or laterPatch update: breaking changes are unlikely
    • If you run a version from 5.4.229 to before 5.5update to 5.5 or laterMinor version change: check the release notes
    • If you run a version from 4.19.270 to before 4.20update to 4.20 or laterMinor version change: check the release notes
    • If you run a version from 4.14.303 to before 4.15update to 4.15 or laterMinor version change: check the release notes
    • If you run a version from 4.9.337 to before 4.10update to 4.10 or laterMinor version change: check the release notes

    Some affected versions have no stated fix.

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • Linux

    Affected versionsFixed in
    from 6.1.1 to before 6.1.1936.1.193
    from 6.0.15 to before 6.16.1
    from 5.15.85 to before 5.15.2265.15.226
    from 5.10.161 to before 5.10.2755.10.275
    from 5.4.229 to before 5.55.5
    from 4.19.270 to before 4.204.20
    from 4.14.303 to before 4.154.15
    from 4.9.337 to before 4.104.10

    and 10 more

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.