PT-2026-152630

CVE-2026-99751

·

Publicado

2026-11-20

·

Atualizado

2026-11-20

Descrição por

Pontuação
N/A
Não disponível

Não há classificações de severidade ou métricas disponíveis. Quando houver, atualizaremos as informações correspondentes na página.

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.
Fornecedores
Produtos afetados
Identificadores relacionados
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