Root escalation via cross-table SET_ID lookup
Published Jun 18, 2025 · Updated Aug 5, 2026
Use-after-free in Linux kernel 3.16 through 5.19.1 allows local users to gain root privileges through crafted nftables batches. nft_set_lookup_byid accepts a SET_ID for a set owned by another table, so deleting that table frees objects while references remain reachable from the second table. Exploitation requires CAP_NET_ADMIN, obtainable through enabled unprivileged user and network namespaces, and can also disclose kernel memory or crash the host.
Summary
What happened
Use-after-free in Linux kernel 3.16 through 5.19.1 allows local users to gain root privileges through crafted nftables batches. nft_set_lookup_byid accepts a SET_ID for a set owned by another table, so deleting that table frees objects while references remain reachable from the second table. Exploitation requires CAP_NET_ADMIN, obtainable through enabled unprivileged user and network namespaces, and can also disclose kernel memory or crash the host.
The record
- CVE
- CVE-2022-50213
- Published
- Jun 18, 2025
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-416, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Jun 18, 2025CVE publishedPublication date reported by the CVE source.
- Aug 5, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=3.16
- Affected versionversion=958bee14d0718ca7a5002c0f48a099d1d345812a <0d07039397527361850c554c192e749cfc879ea9
- Affected versionversion=958bee14d0718ca7a5002c0f48a099d1d345812a <1a4b18b1ff11ba26f9a852019d674fde9d1d1cff
- Affected versionversion=958bee14d0718ca7a5002c0f48a099d1d345812a <470ee20e069a6d05ae549f7d0ef2bdbcee6a81b2
- Affected versionversion=958bee14d0718ca7a5002c0f48a099d1d345812a <77d3b5038b7462318f5183e2ad704b01d57215a2
- Affected versionversion=958bee14d0718ca7a5002c0f48a099d1d345812a <f4fa03410f7c5f5bd8f90e9c11e9a8c4b526ff6f
- Affected versionversion=958bee14d0718ca7a5002c0f48a099d1d345812a <faafd9286f1355c76fe9ac3021c280297213330e
- Affected versionversion=958bee14d0718ca7a5002c0f48a099d1d345812a <fab2f61cc3b0e441b1749f017cfee75f9bbaded7
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
- N-day Linux kernel nft_object use-after-free exploitfunctional · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Reported exploitation
- CISA Known Exploited Vulnerabilities listingknown exploited catalog
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo