# CVE-2022-49975: bpf: Don't redirect packets with invalid pkt_len

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 21% of CVEs (2026-12-01)
- Published: 2025-06-18T11:00:38.157Z
- Modified: 2026-11-05T20:17:19.527Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 5293efe62df81908f2e90c9820c7edcc8e61f5e9 before 8b68e53d56697a59b5c53893b53f508bbdf272a0; from 5293efe62df81908f2e90c9820c7edcc8e61f5e9 before 6204bf78b2a903b96ba43afff6abc0b04d6e0462; from 5293efe62df81908f2e90c9820c7edcc8e61f5e9 before a75987714bd2d8e59840667a28e15c1fa5c47554; from 5293efe62df81908f2e90c9820c7edcc8e61f5e9 before 72f2dc8993f10262092745a88cb2dd0fef094f23; from 5293efe62df81908f2e90c9820c7edcc8e61f5e9 before fd1894224407c484f652ad456e1ce423e89bb3eb; 4.9 (not affected: before 4.9; from 5.4.212 up to 5.4.*; from 5.10.141 up to 5.10.*; from 5.15.65 up to 5.15.*; from 5.19.7 up to 5.19.*; from 6.0 up to *)
- linux linux_kernel: before 5.4.212; from 5.5 before 5.10.141; from 5.11 before 5.15.65; from 5.16 before 5.19.7

## References

- <https://git.kernel.org/stable/c/8b68e53d56697a59b5c53893b53f508bbdf272a0> (patch)
- <https://git.kernel.org/stable/c/6204bf78b2a903b96ba43afff6abc0b04d6e0462> (patch)
- <https://git.kernel.org/stable/c/a75987714bd2d8e59840667a28e15c1fa5c47554> (patch)
- <https://git.kernel.org/stable/c/72f2dc8993f10262092745a88cb2dd0fef094f23> (patch)
- <https://git.kernel.org/stable/c/fd1894224407c484f652ad456e1ce423e89bb3eb> (patch)

## Sources

- CVE List: [CVE-2022-49975](https://www.cve.org/CVERecord?id=CVE-2022-49975), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2022-49975](https://nvd.nist.gov/vuln/detail/CVE-2022-49975), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2022-49975 · Whole record: https://cve.day/CVE-2022-49975.json · Rebuilt by cve.day 2026-11-25T22:58:20.989Z
