cve.bz

CVE-2022-50000 linux linux kernel: Use After Free

5.5 mediumEPSS 0.3%Fix available

Medium (5.5) in linux linux kernel. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 18th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-50000 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-50000?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-50000?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-50000 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linux5.5 and later

Fixed in

ProductRelease lineFixed in
Linux5.155.15.64
Linux5.195.19.6
Linuxlater releases6.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14linux5.19.6-1DEBIAN-CVE-2022-50000
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2022-50000
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2022-50000
Ubuntu20.04:LTSlinux-aws-5.15, linux-riscv-5.155.15.0-1023.27~20.04.1UBUNTU-CVE-2022-50000
Ubuntu20.04:LTSlinux-azure-5.155.15.0-1023.29~20.04.1UBUNTU-CVE-2022-50000
Ubuntu20.04:LTSlinux-gcp-5.155.15.0-1022.29~20.04.1UBUNTU-CVE-2022-50000
Ubuntu20.04:LTSlinux-gke, linux-gkeop, linux-riscv and 26 moreno fix listedUBUNTU-CVE-2022-50000
Ubuntu20.04:LTSlinux-hwe-5.15, linux-lowlatency-hwe-5.155.15.0-53.59~20.04.1UBUNTU-CVE-2022-50000
Ubuntu20.04:LTSlinux-intel-iotg-5.155.15.0-1018.23~20.04.1UBUNTU-CVE-2022-50000
Ubuntu20.04:LTSlinux-oracle-5.155.15.0-1022.28~20.04.1UBUNTU-CVE-2022-50000
Ubuntu22.04:LTSlinux, linux-lowlatency5.15.0-53.59UBUNTU-CVE-2022-50000
Ubuntu22.04:LTSlinux-aws5.15.0-1023.27UBUNTU-CVE-2022-50000
Ubuntu22.04:LTSlinux-azure5.15.0-1023.29UBUNTU-CVE-2022-50000
14 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:8::baseosperf, kernel, bpftool and 30 more0:4.18.0-425.10.1.el8_7RHSA-2023:0101
Red Hatenterprise_linux:8::baseosperf, kernel, bpftool and 30 more0:4.18.0-477.10.1.el8_8RHSA-2023:2951
Red Hatenterprise_linux:8::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-425.10.1.el8_7RHSA-2023:0101
Red Hatenterprise_linux:8::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-477.10.1.el8_8RHSA-2023:2951
Red Hatenterprise_linux:9::appstreamperf, kernel-doc, kernel-devel and 16 more0:5.14.0-162.6.1.el9_1RHSA-2022:8267
Red Hatenterprise_linux:9::baseoskernel, bpftool, kernel-core and 25 more0:5.14.0-162.6.1.el9_1RHSA-2022:8267
Red Hatenterprise_linux:9::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 9 more0:5.14.0-162.6.1.el9_1RHSA-2022:8267
Red Hatrhel_aus:8.4::baseos, rhel_eus_long_life:8.4::baseosperf, kernel, bpftool and 20 more0:4.18.0-305.172.1.el8_4RHSA-2025:15660
Red Hatrhel_eus:9.0::appstreamperf, kernel-doc, kernel-devel and 16 more0:5.14.0-70.43.1.el9_0RHSA-2023:0512
Red Hatrhel_eus:9.0::baseoskernel, bpftool, kernel-core and 25 more0:5.14.0-70.43.1.el9_0RHSA-2023:0512
Red Hatrhel_eus:9.0::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 9 more0:5.14.0-70.43.1.el9_0RHSA-2023:0512

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability has been rated as having a Moderate impact for Red Hat Enterprise Linux because triggering the flaw requires local execution privileges to manipulate traffic control rules or flow tables, alongside complex race timing during asynchronous cleanup. The issue stems from improperly synchronized teardown of hardware-offloaded flow table entries, potentially resulting in a kernel use-after-free condition and subsequent system denial of service. Standard installations do not enable hardware flow table offloading by default, substantially reducing exposure for typical deployments.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8kernel-0:4.18.0-425.10.1.el8_7Fixed 2023-01-12RHSA-2023:0101
Red Hat Enterprise Linux 8kernel-0:4.18.0-477.10.1.el8_8Fixed 2023-05-16RHSA-2023:2951
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportkernel-0:4.18.0-305.172.1.el8_4Fixed 2025-09-11RHSA-2025:15660
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onkernel-0:4.18.0-305.172.1.el8_4Fixed 2025-09-11RHSA-2025:15660
Red Hat Enterprise Linux 9kernel-0:5.14.0-162.6.1.el9_1Fixed 2022-11-15RHSA-2022:8267
Red Hat Enterprise Linux 9.0 Extended Update Supportkernel-0:5.14.0-70.43.1.el9_0Fixed 2023-01-30RHSA-2023:0512
Red Hat Enterprise Linux 10kernelNot affected
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 8kernel-rtAffected
Red Hat Enterprise Linux 9kernel-rtNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-50000.

References

Check your stackJSON