CVE-2024-53057

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-53057
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-53057.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-53057
Downstream
Related
Published
2024-11-19T17:19:40.284Z
Modified
2025-11-28T02:35:13.014950Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
net/sched: stop qdisc_tree_reduce_backlog on TC_H_ROOT
Details

In the Linux kernel, the following vulnerability has been resolved:

net/sched: stop qdisctreereducebacklog on TCH_ROOT

In qdisctreereduce_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 TCHROOT is reached because the only way to retrieve ingress is when a hierarchy which does not contain a ffff: major handle call into qdisclookup with TCHMAJ(TCH_ROOT).

In the scenario where major ffff: is an egress qdisc in any of the tree levels, the updates will also propagate to TCHROOT, which then the iteration must stop.

net/sched/sch_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53057.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
066a3b5b2346febf9a655b444567b7138e3bb939
Fixed
e7f9a6f97eb067599a74f3bcb6761976b0ed303e
Fixed
dbe778b08b5101df9e89bc06e0a3a7ecd2f4ef20
Fixed
ce691c814bc7a3c30c220ffb5b7422715458fd9b
Fixed
05df1b1dff8f197f1c275b57ccb2ca33021df552
Fixed
580b3189c1972aff0f993837567d36392e9d981b
Fixed
597cf9748c3477bf61bc35f0634129f56764ad24
Fixed
9995909615c3431a5304c1210face5f268d24dba
Fixed
2e95c4384438adeaa772caa560244b1a2efef816

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.25
Fixed
4.19.323
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.285
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.229
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.171
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.116
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.60
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.11.7