---
id: CVE-2026-53074
title: 'bpf: reject short IPv4/IPv6 inputs in bpf_prog_test_run_skb'
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  bpf: reject short IPv4/IPv6 inputs in bpf_prog_test_run_skb

  bpf_prog_test_run_skb() calls eth_type_trans() first and then uses
  skb->protocol to initialize sk family an…
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= fa5cb548ced61b9d3095f32f8a7e427a248c65ee <
    7254267799d083280c0e53effc101a33add95f7b
  - >-
    Linux >= fa5cb548ced61b9d3095f32f8a7e427a248c65ee <
    6a9f38d5ff11e00bc54baab752642978805e81eb
  - >-
    Linux >= fa5cb548ced61b9d3095f32f8a7e427a248c65ee <
    e6aa481f21fc7a41ed344767ea25aae9d03fae71
  - >-
    Linux >= fa5cb548ced61b9d3095f32f8a7e427a248c65ee <
    0a04db240effd85773f66244645a28cedddb72d2
  - >-
    Linux >= fa5cb548ced61b9d3095f32f8a7e427a248c65ee <
    1f882c492d46f90bdb36f4936876c88c28dab21c
  - >-
    Linux >= fa5cb548ced61b9d3095f32f8a7e427a248c65ee <
    8042240412de3222d27b31e89d29336961cad9e4
  - >-
    Linux >= fa5cb548ced61b9d3095f32f8a7e427a248c65ee <
    6def5fe753cbe5b279ee5fd10327b2611cbddaca
  - >-
    Linux >= fa5cb548ced61b9d3095f32f8a7e427a248c65ee <
    12bec2bd4b76d81c5d3996bd14ec1b7f4d983747
  - Linux 5.9
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-06T16:17:52.434254Z'
published: '2026-06-24'
updated: '2026-11-06'
sourceUpdated: '2026-11-06T16:23:58.311Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-53074'
references:
  - url: 'https://git.kernel.org/stable/c/7254267799d083280c0e53effc101a33add95f7b'
  - url: 'https://git.kernel.org/stable/c/6a9f38d5ff11e00bc54baab752642978805e81eb'
  - url: 'https://git.kernel.org/stable/c/e6aa481f21fc7a41ed344767ea25aae9d03fae71'
  - url: 'https://git.kernel.org/stable/c/0a04db240effd85773f66244645a28cedddb72d2'
  - url: 'https://git.kernel.org/stable/c/1f882c492d46f90bdb36f4936876c88c28dab21c'
  - url: 'https://git.kernel.org/stable/c/8042240412de3222d27b31e89d29336961cad9e4'
  - url: 'https://git.kernel.org/stable/c/6def5fe753cbe5b279ee5fd10327b2611cbddaca'
  - url: 'https://git.kernel.org/stable/c/12bec2bd4b76d81c5d3996bd14ec1b7f4d983747'
tags:
  - cve.org
epss: 0.00114
epssPercentile: 0.01504
ingestedAt: '2026-11-06T16:57:43.297Z'
---

## Overview

In the Linux kernel, the following vulnerability has been resolved:

bpf: reject short IPv4/IPv6 inputs in bpf_prog_test_run_skb

bpf_prog_test_run_skb() calls eth_type_trans() first and then uses
skb->protocol to initialize sk family and address fields for the test
run.

For IPv4 and IPv6 packets, it may access ip_hdr(skb) or ipv6_hdr(skb)
even when the provided test input only contains an Ethernet header.

Reject the input earlier if the Ethernet frame carries IPv4/IPv6
EtherType but the L3 header is too short.

Fold the IPv4/IPv6 header length checks into the existing protocol
switch and return -EINVAL before accessing the network headers.

## Affected

- `Linux >= fa5cb548ced61b9d3095f32f8a7e427a248c65ee < 7254267799d083280c0e53effc101a33add95f7b`
- `Linux >= fa5cb548ced61b9d3095f32f8a7e427a248c65ee < 6a9f38d5ff11e00bc54baab752642978805e81eb`
- `Linux >= fa5cb548ced61b9d3095f32f8a7e427a248c65ee < e6aa481f21fc7a41ed344767ea25aae9d03fae71`
- `Linux >= fa5cb548ced61b9d3095f32f8a7e427a248c65ee < 0a04db240effd85773f66244645a28cedddb72d2`
- `Linux >= fa5cb548ced61b9d3095f32f8a7e427a248c65ee < 1f882c492d46f90bdb36f4936876c88c28dab21c`
- `Linux >= fa5cb548ced61b9d3095f32f8a7e427a248c65ee < 8042240412de3222d27b31e89d29336961cad9e4`
- `Linux >= fa5cb548ced61b9d3095f32f8a7e427a248c65ee < 6def5fe753cbe5b279ee5fd10327b2611cbddaca`
- `Linux >= fa5cb548ced61b9d3095f32f8a7e427a248c65ee < 12bec2bd4b76d81c5d3996bd14ec1b7f4d983747`
- `Linux 5.9`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
