# CVE-2026-99751: bpf: Fix skb_pull() BUG in __bpf_redirect_neigh()

Status: published. Published: 2026-11-20. Updated: 2026-11-23.

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

bpf: Fix skb_pull() BUG in __bpf_redirect_neigh()

The issue:
This is a follow-up to the short link-layer header fixes from Eric.
After vlan pop_eth, a privileged SCHED_ACT BPF program can call
bpf_skb_change_head(skb, 1, 0) and then bpf_redirect_neigh().

__bpf_redirect_neigh() calls skb_pull(skb, sizeof(*ethh)) after checking
only that mac_header < network_header.  Nothing verifies that the MAC
header is long enough, that it is linear, or that the IP header the
redirect goes on to read is linear either.

A SCHED_ACT BPF program can do:

    bpf_skb_change_head(skb, 1, 0);
    bpf_redirect_neigh(lo, NULL, 0, 0);

after vlan pop_eth.  The skb then has mac_len == 1 and only one byte of
linear data; skb_pull(ETH_HLEN) trips the skb->len < skb->data_len BUG in
__skb_pull():

    kernel BUG at ./include/linux/skbuff.h:2839!
    RIP: skb_pull+0x40/0x50
    Call Trace: skb_do_redirect -> packet_xmit -> packet_sendmsg
    Kernel panic - not syncing: Fatal exception in interrupt

The v4 and v6 paths read ip_hdr() and ipv6_hdr() as soon as the MAC
header is gone.  On the AF_PACKET frame below that leaves headlen == 0
after the pull, so the network header sits at skb->tail and the route
lookup reads ip4h->protocol, ip4h->saddr and ip4h->daddr past the linear
area.

The Fix:
Use skb_network_offset(), which is the MAC header span, instead of
skb->mac_len.  mac_len is zero for locally generated tc egress and netkit
packets, while the span still rejects the one-byte header produced by
pop_eth + bpf_skb_change_head(skb, 1, 0).  The single check also covers
the mac_header >= network_header test it replaces.

Use pskb_may_pull() to make the Ethernet header linear before it is read
or pulled, and to make the IP header linear in both the v4 and the v6
path before ip_hdr()/ipv6_hdr() is read.  The header pointers are taken
after the pull, since pskb_may_pull() may reallocate skb->head.

Conditions to recreate the bug:
On x86-64 with 4 KiB pages, enable CONFIG_PACKET, CONFIG_BPF_SYSCALL,
CONFIG_NET_SCH_INGRESS, CONFIG_NET_CLS_MATCHALL, CONFIG_NET_ACT_VLAN and
CONFIG_NET_ACT_BPF.  Run as root with BPF loading, network administration
and raw-packet privileges.  Bring lo up and attach a SCHED_ACT program
that calls bpf_skb_change_head(skb, 1, 0), then returns
bpf_redirect_neigh(skb->ifindex, NULL, 0, 0):

  ip link set lo up
  tc qdisc add dev lo clsact
  tc filter add dev lo egress matchall action vlan pop_eth pipe \
      action bpf object-file neigh_chghead.o section action

Send an untagged ETH_P_IP frame of ETH_HLEN + 8192 bytes through an
AF_PACKET/SOCK_RAW socket bound to lo, without PACKET_VNET_HDR or
PACKET_QDISC_BYPASS.  Use a unicast destination MAC.  The sender's skb
has a 14-byte linear Ethernet prefix and a fragmented payload; pop_eth
removes that prefix and change_head restores only one linear byte.
The unfixed neighbor redirect then tries to pull 14 bytes and BUGs.

Sending the same frame without pop_eth and change_head leaves the IP
header in the frags, which is the route lookup reading past skb->tail.

## Remediation

No remediation reported in collected sources

## Affected products and versions

