Linux
netfilter: bridge: release template ct on non-IP path
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 3c171f496ef57774f8e5d509923372549734877f, < fc90df37540627d092af770215fb4b7befe9409b
- >= 3c171f496ef57774f8e5d509923372549734877f, < daa6e070f8e1e7a4dddec8b64ca37663f8cda917
- >= 3c171f496ef57774f8e5d509923372549734877f, < bd7b16494dacf87e9336a1dcfdada83b9e40edd6
- >= 3c171f496ef57774f8e5d509923372549734877f, < 6ea88401e10e04e0b3bb7a7adea54932fb60b93b
- >= 3c171f496ef57774f8e5d509923372549734877f, < 46d559f00b1ab1d114f92d2f16c5ef0093b3b9dd
- >= 3c171f496ef57774f8e5d509923372549734877f, < c58d34fe8b7e47bb0b350a7625023b1261342be5
- >= 3c171f496ef57774f8e5d509923372549734877f, < 7cff440d702616022769f2643168d7f9820547a0
- >= 3c171f496ef57774f8e5d509923372549734877f, < d45cc8020d7c0a9f01dee42ff5c40bc14c9af72f
Fixed in fc90df37540627d092af770215fb4b7befe9409b, daa6e070f8e1e7a4dddec8b64ca37663f8cda917, bd7b16494dacf87e9336a1dcfdada83b9e40edd6, 6ea88401e10e04e0b3bb7a7adea54932fb60b93b, 46d559f00b1ab1d114f92d2f16c5ef0093b3b9dd, c58d34fe8b7e47bb0b350a7625023b1261342be5, 7cff440d702616022769f2643168d7f9820547a0, d45cc8020d7c0a9f01dee42ff5c40bc14c9af72f
- 5.3
Fixed in 0, 5.10.265, 5.15.216, 6.1.183, 6.6.152, 6.12.104, 6.18.45, 7.1.9, 7.2
Mitigation
Upgrade Linux to fc90df37540627d092af770215fb4b7befe9409b or daa6e070f8e1e7a4dddec8b64ca37663f8cda917 or bd7b16494dacf87e9336a1dcfdada83b9e40edd6 or 6ea88401e10e04e0b3bb7a7adea54932fb60b93b or 46d559f00b1ab1d114f92d2f16c5ef0093b3b9dd or c58d34fe8b7e47bb0b350a7625023b1261342be5 or 7cff440d702616022769f2643168d7f9820547a0 or d45cc8020d7c0a9f01dee42ff5c40bc14c9af72f or later.
Upgrade Linux to 0 or 5.10.265 or 5.15.216 or 6.1.183 or 6.6.152 or 6.12.104 or 6.18.45 or 7.1.9 or 7.2 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.