audit: fix incorrect inheritable capability in CAPSET records
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ e68b75a027bb94066576139ee33676264f867b87 · < e35f3550c5b4fab33103c18654c293cee9850b0a| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
audit: fix incorrect inheritable capability in CAPSET records
__audit_log_capset() records the effective capability set into the inheritable field due to a copy-paste error. Every CAPSET audit record therefore reports cap_pi (process inheritable) with the value of cap_effective instead of cap_inheritable.
This silently corrupts audit data used for compliance and forensic analysis: an attacker who modifies inheritable capabilities to prepare for a privilege-escalating exec would have the change masked in the audit trail.
The bug has been present since the original introduction of CAPSET audit records in 2008.
From the CVE record · Linux
The Linux kernel records the effective capability set in the inheritable field of CAPSET audit records. If an attacker changes inheritable capabilities before an exec, the audit trail can mask that change, affecting compliance and forensic analysis. The input does not specify network access, authentication requirements, or user interaction.
Teams running Linux kernels with CAPSET audit records should check their systems; the bug has been present since those records were introduced in 2008, but affected versions are not specified.