ext4: fix buffer_head leak in ext4_init_orphan_info

Summary

CVECVE-2026-92494
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-09-17 17:17:51 UTC
Updated2026-09-17 17:17:51 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: ext4: fix buffer_head leak in ext4_init_orphan_info ext4_init_orphan_info() reads orphan file blocks with ext4_bread() and stores the returned buffer_head in oi->of_binfo[i].ob_bh. If ext4_bread() succeeds but the orphan block magic or checksum validation fails, the function jumps to out_free. However, the old out_free loop starts releasing buffers from i - 1, so the current buffer_head at index i is skipped. This leaks the buffer_head reference obtained by ext4_bread() on the bad magic and bad checksum error paths. Fix this by tracking the number of successfully read buffer_heads and releasing exactly those buffer_heads on the error path.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 a9a6ec1298f9bc134b2c5db27d25bb10603b7113 git Not specified
CNA Linux Linux affected 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 35fc83c65faf7949f5701bb34b20f822560a7718 git Not specified
CNA Linux Linux affected 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 74637f7fef030e5fb2e835b7dfeb05efdc48e0fe git Not specified
CNA Linux Linux affected 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 6ec53ccab0d691b3c73e03d930343ca45987e88d git Not specified
CNA Linux Linux affected 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 1399f102d8a1855c1a38506057306ec79d0787d9 git Not specified
CNA Linux Linux affected 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 e1e342d9a561c016b8531ec1f4dcefaad9d64954 git Not specified
CNA Linux Linux affected 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 05704335803b69c1bfa8637b7ada942bf2ee8a41 git Not specified
CNA Linux Linux affected 5.15 Not specified
CNA Linux Linux unaffected 5.15 semver Not specified
CNA Linux Linux unaffected 5.15.221 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.188 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.157 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.110 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.52 6.18.* semver Not specified
CNA Linux Linux unaffected 7.2.6 7.2.* semver Not specified
CNA Linux Linux unaffected 7.3-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/1399f102d8a1855c1a38506057306ec79d0787d9 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/74637f7fef030e5fb2e835b7dfeb05efdc48e0fe 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/35fc83c65faf7949f5701bb34b20f822560a7718 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/a9a6ec1298f9bc134b2c5db27d25bb10603b7113 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/e1e342d9a561c016b8531ec1f4dcefaad9d64954 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/05704335803b69c1bfa8637b7ada942bf2ee8a41 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/6ec53ccab0d691b3c73e03d930343ca45987e88d 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report