CyberSecBulletin
CVE-2024-38612NVD status: Modified

Linux: Use After Free

CVE-2024-38612 is a high-severity use after free vulnerability in Linux, with a CVSS 3.1 base score of 7.0 out of 10. It can be exploited with local access to the system by an attacker with a low-privileged account, without any action from a user. The record lists versions 10610575a3ac2a702bf5c57aa931beaf847949c7, 646cd236c55e2cb5f146fc41bbe4034c4af5b2a4, 00e6335329f23ac6cf3105931691674e28bc598c as the first without the flaw, so updating Linux to one of those releases or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 0.66% chance of exploitation within 30 days, higher than 52% of scored CVEs.

Next patch cycle

High severity with no evidence of exploitation so far.

What to do

  1. Update Linux to 10610575a3ac2a702bf5c57aa931beaf847949c7 or 646cd236c55e2cb5f146fc41bbe4034c4af5b2a4 or 00e6335329f23ac6cf3105931691674e28bc598c or 1a63730fb315bb1bab97edd69ff58ad45e04bb01, whichever matches your release line, or a later version.
  2. Update linux_kernel to 0610575a3ac or 646cd236c55e or 00e6335329f2 or 1a63730fb315, whichever matches your release line, or a later version.
  3. Update RUGGEDCOM RST2428P to V3.1 or a later version.

Affected products and versions

VendorProductAffected versionsFixed in
LinuxLinux46738b1317e169b281ad74690276916e24d1be6d up to, but not including, 10610575a3ac2a702bf5c57aa931beaf847949c7; 46738b1317e169b281ad74690276916e24d1be6d up to, but not including, 646cd236c55e2cb5f146fc41bbe4034c4af5b2a4; 46738b1317e169b281ad74690276916e24d1be6d up to, but not including, 00e6335329f23ac6cf3105931691674e28bc598c; 46738b1317e169b281ad74690276916e24d1be6d up to, but not including, 1a63730fb315bb1bab97edd69ff58ad45e04bb01; 46738b1317e169b281ad74690276916e24d1be6d up to, but not including, e77a3ec7ada84543e75722a1283785a6544de925; 46738b1317e169b281ad74690276916e24d1be6d up to, but not including, 3398a40dccb88d3a7eef378247a023a78472db66; 46738b1317e169b281ad74690276916e24d1be6d up to, but not including, 85a70ff1e572160f1eeb096ed48d09a1c9d4d89a; 46738b1317e169b281ad74690276916e24d1be6d up to, but not including, c04d6a914e890ccea4a9d11233009a2ee7978bf4; and 2 more ranges10610575a3ac2a702bf5c57aa931beaf847949c7, 646cd236c55e2cb5f146fc41bbe4034c4af5b2a4, 00e6335329f23ac6cf3105931691674e28bc598c, 1a63730fb315bb1bab97edd69ff58ad45e04bb01, e77a3ec7ada84543e75722a1283785a6544de925, 3398a40dccb88d3a7eef378247a023a78472db66
Linuxlinux_kernel46738b1317e1 up to, but not including, 0610575a3ac; 46738b1317e1 up to, but not including, 646cd236c55e; 46738b1317e1 up to, but not including, 00e6335329f2; 46738b1317e1 up to, but not including, 1a63730fb315; 46738b1317e1 up to, but not including, e77a3ec7ada8; 46738b1317e1 up to, but not including, 3398a40dccb8; 46738b1317e1 up to, but not including, 85a70ff1e572; 46738b1317e1 up to, but not including, c04d6a914e89; and 2 more ranges0610575a3ac, 646cd236c55e, 00e6335329f2, 1a63730fb315, e77a3ec7ada8, 3398a40dccb8
LinuxacrnNot specified in the recordNot stated
SiemensRUGGEDCOM RST2428Pbefore V3.1V3.1
SiemensSCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 familyNot specified in the recordNot stated
SiemensSCALANCE XCM-/XRM-/XCH-/XRH-300 familybefore V3.1V3.1
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFPV3.1.0 up to, but not including, V3.1.5V3.1.5
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFPV3.1.0 up to, but not including, V3.1.5V3.1.5
SiemensSIMATIC S7-1500 TM MFP - GNU/Linux subsystembefore V1.1.1V1.1.1
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFPV3.1.0 up to, but not including, V3.1.5V3.1.5

Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.

How the severity score breaks down

Attack vector
LocalThe attacker needs local access or must trick a user into running something.
Attack complexity
HighSuccess depends on conditions outside the attacker's control.
Privileges required
LowA basic user account is enough.
User interaction
NoneNo action by a victim is required.
Scope
UnchangedImpact stays within the vulnerable component.
Confidentiality
HighAll data handled by the component can be read.
Integrity
HighData or code can be modified at will.
Availability
HighThe component can be taken down completely.

Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H. Scored by CNA.

Scoring systemScoreSeverityScored by
CVSS 3.17.0HighCNA
CVSS 3.19.8CriticalCISA (ADP)

Official description

In the Linux kernel, the following vulnerability has been resolved: ipv6: sr: fix invalid unregister error path The error path of seg6_init() is wrong in case CONFIG_IPV6_SEG6_LWTUNNEL is not defined. In that case if seg6_hmac_init() fails, the genl_unregister_family() isn't called. This issue exist since commit 46738b1317e1 ("ipv6: sr: add option to control lwtunnel support"), and commit 5559cea2d5aa ("ipv6: sr: fix possible use-after-free and null-ptr-deref") replaced unregister_pernet_subsys() with genl_unregister_family() in this error path.

Source: the CVE record as published by its numbering authority, via NVD and CVE.org.

The underlying weakness: Use After Free

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory belongs to the code that operates on the new pointer.

How developers prevent this class of flaw

  • Choose a language that provides automatic memory management.
  • When freeing pointers, be sure to set them to NULL once they are freed. However, the utilization of multiple or complex data structures may lower the usefulness of this strategy.

More Use After Free vulnerabilities (CWE-416)

Timeline

  1. CVE record published.
  2. CISA published its SSVC assessment (exploitation: none, automatable: yes, technical impact: total).
  3. Record last changed materially (score, affected products, status or references).

References

Recent Use After Free vulnerabilities

Spotted an error? Tell us.