netfilter: nfnetlink_queue: fix entry leak in bridge verdict error path
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 8d45ff22f1b43249f0cf1baafe0262ca10d1666e · < 9853d94b82d303fc4ac37d592a23a154096ecd41| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nfnetlink_queue: fix entry leak in bridge verdict error path
nfqnl_recv_verdict() calls find_dequeue_entry() to remove the queue entry from the queue data structures, taking ownership of the entry. For PF_BRIDGE packets, it then calls nfqa_parse_bridge() to parse VLAN attributes. If nfqa_parse_bridge() returns an error (e.g. NFQA_VLAN present but NFQA_VLAN_TCI missing), the function returns immediately without freeing the dequeued entry or its sk_buff.
This leaks the nf_queue_entry, its associated sk_buff, and all held references (net_device refcounts, struct net refcount). Repeated triggering exhausts kernel memory.
Fix this by dropping the entry via nfqnl_reinject() with NF_DROP verdict on the error path, consistent with other error handling in this file.
From the CVE record · Linux
The Linux kernel’s nfnetlink_queue leaks a dequeued entry, its packet buffer, and held references when parsing VLAN attributes in a PF_BRIDGE verdict fails. Repeatedly triggering this error can exhaust kernel memory. The input does not specify the access or authentication needed to trigger it.
Engineers running the Linux kernel should check affected versions against the vendor advisory; no version range is provided.