CyberSecBulletin
CVE-2024-53057NVD status: Modified

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.

Next patch cycle

High severity with no evidence of exploitation so far.

What to do

  1. Update Linux to e7f9a6f97eb067599a74f3bcb6761976b0ed303e or dbe778b08b5101df9e89bc06e0a3a7ecd2f4ef20 or ce691c814bc7a3c30c220ffb5b7422715458fd9b or 05df1b1dff8f197f1c275b57ccb2ca33021df552, whichever matches your release line, or a later version.
  2. Update SIMATIC S7-1500 CPU 1518-4 PN/DP MFP to V3.1.5 or a later version.
  3. Update SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP to V3.1.5 or a later version.

Affected products and versions

VendorProductAffected versionsFixed in
LinuxLinux066a3b5b2346febf9a655b444567b7138e3bb939 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 rangese7f9a6f97eb067599a74f3bcb6761976b0ed303e, dbe778b08b5101df9e89bc06e0a3a7ecd2f4ef20, ce691c814bc7a3c30c220ffb5b7422715458fd9b, 05df1b1dff8f197f1c275b57ccb2ca33021df552, 580b3189c1972aff0f993837567d36392e9d981b, 597cf9748c3477bf61bc35f0634129f56764ad24
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFPV3.1.0 up to, but not including, V3.1.5V3.1.5
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFPV3.1.0 up to, but not including, V3.1.5V3.1.5
SiemensSIMATIC S7-1500 TM MFP - GNU/Linux subsystembefore V1.1.1V1.1.1
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFPV3.1.0 up to, but not including, V3.1.5V3.1.5
SiemensRUGGEDCOM RST2428Pbefore V3.2V3.2
SiemensSCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 familybefore V3.2V3.2
SiemensSCALANCE XCM-/XRM-/XCH-/XRH-300 familybefore V3.2V3.2
LinuxLinux Kernel2.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.124.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 systemScoreSeverityScored by
CVSS 3.17.8HighCNA
CVSS 3.17.8HighNVD
CVSS 3.17.8HighCISA (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.

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

Recent Use After Free vulnerabilities

Spotted an error? Tell us.