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.
High severity with no evidence of exploitation so far.
What to do
- Update Linux to 10610575a3ac2a702bf5c57aa931beaf847949c7 or 646cd236c55e2cb5f146fc41bbe4034c4af5b2a4 or 00e6335329f23ac6cf3105931691674e28bc598c or 1a63730fb315bb1bab97edd69ff58ad45e04bb01, whichever matches your release line, or a later version.
- Update linux_kernel to 0610575a3ac or 646cd236c55e or 00e6335329f2 or 1a63730fb315, whichever matches your release line, or a later version.
- Update RUGGEDCOM RST2428P to V3.1 or a later version.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Linux | Linux | 46738b1317e169b281ad74690276916e24d1be6d 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 ranges | 10610575a3ac2a702bf5c57aa931beaf847949c7, 646cd236c55e2cb5f146fc41bbe4034c4af5b2a4, 00e6335329f23ac6cf3105931691674e28bc598c, 1a63730fb315bb1bab97edd69ff58ad45e04bb01, e77a3ec7ada84543e75722a1283785a6544de925, 3398a40dccb88d3a7eef378247a023a78472db66 |
| Linux | linux_kernel | 46738b1317e1 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 ranges | 0610575a3ac, 646cd236c55e, 00e6335329f2, 1a63730fb315, e77a3ec7ada8, 3398a40dccb8 |
| Linux | acrn | Not specified in the record | Not stated |
| Siemens | RUGGEDCOM RST2428P | before V3.1 | V3.1 |
| Siemens | SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family | Not specified in the record | Not stated |
| Siemens | SCALANCE XCM-/XRM-/XCH-/XRH-300 family | before V3.1 | V3.1 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | V3.1.0 up to, but not including, V3.1.5 | V3.1.5 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | V3.1.0 up to, but not including, V3.1.5 | V3.1.5 |
| Siemens | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | before V1.1.1 | V1.1.1 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | V3.1.0 up to, but not including, V3.1.5 | V3.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 system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 7.0 | High | CNA |
| CVSS 3.1 | 9.8 | Critical | CISA (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.
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: yes, technical impact: total).
- Record last changed materially (score, affected products, status or references).
References
Patches and release notes
- git.kernel.org/stable/c/00e6335329f23ac6cf3105931691674e28bc598c
- git.kernel.org/stable/c/10610575a3ac2a702bf5c57aa931beaf847949c7
- git.kernel.org/stable/c/160e9d2752181fcf18c662e74022d77d3164cd45
- git.kernel.org/stable/c/1a63730fb315bb1bab97edd69ff58ad45e04bb01
- git.kernel.org/stable/c/3398a40dccb88d3a7eef378247a023a78472db66
- git.kernel.org/stable/c/646cd236c55e2cb5f146fc41bbe4034c4af5b2a4
- git.kernel.org/stable/c/85a70ff1e572160f1eeb096ed48d09a1c9d4d89a
- git.kernel.org/stable/c/c04d6a914e890ccea4a9d11233009a2ee7978bf4
- git.kernel.org/stable/c/e77a3ec7ada84543e75722a1283785a6544de925
Other references
Recent Use After Free vulnerabilities
- 7.8 High severity
- 7.8 High severity
- 7.8 High severity
- 7.8 High severity
- 7.8 High severity
- 7.0 High severity
Spotted an error? Tell us.