{"id":"CVE-2024-42312","summary":"sysctl: always initialize i_uid/i_gid","details":"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.","modified":"2026-04-02T12:17:56.667138Z","published":"2024-08-17T09:09:16.646Z","related":["MGASA-2024-0309","MGASA-2024-0310","SUSE-SU-2024:3189-1","SUSE-SU-2024:3190-1","SUSE-SU-2024:3194-1","SUSE-SU-2024:3195-1","SUSE-SU-2024:3209-1","SUSE-SU-2024:3251-1","SUSE-SU-2024:3252-1","SUSE-SU-2024:3383-1","SUSE-SU-2024:3483-1","SUSE-SU-2025:20044-1","SUSE-SU-2025:20047-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42312.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1deae34db9f4f8e0e03f891be2e2e15c15c8ac05"},{"type":"WEB","url":"https://git.kernel.org/stable/c/34a86adea1f2b3c3f9d864c8cce09dca644601ab"},{"type":"WEB","url":"https://git.kernel.org/stable/c/98ca62ba9e2be5863c7d069f84f7166b45a5b2f4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b2591c89a6e2858796111138c38fcb6851aa1955"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c7e2f43d182f5dde473389dbb39f16c9f0d64536"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ffde3af4b29bf97d62d82e1d45275587e10a991a"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42312.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42312"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"5ec27ec735ba0477d48c80561cc5e856f0c5dfaf"},{"fixed":"b2591c89a6e2858796111138c38fcb6851aa1955"},{"fixed":"34a86adea1f2b3c3f9d864c8cce09dca644601ab"},{"fixed":"1deae34db9f4f8e0e03f891be2e2e15c15c8ac05"},{"fixed":"ffde3af4b29bf97d62d82e1d45275587e10a991a"},{"fixed":"c7e2f43d182f5dde473389dbb39f16c9f0d64536"},{"fixed":"98ca62ba9e2be5863c7d069f84f7166b45a5b2f4"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"e83234d7ef237931148b4b17834dadf57eb46c12"},{"last_affected":"2cbf2af144f0cd08a3361c6299b2e6086b7d21d9"},{"last_affected":"2c7b50c7b1d036f71acd9a917a8cb0f9b6e43dab"},{"last_affected":"7eb45a94c279dd5af4cafaa738ae93737517eef4"},{"last_affected":"14cc90952cef94bfa89a6b4a2f55fd9a70f50a16"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-42312.json"}}],"schema_version":"1.7.5"}