- Linux / Linux: ≥ b4ab31414970a7a03a5d55d75083f2c101a30592; < bd2ef1677d41bcc942d99a3fe39e87adc2cc595e (affected, git); ≥ b4ab31414970a7a03a5d55d75083f2c101a30592; < 9a770d6d356897d3fe73a7bd50a7c2f2a85a0ab6 (affected, git); ≥ b4ab31414970a7a03a5d55d75083f2c101a30592; < c98a2a8a9d685c90a3c5d5b272f4c531ebb80903 (affected, git); ≥ b4ab31414970a7a03a5d55d75083f2c101a30592; < 2caaca53a181b490ec56575ed6262cdeb82075e0 (affected, git); ≥ b4ab31414970a7a03a5d55d75083f2c101a30592; < a725401dd629c6fdda47e3a02efed539ac0ed6d0 (affected, git); ≥ b4ab31414970a7a03a5d55d75083f2c101a30592; < 2009032471be8b9622bf2496ce9c6b06a1015905 (affected, git); ≥ b4ab31414970a7a03a5d55d75083f2c101a30592; < 890fd9c4e02bc9e477e6365fef4ac8c2262a3b3c (affected, git); ≥ b4ab31414970a7a03a5d55d75083f2c101a30592; < 23503acb214cbefaf3945d05ab9667ff11ae3de9 (affected, git). Source: CNA: Linux
- Linux / Linux: 5.10 (affected); ≥ 0; < 5.10 (unaffected, semver); ≥ 5.10.275; ≤ 5.10.* (unaffected, semver); ≥ 5.15.226; ≤ 5.15.* (unaffected, semver); ≥ 6.1.193; ≤ 6.1.* (unaffected, semver); ≥ 6.6.163; ≤ 6.6.* (unaffected, semver); ≥ 6.12.118; ≤ 6.12.* (unaffected, semver); ≥ 6.18.64; ≤ 6.18.* (unaffected, semver); ≥ 7.3.5; ≤ 7.3.* (unaffected, semver); ≥ 7.4-rc2; ≤ * (unaffected, original_commit_for_fix). Source: CNA: Linux

## Severity and prioritization

- CISA KEV: No listing in collected sources

- EPSS: 0.18% as of 2026-11-22; percentile 7.29%

- SSVC: Not available

- Weaknesses: Not reported

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://git.kernel.org/stable/c/bd2ef1677d41bcc942d99a3fe39e87adc2cc595e (CNA: Linux)

- https://git.kernel.org/stable/c/9a770d6d356897d3fe73a7bd50a7c2f2a85a0ab6 (CNA: Linux)

- https://git.kernel.org/stable/c/c98a2a8a9d685c90a3c5d5b272f4c531ebb80903 (CNA: Linux)

- https://git.kernel.org/stable/c/2caaca53a181b490ec56575ed6262cdeb82075e0 (CNA: Linux)

- https://git.kernel.org/stable/c/a725401dd629c6fdda47e3a02efed539ac0ed6d0 (CNA: Linux)

- https://git.kernel.org/stable/c/2009032471be8b9622bf2496ce9c6b06a1015905 (CNA: Linux)

- https://git.kernel.org/stable/c/890fd9c4e02bc9e477e6365fef4ac8c2262a3b3c (CNA: Linux)

- https://git.kernel.org/stable/c/23503acb214cbefaf3945d05ab9667ff11ae3de9 (CNA: Linux)

- https://git.kernel.org/stable/c/2009032471be8b9622bf2496ce9c6b06a1015905 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

- https://git.kernel.org/stable/c/23503acb214cbefaf3945d05ab9667ff11ae3de9 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

- https://git.kernel.org/stable/c/890fd9c4e02bc9e477e6365fef4ac8c2262a3b3c (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

- https://git.kernel.org/stable/c/a725401dd629c6fdda47e3a02efed539ac0ed6d0 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

## Provenance

- CNA: Linux: https://www.cve.org/CVERecord?id=CVE-2026-99751; retrieved 2026-11-23; source updated 2026-11-23

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-99751; retrieved 2026-11-20; source updated 2026-11-20

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-99751; retrieved 2026-11-23; source updated Not reported

Revision: 8d501af548fbd5abc32fd1642bbefcf7aada18a1c9b44ae107533c2cf7793a42

Canonical: https://y2.dev/cve/CVE-2026-99751

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.