Skip to contentSkip to conversation

CVE-2026-92494: ext4: fix buffer_head leak in ext4_init_orphan_info

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In 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.

The Linux kernel CVE team has assigned CVE-2026-92494 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.15 with commit 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 and fixed in 5.15.221 with commit a9a6ec1298f9bc134b2c5db27d25bb10603b7113
	Issue introduced in 5.15 with commit 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 and fixed in 6.1.188 with commit 35fc83c65faf7949f5701bb34b20f822560a7718
	Issue introduced in 5.15 with commit 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 and fixed in 6.6.157 with commit 74637f7fef030e5fb2e835b7dfeb05efdc48e0fe
	Issue introduced in 5.15 with commit 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 and fixed in 6.12.110 with commit 6ec53ccab0d691b3c73e03d930343ca45987e88d
	Issue introduced in 5.15 with commit 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 and fixed in 6.18.52 with commit 1399f102d8a1855c1a38506057306ec79d0787d9
	Issue introduced in 5.15 with commit 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 and fixed in 7.2.6 with commit e1e342d9a561c016b8531ec1f4dcefaad9d64954
	Issue introduced in 5.15 with commit 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 and fixed in 7.3-rc1 with commit 05704335803b69c1bfa8637b7ada942bf2ee8a41

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-92494

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
fs/ext4/orphan.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/a9a6ec1298f9bc134b2c5db27d25bb10603b7113
	https://git.kernel.org/stable/c/35fc83c65faf7949f5701bb34b20f822560a7718
	https://git.kernel.org/stable/c/74637f7fef030e5fb2e835b7dfeb05efdc48e0fe
	https://git.kernel.org/stable/c/6ec53ccab0d691b3c73e03d930343ca45987e88d
	https://git.kernel.org/stable/c/1399f102d8a1855c1a38506057306ec79d0787d9
	https://git.kernel.org/stable/c/e1e342d9a561c016b8531ec1f4dcefaad9d64954
	https://git.kernel.org/stable/c/05704335803b69c1bfa8637b7ada942bf2ee8a41