CVE-2022-49975

bpf: Don't redirect packets with invalid pkt_len

HIGH
7.8
CVSS Score
Published: June 18, 2025 at 11:00 AM UTC
Updated: June 17, 2026 at 05:19 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.3%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 5.4.2124.9 ≤ v < 5.10.1414.9 ≤ v < 5.15.654.9 ≤ v < 5.19.74.9 ≤ v < 5.4.2124.9 ≤ v < 6.05.11 ≤ v < 5.15.655.16 ≤ v < 5.19.75.5 ≤ v < 5.10.1414.95293efe62df81908f2e90c9820c7edcc8e61f5e9
Vendor states this is fixed in 6204bf78b2a903b96ba43afff6abc0b04d6e0462 (fixed)
Vendor states this is fixed in 72f2dc8993f10262092745a88cb2dd0fef094f23 (fixed)
Vendor states this is fixed in 8b68e53d56697a59b5c53893b53f508bbdf272a0 (fixed)
Vendor states this is fixed in a75987714bd2d8e59840667a28e15c1fa5c47554 (fixed)
Vendor states this is fixed in fd1894224407c484f652ad456e1ce423e89bb3eb (fixed)
Vendor states this is fixed in 4.9 (unaffected)
Vendor states this is fixed in 5.10.141 (unaffected)
Vendor states this is fixed in 5.15.65 (unaffected)
Vendor states this is fixed in 5.19.7 (unaffected)
Vendor states this is fixed in 5.4.212 (unaffected)
Vendor states this is fixed in 6.0 (unaffected)

References (5)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6204bf78b2a903b96ba43afff6abc0b04d6e0462
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/72f2dc8993f10262092745a88cb2dd0fef094f23
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8b68e53d56697a59b5c53893b53f508bbdf272a0
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a75987714bd2d8e59840667a28e15c1fa5c47554
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/fd1894224407c484f652ad456e1ce423e89bb3eb

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card