Linux
bpf: Fix tcx/netkit detach permissions when prog fd isn't given
In the Linux kernel, the following vulnerability has been resolved: bpf: Fix tcx/netkit detach permissions when prog fd isn't given This commit fixes a security issue where BPF_PROG_DETACH on tcx or netkit devices could be executed by any user when no program fd was provided, bypassing permission checks. The fix adds a capability check for CAP_NET_ADMIN or CAP_SYS_ADMIN in this case.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= e420bed025071a623d2720a92bc2245c84757ecb, < 8e1623e7d61faf16cbadc80550da874303611ff5
- >= e420bed025071a623d2720a92bc2245c84757ecb, < 0c249f523175963b0a746bba673ecebdf6cefd86
- >= e420bed025071a623d2720a92bc2245c84757ecb, < 4e0772cded109c238411f2fac36ac39302758b81
- >= e420bed025071a623d2720a92bc2245c84757ecb, < 3f04cc1e5374da4c5e791ae010a06cfea7bacbe6
- >= e420bed025071a623d2720a92bc2245c84757ecb, < ae23bc81ddf7c17b663c4ed1b21e35527b0a7131
Fixed in 8e1623e7d61faf16cbadc80550da874303611ff5, 0c249f523175963b0a746bba673ecebdf6cefd86, 4e0772cded109c238411f2fac36ac39302758b81, 3f04cc1e5374da4c5e791ae010a06cfea7bacbe6, ae23bc81ddf7c17b663c4ed1b21e35527b0a7131
- 6.6
Fixed in 0, 6.6.160, 6.12.114, 6.18.14, 6.19.4, 7.0
Mitigation
Upgrade Linux to 8e1623e7d61faf16cbadc80550da874303611ff5 or 0c249f523175963b0a746bba673ecebdf6cefd86 or 4e0772cded109c238411f2fac36ac39302758b81 or 3f04cc1e5374da4c5e791ae010a06cfea7bacbe6 or ae23bc81ddf7c17b663c4ed1b21e35527b0a7131 or later.
Upgrade Linux to 0 or 6.6.160 or 6.12.114 or 6.18.14 or 6.19.4 or 7.0 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.