Security Advisory

CVE-2022-2586: Linux nf_tables Cross-Table UAF

Last updated:
  • CVE-2022-2586

CVE-2022-2586 is a use-after-free (CWE-416) in the Linux kernel's nf_tables, where an object could reference a set in another table that is later deleted. A local user can escalate privileges. NVD scores it 7.8 and CISA lists it as exploited. Fixed in 5.15.61, 5.10.137 and 5.4.211; Siemens SCALANCE XCM-300 switches in V2.4.

Vulnerability summary

CVSS base score

7.8

High severity

EPSS score (FIRST)

10.2%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

Yes

Listed as known exploited

Published

Vulnerability ID: CVE-2022-2586 · Source: NVD

Affected components

ComponentCPEVersion range
Linux kernel (netfilter nf_tables, CONFIG_NF_TABLES)cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*3.16 to before 4.14.316, 4.15 to before 4.19.256, 4.20 to before 5.4.211, 5.5 to before 5.10.137, 5.11 to before 5.15.61, 5.16 to before 5.18.18, 5.19 to before 5.19.2 (CVE record and NVD)
Siemens SCALANCE XCH328, XCM324, XCM328, XCM332, XRH334, XRM334 (all listed variants)—All versions before V2.4; update to V2.4 or later (Siemens SSA-806742)
Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem—All versions before V1.1; update to V1.1 or later; V1.0 no longer maintained (Siemens SSA-794697)

What does this mean for affected devices?

CVE-2022-2586 is a use-after-free (CWE-416) in nf_tables, the Linux kernel's nftables packet-filtering engine. Canonical, the CNA, describes it this way: "a nft object or expression could reference a nft set on a different nft table, leading to a use-after-free once that table was deleted." Trend Micro's Zero Day Initiative published it as ZDI-22-1118 on 2022-08-18: a local attacker who can already run low-privileged code can escalate to root. NVD's Primary score is 7.8, CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. Canonical's CNA score is lower, 5.3 (AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H), and ZDI scores it 8.8 (NVD, CVE record).

Which kernel versions are affected?

The CVE record lists Linux 3.16 onward as affected, with these first fixed releases per branch: 4.14.316, 4.19.256, 5.4.211, 5.10.137, 5.15.61, 5.18.18 and 5.19.2. NVD's CPE ranges match. The mainline fix includes commit 470ee20e069a, "netfilter: nf_tables: do not allow SET_ID to refer to another table", which changes net/netfilter/nf_tables_api.c. That file is part of nf_tables.o, so kernels built without CONFIG_NF_TABLES do not contain the flaw.

Which devices are affected?

Siemens ProductCERT lists CVE-2022-2586 in two industrial advisories. SSA-806742 (2024-02-13) covers the SCALANCE XCH328, XCM324, XCM328 and XCM332 managed switches and the XRH334 and XRM334 rack switch variants: all versions before V2.4 are affected, and Siemens recommends updating to V2.4 or later. SSA-794697 covers the GNU/Linux subsystem of the SIMATIC S7-1500 TM MFP technology module: all versions before V1.1 are affected, the fix is V1.1 or later, and Siemens states that V1.0 is no longer maintained. Siemens rates the flaw 6.7 for these products. Any other embedded Linux product with nf_tables on a kernel older than the fixed releases above is exposed in the same way. CVE-2024-1086 is a later KEV-listed use-after-free in the same nf_tables code.

How do you fix CVE-2022-2586?

On Siemens devices, install SCALANCE XCM-/XRM-300 firmware V2.4 or the S7-1500 TM MFP GNU/Linux subsystem V1.1 or later. For other products, move the kernel to at least the fixed release of its stable branch, such as 5.4.211, 5.10.137 or 5.15.61, or confirm that the vendor backported the nf_tables fix. Siemens also recommends protecting network access to the devices. For the general approach to use-after-free bugs in firmware, see how to fix memory corruption in embedded firmware, and for vendor kernels see the Linux kernel CVE triage guide.

Is CVE-2022-2586 exploited?

Yes. CISA added it to the KEV catalog on 2024-06-26 with a due date of 2024-07-17 and the required action "Apply updates per vendor instructions or discontinue use of the product if updates are unavailable"; known ransomware campaign use is listed as Unknown, as of 2026-11-25 (catalog version 2026.11.24). FIRST EPSS gives it 0.10202, the 95.7th percentile, in the 2026-11-24 dataset (CISA KEV, FIRST EPSS).

