CVE-2024-42312

sysctl: always initialize i_uid/i_gid

MEDIUM
5.5
CVSS Score
Published: August 17, 2024 at 09:09 AM UTC
Updated: October 15, 2026 at 01:18 AM UTC
2 products affected across 2 vendorsLinux KernelSIMATIC S7-1500 TM MFP

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.14.135 ≤ v < 4.154.19.61 ≤ v < 4.204.9.187 ≤ v < 4.105.1.20 ≤ v < 5.25.11 ≤ v < 5.15.1655.16 ≤ v < 6.1.1045.2.3 ≤ v < 5.10.2246.2 ≤ v < 6.6.456.7 ≤ v < 6.10.314cc90952cef94bfa89a6b4a2f55fd9a70f50a162c7b50c7b1d036f71acd9a917a8cb0f9b6e43dab2cbf2af144f0cd08a3361c6299b2e6086b7d21d94.14.1354.19.614.9.1875.1.205.2.35.35ec27ec735ba0477d48c80561cc5e856f0c5dfaf7eb45a94c279dd5af4cafaa738ae93737517eef4e83234d7ef237931148b4b17834dadf57eb46c12
Vendor states this is fixed in 1deae34db9f4f8e0e03f891be2e2e15c15c8ac05 (fixed)
Vendor states this is fixed in 34a86adea1f2b3c3f9d864c8cce09dca644601ab (fixed)
Vendor states this is fixed in 98ca62ba9e2be5863c7d069f84f7166b45a5b2f4 (fixed)
Vendor states this is fixed in b2591c89a6e2858796111138c38fcb6851aa1955 (fixed)
Vendor states this is fixed in c7e2f43d182f5dde473389dbb39f16c9f0d64536 (fixed)
Vendor states this is fixed in ffde3af4b29bf97d62d82e1d45275587e10a991a (fixed)
Affected range stops below 4.10, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.15, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.20, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 5.10.224 (unaffected)
Vendor states this is fixed in 5.15.165 (unaffected)
Affected range stops below 5.2, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 5.3 (unaffected)
Vendor states this is fixed in 6.1.104 (unaffected)
Vendor states this is fixed in 6.10.3 (unaffected)
Vendor states this is fixed in 6.11 (unaffected)
Vendor states this is fixed in 6.6.45 (unaffected)

References (9)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1deae34db9f4f8e0e03f891be2e2e15c15c8ac05
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/34a86adea1f2b3c3f9d864c8cce09dca644601ab
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/98ca62ba9e2be5863c7d069f84f7166b45a5b2f4
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b2591c89a6e2858796111138c38fcb6851aa1955
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c7e2f43d182f5dde473389dbb39f16c9f0d64536
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ffde3af4b29bf97d62d82e1d45275587e10a991a
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-908

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card