Skip to contentSkip to conversation

CVE-2025-71239: audit: add fchmodat2() to change attributes class

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Mar 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:

audit: add fchmodat2() to change attributes class

fchmodat2(), introduced in version 6.6 is currently not in the change attribute class of audit. Calling fchmodat2() to change a file attribute in the same fashion than chmod() or fchmodat() will bypass audit rules such as:

-w /tmp/test -p rwa -k test_rwa

The current patch adds fchmodat2() to the change attributes class.

The Linux kernel CVE team has assigned CVE-2025-71239 to this issue.

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

	Fixed in 5.10.252 with commit f714315d7d68898d03093f67285256a8770f903c
	Fixed in 5.15.202 with commit 3ee75b13ea5f05ff9adc784b2464825bd70eb119
	Fixed in 6.1.165 with commit 57489a89657cc94bf6ad8427d1902daba9156aa1
	Fixed in 6.6.128 with commit 91e27bc79c3bca93c06bf5a471d47df9a35b3741
	Fixed in 6.12.75 with commit 3e762a03713e8c25ca0108c075d662c897fc0623
	Fixed in 6.18.16 with commit 4fed776ca86378da7dd743a7b648e20b025ba8ef
	Fixed in 6.19.6 with commit c4334c0d0e7d6f02ed93756fd4ba807e3d00c05f
	Fixed in 7.0-rc1 with commit 4f493a6079b588cf1f04ce5ed6cdad45ab0d53dc

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-2025-71239

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:
include/asm-generic/audit_change_attr.h

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/f714315d7d68898d03093f67285256a8770f903c
	https://git.kernel.org/stable/c/3ee75b13ea5f05ff9adc784b2464825bd70eb119
	https://git.kernel.org/stable/c/57489a89657cc94bf6ad8427d1902daba9156aa1
	https://git.kernel.org/stable/c/91e27bc79c3bca93c06bf5a471d47df9a35b3741
	https://git.kernel.org/stable/c/3e762a03713e8c25ca0108c075d662c897fc0623
	https://git.kernel.org/stable/c/4fed776ca86378da7dd743a7b648e20b025ba8ef
	https://git.kernel.org/stable/c/c4334c0d0e7d6f02ed93756fd4ba807e3d00c05f
	https://git.kernel.org/stable/c/4f493a6079b588cf1f04ce5ed6cdad45ab0d53dc
	https://www.bencteux.fr/posts/missing_syscalls_audit/