{"id":"CVE-2024-42312","aliases":["CVE-2024-42312"],"related":[],"kind":"vulnerability","state":"published","title":"sysctl: always initialize i_uid/i_gid","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/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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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/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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: sysctl: inicializar siempre i_uid/i_gid Inicializar siempre i_uid/i_gid dentro del núcleo sysfs para que set_ownership() pueda omitir su configuración de forma segura. Commit 5ec27ec735ba (\"fs/proc/proc_sysctl.c: corrija los valores predeterminados de i_uid/i_gid en los inodos /proc/sys.\") agregó valores predeterminados para i_uid/i_gid cuando no se implementó set_ownership(). También omitió ajustar net_ctl_set_ownership() para usar los mismos valores predeterminados en caso de que fallara el cálculo de un valor mejor.","source":"nvd"}],"published":"2024-08-17T09:09:16.646Z","modified":"2026-10-15T01:18:46.793Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-908"],"affected":[{"ranges":[{"type":"git","introduced":"5ec27ec735ba0477d48c80561cc5e856f0c5dfaf","fixed":"b2591c89a6e2858796111138c38fcb6851aa1955","status":"affected"},{"type":"git","introduced":"5ec27ec735ba0477d48c80561cc5e856f0c5dfaf","fixed":"34a86adea1f2b3c3f9d864c8cce09dca644601ab","status":"affected"},{"type":"git","introduced":"5ec27ec735ba0477d48c80561cc5e856f0c5dfaf","fixed":"1deae34db9f4f8e0e03f891be2e2e15c15c8ac05","status":"affected"},{"type":"git","introduced":"5ec27ec735ba0477d48c80561cc5e856f0c5dfaf","fixed":"ffde3af4b29bf97d62d82e1d45275587e10a991a","status":"affected"},{"type":"git","introduced":"5ec27ec735ba0477d48c80561cc5e856f0c5dfaf","fixed":"c7e2f43d182f5dde473389dbb39f16c9f0d64536","status":"affected"},{"type":"git","introduced":"5ec27ec735ba0477d48c80561cc5e856f0c5dfaf","fixed":"98ca62ba9e2be5863c7d069f84f7166b45a5b2f4","status":"affected"},{"type":"git","version":"e83234d7ef237931148b4b17834dadf57eb46c12","status":"affected"},{"type":"git","version":"2cbf2af144f0cd08a3361c6299b2e6086b7d21d9","status":"affected"},{"type":"git","version":"2c7b50c7b1d036f71acd9a917a8cb0f9b6e43dab","status":"affected"},{"type":"git","version":"7eb45a94c279dd5af4cafaa738ae93737517eef4","status":"affected"},{"type":"git","version":"14cc90952cef94bfa89a6b4a2f55fd9a70f50a16","status":"affected"},{"type":"semver","introduced":"4.9.187","fixed":"4.10","status":"affected"},{"type":"semver","introduced":"4.14.135","fixed":"4.15","status":"affected"},{"type":"semver","introduced":"4.19.61","fixed":"4.20","status":"affected"},{"type":"semver","introduced":"5.1.20","fixed":"5.2","status":"affected"},{"type":"semver","introduced":"5.2.3","fixed":"5.3","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.3","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.3","status":"unaffected"},{"type":"semver","introduced":"5.10.224","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.165","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.104","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.45","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.10.3","lastAffected":"6.10.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.11","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.9.187","fixed":"4.10"},{"status":"affected","introduced":"4.14.135","fixed":"4.15"},{"status":"affected","introduced":"4.19.61","fixed":"4.20"},{"status":"affected","introduced":"5.1.20","fixed":"5.2"},{"status":"affected","introduced":"5.2.3","fixed":"5.10.224"},{"status":"affected","introduced":"5.11","fixed":"5.15.165"},{"status":"affected","introduced":"5.16","fixed":"6.1.104"},{"status":"affected","introduced":"6.2","fixed":"6.6.45"},{"status":"affected","introduced":"6.7","fixed":"6.10.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/b2591c89a6e2858796111138c38fcb6851aa1955","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/34a86adea1f2b3c3f9d864c8cce09dca644601ab","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1deae34db9f4f8e0e03f891be2e2e15c15c8ac05","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ffde3af4b29bf97d62d82e1d45275587e10a991a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c7e2f43d182f5dde473389dbb39f16c9f0d64536","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/98ca62ba9e2be5863c7d069f84f7166b45a5b2f4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T16:09:55.484Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-42312","url":"https://www.cve.org/CVERecord?id=CVE-2024-42312","licence":"CVE Terms of Use","modified":"2026-10-15T00:48:20.401Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-42312","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42312","licence":"Public domain","modified":"2026-10-15T01:18:46.793Z"}],"updatedAt":"2026-11-25T22:58:44.480Z","epss":{"score":0.00218,"percentile":0.13029,"date":"2026-12-01T12:00:22.000Z"}}