Skip to contentSkip to conversation

CVE-2026-46046: ext4: fix missing brelse() in ext4_xattr_inode_dec_ref_all()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 27

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 missing brelse() in ext4_xattr_inode_dec_ref_all()

The commit c8e008b60492 ("ext4: ignore xattrs past end") introduced a refcount leak in when block_csum is false.

ext4_xattr_inode_dec_ref_all() calls ext4_get_inode_loc() to get iloc.bh, but never releases it with brelse().

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

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

	Issue introduced in 6.6.88 with commit 362a90cecd36e8a5c415966d0b75b04a0270e4dd and fixed in 6.6.140 with commit 1bc1107a3a403a6d440673ed6666f7b07ef868a8
	Issue introduced in 6.12.24 with commit eb59cc31b6ea076021d14b04e7faab1636b87d0e and fixed in 6.12.86 with commit 097227f1ffe1a85bc3c359f81c71e3d40e06e920
	Issue introduced in 6.15 with commit c8e008b60492cf6fd31ef127aea6d02fd3d314cd and fixed in 6.18.27 with commit 1e6b0a69bf2c9c819255c7566e4355536d81d9cf
	Issue introduced in 6.15 with commit c8e008b60492cf6fd31ef127aea6d02fd3d314cd and fixed in 7.0.4 with commit f072906688933bf47fabbaf63560be03357c8298
	Issue introduced in 6.15 with commit c8e008b60492cf6fd31ef127aea6d02fd3d314cd and fixed in 7.1-rc1 with commit 77d059519382bd66283e6a4e83ee186e87e7708f
	Issue introduced in 5.4.293 with commit 6aff941cb0f7d0c897c3698ad2e30672709135e3
	Issue introduced in 5.10.237 with commit 76c365fa7e2a8bb85f0190cdb4b8cdc99b2fdce3
	Issue introduced in 5.15.181 with commit f737418b6de31c962c7192777ee4018906975383
	Issue introduced in 6.1.135 with commit cf9291a3449b04688b81e32621e88de8f4314b54
	Issue introduced in 6.13.12 with commit 3bc6317033f365ce578eb6039445fb66162722fd
	Issue introduced in 6.14.3 with commit 836e625b03a666cf93ff5be328c8cb30336db872

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-46046

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/xattr.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/1bc1107a3a403a6d440673ed6666f7b07ef868a8
	https://git.kernel.org/stable/c/097227f1ffe1a85bc3c359f81c71e3d40e06e920
	https://git.kernel.org/stable/c/1e6b0a69bf2c9c819255c7566e4355536d81d9cf
	https://git.kernel.org/stable/c/f072906688933bf47fabbaf63560be03357c8298
	https://git.kernel.org/stable/c/77d059519382bd66283e6a4e83ee186e87e7708f