# CVE-2024-42312: sysctl: always initialize i_uid/i_gid

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2024-08-17T09:09:16.646Z
- Modified: 2026-10-15T01:18:46.793Z
- Weaknesses: CWE-908
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf before b2591c89a6e2858796111138c38fcb6851aa1955; from 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf before 34a86adea1f2b3c3f9d864c8cce09dca644601ab; from 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf before 1deae34db9f4f8e0e03f891be2e2e15c15c8ac05; from 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf before ffde3af4b29bf97d62d82e1d45275587e10a991a; from 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf before c7e2f43d182f5dde473389dbb39f16c9f0d64536; from 5ec27ec735ba0477d48c80561cc5e856f0c5dfaf before 98ca62ba9e2be5863c7d069f84f7166b45a5b2f4; e83234d7ef237931148b4b17834dadf57eb46c12; 2cbf2af144f0cd08a3361c6299b2e6086b7d21d9; 2c7b50c7b1d036f71acd9a917a8cb0f9b6e43dab; 7eb45a94c279dd5af4cafaa738ae93737517eef4; 14cc90952cef94bfa89a6b4a2f55fd9a70f50a16; from 4.9.187 before 4.10; and 5 more (not affected: before 5.3; from 5.10.224 up to 5.10.*; from 5.15.165 up to 5.15.*; from 6.1.104 up to 6.1.*; from 6.6.45 up to 6.6.*; from 6.10.3 up to 6.10.*; from 6.11 up to *)
- linux linux_kernel: from 4.9.187 before 4.10; from 4.14.135 before 4.15; from 4.19.61 before 4.20; from 5.1.20 before 5.2; from 5.2.3 before 5.10.224; from 5.11 before 5.15.165; from 5.16 before 6.1.104; from 6.2 before 6.6.45; from 6.7 before 6.10.3

## References

- <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> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- <https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>

## Sources

- CVE List: [CVE-2024-42312](https://www.cve.org/CVERecord?id=CVE-2024-42312), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2024-42312](https://nvd.nist.gov/vuln/detail/CVE-2024-42312), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2024-42312 · Whole record: https://cve.day/CVE-2024-42312.json · Rebuilt by cve.day 2026-11-25T22:58:44.480Z
