Linux: Use After Free
CVE-2024-27396 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 07b20d0a3dc13fb1adff10b60021a4924498da58, 718df1bc226c383dd803397d7f5d95557eb81ac7, 0caff3e6390f840666b8dc1ecebf985c2ef3f1dd 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 07b20d0a3dc13fb1adff10b60021a4924498da58 or 718df1bc226c383dd803397d7f5d95557eb81ac7 or 0caff3e6390f840666b8dc1ecebf985c2ef3f1dd or 2e74b3fd6bf542349758f283676dff3660327c07, 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 | 043a283d24f40fea4c8a8d06b0e2694c8e372200 up to, but not including, 07b20d0a3dc13fb1adff10b60021a4924498da58; c185e1d6e2752a4b656c3ca878c525fa11f55757 up to, but not including, 718df1bc226c383dd803397d7f5d95557eb81ac7; 94dc550a5062030569d4aa76e10e50c8fc001930 up to, but not including, 0caff3e6390f840666b8dc1ecebf985c2ef3f1dd; 94dc550a5062030569d4aa76e10e50c8fc001930 up to, but not including, 2e74b3fd6bf542349758f283676dff3660327c07; 94dc550a5062030569d4aa76e10e50c8fc001930 up to, but not including, 25a1c2d4b1fcf938356a9688a96a6456abd44b29; 94dc550a5062030569d4aa76e10e50c8fc001930 up to, but not including, 2aacd4de45477582993f8a8abb9505a06426bfb6; 94dc550a5062030569d4aa76e10e50c8fc001930 up to, but not including, cd957d1716ec979d8f5bf38fc659aeb9fdaa2474; 94dc550a5062030569d4aa76e10e50c8fc001930 up to, but not including, f2a904107ee2b647bb7794a1a82b67740d7c8a64; and 5 more ranges | 07b20d0a3dc13fb1adff10b60021a4924498da58, 718df1bc226c383dd803397d7f5d95557eb81ac7, 0caff3e6390f840666b8dc1ecebf985c2ef3f1dd, 2e74b3fd6bf542349758f283676dff3660327c07, 25a1c2d4b1fcf938356a9688a96a6456abd44b29, 2aacd4de45477582993f8a8abb9505a06426bfb6 |
| 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.14.162 up to, but not including, 4.15; 4.19.93 up to, but not including, 4.19.313; 5.4.8 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; and 1 more ranges | 4.15, 4.19.313, 5.4.275, 5.10.216, 5.15.158, 6.1.90 |
| 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: gtp: Fix Use-After-Free in gtp_dellink Since call_rcu, which is called in the hlist_for_each_entry_rcu traversal of gtp_dellink, 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/07b20d0a3dc13fb1adff10b60021a4924498da58
- git.kernel.org/stable/c/0caff3e6390f840666b8dc1ecebf985c2ef3f1dd
- git.kernel.org/stable/c/25a1c2d4b1fcf938356a9688a96a6456abd44b29
- git.kernel.org/stable/c/2aacd4de45477582993f8a8abb9505a06426bfb6
- git.kernel.org/stable/c/2e74b3fd6bf542349758f283676dff3660327c07
- git.kernel.org/stable/c/718df1bc226c383dd803397d7f5d95557eb81ac7
- git.kernel.org/stable/c/cd957d1716ec979d8f5bf38fc659aeb9fdaa2474
- git.kernel.org/stable/c/f2a904107ee2b647bb7794a1a82b67740d7c8a64
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.