How to fix this class of issueThis advisory's weakness class is Memory corruption. Our practical guide covers how to detect, fix, verify and disclose it: How to fix memory corruption in embedded firmware.

Evidence

  • NVD: status Analyzed; [email protected] Primary CVSS 3.1 7.8 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H; [email protected] Secondary 5.3 AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H; CWE-416; CPE linux_kernel 3.16-4.14.316, 4.15-4.19.256, 4.20-5.4.211, 5.5-5.10.137, 5.11-5.15.61, 5.16-5.18.18, 5.19-5.19.2; published 2024-01-08; read 2026-11-25. — NVD
  • CVE record (CNA canonical, PUBLISHED): description quoted; affected linux 3.16 to <4.14.316 ... 5.19 to <5.19.2; CNA CVSS 3.1 5.3; CWE-416; finder Team Orca of Sea Security working with Trend Micro's Zero Day Initiative. — CVE.org
  • ZDI-22-1118 (ZDI-CAN-17470), published 2022-08-18: Linux Kernel nft_object Use-After-Free Privilege Escalation; ZDI CVSS 8.8; attacker must first be able to execute low-privileged code; reported 2022-05-25. — Zero Day Initiative
  • Mainline commit 470ee20e069a 'netfilter: nf_tables: do not allow SET_ID to refer to another table' by Thadeu Lima de Souza Cascardo (Canonical), 2022-08; changes net/netfilter/nf_tables_api.c. — Linux kernel git
  • Siemens SSA-806742 V1.0 (2024-02-13): SCALANCE XCH328 (6GK5328-4TS01-2EC2), XCM324 (6GK5324-8TS01-2AC2), XCM328 (6GK5328-4TS01-2AC2), XCM332 (6GK5332-0GA01-2AC2), XRH334 (24 V DC, 8xFO, CC) and six XRM334 variants, all versions < V2.4 affected incl. CVE-2022-2586 (CVSS 6.7); 'Update to V2.4 or later version'; general recommendation to protect network access to devices. — Siemens ProductCERT
  • Siemens SSA-794697 V1.9 (last update 2026-10-13): SIMATIC S7-1500 TM MFP - GNU/Linux subsystem all versions < V1.1 affected incl. CVE-2022-2586 (CVSS 6.7); update to V1.1 or later; 'SIMATIC S7-1500 TM MFP V1.0 is no longer maintained'. — Siemens ProductCERT
  • CISA KEV catalog version 2026.11.24: Linux Kernel Use-After-Free Vulnerability, dateAdded 2024-06-26, dueDate 2024-07-17, knownRansomwareCampaignUse Unknown, required action 'Apply updates per vendor instructions or discontinue use of the product if updates are unavailable.'; checked 2026-11-25. — CISA KEV
  • EPSS 0.10202, percentile 0.95747, dataset 2026-11-24, read 2026-11-25. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. CVE.org record CVE-2022-2586 (CNA: Canonical)
  3. Zero Day Initiative ZDI-22-1118
  4. Linux kernel mainline fix commit 470ee20e069a
  5. Siemens SSA-806742: SCALANCE XCM-/XRM-300 before V2.4
  6. Siemens SSA-794697: SIMATIC S7-1500 TM MFP GNU/Linux subsystem
  7. CISA KEV
  8. FIRST EPSS

Frequently asked questions

Which kernel versions fix CVE-2022-2586?

4.14.316, 4.19.256, 5.4.211, 5.10.137, 5.15.61, 5.18.18 and 5.19.2 on their stable branches; affected kernels start at 3.16 (per the CVE record and NVD).

Which Siemens products are affected by CVE-2022-2586?

SCALANCE XCH328, XCM324, XCM328, XCM332, XRH334 and XRM334 before V2.4 (fix: V2.4 or later), and the SIMATIC S7-1500 TM MFP GNU/Linux subsystem before V1.1 (fix: V1.1 or later; V1.0 is no longer maintained), per Siemens SSA-806742 and SSA-794697.

Why do the CVSS scores for CVE-2022-2586 differ?

NVD's Primary score is 7.8 with high confidentiality, integrity and availability impact. Canonical's CNA score is 5.3 with high attack complexity and no confidentiality impact, Siemens rates it 6.7 for its products, and ZDI gives 8.8 (per NVD, the CVE record, Siemens and ZDI).

Is CVE-2022-2586 exploited?

Yes. CISA added it to the KEV catalog on 2024-06-26 with a due date of 2024-07-17; ransomware use is listed as Unknown, as of 2026-11-25 (catalog version 2026.11.24, per CISA KEV).