Advisory

UBUNTU-CVE-2022-50000

Also known as: CVE-2022-50000

Summary

The record has no summary.

Details

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

Medium Basis: CVSS v3 score 5.5, vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2025-06-18 11:15 UTC
Modified
2026-11-17 11:21 UTC

Affected packages and fixes

103 affected packages
PackageSystemAffectedFix
linux-hwe-edgeDebian packages (deb) · Ubuntu 16.04introduced 0No fixed version is listed.
linux-aws-5.0Debian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-aws-5.3Debian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-azureDebian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-azure-5.3Debian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-azure-edgeDebian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-gcpDebian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-gcp-5.3Debian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-gke-4.15Debian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-gke-5.4Debian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-gkeop-5.4Debian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-hweDebian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-hwe-edgeDebian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-oemDebian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-oracle-5.0Debian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-oracle-5.3Debian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-aws-5.15Debian packages (deb) · Ubuntu 20.04Earlier versionssudo apt-get update && sudo apt-get upgrade
linux-azure-5.15Debian packages (deb) · Ubuntu 20.04Earlier versionssudo apt-get update && sudo apt-get upgrade
linux-gcp-5.15Debian packages (deb) · Ubuntu 20.04Earlier versionssudo apt-get update && sudo apt-get upgrade
linux-hwe-5.15Debian packages (deb) · Ubuntu 20.04Earlier versionssudo apt-get update && sudo apt-get upgrade
linux-intel-iotg-5.15Debian packages (deb) · Ubuntu 20.04Earlier versionssudo apt-get update && sudo apt-get upgrade
linux-lowlatency-hwe-5.15Debian packages (deb) · Ubuntu 20.04Earlier versionssudo apt-get update && sudo apt-get upgrade
linux-oracle-5.15Debian packages (deb) · Ubuntu 20.04Earlier versionssudo apt-get update && sudo apt-get upgrade
linux-riscv-5.15Debian packages (deb) · Ubuntu 20.04Earlier versionssudo apt-get update && sudo apt-get upgrade
linux-aws-5.11Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-aws-5.13Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-aws-5.8Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-azure-5.11Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-azure-5.13Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-azure-5.8Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-azure-fdeDebian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-gcp-5.11Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-gcp-5.13Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-gcp-5.8Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-gkeDebian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-gke-5.15Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-gkeopDebian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-gkeop-5.15Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-hwe-5.11Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-hwe-5.13Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-hwe-5.8Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-intel-5.13Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-oem-5.10Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-oem-5.13Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-oem-5.14Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-oem-5.6Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-oracle-5.11Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-oracle-5.13Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-oracle-5.8Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-raspi2Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-riscvDebian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-riscv-5.11Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-riscv-5.8Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linuxDebian packages (deb) · Ubuntu 22.04Earlier versionssudo apt-get update && sudo apt-get upgrade
linux-allwinner-5.19Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-awsDebian packages (deb) · Ubuntu 22.04Earlier versionssudo apt-get update && sudo apt-get upgrade
linux-aws-5.19Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-aws-6.2Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-aws-6.5Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-azureDebian packages (deb) · Ubuntu 22.04Earlier versionssudo apt-get update && sudo apt-get upgrade
linux-azure-5.19Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-azure-6.2Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-azure-6.5Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-azure-fdeDebian packages (deb) · Ubuntu 22.04Earlier versionssudo apt-get update && sudo apt-get upgrade
linux-azure-fde-5.19Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-azure-fde-6.2Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-gcpDebian packages (deb) · Ubuntu 22.04Earlier versionssudo apt-get update && sudo apt-get upgrade
linux-gcp-5.19Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-gcp-6.2Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-gcp-6.5Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-gkeDebian packages (deb) · Ubuntu 22.04Earlier versionssudo apt-get update && sudo apt-get upgrade
linux-gkeopDebian packages (deb) · Ubuntu 22.04Earlier versionssudo apt-get update && sudo apt-get upgrade
linux-hwe-5.19Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-hwe-6.2Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-hwe-6.5Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-ibmDebian packages (deb) · Ubuntu 22.04Earlier versionssudo apt-get update && sudo apt-get upgrade
linux-intel-iot-realtimeDebian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-intel-iotgDebian packages (deb) · Ubuntu 22.04Earlier versionssudo apt-get update && sudo apt-get upgrade
linux-kvmDebian packages (deb) · Ubuntu 22.04Earlier versionssudo apt-get update && sudo apt-get upgrade
linux-lowlatencyDebian packages (deb) · Ubuntu 22.04Earlier versionssudo apt-get update && sudo apt-get upgrade
linux-lowlatency-hwe-5.19Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-lowlatency-hwe-6.2Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-lowlatency-hwe-6.5Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-nvidiaDebian packages (deb) · Ubuntu 22.04Earlier versionssudo apt-get update && sudo apt-get upgrade
linux-nvidia-6.2Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-nvidia-6.5Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-oem-5.17Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-oem-6.0Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-oem-6.1Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-oem-6.5Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-oracleDebian packages (deb) · Ubuntu 22.04Earlier versionssudo apt-get update && sudo apt-get upgrade
linux-oracle-6.5Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-raspiDebian packages (deb) · Ubuntu 22.04Earlier versionssudo apt-get update && sudo apt-get upgrade
linux-realtimeDebian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-riscvDebian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-riscv-5.19Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-riscv-6.5Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-starfive-5.19Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-starfive-6.2Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-starfive-6.5Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-raspi-realtimeDebian packages (deb) · Ubuntu 24.04introduced 0No fixed version is listed.
linux-realtimeDebian packages (deb) · Ubuntu 24.04introduced 0No fixed version is listed.
linux-riscvDebian packages (deb) · Ubuntu 24.04introduced 0No fixed version is listed.

Some commands upgrade the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences