Skip to content
OpenAdvisories
High · 7.8 CVE-2023-4206 EUVD-2023-54080GHSA-r8pm-459q-x6hw

Use-after-free in Linux kernel's net/sched: cls_route component

Published Sep 6, 2023 · Updated Feb 13, 2025 · Assigned by Google

Vendor: Linux Product: kernel Package: kernel Package: linux Package: linux Package: linux-allwinner-5.19 Package: linux-aws Package: linux-aws-5.0 Package: linux-aws-5.11 Package: linux-aws-5.13 Package: linux-aws-5.15 Package: linux-aws-5.19 Package: linux-aws-5.3 Package: linux-aws-5.4 Package: linux-aws-5.8 Package: linux-aws-6.2 Package: linux-aws-fips Package: linux-aws-hwe Package: linux-azure Package: linux-azure-4.15 Package: linux-azure-5.11 Package: linux-azure-5.13 Package: linux-azure-5.15 Package: linux-azure-5.19 Package: linux-azure-5.3 Package: linux-azure-5.4 Package: linux-azure-5.8 Package: linux-azure-6.2 Package: linux-azure-edge Package: linux-azure-fde Package: linux-azure-fde-5.19 Package: linux-azure-fips Package: linux-bluefield Package: linux-fips Package: linux-gcp Package: linux-gcp-4.15 Package: linux-gcp-5.11 Package: linux-gcp-5.13 Package: linux-gcp-5.15 Package: linux-gcp-5.19 Package: linux-gcp-5.3 Package: linux-gcp-5.4 Package: linux-gcp-5.8 Package: linux-gcp-6.2 Package: linux-gcp-fips Package: linux-gke Package: linux-gke-4.15 Package: linux-gke-5.15 Package: linux-gke-5.4 Package: linux-gkeop Package: linux-gkeop-5.15 Package: linux-gkeop-5.4 Package: linux-hwe Package: linux-hwe-5.11 Package: linux-hwe-5.13 Package: linux-hwe-5.15 Package: linux-hwe-5.19 Package: linux-hwe-5.4 Package: linux-hwe-5.8 Package: linux-hwe-6.2 Package: linux-hwe-edge Package: linux-ibm Package: linux-ibm-5.15 Package: linux-ibm-5.4 Package: linux-intel-5.13 Package: linux-intel-iot-realtime Package: linux-intel-iotg Package: linux-intel-iotg-5.15 Package: linux-iot Package: linux-kvm Package: linux-lowlatency Package: linux-lowlatency-hwe-5.15 Package: linux-lowlatency-hwe-5.19 Package: linux-lowlatency-hwe-6.2 Package: linux-lts-xenial Package: linux-nvidia Package: linux-nvidia-6.2 Package: linux-nvidia-tegra Package: linux-nvidia-tegra-5.15 Package: linux-nvidia-tegra-igx Package: linux-oem Package: linux-oem-5.10 Package: linux-oem-5.13 Package: linux-oem-5.14 Package: linux-oem-5.17 Package: linux-oem-5.6 Package: linux-oem-6.0 Package: linux-oem-6.1 Package: linux-oracle Package: linux-oracle-5.0 Package: linux-oracle-5.11 Package: linux-oracle-5.13 Package: linux-oracle-5.15 Package: linux-oracle-5.3 Package: linux-oracle-5.4 Package: linux-oracle-5.8 Package: linux-raspi Package: linux-raspi-5.4 Package: linux-raspi-realtime Package: linux-raspi2 Package: linux-realtime Package: linux-riscv Package: linux-riscv-5.11 Package: linux-riscv-5.15 Package: linux-riscv-5.19 Package: linux-riscv-5.8 Package: linux-starfive-5.19 Package: linux-vmware Package: linux-xilinx-zynqmp Platform: Linux Ecosystem: Azure Linux Ecosystem: Debian Ecosystem: Ubuntu

Description

A use-after-free vulnerability in the Linux kernel's net/sched: cls_route component can be exploited to achieve local privilege escalation.

When route4_change() is called on an existing filter, the whole tcf_result struct is always copied into the new instance of the filter. This causes a problem when updating a filter bound to a class, as tcf_unbind_filter() is always called on the old instance in the success path, decreasing filter_cnt of the still referenced class and allowing it to be deleted, leading to a use-after-free.

