net_sched: ets: fix a race in ets_qdisc_change()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ b05972f01e7d30419987a1f221b5593668fd6448 · < fed94bd51d62d2e0e006aa61480e94e5cd0582b0| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net_sched: ets: fix a race in ets_qdisc_change()
Gerrard Tai reported a race condition in ETS, whenever SFQ perturb timer fires at the wrong time.
The race is as follows:
CPU 0 CPU 1 [1]: lock root [2]: qdisc_tree_flush_backlog() [3]: unlock root | | [5]: lock root | [6]: rehash | [7]: qdisc_tree_reduce_backlog() | [4]: qdisc_put()
This can be abused to underflow a parent's qlen.
Calling qdisc_purge_queue() instead of qdisc_tree_flush_backlog() should fix the race, because all packets will be purged from the qdisc before releasing the lock.
From the CVE record · Linux
A race in the Linux kernel’s ETS scheduler can occur when an SFQ perturb timer fires during a change to the ETS queue discipline. It can be abused to underflow a parent queue’s length. The input does not specify whether exploitation requires local or network access, authentication, or user interaction.
Anyone running the Linux kernel should check whether their kernel is affected; affected versions are not specified.