{"id":"CVE-2024-42312","title":"In the Linux kernel, the following vulnerability has been resolved:\n\nsysctl: always initialize i_uid/i_gid\n\nAlways initialize i_uid/i_gid inside the sysfs core so set_ownership()\ncan safely skip setting them.\n\nCommit 5ec27ec735ba (\"fs/pr…","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nsysctl: always initialize i_uid/i_gid\n\nAlways initialize i_uid/i_gid inside the sysfs core so set_ownership()\ncan safely skip setting them.\n\nCommit 5ec27ec735ba (\"fs/pr…","severity":"medium","cvss":5.5,"cvssVector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","cwe":["CWE-908"],"vendor":"linux","product":"linux_kernel","affected":["linux_kernel >= 4.9.187, < 4.10","linux_kernel >= 4.14.135, < 4.15","linux_kernel >= 4.19.61, < 4.20","linux_kernel >= 5.1.20, < 5.2","linux_kernel >= 5.2.3, < 5.10.224","linux_kernel >= 5.11, < 5.15.165","linux_kernel >= 5.16, < 6.1.104","linux_kernel >= 6.2, < 6.6.45","linux_kernel >= 6.7, < 6.10.3"],"patched":["linux_kernel 6.10.3"],"published":"2024-08-17","updated":"2026-10-15","sourceUpdated":"2026-10-15T01:18:46.793","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2024-42312","references":[{"url":"https://git.kernel.org/stable/c/1deae34db9f4f8e0e03f891be2e2e15c15c8ac05","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/34a86adea1f2b3c3f9d864c8cce09dca644601ab","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/98ca62ba9e2be5863c7d069f84f7166b45a5b2f4","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/b2591c89a6e2858796111138c38fcb6851aa1955","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/c7e2f43d182f5dde473389dbb39f16c9f0d64536","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/ffde3af4b29bf97d62d82e1d45275587e10a991a","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","label":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e"}],"tags":["nvd","cve.org"],"epss":0.00218,"epssPercentile":0.12167,"ingestedAt":"2026-10-15T03:30:12.734Z","ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T16:09:55.484877Z"},"slug":"CVE-2024-42312","body":"## Overview\n\nIn the Linux kernel, the following vulnerability has been resolved:\n\nsysctl: always initialize i_uid/i_gid\n\nAlways initialize i_uid/i_gid inside the sysfs core so set_ownership()\ncan safely skip setting them.\n\nCommit 5ec27ec735ba (\"fs/proc/proc_sysctl.c: fix the default values of\ni_uid/i_gid on /proc/sys inodes.\") added defaults for i_uid/i_gid when\nset_ownership() was not implemented. It also missed adjusting\nnet_ctl_set_ownership() to use the same default values in case the\ncomputation of a better value failed.\n\n## Affected\n\n- `linux_kernel >= 4.9.187, < 4.10`\n- `linux_kernel >= 4.14.135, < 4.15`\n- `linux_kernel >= 4.19.61, < 4.20`\n- `linux_kernel >= 5.1.20, < 5.2`\n- `linux_kernel >= 5.2.3, < 5.10.224`\n- `linux_kernel >= 5.11, < 5.15.165`\n- `linux_kernel >= 5.16, < 6.1.104`\n- `linux_kernel >= 6.2, < 6.6.45`\n- `linux_kernel >= 6.7, < 6.10.3`\n\n## Remediation\n\nUpgrade past the affected range:\n\n- `linux_kernel 6.10.3`","depth":"sunlit","depthScore":30,"depthScoreParts":{"impact":30.3,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}