Skip to content
Heist/ feed
Back to feed
UnratedFix available

bpf: Don't redirect packets with invalid pkt_len

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.141, 5.15.65, 5.19.7, 5.4.212
CVEs
CVE-2022-49975
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 17:47 UTC · Revision 1

Source evidence

bpf: Don't redirect packets with invalid pkt_len

core-osv · Original source

Published 18 Jun 2025, 11:00 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.

osv:CVE-2022-49975

Kernel

Fixed versions: 5.4.212, 5.10.141, 5.15.65, 5.19.7

Complete source record
{
  "id": "660514d13394c1fdd1401d3fa3a089ab240f07ee7bf3af55fa8f6c4bf4f9fa06",
  "url": "https://osv.dev/vulnerability/CVE-2022-49975",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "bpf: Don't redirect packets with invalid pkt_len",
    "summary": "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.",
    "evidence": "osv:CVE-2022-49975",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.4.212",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.141",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.65",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.19.7",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2022-49975",
      "aliases": [
        "CVE-2022-49975"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "5293efe62df81908f2e90c9820c7edcc8e61f5e9"
                },
                {
                  "fixed": "8b68e53d56697a59b5c53893b53f508bbdf272a0"
                },
                {
                  "fixed": "6204bf78b2a903b96ba43afff6abc0b04d6e0462"
                },
                {
                  "fixed": "a75987714bd2d8e59840667a28e15c1fa5c47554"
                },
                {
                  "fixed": "72f2dc8993f10262092745a88cb2dd0fef094f23"
                },
                {
                  "fixed": "fd1894224407c484f652ad456e1ce423e89bb3eb"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49975.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.9.0"
                },
                {
                  "fixed": "5.4.212"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.141"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.65"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "5.19.7"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49975.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:44.771224866Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/6204bf78b2a903b96ba43afff6abc0b04d6e0462",
        "https://git.kernel.org/stable/c/72f2dc8993f10262092745a88cb2dd0fef094f23",
        "https://git.kernel.org/stable/c/8b68e53d56697a59b5c53893b53f508bbdf272a0",
        "https://git.kernel.org/stable/c/a75987714bd2d8e59840667a28e15c1fa5c47554",
        "https://git.kernel.org/stable/c/fd1894224407c484f652ad456e1ce423e89bb3eb",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49975.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-49975",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49975.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-49975",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 512581,
  "published_at": "2025-06-18T11:00:38.157+00:00"
}