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

CVE-2026-99599
Not available

At a glance

Source
NVD
EPSS
EPSS 0.21 % · percentile 12 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
Affected products
Linux · Linux
NVD status
Received

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.

References

European references

CERT-FR advisories

Affected products

ProductAffected versions
Linux · Linux
affected : ≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < f0800bc874077d48a3e7e2c689ac0dcbab805164
affected : ≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 28c14f0297aa03259460825de8712942f25d1e8f
affected : ≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 41fe9bee3e6bf5942a97e5ab64696ea1d5784118
affected : ≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 82c92d7772d58d0d2f49328b7b846b79db33de91
affected : ≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 0ceb311c0f7af4f4b38fc1066178b84a60d61a05
affected : ≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 812d49a09ce0a8fcc784349d6a95e975a4af51cf
affected : ≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 9ecd3d7ed7d7a57ee6af27dc22be0b3fdc9526f7
affected : ≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 94401199df90e1c2a50c6e4b73618ac5a4ba83ba
Other versions : unaffected
Linux · Linux
affected : 2.6.12
unaffected : ≥ 0 < 2.6.12
unaffected : ≥ 5.10.275 ≤ 5.10.*
unaffected : ≥ 5.15.226 ≤ 5.15.*
unaffected : ≥ 6.1.193 ≤ 6.1.*
unaffected : ≥ 6.6.163 ≤ 6.6.*
unaffected : ≥ 6.12.118 ≤ 6.12.*
unaffected : ≥ 6.18.64 ≤ 6.18.*
unaffected : ≥ 7.3.5 ≤ 7.3.*
unaffected : ≥ 7.4-rc2 ≤ *
Other versions : affected

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD