CVE-2026-53074

bpf: reject short IPv4/IPv6 inputs in bpf_prog_test_run_skb

State
Published
Severity
Not scored
Published
Jun 24, 2026
Updated
Jun 24, 2026
Reserved
Jun 9, 2026

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • fa5cb548ced61b9d3095f32f8a7e427a248c65ee to before 7254267799d083280c0e53effc101a33add95f7bAffected
  • fa5cb548ced61b9d3095f32f8a7e427a248c65ee to before 6a9f38d5ff11e00bc54baab752642978805e81ebAffected
  • fa5cb548ced61b9d3095f32f8a7e427a248c65ee to before e6aa481f21fc7a41ed344767ea25aae9d03fae71Affected
  • fa5cb548ced61b9d3095f32f8a7e427a248c65ee to before 0a04db240effd85773f66244645a28cedddb72d2Affected
  • fa5cb548ced61b9d3095f32f8a7e427a248c65ee to before 1f882c492d46f90bdb36f4936876c88c28dab21cAffected
  • fa5cb548ced61b9d3095f32f8a7e427a248c65ee to before 8042240412de3222d27b31e89d29336961cad9e4Affected
  • fa5cb548ced61b9d3095f32f8a7e427a248c65ee to before 6def5fe753cbe5b279ee5fd10327b2611cbddacaAffected
  • fa5cb548ced61b9d3095f32f8a7e427a248c65ee to before 12bec2bd4b76d81c5d3996bd14ec1b7f4d983747Affected
LinuxLinux
  • 5.9Affected
  • before 5.9Not affected
  • 5.10.258 through 5.10.*Not affected
  • 5.15.209 through 5.15.*Not affected
  • 6.1.175 through 6.1.*Not affected
  • 6.6.141 through 6.6.*Not affected
  • 6.12.91 through 6.12.*Not affected
  • 6.18.33 through 6.18.*Not affected
  • 7.0.10 through 7.0.*Not affected
  • 7.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.