CVE-2024-42312

Source
https://cve.org/CVERecord?id=CVE-2024-42312
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-42312.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-42312
Downstream
Related
Published
2024-08-17T09:09:16.646Z
Modified
2026-03-11T07:48:08.196032Z
Summary
sysctl: always initialize i_uid/i_gid
Details

In the Linux kernel, the following vulnerability has been resolved:

sysctl: always initialize iuid/igid

Always initialize iuid/igid inside the sysfs core so set_ownership() can safely skip setting them.

Commit 5ec27ec735ba ("fs/proc/procsysctl.c: fix the default values of iuid/igid on /proc/sys inodes.") added defaults for iuid/igid when setownership() was not implemented. It also missed adjusting netctlset_ownership() to use the same default values in case the computation of a better value failed.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42312.json"
}
References

Affected packages

Git / 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 Unknown introduced commit / All previous commits are affected
Last affected
e83234d7ef237931148b4b17834dadf57eb46c12
Last affected
2cbf2af144f0cd08a3361c6299b2e6086b7d21d9
Last affected
2c7b50c7b1d036f71acd9a917a8cb0f9b6e43dab
Last affected
7eb45a94c279dd5af4cafaa738ae93737517eef4
Last affected
14cc90952cef94bfa89a6b4a2f55fd9a70f50a16

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-42312.json"