CyberSecBulletin
CVE-2024-27396NVD status: Modified

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.

Next patch cycle

High severity with no evidence of exploitation so far.

What to do

  1. Update Linux to 07b20d0a3dc13fb1adff10b60021a4924498da58 or 718df1bc226c383dd803397d7f5d95557eb81ac7 or 0caff3e6390f840666b8dc1ecebf985c2ef3f1dd or 2e74b3fd6bf542349758f283676dff3660327c07, whichever matches your release line, or a later version.
  2. Update RUGGEDCOM RST2428P to V3.1 or a later version.
  3. Update SCALANCE XCM-/XRM-/XCH-/XRH-300 family to V3.1 or a later version.

Affected products and versions

VendorProductAffected versionsFixed in
LinuxLinux043a283d24f40fea4c8a8d06b0e2694c8e372200 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 ranges07b20d0a3dc13fb1adff10b60021a4924498da58, 718df1bc226c383dd803397d7f5d95557eb81ac7, 0caff3e6390f840666b8dc1ecebf985c2ef3f1dd, 2e74b3fd6bf542349758f283676dff3660327c07, 25a1c2d4b1fcf938356a9688a96a6456abd44b29, 2aacd4de45477582993f8a8abb9505a06426bfb6
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 TM MFP - GNU/Linux subsystembefore V1.1.1V1.1.1
LinuxLinux Kernel4.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 ranges4.15, 4.19.313, 5.4.275, 5.10.216, 5.15.158, 6.1.90
DebianDebian Linux10.0Not 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 systemScoreSeverityScored by
CVSS 3.17.8HighCNA
CVSS 3.17.8HighNVD

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.

More Use After Free vulnerabilities (CWE-416)

Timeline

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

References

Recent Use After Free vulnerabilities

Spotted an error? Tell us.