netfilter: revalidate bridge ports
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 6.12.94, Kernel 6.18.36, Kernel 7.0.13 and 8 more.
In the Linux kernel, the following vulnerability has been resolved: netfilter: revalidate bridge ports ebt_redirect_tg() dereferences br_port_get_rcu() return without a NULL check, causing a kernel panic when the bridge port has been removed between the original hook invocation and an NFQUEUE reinject. A mere NULL check isn't sufficient, however. As sashiko review points out userspace can not only remove the port from the bridge, it could also place the device in a different virtual device, e.g. macvlan. If this happens, we must drop the packet, there is no way for us to reinject it into the bridge path. Switch to _upper API, we don't need the bridge port structure. Also, this fix keeps another bug intact: Both nfnetlink_log and nfnetlink_queue use CONFIG_BRIDGE_NETFILTER too aggressive, which prevents certain logging features when queueing in bridge family: NETFILTER_FAMILY_BRIDGE can be enabled while the old CONFIG_BRIDGE_NETFILTER cruft is off. Fixes tag is a common ancestor, this was always broken.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=2.6.36 <6.12.94, >=6.13 <6.18.36, >=6.19 <7.0.13, =7.1, >=f350a0a87374418635689471606454abc7beaa3a <4beffcd726e2a731cea4dc18e1fbc55c8d76f1a0, >=f350a0a87374418635689471606454abc7beaa3a <98cc0403f546c52104d654fa24d86e9bcac964d3, >=f350a0a87374418635689471606454abc7beaa3a <a1c12915d2502aff00df82f4ccb8c214f956129d, >=f350a0a87374418635689471606454abc7beaa3a <ccb9fd4b87538ccf19ccff78ee26700526d94867, >=f350a0a87374418635689471606454abc7beaa3a <d4b1301fd3c9e5e105fd3767c68bc4ba558bb228, =2.6.36, >=f350a0a87374418635689471606454abc7beaa3a <43330a1e8aace6b5a8de9aba127e9e394ab49b0f | 6.12.94, 6.18.36, 7.0.13, 4beffcd726e2a731cea4dc18e1fbc55c8d76f1a0, 98cc0403f546c52104d654fa24d86e9bcac964d3, a1c12915d2502aff00df82f4ccb8c214f956129d, ccb9fd4b87538ccf19ccff78ee26700526d94867, d4b1301fd3c9e5e105fd3767c68bc4ba558bb228, 43330a1e8aace6b5a8de9aba127e9e394ab49b0f |
| linux-kernel: Kernel | >=2.6.36 <6.1.191, >=6.13.0 <6.18.36, >=6.19.0 <7.0.13, >=6.2.0 <6.6.160, >=6.7.0 <6.12.94 | 6.1.191, 6.18.36, 7.0.13, 6.6.160, 6.12.94 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket