netfilter: bridge: release template ct on non-IP path
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 3c171f496ef57774f8e5d509923372549734877f · < c58d34fe8b7e47bb0b350a7625023b1261342be5| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
netfilter: bridge: release template ct on non-IP path
A bridge nftables ct zone set rule can attach a conntrack template to an skb before nf_ct_bridge_pre() sees it. For non-IPv4 and non-IPv6 EtherTypes, nf_ct_bridge_pre() currently overwrites skb->_nfct with IP_CT_UNTRACKED without releasing the existing template reference.
That makes the per-cpu template, and any temporary templates allocated for concurrent use, unreachable and leaks memory until the host runs out of slab.
Reset the skb conntrack state before marking the frame untracked so the existing template reference is dropped on the non-IP path.
From the CVE record · Linux
In the Linux kernel, a bridge nftables conntrack zone rule can attach a template that is not released when a non-IPv4, non-IPv6 frame takes the non-IP path. Repeated leaks can exhaust host slab memory. The input does not specify authentication requirements or user interaction.
Engineers running Linux kernels with bridge nftables conntrack zone rules should check their systems; affected versions are not specified.