net/sched: sch_cake: drop WARN_ON(1) for malformed packets in ACK filter
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 8b7138814f29933898ecd31dfc83e35a30ee69f5 · < cd2f1d9fe8a507c2dc86ad326fe221f121c47734| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net/sched: sch_cake: drop WARN_ON(1) for malformed packets in ACK filter
The sch_cake ACK filter parses packets to find the TCP header and filter duplicated ACKs if the flow is backlogged. The parsing code contains a WARN_ON(1) which can be triggered by a malformed IP header in certain cases. Depending on the system configuration, this leads either to either spamming dmesg with warnings, or a panic if panic_on_warn is set.
The code already correctly skips the offending packet in the branch that triggers the warning, so the WARN_ON itself doesn't really serve any purpose. So just drop it altogether to avoid the inconvenient side effects.
From the CVE record · Linux
The Linux kernel’s sch_cake ACK filter can trigger a warning when it parses certain malformed IP headers. A malformed packet can flood dmesg with warnings or cause a kernel panic if panic_on_warn is set. The input does not specify authentication or user-interaction requirements.
Engineers running Linux kernels that use the sch_cake ACK filter should check their installations; affected versions were not provided.