← VULNERABILITIES

CVE-2026-99599

udf: don't use eloc after the end of the unallocated space table

UnscoredFix available
CVSS
—
EPSS
0.21% (p12)
Published
2026-11-20
Age
14d old
Modified
2026-11-23
Product
Linux Linux

Description

In the Linux kernel, the following vulnerability has been resolved: udf: don't use eloc after the end of the unallocated space table When udf_next_aext() returns 0, its eloc, elen and etype outputs hold no defined value. Two walks of the unallocated space table still use eloc after the walk has reached the end of the table. udf_table_prealloc_blocks() looks for a free extent starting at first_block and decides whether it found one by comparing eloc with first_block after the walk. If the table's list ends in a continuation descriptor that leads to an empty allocation extent, eloc is then the block of that allocation extent, which is in use, and if that is first_block, the block is handed out as preallocation. Once udf_discard_prealloc() no longer frees the wrong block, this is what still makes fsx in generic/091 and generic/263 read back bad data on a table, in about one run in four. Only take the extent if the walk stopped at it. When udf_table_free_blocks() cannot merge the freed blocks into an existing extent, it appends a new one and sets only its block number, so the partition reference comes from whatever eloc held after the walk, and with long allocation descriptors it is written to disk. For a table without extents, eloc was never set. Take the partition reference from the freed blocks instead. Short allocation descriptors do not store the partition reference, which is why this half remains a latent long-descriptor fix rather than a reproduced failure.

Fixed in

0ceb311c0f7af4f4b38fc1066178b84a60d61a05 · 28c14f0297aa03259460825de8712942f25d1e8f · 41fe9bee3e6bf5942a97e5ab64696ea1d5784118 · 812d49a09ce0a8fcc784349d6a95e975a4af51cf · 82c92d7772d58d0d2f49328b7b846b79db33de91 · 94401199df90e1c2a50c6e4b73618ac5a4ba83ba · 9ecd3d7ed7d7a57ee6af27dc22be0b3fdc9526f7 · f0800bc874077d48a3e7e2c689ac0dcbab805164

Affected packages

EcosystemPackageRangeFixed
vendorLinux>=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, <0ceb311c0f7af4f4b38fc1066178b84a60d61a050ceb311c0f7af4f4b38fc1066178b84a60d61a05
vendorLinux>=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, <28c14f0297aa03259460825de8712942f25d1e8f28c14f0297aa03259460825de8712942f25d1e8f
vendorLinux>=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, <41fe9bee3e6bf5942a97e5ab64696ea1d578411841fe9bee3e6bf5942a97e5ab64696ea1d5784118
vendorLinux>=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, <812d49a09ce0a8fcc784349d6a95e975a4af51cf812d49a09ce0a8fcc784349d6a95e975a4af51cf
vendorLinux>=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, <82c92d7772d58d0d2f49328b7b846b79db33de9182c92d7772d58d0d2f49328b7b846b79db33de91
vendorLinux>=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, <94401199df90e1c2a50c6e4b73618ac5a4ba83ba94401199df90e1c2a50c6e4b73618ac5a4ba83ba
vendorLinux>=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, <9ecd3d7ed7d7a57ee6af27dc22be0b3fdc9526f79ecd3d7ed7d7a57ee6af27dc22be0b3fdc9526f7
vendorLinux>=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, <f0800bc874077d48a3e7e2c689ac0dcbab805164f0800bc874077d48a3e7e2c689ac0dcbab805164

Sources

  • NVD · first seen 14d ago · NVD terms of use
  • CVE List · first seen 14d ago · CVE Terms of Use

References

JSON