CyberSecBulletin
CVE-2024-53165NVD status: Modified

Linux: Use After Free

CVE-2024-53165 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 3c7c806b3eafd94ae0f77305a174d63b69ec187c, d8de818df12d86a1a26a8efd7b4b3b9c6dc3c5cc, 971b4893457788e0e123ea552f0bb126a5300e61 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.26% 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 3c7c806b3eafd94ae0f77305a174d63b69ec187c or d8de818df12d86a1a26a8efd7b4b3b9c6dc3c5cc or 971b4893457788e0e123ea552f0bb126a5300e61 or c3f4f4547fb291982f5ef56c048277c4d5ccc4e4, whichever matches your release line, or a later version.
  2. Update SIMATIC S7-1500 CPU 1518-4 PN/DP MFP to V3.1.5 or a later version.
  3. Update SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP to V3.1.5 or a later version.

Affected products and versions

VendorProductAffected versionsFixed in
LinuxLinux2dcec7a988a1895540460a0bf5603bab63d5a3ed up to, but not including, 3c7c806b3eafd94ae0f77305a174d63b69ec187c; 2dcec7a988a1895540460a0bf5603bab63d5a3ed up to, but not including, d8de818df12d86a1a26a8efd7b4b3b9c6dc3c5cc; 2dcec7a988a1895540460a0bf5603bab63d5a3ed up to, but not including, 971b4893457788e0e123ea552f0bb126a5300e61; 2dcec7a988a1895540460a0bf5603bab63d5a3ed up to, but not including, c3f4f4547fb291982f5ef56c048277c4d5ccc4e4; 2dcec7a988a1895540460a0bf5603bab63d5a3ed up to, but not including, c43df7dae28fb9fce96ef088250c1e3c3a77c527; 2dcec7a988a1895540460a0bf5603bab63d5a3ed up to, but not including, b8b84dcdf3ab1d414304819f824b10efba64132c; 2dcec7a988a1895540460a0bf5603bab63d5a3ed up to, but not including, 6ba6e19912570b2ad68298be0be1dc779014a303; 2dcec7a988a1895540460a0bf5603bab63d5a3ed up to, but not including, 588bdec1ff8b81517dbae0ae51c9df52c0b952d3; and 2 more ranges3c7c806b3eafd94ae0f77305a174d63b69ec187c, d8de818df12d86a1a26a8efd7b4b3b9c6dc3c5cc, 971b4893457788e0e123ea552f0bb126a5300e61, c3f4f4547fb291982f5ef56c048277c4d5ccc4e4, c43df7dae28fb9fce96ef088250c1e3c3a77c527, b8b84dcdf3ab1d414304819f824b10efba64132c
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
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFPV3.1.0 up to, but not including, V3.1.5V3.1.5
SiemensRUGGEDCOM RST2428Pbefore V3.2V3.2
SiemensSCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 familybefore V3.2V3.2
SiemensSCALANCE XCM-/XRM-/XCH-/XRH-300 familybefore V3.2V3.2
LinuxLinux Kernel2.6.30 up to, but not including, 4.19.325; 4.20 up to, but not including, 5.4.287; 5.5 up to, but not including, 5.10.231; 5.11 up to, but not including, 5.15.174; 5.16 up to, but not including, 6.1.120; 6.2 up to, but not including, 6.6.64; 6.7 up to, but not including, 6.11.11; 6.12 up to, but not including, 6.12.24.19.325, 5.4.287, 5.10.231, 5.15.174, 6.1.120, 6.6.64

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.4HighCNA
CVSS 3.17.8HighNVD
CVSS 3.17.8HighCISA (ADP)

Official description

In the Linux kernel, the following vulnerability has been resolved: sh: intc: Fix use-after-free bug in register_intc_controller() In the error handling for this function, d is freed without ever removing it from intc_list which would lead to a use after free. To fix this, let's only add it to the list after everything has succeeded.

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: total).
  3. Record last changed materially (score, affected products, status or references).

References

Recent Use After Free vulnerabilities

Spotted an error? Tell us.