CyberSecBulletin
CVE-2024-27052NVD status: Modified

Linux: Use After Free

CVE-2024-27052 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 dddedfa3b29a63c2ca4336663806a6128b8545b4, ac512507ac89c01ed6cd4ca53032f52cdb23ea59, 3518cea837de4d106efa84ddac18a07b6de1384e 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.3% 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 dddedfa3b29a63c2ca4336663806a6128b8545b4 or ac512507ac89c01ed6cd4ca53032f52cdb23ea59 or 3518cea837de4d106efa84ddac18a07b6de1384e or 156012667b85ca7305cb363790d3ae8519a6f41e, whichever matches your release line, or a later version.
  2. Update linux_kernel to 58fe3bbddfec or a later version.
  3. Update SIMATIC S7-1500 TM MFP - GNU/Linux subsystem to V1.1.1 or a later version.

Affected products and versions

VendorProductAffected versionsFixed in
LinuxLinuxe542e66b7c2ee2adeefdbb7f259f2f60cadf2819 up to, but not including, dddedfa3b29a63c2ca4336663806a6128b8545b4; e542e66b7c2ee2adeefdbb7f259f2f60cadf2819 up to, but not including, ac512507ac89c01ed6cd4ca53032f52cdb23ea59; e542e66b7c2ee2adeefdbb7f259f2f60cadf2819 up to, but not including, 3518cea837de4d106efa84ddac18a07b6de1384e; e542e66b7c2ee2adeefdbb7f259f2f60cadf2819 up to, but not including, 156012667b85ca7305cb363790d3ae8519a6f41e; e542e66b7c2ee2adeefdbb7f259f2f60cadf2819 up to, but not including, 7059cdb69f8e1a2707dd1e2f363348b507ed7707; e542e66b7c2ee2adeefdbb7f259f2f60cadf2819 up to, but not including, 58fe3bbddfec10c6b216096d8c0e517cd8463e3a; e542e66b7c2ee2adeefdbb7f259f2f60cadf2819 up to, but not including, 1213acb478a7181cd73eeaf00db430f1e45b1361; 5.5dddedfa3b29a63c2ca4336663806a6128b8545b4, ac512507ac89c01ed6cd4ca53032f52cdb23ea59, 3518cea837de4d106efa84ddac18a07b6de1384e, 156012667b85ca7305cb363790d3ae8519a6f41e, 7059cdb69f8e1a2707dd1e2f363348b507ed7707, 58fe3bbddfec10c6b216096d8c0e517cd8463e3a
Linuxlinux_kernel5.5; e542e66b7c2e up to, but not including, 58fe3bbddfec58fe3bbddfec
SiemensSIMATIC S7-1500 TM MFP - GNU/Linux subsystembefore V1.1.1V1.1.1
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 CNA.

Scoring systemScoreSeverityScored by
CVSS 3.17.8HighCNA
CVSS 3.17.4HighCISA (ADP)

Official description

In the Linux kernel, the following vulnerability has been resolved: wifi: rtl8xxxu: add cancel_work_sync() for c2hcmd_work The workqueue might still be running, when the driver is stopped. To avoid a use-after-free, call cancel_work_sync() in rtl8xxxu_stop().

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

Third-party and government advisories

Recent Use After Free vulnerabilities

Spotted an error? Tell us.