Bug 2373507 (CVE-2022-49975) - CVE-2022-49975 kernel: bpf: Don't redirect packets with invalid pkt_len
Summary: CVE-2022-49975 kernel: bpf: Don't redirect packets with invalid pkt_len
Keywords:
Status: NEW
Alias: CVE-2022-49975
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-06-18 12:06 UTC by OSIDB Bzimport
Modified: 2025-07-31 12:01 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-06-18 12:06:01 UTC
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.

Comment 1 Avinash Hanwate 2025-06-19 20:41:19 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025061819-CVE-2022-49975-89e6@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.