CVE-2026-99599
udf: don't use eloc after the end of the unallocated space table
What happened?
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.
Affected software and versions
| Software | Version information | Fixed version |
|---|---|---|
| LinuxLinux | affected: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < f0800bc874077d48a3e7e2c689ac0dcbab805164; affected: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 28c14f0297aa03259460825de8712942f25d1e8f; affected: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 41fe9bee3e6bf5942a97e5ab64696ea1d5784118; affected: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 82c92d7772d58d0d2f49328b7b846b79db33de91; affected: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 0ceb311c0f7af4f4b38fc1066178b84a60d61a05; affected: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 812d49a09ce0a8fcc784349d6a95e975a4af51cf; affected: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 9ecd3d7ed7d7a57ee6af27dc22be0b3fdc9526f7; affected: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 94401199df90e1c2a50c6e4b73618ac5a4ba83ba | See vendor advisory |
| LinuxLinux | affected: 2.6.12; unaffected: 0 to < 2.6.12; unaffected: 5.10.275 to ≤ 5.10.*; unaffected: 5.15.226 to ≤ 5.15.*; unaffected: 6.1.193 to ≤ 6.1.*; unaffected: 6.6.163 to ≤ 6.6.*; unaffected: 6.12.118 to ≤ 6.12.*; unaffected: 6.18.64 to ≤ 6.18.*; unaffected: 7.3.5 to ≤ 7.3.*; unaffected: 7.4-rc2 to ≤ * | See vendor advisory |
Version information comes from the source record and can include unaffected products and exceptions. Distribution packages may contain backported fixes: an older upstream version alone does not prove a server is affected.
Is it being exploited?
This CVE was not listed in the CISA catalogue at our last retrieval. This does not establish that exploitation is absent.
How to respond
- Confirm the product, installed package version, and any configuration requirements in the vendor advisory.
- Follow the vendor’s remediation or workaround guidance in the references below. Structured fixed-version data is unavailable here; the publisher’s description may include a fix or workaround.
- Restart affected services if required, then verify the running version. Known exploitation may warrant investigation as well as patching.
Sources and remediation references
- https://www.cve.org/CVERecord?id=CVE-2026-99599
- 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