net/sched: cls_bpf: reject dev-bound programs bound to a different device
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.6.153, 6.12.105, 6.18.46, 7.1.10
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
In the Linux kernel, the following vulnerability has been resolved: net/sched: cls_bpf: reject dev-bound programs bound to a different device cls_bpf_prog_from_efd() obtained a SCHED_CLS program via bpf_prog_get_type_dev() but never verified that a device-bound (offloaded) program's bound netdev matches the TC netdev the classifier is being attached to. This let a program loaded with prog_ifindex for device A be attached via cls_bpf + skip_sw to device B; deleting device A then destroyed the program's offload state while it was still attached to device B, triggering a netdevsim WARN (panic with panic_on_warn=1). Mirror the XDP attach path (net/core/dev.c) and reject the attach with -EINVAL when a dev-bound program's bound device does not match the target device.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From 2b3486bc2d237ec345b3942b7be5deabf8c8fed1 · fixed in ec5a552f4b2d841c6c021752450716e1a9676661; From 2b3486bc2d237ec345b3942b7be5deabf8c8fed1 · fixed in daf546ab5763ce6a18280cb4db060e836c515301; From 2b3486bc2d237ec345b3942b7be5deabf8c8fed1 · fixed in adb3e7c26a51a10d94a241c6de7a81a2863dcacf; From 2b3486bc2d237ec345b3942b7be5deabf8c8fed1 · fixed in 5685bbbd3cbfbeb0de96a1d275a5ca073dfebb5e; From 2b3486bc2d237ec345b3942b7be5deabf8c8fed1 · fixed in 120977e2c096deea4e866e4273be9220b957c29e
- Linux Linux
6.3
- KernelLinux
From 6.3.0 · fixed in 6.6.153; From 6.7.0 · fixed in 6.12.105; From 6.13.0 · fixed in 6.18.46; From 6.19.0 · fixed in 7.1.10