net_sched: Flush gso_skb list too during ->change()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 76e3cc126bb223013a6b9a0e2a51238d1ef2e409 · < fe88c7e4fc2c1cd75a278a15ffbf1689efad4e76| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net_sched: Flush gso_skb list too during ->change()
Previously, when reducing a qdisc's limit via the ->change() operation, only the main skb queue was trimmed, potentially leaving packets in the gso_skb list. This could result in NULL pointer dereference when we only check sch->limit against sch->q.qlen.
This patch introduces a new helper, qdisc_dequeue_internal(), which ensures both the gso_skb list and the main queue are properly flushed when trimming excess packets. All relevant qdiscs (codel, fq, fq_codel, fq_pie, hhf, pie) are updated to use this helper in their ->change() routines.
From the CVE record · Linux
When a qdisc limit is reduced, net_sched may leave packets in the gso_skb list, potentially causing a NULL pointer dereference. The input does not specify how an attacker could trigger this, whether authentication or local access is required, or whether user interaction is needed.
Anyone running the Linux kernel should check their version; affected versions are not specified in the input.