PT-2026-162600
CVE-2026-100018
·
Publicado
2026-11-30
·
Atualizado
2026-11-30
Descrição por
Pontuação
N/A
Não disponívelNã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:
netdevsim: reject cls bpf programs bound to another device
The issue:
nsim bpf setup tc block cb() installs any device-bound SCHED CLS program
without checking that its offload device matches the target netdev. The
core cls bpf attach path rejects a mismatching program, but a netdev that
joins a shared block later is replayed the stored filter by
cls bpf reoffload() before it is inserted into block->ports, so the
attach-time check cannot see it. The driver callback is the
authoritative per-device acceptance boundary and must enforce the match
itself, as nfp already does in nfp net bpf offload().
Without the check, replaying a device-bound program onto a different
bpf offload dev installs it into that device's netdevsim state, which
trips the WARN in nsim bpf uninit() (ns->bpf offloaded set on a foreign
device) and can dereference a NULL prog->aux->offload in
nsim prog set loaded().
The Fix:
Reject a device-bound program whose offload device does not match the
target netdev, with -EINVAL and an extack so the rejected replay is not
silent. The check is intentionally narrower than nfp's: it fires only
for a dev-bound program, so nsim's bpf tc non bound accept mode (which
admits an unbound program onto the device) is unaffected. Teardown is
never blocked: the guard is on the program being installed and an unbind
passes cls bpf.prog = NULL.
Conditions to recreate the bug:
- CONFIG NETDEVSIM=y, CONFIG NET CLS BPF=y
- load and pin a dev-bound SCHED CLS program for netdevsim device B
- install the program on a shared block owned by B
- add an independently backed netdevsim device C to that block; the bind replays the filter to C's callback, and C's ports/0/bpf offloaded id takes the B-bound program id.
The reported Sashiko review is at
https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20260809094418.901607-1-jhs@mojatatu.com
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