net_sched: qfq: Fix double list add in class with netem as child qdisc
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 37d9cf1a3ce35de3df6f7d209bfb1f50cf188cea · < 53bc0b55178bd59bdd4bcd16349505cabf54b1a2| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net_sched: qfq: Fix double list add in class with netem as child qdisc
As described in Gerrard's report [1], there are use cases where a netem child qdisc will make the parent qdisc's enqueue callback reentrant. In the case of qfq, there won't be a UAF, but the code will add the same classifier to the list twice, which will cause memory corruption.
This patch checks whether the class was already added to the agg->active list (cl_is_active) before doing the addition to cater for the reentrant case.
[1] https://lore.kernel.org/netdev/CAHcdcOm+03OD2j6R0=YHKqmy=VgJ8xEOKuP6c7mSgnp-TEJJbw@mail.gmail.com/
From the CVE record · Linux
The Linux kernel's qfq scheduler can add the same classifier to a list twice when a netem child qdisc makes its enqueue callback reentrant. This can cause memory corruption; the input does not specify how an attacker could trigger it or whether access or user interaction is required.
Engineers running Linux kernels that use qfq with a netem child qdisc should check their versions against the vendor advisory; affected versions are not specified.