CVE-2024-42312

Medium

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.

Package Linux Kernel
Published 2024-08-17
Last modified 2026-05-12
CVSS version 3.1
Patch available
Yes

CVSS 3.1 score

5.5

out of 10
Medium
Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
High
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Weakness type

CWE-908

CVE-2024-42312 is classified as CWE-908

See CWE-908 on MITRE CWE for full details on this weakness type.

Affected versions

Linux kernel versions 4.9.187, 4.14.135, 4.19.61, 5.1.20, 5.2.3, 5.3 and later are affected. Fixed in 5.10.224, 5.15.165, 6.1.104, 6.6.45, 6.10.3, 6.11 and their respective stable series.

Affected from
≥ 4.9.187 ≥ 4.14.135 ≥ 4.19.61 ≥ 5.1.20 ≥ 5.2.3 ≥ 5.3
Fixed in
✓ 5.10.224 5.10.x ✓ 5.15.165 5.15.x ✓ 6.1.104 6.1.x ✓ 6.6.45 6.6.x ✓ 6.10.3 6.10.x ✓ 6.11

Frequently asked questions

  • What is CVE-2024-42312?

    CVE-2024-42312 is a Medium severity Linux kernel vulnerability with a CVSS score of 5.5 out of 10 . It affects Linux kernel versions from 4.9.187 onward and has been patched in 5.10.224, 5.15.165, 6.1.104 and others. CVE-2024-42312 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.

  • What is the CVSS score for CVE-2024-42312?

    CVE-2024-42312 has a CVSS score of 5.5 out of 10, rated Medium severity (CVSS 3.1). The vector string is CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H .

  • Is there a patch available for CVE-2024-42312?

    Yes. CVE-2024-42312 has been patched. Fixed versions include 5.10.224, 5.15.165, 6.1.104 and others. If you are running Linux kernel 4.9.187 or later up to the fix versions, apply the relevant patch for your kernel branch.

  • Is CVE-2024-42312 actively exploited?

    No. CVE-2024-42312 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.