CVE-2024-42312
JSON

5.5medium

sysctl: always initialize i_uid/i_gid

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.22% (higher than 13% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 and 9 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.*
CVE List
linux linux_kernelfrom 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 and 1 moreNVD

Classification

CWE-908

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

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.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-42312 changed 2026-10-15CVE Terms of Use
NVDCVE-2024-42312 changed 2026-10-15Public domain