Linux: Use After Free
CVE-2024-27395 is a high-severity use after free vulnerability in Linux, with a CVSS 3.1 base score of 7.8 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 2db9a8c0a01fa1c762c1e61a13c212c492752994, 589523cf0b384164e445dd5db8d5b1bf97982424, 35880c3fa6f8fe281a19975d2992644588ca33d3 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.24% chance of exploitation within 30 days, which is low compared with other CVEs.
High severity with no evidence of exploitation so far.
What to do
- Update Linux to 2db9a8c0a01fa1c762c1e61a13c212c492752994 or 589523cf0b384164e445dd5db8d5b1bf97982424 or 35880c3fa6f8fe281a19975d2992644588ca33d3 or 9048616553c65e750d43846f225843ed745ec0d4, whichever matches your release line, or a later version.
- Update RUGGEDCOM RST2428P to V3.1 or a later version.
- Update SCALANCE XCM-/XRM-/XCH-/XRH-300 family to V3.1 or a later version.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Linux | Linux | 11efd5cb04a184eea4f57b68ea63dddd463158d1 up to, but not including, 2db9a8c0a01fa1c762c1e61a13c212c492752994; 11efd5cb04a184eea4f57b68ea63dddd463158d1 up to, but not including, 589523cf0b384164e445dd5db8d5b1bf97982424; 11efd5cb04a184eea4f57b68ea63dddd463158d1 up to, but not including, 35880c3fa6f8fe281a19975d2992644588ca33d3; 11efd5cb04a184eea4f57b68ea63dddd463158d1 up to, but not including, 9048616553c65e750d43846f225843ed745ec0d4; 11efd5cb04a184eea4f57b68ea63dddd463158d1 up to, but not including, bca6fa2d9a9f560e6b89fd5190b05cc2f5d422c1; 11efd5cb04a184eea4f57b68ea63dddd463158d1 up to, but not including, eaa5e164a2110d2fb9e16c8a29e4501882235137; 11efd5cb04a184eea4f57b68ea63dddd463158d1 up to, but not including, edee0758747d7c219e29db9ed1d4eb33e8d32865; 11efd5cb04a184eea4f57b68ea63dddd463158d1 up to, but not including, 5ea7b72d4fac2fdbc0425cd8f2ea33abe95235b2; and 1 more ranges | 2db9a8c0a01fa1c762c1e61a13c212c492752994, 589523cf0b384164e445dd5db8d5b1bf97982424, 35880c3fa6f8fe281a19975d2992644588ca33d3, 9048616553c65e750d43846f225843ed745ec0d4, bca6fa2d9a9f560e6b89fd5190b05cc2f5d422c1, eaa5e164a2110d2fb9e16c8a29e4501882235137 |
| 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 TM MFP - GNU/Linux subsystem | before V1.1.1 | V1.1.1 |
| Linux | Linux Kernel | 4.18 up to, but not including, 4.19.313; 4.20 up to, but not including, 5.4.275; 5.5 up to, but not including, 5.10.216; 5.11 up to, but not including, 5.15.158; 5.16 up to, but not including, 6.1.90; 6.2 up to, but not including, 6.6.30; 6.7 up to, but not including, 6.8.9; 6.9 | 4.19.313, 5.4.275, 5.10.216, 5.15.158, 6.1.90, 6.6.30 |
| Debian | Debian Linux | 10.0 | Not stated |
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
- LowNo special conditions are needed; the attack works reliably.
- 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:L/PR:L/UI:N/S:U/C:H/I:H/A:H. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 7.8 | High | CNA |
| CVSS 3.1 | 7.8 | High | NVD |
Official description
In the Linux kernel, the following vulnerability has been resolved: net: openvswitch: Fix Use-After-Free in ovs_ct_exit Since kfree_rcu, which is called in the hlist_for_each_entry_rcu traversal of ovs_ct_limit_exit, is not part of the RCU read critical section, it is possible that the RCU grace period will pass during the traversal and the key will be free. To prevent this, it should be changed to hlist_for_each_entry_safe.
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: no, technical impact: partial).
- Record last changed materially (score, affected products, status or references).
References
Patches and release notes
- git.kernel.org/stable/c/2db9a8c0a01fa1c762c1e61a13c212c492752994
- git.kernel.org/stable/c/35880c3fa6f8fe281a19975d2992644588ca33d3
- git.kernel.org/stable/c/589523cf0b384164e445dd5db8d5b1bf97982424
- git.kernel.org/stable/c/5ea7b72d4fac2fdbc0425cd8f2ea33abe95235b2
- git.kernel.org/stable/c/9048616553c65e750d43846f225843ed745ec0d4
- git.kernel.org/stable/c/bca6fa2d9a9f560e6b89fd5190b05cc2f5d422c1
- git.kernel.org/stable/c/eaa5e164a2110d2fb9e16c8a29e4501882235137
- git.kernel.org/stable/c/edee0758747d7c219e29db9ed1d4eb33e8d32865
Other references
Recent Use After Free vulnerabilities
- 8.6 High severity
- 8.8 High severity
- 8.2 High severity
- 9.6 Critical severity
Google Chromium Visuals Use-After-Free Exploited
- 7.8 High severity
- 7.0 High severity
Spotted an error? Tell us.