bpf: reject short IPv4/IPv6 inputs in bpf_prog_test_run_skb (Linux Linux)

CVE-2026-53074
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.11 % · percentile 1 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

Description

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.

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected fa5cb548ced61b9d3095f32f8a7e427a248c65ee < 7254267799d083280c0e53effc101a33add95f7b ; affected fa5cb548ced61b9d3095f32f8a7e427a248c65ee < 6a9f38d5ff11e00bc54baab752642978805e81eb ; affected fa5cb548ced61b9d3095f32f8a7e427a248c65ee < e6aa481f21fc7a41ed344767ea25aae9d03fae71 ; affected fa5cb548ced61b9d3095f32f8a7e427a248c65ee < 0a04db240effd85773f66244645a28cedddb72d2 ; affected fa5cb548ced61b9d3095f32f8a7e427a248c65ee < 1f882c492d46f90bdb36f4936876c88c28dab21c ; affected fa5cb548ced61b9d3095f32f8a7e427a248c65ee < 8042240412de3222d27b31e89d29336961cad9e4
Linux · Linuxaffected 5.9 ; unaffected 0 < 5.9 ; unaffected 5.10.258 ≤ 5.10.* ; unaffected 5.15.209 ≤ 5.15.* ; unaffected 6.1.175 ≤ 6.1.* ; unaffected 6.6.141 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD