Vulnerabilities · 2024 · Linux
CVE-2024-42312
Linux Kernel vulnerability
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 products
Linux Kernel. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Linux Kernel runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- git.kernel.org/stable/c/1deae34db9f4f8e0e03f891be2e2e15c15c8ac05 · Patch
- git.kernel.org/stable/c/34a86adea1f2b3c3f9d864c8cce09dca644601ab · Patch
- git.kernel.org/stable/c/98ca62ba9e2be5863c7d069f84f7166b45a5b2f4 · Patch
- git.kernel.org/stable/c/b2591c89a6e2858796111138c38fcb6851aa1955 · Patch
- git.kernel.org/stable/c/c7e2f43d182f5dde473389dbb39f16c9f0d64536 · Patch
- git.kernel.org/stable/c/ffde3af4b29bf97d62d82e1d45275587e10a991a · Patch
- lists.debian.org/debian-lts-announce/2024/10/msg00003.html
- lists.debian.org/debian-lts-announce/2025/01/msg00001.html
- nvd.nist.gov/vuln/detail/CVE-2024-42312
- cve.org/CVERecord?id=CVE-2024-42312
More vulnerabilities in Linux products
CVE-2026-46300CVE-2025-40364CVE-2025-40325CVE-2025-40300CVE-2025-40114CVE-2025-40014CVE-2025-39989CVE-2025-39967All 12,086
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.