netem: Update sch->q.qlen before qdisc_tree_reduce_backlog()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 356078a5c55ec8d2061fcc009fb8599f5b0527f9 · < 6312555249082d6d8cc5321ff725df05482d8b83| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
netem: Update sch->q.qlen before qdisc_tree_reduce_backlog()
qdisc_tree_reduce_backlog() notifies parent qdisc only if child qdisc becomes empty, therefore we need to reduce the backlog of the child qdisc before calling it. Otherwise it would miss the opportunity to call cops->qlen_notify(), in the case of DRR, it resulted in UAF since DRR uses ->qlen_notify() to maintain its active list.
From the CVE record · Linux
The Linux kernel's netem queueing discipline can fail to notify a parent DRR queueing discipline when a child queue becomes empty, resulting in a use-after-free. The input does not specify how an attacker could trigger this, what access they would need, or whether user interaction is required.
Engineers running Linux kernels with netem should check their kernel version; affected versions are not specified.