{"id":"CVE-2026-99600","aliases":["CVE-2026-99600"],"related":[],"kind":"vulnerability","state":"published","title":"udf: fix preallocation discarding before an empty allocation extent","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nudf: fix preallocation discarding before an empty allocation extent\n\nudf_discard_prealloc() finds the last extent of a file by peeking at\nthe next one with udf_next_aext() and stopping when that returns 0.\nThe peek reads into eloc and elen, and the code then uses them as the\nlast extent.  But when udf_next_aext() returns 0 they hold no defined\nvalue: if the extent list ends in a continuation descriptor that leads\nto an empty allocation extent, they describe that continuation, i.e.\nthe block of the empty allocation extent, one block long.\n\nThe kernel creates such lists itself: when udf_delete_aext() removes\nthe only descriptor of the last allocation extent in a list, it leaves\nthat allocation extent empty and the continuation to it in place.\n\nIf the last extent is a preallocation, udf_discard_prealloc() deletes\nit with udf_delete_aext(), which finds the following allocation extent\nempty, so it also removes the continuation and frees that allocation\nextent's block.  udf_discard_prealloc() then frees eloc and elen: that\nblock a second time, instead of the preallocated blocks.  On a space\nbitmap the preallocated blocks leak and the free block count drifts.\nOn an unallocated space table the second free adds a second free\nextent for the same block, which is later handed out twice: fsx as run\nby generic/091 and generic/263 ends up with two parts of its test file\nin one block and reads back bad data.\n\nPeek into separate variables, so that eloc and elen keep the last\nextent that udf_next_aext() returned with 1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nudf: fix preallocation discarding before an empty allocation extent\n\nudf_discard_prealloc() finds the last extent of a file by peeking at\nthe next one with udf_next_aext() and stopping when that returns 0.\nThe peek reads into eloc and elen, and the code then uses them as the\nlast extent.  But when udf_next_aext() returns 0 they hold no defined\nvalue: if the extent list ends in a continuation descriptor that leads\nto an empty allocation extent, they describe that continuation, i.e.\nthe block of the empty allocation extent, one block long.\n\nThe kernel creates such lists itself: when udf_delete_aext() removes\nthe only descriptor of the last allocation extent in a list, it leaves\nthat allocation extent empty and the continuation to it in place.\n\nIf the last extent is a preallocation, udf_discard_prealloc() deletes\nit with udf_delete_aext(), which finds the following allocation extent\nempty, so it also removes the continuation and frees that allocation\nextent's block.  udf_discard_prealloc() then frees eloc and elen: that\nblock a second time, instead of the preallocated blocks.  On a space\nbitmap the preallocated blocks leak and the free block count drifts.\nOn an unallocated space table the second free adds a second free\nextent for the same block, which is later handed out twice: fsx as run\nby generic/091 and generic/263 ends up with two parts of its test file\nin one block and reads back bad data.\n\nPeek into separate variables, so that eloc and elen keep the last\nextent that udf_next_aext() returned with 1.","source":"cvelist"}],"published":"2026-11-20T05:49:26.268Z","modified":"2026-11-23T08:18:01.790Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"1a075f4a549481ce6e8518d8379f193ccec6b746","fixed":"77dd881dfc2ecd3da59c2bede6cca4a92ec975c5","status":"affected"},{"type":"git","introduced":"63dbbd8f1499b0a161e701a04aa50148d60bd1f7","fixed":"a88467d6d07fdc78cdc0ab7d67605dac65aab73c","status":"affected"},{"type":"git","introduced":"12a88f572d6d94b5c0b72e2d1782cc2e96ac06cf","fixed":"246ac240c758f3c3144d65d6bb27265f0ec30a48","status":"affected"},{"type":"git","introduced":"cfe4c1b25dd6d2f056afc00b7c98bcb3dd0b1fc3","fixed":"8321a492323588f0875ed8ac92bafffc5fd3ec34","status":"affected"},{"type":"git","introduced":"cfe4c1b25dd6d2f056afc00b7c98bcb3dd0b1fc3","fixed":"4ef0ffc5da8d2966d8f4bd0b6dc88a6fab2e891c","status":"affected"},{"type":"git","introduced":"cfe4c1b25dd6d2f056afc00b7c98bcb3dd0b1fc3","fixed":"f7d6f3fed104ca7e48a9ed081c2047300d3f96fc","status":"affected"},{"type":"git","introduced":"cfe4c1b25dd6d2f056afc00b7c98bcb3dd0b1fc3","fixed":"0efa27a0d8b8f4b75eed80728d2c331c6104c308","status":"affected"},{"type":"git","introduced":"cfe4c1b25dd6d2f056afc00b7c98bcb3dd0b1fc3","fixed":"0c52750caaaccee8b0e929450fe6538ec4985722","status":"affected"},{"type":"git","version":"c8b6fa4511a7900db9fb0353b630d4d2ed1ba99c","status":"affected"},{"type":"git","version":"7665857f88557c372da35534165721156756f77f","status":"affected"},{"type":"git","version":"72f651c96c8aadf087fd782d551bf7db648a8c2e","status":"affected"},{"type":"git","version":"4d835efd561dfb9bf5409f11f4ecd428d5d29226","status":"affected"},{"type":"git","version":"ae56d9a017724f130cf1a263dd82a78d2a6e3852","status":"affected"},{"type":"semver","introduced":"5.10.161","fixed":"5.10.275","status":"affected"},{"type":"semver","introduced":"5.15.85","fixed":"5.15.226","status":"affected"},{"type":"semver","introduced":"6.1.1","fixed":"6.1.193","status":"affected"},{"type":"semver","introduced":"4.9.337","fixed":"4.10","status":"affected"},{"type":"semver","introduced":"4.14.303","fixed":"4.15","status":"affected"},{"type":"semver","introduced":"4.19.270","fixed":"4.20","status":"affected"},{"type":"semver","introduced":"5.4.229","fixed":"5.5","status":"affected"},{"type":"semver","introduced":"6.0.15","fixed":"6.1","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.2","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.118","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.64","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.5","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/77dd881dfc2ecd3da59c2bede6cca4a92ec975c5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a88467d6d07fdc78cdc0ab7d67605dac65aab73c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/246ac240c758f3c3144d65d6bb27265f0ec30a48","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8321a492323588f0875ed8ac92bafffc5fd3ec34","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4ef0ffc5da8d2966d8f4bd0b6dc88a6fab2e891c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f7d6f3fed104ca7e48a9ed081c2047300d3f96fc","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0efa27a0d8b8f4b75eed80728d2c331c6104c308","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0c52750caaaccee8b0e929450fe6538ec4985722","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99600","url":"https://www.cve.org/CVERecord?id=CVE-2026-99600","licence":"CVE Terms of Use","modified":"2026-11-23T08:04:53.919Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99600","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99600","licence":"Public domain","modified":"2026-11-23T08:18:01.790Z"}],"updatedAt":"2026-11-25T22:59:52.275Z","epss":{"score":0.00211,"percentile":0.11955,"date":"2026-12-02T12:00:21.000Z"}}