High · published July 4, 2025
In the Linux kernel, the following vulnerability has been resolved:
net_sched: sch_sfq: reject invalid perturb period
Gerrard Tai reported that SFQ perturb_period has no range check yet,
and this can be used to trigger a race condition fixed in a separate patch.
We want to make sure ctl->perturb_period * HZ will not overflow
and is positive.
tc qd add dev lo root sfq perturb -10 # negative value : error
Error: sch_sfq: invalid perturb period.
tc qd add dev lo root sfq perturb 1000000000 # too big : error
Error: sch_sfq: invalid perturb period.
tc qd add dev lo root sfq perturb 2000000 # acceptable value
tc -s -d qd sh dev lo
qdisc sfq 8005: root refcnt 2 limit 127p quantum 64Kb depth 127 flows 128 divisor 1024 perturb 2000000sec
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
| Product | Versions | Fixed in |
|---|---|---|
| linux/linux_kernel | ≥ 2.6.13, < 5.4.297 | 5.4.297 |
| linux/linux_kernel | ≥ 5.5, < 5.10.240 | 5.10.240 |
| linux/linux_kernel | ≥ 5.11, < 5.15.186 | 5.15.186 |
| linux/linux_kernel | ≥ 5.16, < 6.1.142 | 6.1.142 |
| linux/linux_kernel | ≥ 6.2, < 6.6.95 | 6.6.95 |
| linux/linux_kernel | ≥ 6.7, < 6.12.35 | 6.12.35 |
| linux/linux_kernel | ≥ 6.13, < 6.15.4 | 6.15.4 |
| linux/linux_kernel | all versions | — |
| linux/linux_kernel | all versions | — |
| linux/linux_kernel | all versions | — |
| linux/linux_kernel | all versions | — |
| linux/linux_kernel | all versions | — |
| linux/linux_kernel | all versions | — |
| debian/debian_linux | all versions | — |