# CVE-2024-42312: sysctl: always initialize i\_uid/i\_gid

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 17, 2026-11-26)
- **CWE:** CWE-908
- **Published:** 2024-08-17T09:09:16.646Z
- **Modified:** 2026-10-15T01:18:46.793Z

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

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

- Linux: \>= 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf, \< b2591c89a6e2858796111138c38fcb6851aa1955; \>= 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf, \< 34a86adea1f2b3c3f9d864c8cce09dca644601ab; \>= 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf, \< 1deae34db9f4f8e0e03f891be2e2e15c15c8ac05; \>= 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf, \< ffde3af4b29bf97d62d82e1d45275587e10a991a; \>= 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf, \< c7e2f43d182f5dde473389dbb39f16c9f0d64536; \>= 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf, \< 98ca62ba9e2be5863c7d069f84f7166b45a5b2f4; e83234d7ef237931148b4b17834dadf57eb46c12; 2cbf2af144f0cd08a3361c6299b2e6086b7d21d9; 2c7b50c7b1d036f71acd9a917a8cb0f9b6e43dab; 7eb45a94c279dd5af4cafaa738ae93737517eef4; … (cvelist)
- Linux: 5.3 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- patch: <https://git.kernel.org/stable/c/b2591c89a6e2858796111138c38fcb6851aa1955>
- patch: <https://git.kernel.org/stable/c/34a86adea1f2b3c3f9d864c8cce09dca644601ab>
- patch: <https://git.kernel.org/stable/c/1deae34db9f4f8e0e03f891be2e2e15c15c8ac05>
- patch: <https://git.kernel.org/stable/c/ffde3af4b29bf97d62d82e1d45275587e10a991a>
- patch: <https://git.kernel.org/stable/c/c7e2f43d182f5dde473389dbb39f16c9f0d64536>
- patch: <https://git.kernel.org/stable/c/98ca62ba9e2be5863c7d069f84f7166b45a5b2f4>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-42312>

HTML: <https://flawdb.com/CVE-2024-42312> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-42312>
