{"id":"CVE-2026-99600","aliases":[],"title":"udf: fix preallocation discarding before an empty allocation extent","originalDescription":"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.","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":{"score":0.00211,"percentile":0.11955},"exploitDb":null},"affected":[{"ecosystem":"vendor","name":"Linux","range":">=12a88f572d6d94b5c0b72e2d1782cc2e96ac06cf, <246ac240c758f3c3144d65d6bb27265f0ec30a48","fixed":"246ac240c758f3c3144d65d6bb27265f0ec30a48"},{"ecosystem":"vendor","name":"Linux","range":">=1a075f4a549481ce6e8518d8379f193ccec6b746, <77dd881dfc2ecd3da59c2bede6cca4a92ec975c5","fixed":"77dd881dfc2ecd3da59c2bede6cca4a92ec975c5"},{"ecosystem":"vendor","name":"Linux","range":">=4.14.303, <4.15","fixed":"4.15"},{"ecosystem":"vendor","name":"Linux","range":">=4.19.270, <4.20","fixed":"4.20"},{"ecosystem":"vendor","name":"Linux","range":">=4.9.337, <4.10","fixed":"4.10"},{"ecosystem":"vendor","name":"Linux","range":">=5.10.161, <5.10.275","fixed":"5.10.275"},{"ecosystem":"vendor","name":"Linux","range":">=5.10.161, <5.11","fixed":"5.11"},{"ecosystem":"vendor","name":"Linux","range":">=5.15.85, <5.15.226","fixed":"5.15.226"},{"ecosystem":"vendor","name":"Linux","range":">=5.15.85, <5.16","fixed":"5.16"},{"ecosystem":"vendor","name":"Linux","range":">=5.4.229, <5.5","fixed":"5.5"},{"ecosystem":"vendor","name":"Linux","range":">=6.0.15, <6.1","fixed":"6.1"},{"ecosystem":"vendor","name":"Linux","range":">=6.1.1, <6.1.193","fixed":"6.1.193"},{"ecosystem":"vendor","name":"Linux","range":">=6.1.1, <6.2","fixed":"6.2"},{"ecosystem":"vendor","name":"Linux","range":">=63dbbd8f1499b0a161e701a04aa50148d60bd1f7, <a88467d6d07fdc78cdc0ab7d67605dac65aab73c","fixed":"a88467d6d07fdc78cdc0ab7d67605dac65aab73c"},{"ecosystem":"vendor","name":"Linux","range":">=cfe4c1b25dd6d2f056afc00b7c98bcb3dd0b1fc3, <0c52750caaaccee8b0e929450fe6538ec4985722","fixed":"0c52750caaaccee8b0e929450fe6538ec4985722"},{"ecosystem":"vendor","name":"Linux","range":">=cfe4c1b25dd6d2f056afc00b7c98bcb3dd0b1fc3, <0efa27a0d8b8f4b75eed80728d2c331c6104c308","fixed":"0efa27a0d8b8f4b75eed80728d2c331c6104c308"},{"ecosystem":"vendor","name":"Linux","range":">=cfe4c1b25dd6d2f056afc00b7c98bcb3dd0b1fc3, <4ef0ffc5da8d2966d8f4bd0b6dc88a6fab2e891c","fixed":"4ef0ffc5da8d2966d8f4bd0b6dc88a6fab2e891c"},{"ecosystem":"vendor","name":"Linux","range":">=cfe4c1b25dd6d2f056afc00b7c98bcb3dd0b1fc3, <8321a492323588f0875ed8ac92bafffc5fd3ec34","fixed":"8321a492323588f0875ed8ac92bafffc5fd3ec34"},{"ecosystem":"vendor","name":"Linux","range":">=cfe4c1b25dd6d2f056afc00b7c98bcb3dd0b1fc3, <f7d6f3fed104ca7e48a9ed081c2047300d3f96fc","fixed":"f7d6f3fed104ca7e48a9ed081c2047300d3f96fc"}],"references":[{"url":"https://git.kernel.org/stable/c/4ef0ffc5da8d2966d8f4bd0b6dc88a6fab2e891c","type":"other"},{"url":"https://git.kernel.org/stable/c/f7d6f3fed104ca7e48a9ed081c2047300d3f96fc","type":"other"},{"url":"https://git.kernel.org/stable/c/0efa27a0d8b8f4b75eed80728d2c331c6104c308","type":"other"},{"url":"https://git.kernel.org/stable/c/0c52750caaaccee8b0e929450fe6538ec4985722","type":"other"},{"url":"https://git.kernel.org/stable/c/77dd881dfc2ecd3da59c2bede6cca4a92ec975c5","type":"other"},{"url":"https://git.kernel.org/stable/c/a88467d6d07fdc78cdc0ab7d67605dac65aab73c","type":"other"},{"url":"https://git.kernel.org/stable/c/246ac240c758f3c3144d65d6bb27265f0ec30a48","type":"other"},{"url":"https://git.kernel.org/stable/c/8321a492323588f0875ed8ac92bafffc5fd3ec34","type":"other"}],"sources":[{"name":"nvd","at":"2026-11-23T08:46:27.455Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99600","license":"NVD terms of use","firstSeenAt":"2026-11-20T06:30:45.863Z"},{"name":"cvelistV5","at":"2026-11-23T21:30:56.783Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99600","license":"CVE Terms of Use","firstSeenAt":"2026-11-20T06:28:12.300Z"}],"firstSeenAt":"2026-11-20T06:28:12.300Z","publishedAt":"2026-11-20T05:49:26.268Z","modifiedAt":"2026-11-23T08:18:01.790Z"}