{"id":"CVE-2026-43065","state":"PUBLISHED","title":"ext4: always drain queued discard work in ext4_mb_release()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: always drain queued discard work in ext4_mb_release()\n\nWhile reviewing recent ext4 patch[1], Sashiko raised the following\nconcern[2]:\n\n> If the filesystem is initially mounted with the discard option,\n> deleting files will populate sbi->s_discard_list and queue\n> s_discard_work. If it is then remounted with nodiscard, the\n> EXT4_MOUNT_DISCARD flag is cleared, but the pending s_discard_work is\n> neither cancelled nor flushed.\n\n[1] https://lore.kernel.org/r/20260319094545.19291-1-qiang.zhang@linux.dev/\n[2] https://sashiko.dev/#/patchset/20260319094545.19291-1-qiang.zhang%40linux.dev\n\nThe concern was valid, but it had nothing to do with the patch[1].\nOne of the problems with Sashiko in its current (early) form is that\nit will detect pre-existing issues and report it as a problem with the\npatch that it is reviewing.\n\nIn practice, it would be hard to hit deliberately (unless you are a\nmalicious syzkaller fuzzer), since it would involve mounting the file\nsystem with -o discard, and then deleting a large number of files,\nremounting the file system with -o nodiscard, and then immediately\nunmounting the file system before the queued discard work has a change\nto drain on its own.\n\nFix it because it's a real bug, and to avoid Sashiko from raising this\nconcern when analyzing future patches to mballoc.c.","publishedAt":"2026-05-05T15:23:25.326Z","updatedAt":"2026-05-11T22:17:02.221Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"55cdd0af2bc5ffc92a2deb745627755aecd5db33","status":"affected","lessThan":"e96c2354b170aaa53300c8e8fd59e41b133160f7","versionType":"git"},{"version":"55cdd0af2bc5ffc92a2deb745627755aecd5db33","status":"affected","lessThan":"c360e9d0def4f4ae03254a67c683103908555b75","versionType":"git"},{"version":"55cdd0af2bc5ffc92a2deb745627755aecd5db33","status":"affected","lessThan":"1c82f863f090ab899085bdfade073313384b514b","versionType":"git"},{"version":"55cdd0af2bc5ffc92a2deb745627755aecd5db33","status":"affected","lessThan":"9b4d9dda6a71ad3425c8109d27c4c6bfb9da97b8","versionType":"git"},{"version":"55cdd0af2bc5ffc92a2deb745627755aecd5db33","status":"affected","lessThan":"812b6a7cd3e7f3a3e8a24db85bc6313c26cb1098","versionType":"git"},{"version":"55cdd0af2bc5ffc92a2deb745627755aecd5db33","status":"affected","lessThan":"b4737e26d4688b8aea88ad6ea4dbfeb6e78b0327","versionType":"git"},{"version":"55cdd0af2bc5ffc92a2deb745627755aecd5db33","status":"affected","lessThan":"9ee29d20aab228adfb02ca93f87fb53c56c2f3af","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ext4/mballoc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.15","versionType":"semver"},{"version":"5.15.203","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.168","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.131","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.80","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.21","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.11","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ext4/mballoc.c"]}],"references":["https://git.kernel.org/stable/c/e96c2354b170aaa53300c8e8fd59e41b133160f7","https://git.kernel.org/stable/c/c360e9d0def4f4ae03254a67c683103908555b75","https://git.kernel.org/stable/c/1c82f863f090ab899085bdfade073313384b514b","https://git.kernel.org/stable/c/9b4d9dda6a71ad3425c8109d27c4c6bfb9da97b8","https://git.kernel.org/stable/c/812b6a7cd3e7f3a3e8a24db85bc6313c26cb1098","https://git.kernel.org/stable/c/b4737e26d4688b8aea88ad6ea4dbfeb6e78b0327","https://git.kernel.org/stable/c/9ee29d20aab228adfb02ca93f87fb53c56c2f3af"],"weaknesses":[],"ingestedAt":"2026-10-29T20:11:57.932Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/43xxx/CVE-2026-43065.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-43065","state":"PUBLISHED","datePublished":"2026-05-05T15:23:25.326Z","dateUpdated":"2026-05-11T22:17:02.221Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-05-01T14:12:55.981Z"},"containers":{"cna":{"title":"ext4: always drain queued discard work in ext4_mb_release()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: always drain queued discard work in ext4_mb_release()\n\nWhile reviewing recent ext4 patch[1], Sashiko raised the following\nconcern[2]:\n\n> If the filesystem is initially mounted with the discard option,\n> deleting files will populate sbi->s_discard_list and queue\n> s_discard_work. If it is then remounted with nodiscard, the\n> EXT4_MOUNT_DISCARD flag is cleared, but the pending s_discard_work is\n> neither cancelled nor flushed.\n\n[1] https://lore.kernel.org/r/20260319094545.19291-1-qiang.zhang@linux.dev/\n[2] https://sashiko.dev/#/patchset/20260319094545.19291-1-qiang.zhang%40linux.dev\n\nThe concern was valid, but it had nothing to do with the patch[1].\nOne of the problems with Sashiko in its current (early) form is that\nit will detect pre-existing issues and report it as a problem with the\npatch that it is reviewing.\n\nIn practice, it would be hard to hit deliberately (unless you are a\nmalicious syzkaller fuzzer), since it would involve mounting the file\nsystem with -o discard, and then deleting a large number of files,\nremounting the file system with -o nodiscard, and then immediately\nunmounting the file system before the queued discard work has a change\nto drain on its own.\n\nFix it because it's a real bug, and to avoid Sashiko from raising this\nconcern when analyzing future patches to mballoc.c."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"55cdd0af2bc5ffc92a2deb745627755aecd5db33","status":"affected","lessThan":"e96c2354b170aaa53300c8e8fd59e41b133160f7","versionType":"git"},{"version":"55cdd0af2bc5ffc92a2deb745627755aecd5db33","status":"affected","lessThan":"c360e9d0def4f4ae03254a67c683103908555b75","versionType":"git"},{"version":"55cdd0af2bc5ffc92a2deb745627755aecd5db33","status":"affected","lessThan":"1c82f863f090ab899085bdfade073313384b514b","versionType":"git"},{"version":"55cdd0af2bc5ffc92a2deb745627755aecd5db33","status":"affected","lessThan":"9b4d9dda6a71ad3425c8109d27c4c6bfb9da97b8","versionType":"git"},{"version":"55cdd0af2bc5ffc92a2deb745627755aecd5db33","status":"affected","lessThan":"812b6a7cd3e7f3a3e8a24db85bc6313c26cb1098","versionType":"git"},{"version":"55cdd0af2bc5ffc92a2deb745627755aecd5db33","status":"affected","lessThan":"b4737e26d4688b8aea88ad6ea4dbfeb6e78b0327","versionType":"git"},{"version":"55cdd0af2bc5ffc92a2deb745627755aecd5db33","status":"affected","lessThan":"9ee29d20aab228adfb02ca93f87fb53c56c2f3af","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ext4/mballoc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.15","versionType":"semver"},{"version":"5.15.203","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.168","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.131","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.80","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.21","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.11","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ext4/mballoc.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/e96c2354b170aaa53300c8e8fd59e41b133160f7"},{"url":"https://git.kernel.org/stable/c/c360e9d0def4f4ae03254a67c683103908555b75"},{"url":"https://git.kernel.org/stable/c/1c82f863f090ab899085bdfade073313384b514b"},{"url":"https://git.kernel.org/stable/c/9b4d9dda6a71ad3425c8109d27c4c6bfb9da97b8"},{"url":"https://git.kernel.org/stable/c/812b6a7cd3e7f3a3e8a24db85bc6313c26cb1098"},{"url":"https://git.kernel.org/stable/c/b4737e26d4688b8aea88ad6ea4dbfeb6e78b0327"},{"url":"https://git.kernel.org/stable/c/9ee29d20aab228adfb02ca93f87fb53c56c2f3af"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T22:17:02.221Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"5.15.203"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.1.168"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.6.131"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.12.80"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.18.21"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.19.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"7.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}