net_sched: Prevent creation of classes with TC_H_ROOT
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 066a3b5b2346febf9a655b444567b7138e3bb939 · < 5c3ca9cb48b51bd72bf76b8b05e24f3cd53db5e7| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net_sched: Prevent creation of classes with TC_H_ROOT
The function qdisc_tree_reduce_backlog() uses TC_H_ROOT as a termination condition when traversing up the qdisc tree to update parent backlog counters. However, if a class is created with classid TC_H_ROOT, the traversal terminates prematurely at this class instead of reaching the actual root qdisc, causing parent statistics to be incorrectly maintained. In case of DRR, this could lead to a crash as reported by Mingi Cho.
Prevent the creation of any Qdisc class with classid TC_H_ROOT (0xFFFFFFFF) across all qdisc types, as suggested by Jamal.
From the CVE record · Linux
The Linux kernel's net_sched code allows a Qdisc class to be created with classid TC_H_ROOT, which can cause parent backlog statistics to be maintained incorrectly. In DRR, this can lead to a crash. The input does not specify whether an attacker needs local access, authentication, or user interaction to create such a class.
Engineers running the Linux kernel should check their versions; affected versions are not specified.