net/sched: reject overly deep qdisc hierarchies
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < a4b14a4df29d36458a943f9b521ddd0f940363cc| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net/sched: reject overly deep qdisc hierarchies
Deep qdisc hierarchies can lead to excessive recursion in qdisc tree walkers and exhaust the kernel stack. The existing loop check does not cover the create-and-graft path, so a hierarchy can still be extended by creating a new child qdisc below an already deep parent.
Store the hierarchy depth in struct Qdisc and update it when qdiscs are grafted. Reject new child qdiscs once the parent is already at the maximum allowed depth.
From the CVE record · Linux
Deep qdisc hierarchies can cause excessive recursion in qdisc tree walkers and exhaust the kernel stack. An attacker who can extend a hierarchy by creating and grafting a child qdisc below an already deep parent can trigger this condition; the input does not specify access requirements.
Engineers running Linux kernels with the affected net/sched qdisc code should check their versions against the vendor advisory; affected versions were not provided.