net/sched: sch_multiq: Replace direct dequeue call with peek and qdisc_dequeue_peeked
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.261, 5.15.212, 6.1.178, 6.6.145, 6.12.97, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
In the Linux kernel, the following vulnerability has been resolved: net/sched: sch_multiq: Replace direct dequeue call with peek and qdisc_dequeue_peeked multiq_dequeue() takes a packet from a band's child with a direct ->dequeue() call after multiq_peek() peeked it. When the child is non-work-conserving the peek stashes the skb in the child's gso_skb, so the direct dequeue returns a different skb and orphans the stash, desyncing the child's qlen/backlog. With a qfq child reached through a peeking parent (e.g. tbf) this re-enters the child on an emptied list and dereferences NULL, panicking the kernel from softirq on ordinary egress. Take the packet through qdisc_dequeue_peeked(), as sch_prio already does and as sch_red and sch_sfb were just fixed to do. The helper is a no-op when the child has no stash, so a work-conserving child is unaffected.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From 77be155cba4e163e8bba9fd27222a8b6189ec4f7 · fixed in 3e5fd9d14f2d228e7260251f2e4a1d41ba8f705a; From 77be155cba4e163e8bba9fd27222a8b6189ec4f7 · fixed in eb1a9637f0bd84b5db8803af65dfb1f44785406f; From 77be155cba4e163e8bba9fd27222a8b6189ec4f7 · fixed in 7a5a1582710981ef6637de9f074a60a5b1d63222; From 77be155cba4e163e8bba9fd27222a8b6189ec4f7 · fixed in 86a61e46a1919e8abf4d227c204773dabb24068a; From 77be155cba4e163e8bba9fd27222a8b6189ec4f7 · fixed in 1b9cc255e8089606b92b2adf504e334573682821; From 77be155cba4e163e8bba9fd27222a8b6189ec4f7 · fixed in 5889064919a1e5c0a9469c54895000414fc46944; From 77be155cba4e163e8bba9fd27222a8b6189ec4f7 · fixed in fffeb2ab5eeb823d4c2330571a098f63237c9049; From 77be155cba4e163e8bba9fd27222a8b6189ec4f7 · fixed in 54f6b0c843e228d499eb4b6bbb89df68cad9ad5d
- Linux Linux
2.6.29
- KernelLinux
From 2.6.29 · fixed in 5.10.261; From 5.11.0 · fixed in 5.15.212; From 5.16.0 · fixed in 6.1.178; From 6.2.0 · fixed in 6.6.145; From 6.7.0 · fixed in 6.12.97; From 6.13.0 · fixed in 6.18.40; From 6.19.0 · fixed in 7.1.5
References 8
git.kernel.org
- stable/c/3e5fd9d14f2d228e7260251f2e4a1d41ba8f705a
- stable/c/eb1a9637f0bd84b5db8803af65dfb1f44785406f
- stable/c/7a5a1582710981ef6637de9f074a60a5b1d63222
- stable/c/86a61e46a1919e8abf4d227c204773dabb24068a
- stable/c/1b9cc255e8089606b92b2adf504e334573682821
- stable/c/5889064919a1e5c0a9469c54895000414fc46944
- stable/c/fffeb2ab5eeb823d4c2330571a098f63237c9049
- stable/c/54f6b0c843e228d499eb4b6bbb89df68cad9ad5d