Linux: Use After Free
CVE-2024-42313 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 ad8cf035baf29467158e0550c7a42b7bb43d1db6, 72aff311194c8ceda934f24fd6f250b8827d7567, 4c9d235630d35db762b85a4149bbb0be9d504c36 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.23% 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 ad8cf035baf29467158e0550c7a42b7bb43d1db6 or 72aff311194c8ceda934f24fd6f250b8827d7567 or 4c9d235630d35db762b85a4149bbb0be9d504c36 or f8e9a63b982a8345470c225679af4ba86e4a7282, whichever matches your release line, or a later version.
- Update Linux Kernel to 4.19.320 or 5.4.282 or 5.10.224 or 5.15.165, whichever matches your release line, or a later version.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Linux | Linux | af2c3834c8ca7cc65d15592ac671933df8848115 up to, but not including, ad8cf035baf29467158e0550c7a42b7bb43d1db6; af2c3834c8ca7cc65d15592ac671933df8848115 up to, but not including, 72aff311194c8ceda934f24fd6f250b8827d7567; af2c3834c8ca7cc65d15592ac671933df8848115 up to, but not including, 4c9d235630d35db762b85a4149bbb0be9d504c36; af2c3834c8ca7cc65d15592ac671933df8848115 up to, but not including, f8e9a63b982a8345470c225679af4ba86e4a7282; af2c3834c8ca7cc65d15592ac671933df8848115 up to, but not including, da55685247f409bf7f976cc66ba2104df75d8dad; af2c3834c8ca7cc65d15592ac671933df8848115 up to, but not including, 66fa52edd32cdbb675f0803b3c4da10ea19b6635; af2c3834c8ca7cc65d15592ac671933df8848115 up to, but not including, 6a96041659e834dc0b172dda4b2df512d63920c2; af2c3834c8ca7cc65d15592ac671933df8848115 up to, but not including, a0157b5aa34eb43ec4c5510f9c260bbb03be937e; and 1 more ranges | ad8cf035baf29467158e0550c7a42b7bb43d1db6, 72aff311194c8ceda934f24fd6f250b8827d7567, 4c9d235630d35db762b85a4149bbb0be9d504c36, f8e9a63b982a8345470c225679af4ba86e4a7282, da55685247f409bf7f976cc66ba2104df75d8dad, 66fa52edd32cdbb675f0803b3c4da10ea19b6635 |
| Linux | Linux Kernel | 4.13 up to, but not including, 4.19.320; 4.20 up to, but not including, 5.4.282; 5.5 up to, but not including, 5.10.224; 5.11 up to, but not including, 5.15.165; 5.16 up to, but not including, 6.1.103; 6.2 up to, but not including, 6.6.44; 6.7 up to, but not including, 6.10.3 | 4.19.320, 5.4.282, 5.10.224, 5.15.165, 6.1.103, 6.6.44 |
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: venus: fix use after free in vdec_close There appears to be a possible use after free with vdec_close(). The firmware will add buffer release work to the work queue through HFI callbacks as a normal part of decoding. Randomly closing the decoder device from userspace during normal decoding can incur a read after free for inst. Fix it by cancelling the work in vdec_close.
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/4c9d235630d35db762b85a4149bbb0be9d504c36
- git.kernel.org/stable/c/66fa52edd32cdbb675f0803b3c4da10ea19b6635
- git.kernel.org/stable/c/6a96041659e834dc0b172dda4b2df512d63920c2
- git.kernel.org/stable/c/72aff311194c8ceda934f24fd6f250b8827d7567
- git.kernel.org/stable/c/a0157b5aa34eb43ec4c5510f9c260bbb03be937e
- git.kernel.org/stable/c/ad8cf035baf29467158e0550c7a42b7bb43d1db6
- git.kernel.org/stable/c/da55685247f409bf7f976cc66ba2104df75d8dad
- git.kernel.org/stable/c/f8e9a63b982a8345470c225679af4ba86e4a7282
Other references
Recent Use After Free vulnerabilities
- 7.8 High severity
- 7.8 High severity
- 7.8 High severity
- 7.8 High severity
- 7.8 High severity
- 7.8 High severity
Spotted an error? Tell us.