netfilter: nfnetlink_queue: fix entry leak in bridge verdict error path
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 5.10.253, Kernel 5.15.203, Kernel 6.1.167 and 12 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=4.7 <5.10.253, >=5.11 <5.15.203, >=5.16 <6.1.167, >=6.13 <6.18.19, >=6.19 <6.19.9, >=6.2 <6.6.130, >=6.7 <6.12.78, =7.0, >=8d45ff22f1b43249f0cf1baafe0262ca10d1666e <208669df703a25a601f45822b10c413f258bf275, >=8d45ff22f1b43249f0cf1baafe0262ca10d1666e <47b1c5d1b0944aa88299f55a846fabaefc756982, >=8d45ff22f1b43249f0cf1baafe0262ca10d1666e <9853d94b82d303fc4ac37d592a23a154096ecd41, >=8d45ff22f1b43249f0cf1baafe0262ca10d1666e <a907bea273b60d3e604ec4e8e1f6c49954805794, >=8d45ff22f1b43249f0cf1baafe0262ca10d1666e <b38d2b4603fd3dda24eb8b3dd81c18a0930be97b, >=8d45ff22f1b43249f0cf1baafe0262ca10d1666e <cf4a4df38d1747e06fc54f9879bd7a6f4178032f, >=8d45ff22f1b43249f0cf1baafe0262ca10d1666e <f1ba83755d81c6fc66ac7acd723d238f974091e9, =4.7, >=8d45ff22f1b43249f0cf1baafe0262ca10d1666e <0b18d1b834ab5a5009be70b530f978d7989e445b | 5.10.253, 5.15.203, 6.1.167, 6.18.19, 6.19.9, 6.6.130, 6.12.78, 208669df703a25a601f45822b10c413f258bf275, 47b1c5d1b0944aa88299f55a846fabaefc756982, 9853d94b82d303fc4ac37d592a23a154096ecd41, a907bea273b60d3e604ec4e8e1f6c49954805794, b38d2b4603fd3dda24eb8b3dd81c18a0930be97b, cf4a4df38d1747e06fc54f9879bd7a6f4178032f, f1ba83755d81c6fc66ac7acd723d238f974091e9, 0b18d1b834ab5a5009be70b530f978d7989e445b |
| linux-kernel: Kernel | >=4.7.0 <5.10.253, >=5.11.0 <5.15.203, >=5.16.0 <6.1.167, >=6.13.0 <6.18.19, >=6.19.0 <6.19.9, >=6.2.0 <6.6.130, >=6.7.0 <6.12.78 | 5.10.253, 5.15.203, 6.1.167, 6.18.19, 6.19.9, 6.6.130, 6.12.78 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket