audit: add fchmodat2() to change attributes class
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel does not classify fchmodat2() as an audit change-attributes operation, although the call was introduced in version 6.6. A caller able to change file attributes with fchmodat2() can bypass audit rules that would record comparable chmod() or fchmodat() changes. The input does not specify authentication requirements or user interaction.
Engineers running Linux kernels with fchmodat2(), introduced in version 6.6, should check whether their kernels include the audit fix.