# CVE-2026-99599: udf: don't use eloc after the end of the unallocated space table

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2026-11-20T05:49:25.505Z
- Modified: 2026-11-23T08:18:01.643Z
- Assigned by: 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before f0800bc874077d48a3e7e2c689ac0dcbab805164; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 28c14f0297aa03259460825de8712942f25d1e8f; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 41fe9bee3e6bf5942a97e5ab64696ea1d5784118; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 82c92d7772d58d0d2f49328b7b846b79db33de91; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 0ceb311c0f7af4f4b38fc1066178b84a60d61a05; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 812d49a09ce0a8fcc784349d6a95e975a4af51cf; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 9ecd3d7ed7d7a57ee6af27dc22be0b3fdc9526f7; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 94401199df90e1c2a50c6e4b73618ac5a4ba83ba; 2.6.12 (not affected: before 2.6.12; from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.118 up to 6.12.*; from 6.18.64 up to 6.18.*; from 7.3.5 up to 7.3.*; from 7.4-rc2 up to *)

## References

- <https://git.kernel.org/stable/c/f0800bc874077d48a3e7e2c689ac0dcbab805164>
- <https://git.kernel.org/stable/c/28c14f0297aa03259460825de8712942f25d1e8f>
- <https://git.kernel.org/stable/c/41fe9bee3e6bf5942a97e5ab64696ea1d5784118>
- <https://git.kernel.org/stable/c/82c92d7772d58d0d2f49328b7b846b79db33de91>
- <https://git.kernel.org/stable/c/0ceb311c0f7af4f4b38fc1066178b84a60d61a05>
- <https://git.kernel.org/stable/c/812d49a09ce0a8fcc784349d6a95e975a4af51cf>
- <https://git.kernel.org/stable/c/9ecd3d7ed7d7a57ee6af27dc22be0b3fdc9526f7>
- <https://git.kernel.org/stable/c/94401199df90e1c2a50c6e4b73618ac5a4ba83ba>

## Sources

- CVE List: [CVE-2026-99599](https://www.cve.org/CVERecord?id=CVE-2026-99599), CVE Terms of Use, modified 2026-11-23
- NVD: [CVE-2026-99599](https://nvd.nist.gov/vuln/detail/CVE-2026-99599), Public domain, modified 2026-11-23

---

Page: https://cve.day/CVE-2026-99599 · Whole record: https://cve.day/CVE-2026-99599.json · Rebuilt by cve.day 2026-11-25T22:59:52.275Z
