CVE-2022-50213

netfilter: nf_tables: do not allow SET_ID to refer to another table

HIGH
7.8
CVSS Score
Published: June 18, 2025 at 11:03 AM UTC
Updated: August 5, 2026 at 09:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%

Description

In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_tables: do not allow SET_ID to refer to another table When doing lookups for sets on the same batch by using its ID, a set from a different table can be used. Then, when the table is removed, a reference to the set may be kept after the set is freed, leading to a potential use-after-free. When looking for sets by ID, use the table that was used for the lookup by name, and only return sets belonging to that same table. This fixes CVE-2022-2586, also reported as ZDI-CAN-17470.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

3.16 ≤ v < 4.19.2563.16 ≤ v < 5.10.1373.16 ≤ v < 5.15.613.16 ≤ v < 5.18.183.16 ≤ v < 5.19.23.16 ≤ v < 5.4.2113.16 ≤ v < 6.04.20 ≤ v < 5.4.2115.11 ≤ v < 5.15.615.16 ≤ v < 5.18.185.19 ≤ v < 5.19.25.5 ≤ v < 5.10.1373.16958bee14d0718ca7a5002c0f48a099d1d345812a
Vendor states this is fixed in 0d07039397527361850c554c192e749cfc879ea9 (fixed)
Vendor states this is fixed in 1a4b18b1ff11ba26f9a852019d674fde9d1d1cff (fixed)
Vendor states this is fixed in 470ee20e069a6d05ae549f7d0ef2bdbcee6a81b2 (fixed)
Vendor states this is fixed in 77d3b5038b7462318f5183e2ad704b01d57215a2 (fixed)
Vendor states this is fixed in f4fa03410f7c5f5bd8f90e9c11e9a8c4b526ff6f (fixed)
Vendor states this is fixed in faafd9286f1355c76fe9ac3021c280297213330e (fixed)
Vendor states this is fixed in fab2f61cc3b0e441b1749f017cfee75f9bbaded7 (fixed)
Vendor states this is fixed in 3.16 (unaffected)
Vendor states this is fixed in 4.19.256 (unaffected)
Vendor states this is fixed in 5.10.137 (unaffected)
Vendor states this is fixed in 5.15.61 (unaffected)
Vendor states this is fixed in 5.18.18 (unaffected)
Vendor states this is fixed in 5.19.2 (unaffected)
Vendor states this is fixed in 5.4.211 (unaffected)
Vendor states this is fixed in 6.0 (unaffected)

References (7)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0d07039397527361850c554c192e749cfc879ea9
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1a4b18b1ff11ba26f9a852019d674fde9d1d1cff
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/470ee20e069a6d05ae549f7d0ef2bdbcee6a81b2
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/77d3b5038b7462318f5183e2ad704b01d57215a2
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f4fa03410f7c5f5bd8f90e9c11e9a8c4b526ff6f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/faafd9286f1355c76fe9ac3021c280297213330e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/fab2f61cc3b0e441b1749f017cfee75f9bbaded7

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card