CVE-2026-92494 PUBLISHED

ext4: fix buffer_head leak in ext4_init_orphan_info

Assigner: Linux
Reserved: 16.09.2026 Published: 17.09.2026 Updated: 17.09.2026

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 to a9a6ec1298f9bc134b2c5db27d25bb10603b7113 (excl.)
  • affected from 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 to 35fc83c65faf7949f5701bb34b20f822560a7718 (excl.)
  • affected from 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 to 74637f7fef030e5fb2e835b7dfeb05efdc48e0fe (excl.)
  • affected from 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 to 6ec53ccab0d691b3c73e03d930343ca45987e88d (excl.)
  • affected from 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 to 1399f102d8a1855c1a38506057306ec79d0787d9 (excl.)
  • affected from 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 to e1e342d9a561c016b8531ec1f4dcefaad9d64954 (excl.)
  • affected from 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 to 05704335803b69c1bfa8637b7ada942bf2ee8a41 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 5.15 is affected
  • unaffected from 0 to 5.15 (excl.)
  • unaffected from 5.15.221 to 5.15.* (incl.)
  • unaffected from 6.1.188 to 6.1.* (incl.)
  • unaffected from 6.6.157 to 6.6.* (incl.)
  • unaffected from 6.12.110 to 6.12.* (incl.)
  • unaffected from 6.18.52 to 6.18.* (incl.)
  • unaffected from 7.2.6 to 7.2.* (incl.)
  • unaffected from 7.3-rc1 to * (incl.)

References