We recommend upgrading past commit b80b829e9e2c1b3f7aae34855e04d8f6ecaf13c8.

Affected products

VendorProductAffectedFixed
Linux Kernel 3.18 – < 6.5 6.5

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 linux 6.4.11-1 —
Debian 13 linux 6.4.11-1 —
Debian 12 linux 6.1.52-1 DSA-5492-1
Debian 10 linux 4.19.304-1 DLA-3710-1
ReleasePackageFixed inAdvisory
Ubuntu Nvidia-BlueField 22.04 LTS linux-bluefield 5.15.0-1024.26 —
Ubuntu 24.04 LTS linux-raspi-realtime No fix yet —
Ubuntu 22.04 LTS linux +1 5.15.0-84.93 —
Ubuntu 22.04 LTS linux-aws 5.15.0-1045.50 —
Ubuntu 22.04 LTS linux-aws-6.2 +1 6.2.0-1012.12~22.04.1 —
Ubuntu 22.04 LTS linux-azure 5.15.0-1047.54 —
Ubuntu 22.04 LTS linux-azure-fde 5.15.0-1047.54.1 —
Ubuntu 22.04 LTS linux-gcp 5.15.0-1042.50 —
Ubuntu 22.04 LTS linux-gcp-6.2 6.2.0-1014.14~22.04.1 —
Ubuntu 22.04 LTS linux-gke +1 5.15.0-1042.47 —
Ubuntu 22.04 LTS linux-gkeop 5.15.0-1028.33 —
Ubuntu 22.04 LTS linux-hwe-6.2 6.2.0-33.33~22.04.1 —
Ubuntu 22.04 LTS linux-ibm +1 5.15.0-1038.41 —
Ubuntu 22.04 LTS linux-intel-iotg 5.15.0-1040.46 —
Ubuntu 22.04 LTS linux-lowlatency-hwe-6.2 6.2.0-1013.13~22.04.1 —
Ubuntu 22.04 LTS linux-nvidia 5.15.0-1033.33 —
Ubuntu 22.04 LTS linux-nvidia-tegra 5.15.0-1018.18 —
Ubuntu 22.04 LTS linux-nvidia-tegra-igx 5.15.0-1005.5 —
Ubuntu 22.04 LTS linux-oem-6.1 6.1.0-1021.21 —
Ubuntu 22.04 LTS linux-oracle 5.15.0-1044.50 —
Ubuntu 22.04 LTS linux-riscv +13 No fix yet —
Ubuntu 22.04 LTS linux-xilinx-zynqmp 5.15.0-1025.29 —
Ubuntu 20.04 LTS linux 5.4.0-163.180 —
Ubuntu 20.04 LTS linux-aws 5.4.0-1110.119 —
Ubuntu 20.04 LTS linux-aws-5.15 5.15.0-1045.50~20.04.1 —
Ubuntu 20.04 LTS linux-azure 5.4.0-1116.123 —
Ubuntu 20.04 LTS linux-azure-5.15 5.15.0-1047.54~20.04.1 —
Ubuntu 20.04 LTS linux-bluefield 5.4.0-1071.77 —
Ubuntu 20.04 LTS linux-gcp 5.4.0-1113.122 —
Ubuntu 20.04 LTS linux-gcp-5.15 5.15.0-1042.50~20.04.1 —
Ubuntu 20.04 LTS linux-gke +26 No fix yet —
Ubuntu 20.04 LTS linux-gkeop 5.4.0-1077.81 —
Ubuntu 20.04 LTS linux-gkeop-5.15 5.15.0-1028.33~20.04.1 —
Ubuntu 20.04 LTS linux-hwe-5.15 +1 5.15.0-84.93~20.04.1 —
Ubuntu 20.04 LTS linux-ibm 5.4.0-1057.62 —
Ubuntu 20.04 LTS linux-ibm-5.15 5.15.0-1038.41~20.04.1 —
Ubuntu 20.04 LTS linux-intel-iotg-5.15 5.15.0-1040.46~20.04.1 —
Ubuntu 20.04 LTS linux-iot 5.4.0-1022.23 —
Ubuntu 20.04 LTS linux-kvm 5.4.0-1099.105 —
Ubuntu 20.04 LTS linux-nvidia-tegra-5.15 5.15.0-1018.18~20.04.1 —
Ubuntu 20.04 LTS linux-oracle 5.4.0-1109.118 —
Ubuntu 20.04 LTS linux-oracle-5.15 5.15.0-1044.50~20.04.1 —
Ubuntu 20.04 LTS linux-raspi 5.4.0-1094.105 —
Ubuntu 20.04 LTS linux-riscv-5.15 5.15.0-1041.45~20.04.1 —
Ubuntu 20.04 LTS linux-xilinx-zynqmp 5.4.0-1030.34 —
Ubuntu 18.04 LTS linux-gcp +14 No fix yet —
Show 12 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS linux-hwe-edge No fix yet —
Ubuntu Pro Realtime 22.04 LTS linux-intel-iot-realtime 5.15.0-1039.41 —
Ubuntu Pro Realtime 22.04 LTS linux-realtime 5.15.0-1046.52 —
Ubuntu Pro FIPS 20.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro FIPS 18.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro FIPS 16.04 LTS linux-fips No fix yet —
Ubuntu Pro FIPS-updates 20.04 LTS linux-aws-fips 5.4.0-1110.119+fips1 —
Ubuntu Pro FIPS-updates 20.04 LTS linux-azure-fips 5.4.0-1116.123+fips1 —
Ubuntu Pro FIPS-updates 20.04 LTS linux-fips 5.4.0-1085.94 —
Ubuntu Pro FIPS-updates 20.04 LTS linux-gcp-fips 5.4.0-1113.122+fips1 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-aws-fips 4.15.0-2100.106 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-azure-fips 4.15.0-2079.85 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-fips 4.15.0-1116.127 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-gcp-fips 4.15.0-2063.68 —
Ubuntu Pro FIPS-updates 16.04 LTS linux-fips 4.4.0-1093.100 —
Ubuntu Pro FIPS-preview 22.04 LTS linux-fips No fix yet —
Ubuntu Pro 18.04 LTS linux 4.15.0-218.229 —
Ubuntu Pro 18.04 LTS linux-aws 4.15.0-1161.174 —
Ubuntu Pro 18.04 LTS linux-aws-5.4 5.4.0-1110.119~18.04.1 —
Ubuntu Pro 18.04 LTS linux-azure-4.15 4.15.0-1170.185 —
Ubuntu Pro 18.04 LTS linux-azure-5.4 5.4.0-1116.123~18.04.1 —
Ubuntu Pro 18.04 LTS linux-gcp-4.15 4.15.0-1155.172 —
Ubuntu Pro 18.04 LTS linux-gcp-5.4 5.4.0-1113.122~18.04.1 —
Ubuntu Pro 18.04 LTS linux-hwe-5.4 5.4.0-163.180~18.04.1 —
Ubuntu Pro 18.04 LTS linux-ibm-5.4 5.4.0-1057.62~18.04.1 —
Ubuntu Pro 18.04 LTS linux-kvm 4.15.0-1145.150 —
Ubuntu Pro 18.04 LTS linux-oracle 4.15.0-1124.135 —
Ubuntu Pro 18.04 LTS linux-oracle-5.4 5.4.0-1109.118~18.04.1 —
Ubuntu Pro 18.04 LTS linux-raspi-5.4 5.4.0-1094.105~18.04.1 —
Ubuntu Pro 16.04 LTS linux 4.4.0-245.279 —
Ubuntu Pro 16.04 LTS linux-aws 4.4.0-1161.176 —
Ubuntu Pro 16.04 LTS linux-aws-hwe 4.15.0-1161.174~16.04.1 —
Ubuntu Pro 16.04 LTS linux-azure 4.15.0-1170.185~16.04.1 —
Ubuntu Pro 16.04 LTS linux-gcp 4.15.0-1155.172~16.04.1 —
Ubuntu Pro 16.04 LTS linux-hwe 4.15.0-218.229~16.04.1 —
Ubuntu Pro 16.04 LTS linux-kvm 4.4.0-1124.134 —
Ubuntu Pro 16.04 LTS linux-oracle 4.15.0-1124.135~16.04.1 —
Ubuntu Pro 14.04 LTS linux-aws 4.4.0-1123.129 —
Ubuntu Pro 14.04 LTS linux-azure 4.15.0-1170.185~14.04.1 —
Ubuntu Pro 14.04 LTS linux-lts-xenial 4.4.0-245.279~14.04.1 —
ReleasePackageFixed inAdvisory
RHEL 9 bpftool 7.2.0-362.8.1.el9_3 RHSA-2023:6583
RHEL 9 rv +64 5.14.0-362.8.1.el9_3 RHSA-2023:6583
RHEL 8 kernel-rt +12 4.18.0-513.5.1.rt7.307.el8_9 RHSA-2023:6901
RHEL 8 perf +26 4.18.0-513.5.1.el8_9 RHSA-2023:7077
RHEL 7 kernel-rt +10 3.10.0-1160.105.1.rt56.1256.el7 RHSA-2023:7424
RHEL 7 kpatch-patch-3_10_0-1160_102_1 1-1.el7 RHSA-2023:7419
RHEL 7 kpatch-patch-3_10_0-1160_90_1 +1 1-4.el7 RHSA-2023:7419
RHEL 7 kpatch-patch-3_10_0-1160_95_1 1-3.el7 RHSA-2023:7419
RHEL 7 kpatch-patch-3_10_0-1160_99_1 1-2.el7 RHSA-2023:7419
RHEL 7 perf +18 3.10.0-1160.105.1.el7 RHSA-2023:7423
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 9.2 EUS bpftool 7.0.0-284.40.1.el9_2 RHSA-2023:7370
RHEL 9.2 EUS kernel-rt +14 5.14.0-284.40.1.rt14.325.el9_2 RHSA-2023:7379
RHEL 9.2 EUS kpatch-patch-5_14_0-284_11_1 1-6.el9_2 RHSA-2023:7418
RHEL 9.2 EUS kpatch-patch-5_14_0-284_18_1 1-5.el9_2 RHSA-2023:7418
RHEL 9.2 EUS kpatch-patch-5_14_0-284_25_1 1-4.el9_2 RHSA-2023:7418
RHEL 9.2 EUS kpatch-patch-5_14_0-284_30_1 1-1.el9_2 RHSA-2023:7418
RHEL 9.2 EUS perf +48 5.14.0-284.40.1.el9_2 RHSA-2023:7370
RHEL 8.8 EUS kpatch-patch-4_18_0-477_10_1 1-4.el8_8 RHSA-2023:7558
RHEL 8.8 EUS kpatch-patch-4_18_0-477_13_1 +1 1-3.el8_8 RHSA-2023:7558
RHEL 8.8 EUS kpatch-patch-4_18_0-477_21_1 1-2.el8_8 RHSA-2023:7558
RHEL 8.8 EUS kpatch-patch-4_18_0-477_27_1 1-1.el8_8 RHSA-2023:7558
RHEL 8.8 EUS perf +26 4.18.0-477.36.1.el8_8 RHSA-2023:7539
RHEL 7.7 AUS perf +12 3.10.0-1062.82.1.el7 RHSA-2024:0262
RHEL 7.6 AUS perf +12 3.10.0-957.109.1.el7 RHSA-2024:0261

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 perf +24 4.18.0-513.5.1.el8_9 ALSA-2023:7077

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 kernel-livepatch-6.1.49-69.116 1.0-0.amzn2023 ALAS2023-2023-330
Amazon Linux 2023 perf +12 6.1.49-69.116.amzn2023 ALAS2023-2023-330
Amazon Linux 2 kernel-livepatch-4.14.322-244.536 1.0-0.amzn2 ALAS2-2023-2268
Amazon Linux 2 perf +8 4.14.322-244.536.amzn2 ALAS2-2023-2268

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) kernel 5.15.131.1-2 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 bpftool 7.2.0-362.8.1.el9_3 ELSA-2023-6583
Oracle Linux 9 rv +25 5.14.0-362.8.1.el9_3 ELSA-2023-6583
Oracle Linux 8 perf +19 4.18.0-513.5.1.el8_9 ELSA-2023-7077
Oracle Linux 7 kernel-uek +5 4.1.12-124.79.2.el7uek ELSA-2023-12842
Oracle Linux 7 perf +12 3.10.0-1160.105.1.0.1.el7 ELSA-2023-7423

Advisories 26

References