netfilter: nf_queue: fix possible use-after-free
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 271b72c7fa82c2c7a795bc16896149933110672d · < dd648bd1b33a828f62befa696b206c688da0ec43| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nf_queue: fix possible use-after-free
Eric Dumazet says: The sock_hold() side seems suspect, because there is no guarantee that sk_refcnt is not already 0.
On failure, we cannot queue the packet and need to indicate an error. The packet will be dropped by the caller.
v2: split skb prefetch hunk into separate change
From the CVE record · Linux
The Linux kernel's netfilter nf_queue code may use a socket after it has been freed when its reference count is already zero. If the packet cannot be queued, the caller drops it. The input does not specify the required access, authentication, user interaction, or what an attacker could achieve.
Engineers running Linux kernels with netfilter nf_queue should check their kernel versions; affected versions were not provided.