bpf: Don't redirect packets with invalid pkt_len
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 5.4.212, Kernel 5.15.65, Kernel 5.19.7 and 6 more.
In the Linux kernel, the following vulnerability has been resolved: bpf: Don't redirect packets with invalid pkt_len Syzbot found an issue [1]: fq_codel_drop() try to drop a flow whitout any skbs, that is, the flow->head is null. The root cause, as the [2] says, is because that bpf_prog_test_run_skb() run a bpf prog which redirects empty skbs. So we should determine whether the length of the packet modified by bpf prog or others like bpf_prog_test is valid before forwarding it directly.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | <5.4.212, >=5.11 <5.15.65, >=5.16 <5.19.7, >=5.5 <5.10.141, >=5293efe62df81908f2e90c9820c7edcc8e61f5e9 <72f2dc8993f10262092745a88cb2dd0fef094f23, >=5293efe62df81908f2e90c9820c7edcc8e61f5e9 <8b68e53d56697a59b5c53893b53f508bbdf272a0, >=5293efe62df81908f2e90c9820c7edcc8e61f5e9 <a75987714bd2d8e59840667a28e15c1fa5c47554, >=5293efe62df81908f2e90c9820c7edcc8e61f5e9 <fd1894224407c484f652ad456e1ce423e89bb3eb, =4.9, >=5293efe62df81908f2e90c9820c7edcc8e61f5e9 <6204bf78b2a903b96ba43afff6abc0b04d6e0462 | 5.4.212, 5.15.65, 5.19.7, 5.10.141, 72f2dc8993f10262092745a88cb2dd0fef094f23, 8b68e53d56697a59b5c53893b53f508bbdf272a0, a75987714bd2d8e59840667a28e15c1fa5c47554, fd1894224407c484f652ad456e1ce423e89bb3eb, 6204bf78b2a903b96ba43afff6abc0b04d6e0462 |
| linux-kernel: Kernel | >=4.9.0 <5.4.212, >=5.11.0 <5.15.65, >=5.16.0 <5.19.7, >=5.5.0 <5.10.141 | 5.4.212, 5.15.65, 5.19.7, 5.10.141 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket