Linux: Use After Free
CVE-2024-27043 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 d0f5c28333822f9baa5280d813124920720fd856, f20c3270f3ed5aa6919a87e4de9bf6c05fb57086, 096237039d00c839f3e3a5fe6d001bf0db45b644 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.29% 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 d0f5c28333822f9baa5280d813124920720fd856 or f20c3270f3ed5aa6919a87e4de9bf6c05fb57086 or 096237039d00c839f3e3a5fe6d001bf0db45b644 or 0d3fe80b6d175c220b3e252efc6c6777e700e98e, whichever matches your release line, or a later version.
- Update Linux Kernel to 4.19.311 or 5.4.273 or 5.10.214 or 5.15.153, whichever matches your release line, or a later version.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Linux | Linux | b61901024776b25ce7b8edc31bb1757c7382a88e up to, but not including, d0f5c28333822f9baa5280d813124920720fd856; b61901024776b25ce7b8edc31bb1757c7382a88e up to, but not including, f20c3270f3ed5aa6919a87e4de9bf6c05fb57086; b61901024776b25ce7b8edc31bb1757c7382a88e up to, but not including, 096237039d00c839f3e3a5fe6d001bf0db45b644; b61901024776b25ce7b8edc31bb1757c7382a88e up to, but not including, 0d3fe80b6d175c220b3e252efc6c6777e700e98e; b61901024776b25ce7b8edc31bb1757c7382a88e up to, but not including, 437a111f79a2f5b2a5f21e27fdec6f40c8768712; b61901024776b25ce7b8edc31bb1757c7382a88e up to, but not including, 779e8db7efb22316c8581d6c229636d2f5694a62; b61901024776b25ce7b8edc31bb1757c7382a88e up to, but not including, 35674111a043b0482a9bc69da8850a83f465b07d; b61901024776b25ce7b8edc31bb1757c7382a88e up to, but not including, b7586e902128e4fb7bfbb661cb52e4215a65637b; and 2 more ranges | d0f5c28333822f9baa5280d813124920720fd856, f20c3270f3ed5aa6919a87e4de9bf6c05fb57086, 096237039d00c839f3e3a5fe6d001bf0db45b644, 0d3fe80b6d175c220b3e252efc6c6777e700e98e, 437a111f79a2f5b2a5f21e27fdec6f40c8768712, 779e8db7efb22316c8581d6c229636d2f5694a62 |
| Linux | Linux Kernel | 2.6.21 up to, but not including, 4.19.311; 4.20 up to, but not including, 5.4.273; 5.5 up to, but not including, 5.10.214; 5.11 up to, but not including, 5.15.153; 5.16 up to, but not including, 6.1.83; 6.2 up to, but not including, 6.6.23; 6.7 up to, but not including, 6.7.11; 6.8 up to, but not including, 6.8.2 | 4.19.311, 5.4.273, 5.10.214, 5.15.153, 6.1.83, 6.6.23 |
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: media: edia: dvbdev: fix a use-after-free In dvb_register_device, *pdvbdev is set equal to dvbdev, which is freed in several error-handling paths. However, *pdvbdev is not set to NULL after dvbdev's deallocation, causing use-after-frees in many places, for example, in the following call chain: budget_register |-> dvb_dmxdev_init |-> dvb_register_device |-> dvb_dmxdev_release |-> dvb_unregister_device |-> dvb_remove_device |-> dvb_device_put |-> kref_put When calling dvb_unregister_device, dmxdev->dvbdev (i.e. *pdvbdev in dvb_register_device) could point to memory that had been freed in dvb_register_device. Thereafter, this pointer is transferred to kref_put and triggering a use-after-free.
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/096237039d00c839f3e3a5fe6d001bf0db45b644
- git.kernel.org/stable/c/0d3fe80b6d175c220b3e252efc6c6777e700e98e
- git.kernel.org/stable/c/35674111a043b0482a9bc69da8850a83f465b07d
- git.kernel.org/stable/c/437a111f79a2f5b2a5f21e27fdec6f40c8768712
- git.kernel.org/stable/c/779e8db7efb22316c8581d6c229636d2f5694a62
- git.kernel.org/stable/c/8c64f4cdf4e6cc5682c52523713af8c39c94e6d5
- git.kernel.org/stable/c/b7586e902128e4fb7bfbb661cb52e4215a65637b
- git.kernel.org/stable/c/d0f5c28333822f9baa5280d813124920720fd856
- git.kernel.org/stable/c/f20c3270f3ed5aa6919a87e4de9bf6c05fb57086
- lists.debian.org/debian-lts-announce/2024/06/msg00017.html
- lists.debian.org/debian-lts-announce/2024/06/msg00020.html
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.