net: sched: Disallow replacing of child qdisc from one parent to another
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < 73c7e1d6898ccbeee126194dcc05f58b8a795e70| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: sched: Disallow replacing of child qdisc from one parent to another
Lion Ackermann was able to create a UAF which can be abused for privilege escalation with the following script
Step 1. create root qdisc tc qdisc add dev lo root handle 1:0 drr
step2. a class for packet aggregation do demonstrate uaf tc class add dev lo classid 1:1 drr
step3. a class for nesting tc class add dev lo classid 1:2 drr
step4. a class to graft qdisc to tc class add dev lo classid 1:3 drr
step5. tc qdisc add dev lo parent 1:1 handle 2:0 plug limit 1024
From the CVE record · Linux
The Linux kernel’s network scheduler has a use-after-free flaw when a child qdisc is replaced under a different parent. A local attacker able to configure qdiscs can trigger the flaw and potentially escalate privileges; the described attack does not require user interaction.
Anyone running a Linux kernel should check whether their version includes the fix; affected versions are not specified in the input.