Linux: Use After Free
CVE-2024-53057 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 e7f9a6f97eb067599a74f3bcb6761976b0ed303e, dbe778b08b5101df9e89bc06e0a3a7ecd2f4ef20, ce691c814bc7a3c30c220ffb5b7422715458fd9b 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 e7f9a6f97eb067599a74f3bcb6761976b0ed303e or dbe778b08b5101df9e89bc06e0a3a7ecd2f4ef20 or ce691c814bc7a3c30c220ffb5b7422715458fd9b or 05df1b1dff8f197f1c275b57ccb2ca33021df552, whichever matches your release line, or a later version.
- Update SIMATIC S7-1500 CPU 1518-4 PN/DP MFP to V3.1.5 or a later version.
- Update SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP to V3.1.5 or a later version.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Linux | Linux | 066a3b5b2346febf9a655b444567b7138e3bb939 up to, but not including, e7f9a6f97eb067599a74f3bcb6761976b0ed303e; 066a3b5b2346febf9a655b444567b7138e3bb939 up to, but not including, dbe778b08b5101df9e89bc06e0a3a7ecd2f4ef20; 066a3b5b2346febf9a655b444567b7138e3bb939 up to, but not including, ce691c814bc7a3c30c220ffb5b7422715458fd9b; 066a3b5b2346febf9a655b444567b7138e3bb939 up to, but not including, 05df1b1dff8f197f1c275b57ccb2ca33021df552; 066a3b5b2346febf9a655b444567b7138e3bb939 up to, but not including, 580b3189c1972aff0f993837567d36392e9d981b; 066a3b5b2346febf9a655b444567b7138e3bb939 up to, but not including, 597cf9748c3477bf61bc35f0634129f56764ad24; 066a3b5b2346febf9a655b444567b7138e3bb939 up to, but not including, 9995909615c3431a5304c1210face5f268d24dba; 066a3b5b2346febf9a655b444567b7138e3bb939 up to, but not including, 2e95c4384438adeaa772caa560244b1a2efef816; and 1 more ranges | e7f9a6f97eb067599a74f3bcb6761976b0ed303e, dbe778b08b5101df9e89bc06e0a3a7ecd2f4ef20, ce691c814bc7a3c30c220ffb5b7422715458fd9b, 05df1b1dff8f197f1c275b57ccb2ca33021df552, 580b3189c1972aff0f993837567d36392e9d981b, 597cf9748c3477bf61bc35f0634129f56764ad24 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | V3.1.0 up to, but not including, V3.1.5 | V3.1.5 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | V3.1.0 up to, but not including, V3.1.5 | V3.1.5 |
| Siemens | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | before V1.1.1 | V1.1.1 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | V3.1.0 up to, but not including, V3.1.5 | V3.1.5 |
| Siemens | RUGGEDCOM RST2428P | before V3.2 | V3.2 |
| Siemens | SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family | before V3.2 | V3.2 |
| Siemens | SCALANCE XCM-/XRM-/XCH-/XRH-300 family | before V3.2 | V3.2 |
| Linux | Linux Kernel | 2.6.25 up to, but not including, 4.19.323; 4.20 up to, but not including, 5.4.285; 5.5 up to, but not including, 5.10.229; 5.11 up to, but not including, 5.15.171; 5.16 up to, but not including, 6.1.116; 6.2 up to, but not including, 6.6.60; 6.7 up to, but not including, 6.11.7; 6.12 | 4.19.323, 5.4.285, 5.10.229, 5.15.171, 6.1.116, 6.6.60 |
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 |
| CVSS 3.1 | 7.8 | High | CISA (ADP) |
Official description
In the Linux kernel, the following vulnerability has been resolved: net/sched: stop qdisc_tree_reduce_backlog on TC_H_ROOT In qdisc_tree_reduce_backlog, Qdiscs with major handle ffff: are assumed to be either root or ingress. This assumption is bogus since it's valid to create egress qdiscs with major handle ffff: Budimir Markovic found that for qdiscs like DRR that maintain an active class list, it will cause a UAF with a dangling class pointer. In 066a3b5b2346, the concern was to avoid iterating over the ingress qdisc since its parent is itself. The proper fix is to stop when parent TC_H_ROOT is reached because the only way to retrieve ingress is when a hierarchy which does not contain a ffff: major handle call into qdisc_lookup with TC_H_MAJ(TC_H_ROOT). In the scenario where major ffff: is an egress qdisc in any of the tree levels, the updates will also propagate to TC_H_ROOT, which then the iteration must stop. net/sched/sch_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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/05df1b1dff8f197f1c275b57ccb2ca33021df552
- git.kernel.org/stable/c/2e95c4384438adeaa772caa560244b1a2efef816
- git.kernel.org/stable/c/580b3189c1972aff0f993837567d36392e9d981b
- git.kernel.org/stable/c/597cf9748c3477bf61bc35f0634129f56764ad24
- git.kernel.org/stable/c/9995909615c3431a5304c1210face5f268d24dba
- git.kernel.org/stable/c/ce691c814bc7a3c30c220ffb5b7422715458fd9b
- git.kernel.org/stable/c/dbe778b08b5101df9e89bc06e0a3a7ecd2f4ef20
- git.kernel.org/stable/c/e7f9a6f97eb067599a74f3bcb6761976b0ed303e
Other references
Recent Use After Free vulnerabilities
- 7.8 High severity
- 7.8 High severity
- 7.0 High severity
- 7.8 High severity
- 7.8 High severity
- 7.8 High severity
Spotted an error? Tell us.