{"id":"CVE-2026-99600","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-11-20T06:17:51.910","lastModified":"2026-11-23T08:18:01.790","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"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."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["fs/udf/truncate.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"1a075f4a549481ce6e8518d8379f193ccec6b746","lessThan":"77dd881dfc2ecd3da59c2bede6cca4a92ec975c5","versionType":"git","status":"affected"},{"version":"63dbbd8f1499b0a161e701a04aa50148d60bd1f7","lessThan":"a88467d6d07fdc78cdc0ab7d67605dac65aab73c","versionType":"git","status":"affected"},{"version":"12a88f572d6d94b5c0b72e2d1782cc2e96ac06cf","lessThan":"246ac240c758f3c3144d65d6bb27265f0ec30a48","versionType":"git","status":"affected"},{"version":"cfe4c1b25dd6d2f056afc00b7c98bcb3dd0b1fc3","lessThan":"8321a492323588f0875ed8ac92bafffc5fd3ec34","versionType":"git","status":"affected"},{"version":"cfe4c1b25dd6d2f056afc00b7c98bcb3dd0b1fc3","lessThan":"4ef0ffc5da8d2966d8f4bd0b6dc88a6fab2e891c","versionType":"git","status":"affected"},{"version":"cfe4c1b25dd6d2f056afc00b7c98bcb3dd0b1fc3","lessThan":"f7d6f3fed104ca7e48a9ed081c2047300d3f96fc","versionType":"git","status":"affected"},{"version":"cfe4c1b25dd6d2f056afc00b7c98bcb3dd0b1fc3","lessThan":"0efa27a0d8b8f4b75eed80728d2c331c6104c308","versionType":"git","status":"affected"},{"version":"cfe4c1b25dd6d2f056afc00b7c98bcb3dd0b1fc3","lessThan":"0c52750caaaccee8b0e929450fe6538ec4985722","versionType":"git","status":"affected"},{"version":"c8b6fa4511a7900db9fb0353b630d4d2ed1ba99c","versionType":"git","status":"affected"},{"version":"7665857f88557c372da35534165721156756f77f","versionType":"git","status":"affected"},{"version":"72f651c96c8aadf087fd782d551bf7db648a8c2e","versionType":"git","status":"affected"},{"version":"4d835efd561dfb9bf5409f11f4ecd428d5d29226","versionType":"git","status":"affected"},{"version":"ae56d9a017724f130cf1a263dd82a78d2a6e3852","versionType":"git","status":"affected"},{"version":"5.10.161","lessThan":"5.10.275","versionType":"semver","status":"affected"},{"version":"5.15.85","lessThan":"5.15.226","versionType":"semver","status":"affected"},{"version":"6.1.1","lessThan":"6.1.193","versionType":"semver","status":"affected"},{"version":"4.9.337","lessThan":"4.10","versionType":"semver","status":"affected"},{"version":"4.14.303","lessThan":"4.15","versionType":"semver","status":"affected"},{"version":"4.19.270","lessThan":"4.20","versionType":"semver","status":"affected"},{"version":"5.4.229","lessThan":"5.5","versionType":"semver","status":"affected"},{"version":"6.0.15","lessThan":"6.1","versionType":"semver","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["fs/udf/truncate.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"6.2","status":"affected"},{"version":"0","lessThan":"6.2","versionType":"semver","status":"unaffected"},{"version":"5.10.275","lessThanOrEqual":"5.10.*","versionType":"semver","status":"unaffected"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","versionType":"semver","status":"unaffected"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","versionType":"semver","status":"unaffected"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","versionType":"semver","status":"unaffected"},{"version":"6.12.118","lessThanOrEqual":"6.12.*","versionType":"semver","status":"unaffected"},{"version":"6.18.64","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.5","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc2","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/0c52750caaaccee8b0e929450fe6538ec4985722","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/0efa27a0d8b8f4b75eed80728d2c331c6104c308","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/246ac240c758f3c3144d65d6bb27265f0ec30a48","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/4ef0ffc5da8d2966d8f4bd0b6dc88a6fab2e891c","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/77dd881dfc2ecd3da59c2bede6cca4a92ec975c5","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/8321a492323588f0875ed8ac92bafffc5fd3ec34","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/a88467d6d07fdc78cdc0ab7d67605dac65aab73c","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/f7d6f3fed104ca7e48a9ed081c2047300d3f96fc","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}