CVE-2024-42312
sysctl: always initialize i_uid/i_gid
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf, < b2591c89a6e2858796111138c38fcb6851aa1955; >= 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf, < 34a86adea1f2b3c3f9d864c8cce09dca644601ab; >= 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf, < 1deae34db9f4f8e0e03f891be2e2e15c15c8ac05; >= 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf, < ffde3af4b29bf97d62d82e1d45275587e10a991a; >= 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf, < c7e2f43d182f5dde473389dbb39f16c9f0d64536; >= 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf, < 98ca62ba9e2be5863c7d069f84f7166b45a5b2f4; e83234d7ef237931148b4b17834dadf57eb46c12; 2cbf2af144f0cd08a3361c6299b2e6086b7d21d9; 2c7b50c7b1d036f71acd9a917a8cb0f9b6e43dab; 7eb45a94c279dd5af4cafaa738ae93737517eef4; …
- Anyone running Linux 5.3
Vulnerability facts
- Affected
- Linux >= 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf, < b2591c89a6e2858796111138c38fcb6851aa1955; >= 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf, < 34a86adea1f2b3c3f9d864c8cce09dca644601ab; >= 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf, < 1deae34db9f4f8e0e03f891be2e2e15c15c8ac05; >= 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf, < ffde3af4b29bf97d62d82e1d45275587e10a991a; >= 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf, < c7e2f43d182f5dde473389dbb39f16c9f0d64536; >= 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf, < 98ca62ba9e2be5863c7d069f84f7166b45a5b2f4; e83234d7ef237931148b4b17834dadf57eb46c12; 2cbf2af144f0cd08a3361c6299b2e6086b7d21d9; 2c7b50c7b1d036f71acd9a917a8cb0f9b6e43dab; 7eb45a94c279dd5af4cafaa738ae93737517eef4; …; Linux 5.3
- Fixed in
- Linux 34a86adea1f2b3c3f9d864c8cce09dca644601ab, Linux 1deae34db9f4f8e0e03f891be2e2e15c15c8ac05, Linux 98ca62ba9e2be5863c7d069f84f7166b45a5b2f4
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.31% chance of exploitation in 30 days (percentile 17, 2026-11-26)
- CWE
- CWE-908
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: sysctl: always initialize i_uid/i_gid Always initialize i_uid/i_gid inside the sysfs core so set_ownership() can safely skip setting them. Commit 5ec27ec735ba ("fs/proc/proc_sysctl.c: fix the default values of i_uid/i_gid on /proc/sys inodes.") added defaults for i_uid/i_gid when set_ownership() was not implemented. It also missed adjusting net_ctl_set_ownership() to use the same default values in case the computation of a better value failed.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf, < b2591c89a6e2858796111138c38fcb6851aa1955; >= 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf, < 34a86adea1f2b3c3f9d864c8cce09dca644601ab; >= 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf, < 1deae34db9f4f8e0e03f891be2e2e15c15c8ac05; >= 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf, < ffde3af4b29bf97d62d82e1d45275587e10a991a; >= 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf, < c7e2f43d182f5dde473389dbb39f16c9f0d64536; >= 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf, < 98ca62ba9e2be5863c7d069f84f7166b45a5b2f4; e83234d7ef237931148b4b17834dadf57eb46c12; 2cbf2af144f0cd08a3361c6299b2e6086b7d21d9; 2c7b50c7b1d036f71acd9a917a8cb0f9b6e43dab; 7eb45a94c279dd5af4cafaa738ae93737517eef4; … | — | cvelist |
| Linux | 5.3 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-42312. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-42312.md Affected: Linux >= 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf, < b2591c89a6e2858796111138c38fcb6851aa1955; >= 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf, < 34a86adea1f2b3c3f9d864c8cce09dca644601ab; >= 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf, < 1deae34db9f4f8e0e03f891be2e2e15c15c8ac05; >= 5ec27ec735ba0477d48c805… Fixed in: Linux 34a86adea1f2b3c3f9d864c8cce09dca644601ab, Linux 1deae34db9f4f8e0e03f891be2e2e15c15c8ac05, Linux 98ca62ba9e2be5863c7d069f84f7166b45a5b2f4 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/b2591c89a6e2858796111138c38fcb6851aa1955
- https://git.kernel.org/stable/c/34a86adea1f2b3c3f9d864c8cce09dca644601ab
- https://git.kernel.org/stable/c/1deae34db9f4f8e0e03f891be2e2e15c15c8ac05
- https://git.kernel.org/stable/c/ffde3af4b29bf97d62d82e1d45275587e10a991a
- https://git.kernel.org/stable/c/c7e2f43d182f5dde473389dbb39f16c9f0d64536
- https://git.kernel.org/stable/c/98ca62ba9e2be5863c7d069f84f7166b45a5b2f4
FAQ
Is CVE-2024-42312 being exploited?
There is no confirmed exploitation: CVE-2024-42312 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-42312?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2024-42312?
Linux >= 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf, < b2591c89a6e2858796111138c38fcb6851aa1955; >= 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf, < 34a86adea1f2b3c3f9d864c8cce09dca644601ab; >= 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf, < 1deae34db9f4f8e0e03f891be2e2e15c15c8ac05; >= 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf, < ffde3af4b29bf97d62d82e1d45275587e10a991a; >= 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf, < c7e2f43d182f5dde473389dbb39f16c9f0d64536; >= 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf, < 98ca62ba9e2be5863c7d069f84f7166b45a5b2f4; e83234d7ef237931148b4b17834dadf57eb46c12; 2cbf2af144f0cd08a3361c6299b2e6086b7d21d9; 2c7b50c7b1d036f71acd9a917a8cb0f9b6e43dab; 7eb45a94c279dd5af4cafaa738ae93737517eef4; …; Linux 5.3.
Is there a fix for CVE-2024-42312?
Yes. Fixed in Linux 34a86adea1f2b3c3f9d864c8cce09dca644601ab, Linux 1deae34db9f4f8e0e03f891be2e2e15c15c8ac05, Linux 98ca62ba9e2be5863c7d069f84f7166b45a5b2f4. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2024-42312?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.