# CVE-2022-50000: netfilter: flowtable: fix stuck flows on cleanup due to pending work

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-06-18T11:00:59.959Z
- **Modified:** 2026-08-05T08:57:08.735Z

## Who should check

- Anyone running Linux \>= c29f74e0df7a02b8303bcdce93a7c0132d62577a, \< 8fbdec08dbf7d7ab8e35bdc65eb4394bc82d1e26; \>= c29f74e0df7a02b8303bcdce93a7c0132d62577a, \< 89e135a36a9eb81412b5459df94a80995ce62eef; \>= c29f74e0df7a02b8303bcdce93a7c0132d62577a, \< 9afb4b27349a499483ae0134282cefd0c90f480f
- Anyone running Linux 5.5

## Description

In the Linux kernel, the following vulnerability has been resolved:

netfilter: flowtable: fix stuck flows on cleanup due to pending work

To clear the flow table on flow table free, the following sequence
normally happens in order:

  1) gc\_step work is stopped to disable any further stats/del requests.
  2) All flow table entries are set to teardown state.
  3) Run gc\_step which will queue HW del work for each flow table entry.
  4) Waiting for the above del work to finish (flush).
  5) Run gc\_step again, deleting all entries from the flow table.
  6) Flow table is freed.

But if a flow table entry already has pending HW stats or HW add work
step 3 will not queue HW del work (it will be skipped), step 4 will wait
for the pending add/stats to finish, and step 5 will queue HW del work
which might execute after freeing of the flow table.

To fix the above, this patch flushes the pending work, then it sets the
teardown flag to all flows in the flowtable and it forces a garbage
collector run to queue work to remove the flows from hardware, then it
flushes this new pending work and (finally) it forces another garbage
collector run to remove the entry from the software flowtable.

Stack trace:
\[47773.882335\] BUG: KASAN: use-after-free in down\_read+0x99/0x460
\[47773.883634\] Write of size 8 at addr ffff888103b45aa8 by task kworker/u20:6/543704
\[47773.885634\] CPU: 3 PID: 543704 Comm: kworker/u20:6 Not tainted 5.12.0-rc7+ \#2
\[47773.886745\] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009)
\[47773.888438\] Workqueue: nf\_ft\_offload\_del flow\_offload\_work\_handler \[nf\_flow\_table\]
\[47773.889727\] Call Trace:
\[47773.890214\]  dump\_stack+0xbb/0x107
\[47773.890818\]  print\_address\_description.constprop.0+0x18/0x140
\[47773.892990\]  kasan\_report.cold+0x7c/0xd8
\[47773.894459\]  kasan\_check\_range+0x145/0x1a0
\[47773.895174\]  down\_read+0x99/0x460
\[47773.899706\]  nf\_flow\_offload\_tuple+0x24f/0x3c0 \[nf\_flow\_table\]
\[47773.907137\]  flow\_offload\_work\_handler+0x72d/0xbe0 \[nf\_flow\_table\]
\[47773.913372\]  process\_one\_work+0x8ac/0x14e0
\[47773.921325\]
\[47773.921325\] Allocated by task 592159:
\[47773.922031\]  kasan\_save\_stack+0x1b/0x40
\[47773.922730\]  \_\_kasan\_kmalloc+0x7a/0x90
\[47773.923411\]  tcf\_ct\_flow\_table\_get+0x3cb/0x1230 \[act\_ct\]
\[47773.924363\]  tcf\_ct\_init+0x71c/0x1156 \[act\_ct\]
\[47773.925207\]  tcf\_action\_init\_1+0x45b/0x700
\[47773.925987\]  tcf\_action\_init+0x453/0x6b0
\[47773.926692\]  tcf\_exts\_validate+0x3d0/0x600
\[47773.927419\]  fl\_change+0x757/0x4a51 \[cls\_flower\]
\[47773.928227\]  tc\_new\_tfilter+0x89a/0x2070
\[47773.936652\]
\[47773.936652\] Freed by task 543704:
\[47773.937303\]  kasan\_save\_stack+0x1b/0x40
\[47773.938039\]  kasan\_set\_track+0x1c/0x30
\[47773.938731\]  kasan\_set\_free\_info+0x20/0x30
\[47773.939467\]  \_\_kasan\_slab\_free+0xe7/0x120
\[47773.940194\]  slab\_free\_freelist\_hook+0x86/0x190
\[47773.941038\]  kfree+0xce/0x3a0
\[47773.941644\]  tcf\_ct\_flow\_table\_cleanup\_work

Original patch description and stack trace by Paul Blakey.

## Affected and fixed versions

- Linux: \>= c29f74e0df7a02b8303bcdce93a7c0132d62577a, \< 8fbdec08dbf7d7ab8e35bdc65eb4394bc82d1e26; \>= c29f74e0df7a02b8303bcdce93a7c0132d62577a, \< 89e135a36a9eb81412b5459df94a80995ce62eef; \>= c29f74e0df7a02b8303bcdce93a7c0132d62577a, \< 9afb4b27349a499483ae0134282cefd0c90f480f (cvelist)
- Linux: 5.5 (cvelist)

## Mitigation

- Upgrade Linux to 9afb4b27349a499483ae0134282cefd0c90f480f or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-50000. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50000.md
Affected: Linux >= c29f74e0df7a02b8303bcdce93a7c0132d62577a, < 8fbdec08dbf7d7ab8e35bdc65eb4394bc82d1e26; >= c29f74e0df7a02b8303bcdce93a7c0132d62577a, < 89e135a36a9eb81412b5459df94a80995ce62eef; >= c29f74e0df7a02b8303bcdce93a7c0132d62577a, < 9afb4b27349a499483ae0134282cefd0c90f480f; Linux 5.5
Fixed in: Linux 8fbdec08dbf7d7ab8e35bdc65eb4394bc82d1e26, Linux 89e135a36a9eb81412b5459df94a80995ce62eef, Linux 9afb4b27349a499483ae0134282cefd0c90f480f

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-50000 being exploited?

There is no confirmed exploitation: CVE-2022-50000 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-50000?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-50000?

Linux \>= c29f74e0df7a02b8303bcdce93a7c0132d62577a, \< 8fbdec08dbf7d7ab8e35bdc65eb4394bc82d1e26; \>= c29f74e0df7a02b8303bcdce93a7c0132d62577a, \< 89e135a36a9eb81412b5459df94a80995ce62eef; \>= c29f74e0df7a02b8303bcdce93a7c0132d62577a, \< 9afb4b27349a499483ae0134282cefd0c90f480f; Linux 5.5.

### Is there a fix for CVE-2022-50000?

Yes. Fixed in Linux 8fbdec08dbf7d7ab8e35bdc65eb4394bc82d1e26, Linux 89e135a36a9eb81412b5459df94a80995ce62eef, Linux 9afb4b27349a499483ae0134282cefd0c90f480f. Upgrade Linux to 9afb4b27349a499483ae0134282cefd0c90f480f or later.

### How do I check if I'm affected by CVE-2022-50000?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/8fbdec08dbf7d7ab8e35bdc65eb4394bc82d1e26>
- patch: <https://git.kernel.org/stable/c/89e135a36a9eb81412b5459df94a80995ce62eef>
- patch: <https://git.kernel.org/stable/c/9afb4b27349a499483ae0134282cefd0c90f480f>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50000>

HTML: <https://flawdb.com/CVE-2022-50000> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50000>
