{"id":"CVE-2026-45912","summary":"ext4: don't cache extent during splitting extent","details":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: don't cache extent during splitting extent\n\nCaching extents during the splitting process is risky, as it may result\nin stale extents remaining in the status tree. Moreover, in most cases,\nthe corresponding extent block entries are likely already cached before\nthe split happens, making caching here not particularly useful.\n\nAssume we have an unwritten extent, and then DIO writes the first half.\n\n  [UUUUUUUUUUUUUUUU] on-disk extent        U: unwritten extent\n  [UUUUUUUUUUUUUUUU] extent status tree\n  |\u003c-   -\u003e| ----\u003e dio write this range\n\nFirst, when ext4_split_extent_at() splits this extent, it truncates the\nexisting extent and then inserts a new one. During this process, this\nextent status entry may be shrunk, and calls to ext4_find_extent() and\next4_cache_extents() may occur, which could potentially insert the\ntruncated range as a hole into the extent status tree. After the split\nis completed, this hole is not replaced with the correct status.\n\n  [UUUUUUU|UUUUUUUU] on-disk extent        U: unwritten extent\n  [UUUUUUU|HHHHHHHH] extent status tree    H: hole\n\nThen, the outer calling functions will not correct this remaining hole\nextent either. Finally, if we perform a delayed buffer write on this\nlatter part, it will re-insert the delayed extent and cause an error in\nspace accounting.\n\nIn adition, if the unwritten extent cache is not shrunk during the\nsplitting, ext4_cache_extents() also conflicts with existing extents\nwhen caching extents. In the future, we will add checks when caching\nextents, which will trigger a warning. Therefore, Do not cache extents\nthat are being split.","modified":"2026-06-26T11:56:31.961205009Z","published":"2026-05-27T12:17:27.805Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45912.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/4c2d9dac4d328244f9365b0a1fa27ec802821820"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5b1f4290453314e11cd8e15c7baa8a9b76c19b23"},{"type":"WEB","url":"https://git.kernel.org/stable/c/692103feca376ae4298c92aa8828015d20f1d87b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8302b5b4aacdbb378f7b1216bb2ee782b5142415"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8b4b19a2f96348d70bfa306ef7d4a13b0bcbea79"},{"type":"WEB","url":"https://git.kernel.org/stable/c/93b2ebbbcb2e63cfc21a1946dfe91d3aa7952036"},{"type":"WEB","url":"https://git.kernel.org/stable/c/96007fd3c106aea773c1afae2d6f64cceb6da208"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9a2b95cdaf07785e2739199037bd9c0863ccc1be"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45912.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45912"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"107a7bd31ac003e42c0f966aa8e5b26947de6024"},{"fixed":"8302b5b4aacdbb378f7b1216bb2ee782b5142415"},{"fixed":"692103feca376ae4298c92aa8828015d20f1d87b"},{"fixed":"4c2d9dac4d328244f9365b0a1fa27ec802821820"},{"fixed":"93b2ebbbcb2e63cfc21a1946dfe91d3aa7952036"},{"fixed":"96007fd3c106aea773c1afae2d6f64cceb6da208"},{"fixed":"5b1f4290453314e11cd8e15c7baa8a9b76c19b23"},{"fixed":"9a2b95cdaf07785e2739199037bd9c0863ccc1be"},{"fixed":"8b4b19a2f96348d70bfa306ef7d4a13b0bcbea79"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-45912.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.12.0"},{"fixed":"5.10.252"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.202"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.165"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.128"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.75"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.14"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"6.19.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-45912.json"}}],"schema_version":"1.7.5"}