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.
High severity with no evidence of exploitation so far.
What to do
- Update Linux to dddedfa3b29a63c2ca4336663806a6128b8545b4 or ac512507ac89c01ed6cd4ca53032f52cdb23ea59 or 3518cea837de4d106efa84ddac18a07b6de1384e or 156012667b85ca7305cb363790d3ae8519a6f41e, whichever matches your release line, or a later version.
- Update linux_kernel to 58fe3bbddfec or a later version.
- Update SIMATIC S7-1500 TM MFP - GNU/Linux subsystem to V1.1.1 or a later version.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Linux | Linux | e542e66b7c2ee2adeefdbb7f259f2f60cadf2819 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.5 | dddedfa3b29a63c2ca4336663806a6128b8545b4, ac512507ac89c01ed6cd4ca53032f52cdb23ea59, 3518cea837de4d106efa84ddac18a07b6de1384e, 156012667b85ca7305cb363790d3ae8519a6f41e, 7059cdb69f8e1a2707dd1e2f363348b507ed7707, 58fe3bbddfec10c6b216096d8c0e517cd8463e3a |
| Linux | linux_kernel | 5.5; e542e66b7c2e up to, but not including, 58fe3bbddfec | 58fe3bbddfec |
| Siemens | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | before V1.1.1 | V1.1.1 |
| 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 CNA.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 7.8 | High | CNA |
| CVSS 3.1 | 7.4 | High | CISA (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.
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: total).
- Record last changed materially (score, affected products, status or references).
References
Patches and release notes
- git.kernel.org/stable/c/1213acb478a7181cd73eeaf00db430f1e45b1361
- git.kernel.org/stable/c/156012667b85ca7305cb363790d3ae8519a6f41e
- git.kernel.org/stable/c/3518cea837de4d106efa84ddac18a07b6de1384e
- git.kernel.org/stable/c/58fe3bbddfec10c6b216096d8c0e517cd8463e3a
- git.kernel.org/stable/c/7059cdb69f8e1a2707dd1e2f363348b507ed7707
- git.kernel.org/stable/c/ac512507ac89c01ed6cd4ca53032f52cdb23ea59
- git.kernel.org/stable/c/dddedfa3b29a63c2ca4336663806a6128b8545b4
Third-party and government advisories
- lists.debian.org/debian-lts-announce/2024/06/msg00017.htmlMailing List, Third Party Advisory
Other references
Recent Use After Free vulnerabilities
- 9.8 Critical severity
- 8.8 High severity
- 8.8 High severity
- 7.8 High severity
- 7.8 High severity
- 7.8 High severity
Spotted an error? Tell us.