cve.bz

CVE-2023-4208 Use After Free

7.8 highEPSS 0.3%

High (7.8). EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
A use-after-free vulnerability in the Linux kernel's net/sched: cls_u32 component can be exploited to achieve local privilege escalation. When u32_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 3044b16e7c6fe5d24b1cdbcf1bd0a9d92d1ebd81.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 25th 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-2023-4208 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-4208?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-4208?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-2023-4208 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
Linux Kernelfrom 3.18 before 6.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10linux4.19.304-1DLA-3710-1
Debian12linux6.1.52-1DEBIAN-CVE-2023-4208 DSA-5492-1
Debian13, 14linux6.4.11-1DEBIAN-CVE-2023-4208
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2023-4208
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2023-4208
Ubuntu20.04:LTSlinux5.4.0-163.180UBUNTU-CVE-2023-4208
Ubuntu20.04:LTSlinux-aws5.4.0-1110.119UBUNTU-CVE-2023-4208
Ubuntu20.04:LTSlinux-aws-5.155.15.0-1045.50~20.04.1UBUNTU-CVE-2023-4208
Ubuntu20.04:LTSlinux-azure5.4.0-1116.123UBUNTU-CVE-2023-4208
Ubuntu20.04:LTSlinux-azure-5.155.15.0-1047.54~20.04.1UBUNTU-CVE-2023-4208
Ubuntu20.04:LTSlinux-bluefield5.4.0-1071.77UBUNTU-CVE-2023-4208
Ubuntu20.04:LTSlinux-gcp5.4.0-1113.122UBUNTU-CVE-2023-4208
Ubuntu20.04:LTSlinux-gcp-5.155.15.0-1042.50~20.04.1UBUNTU-CVE-2023-4208
Ubuntu20.04:LTSlinux-gke, linux-riscv, linux-raspi2 and 24 moreno fix listedUBUNTU-CVE-2023-4208
Ubuntu20.04:LTSlinux-gkeop5.4.0-1077.81UBUNTU-CVE-2023-4208
72 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:7::client, enterprise_linux:7::workstationperf, kernel, bpftool and 16 more0:3.10.0-1160.105.1.el7RHSA-2023:7423
Red Hatenterprise_linux:7::computenodeperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 5 more0:3.10.0-1160.105.1.el7RHSA-2023:7423
Red Hatenterprise_linux:7::serverkpatch-patch-3_10_0-1160_102_1, kpatch-patch-3_10_0-1160_102_1-debuginfo0:1-1.el7RHSA-2023:7419
Red Hatenterprise_linux:7::serverkpatch-patch-3_10_0-1160_90_1, kpatch-patch-3_10_0-1160_92_1, kpatch-patch-3_10_0-1160_90_1-debuginfo and 1 more0:1-4.el7RHSA-2023:7419
Red Hatenterprise_linux:7::serverkpatch-patch-3_10_0-1160_95_1, kpatch-patch-3_10_0-1160_95_1-debuginfo0:1-3.el7RHSA-2023:7419
Red Hatenterprise_linux:7::serverkpatch-patch-3_10_0-1160_99_1, kpatch-patch-3_10_0-1160_99_1-debuginfo0:1-2.el7RHSA-2023:7419
Red Hatenterprise_linux:7::serverperf, kernel, bpftool and 23 more0:3.10.0-1160.105.1.el7RHSA-2023:7423
Red Hatenterprise_linux:8::baseosperf, kernel, bpftool and 30 more0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Red Hatenterprise_linux:8::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Red Hatenterprise_linux:8::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 12 more0:4.18.0-513.5.1.rt7.307.el8_9RHSA-2023:6901
Red Hatenterprise_linux:8::realtimekernel-rt, kernel-rt-core, kernel-rt-debug and 10 more0:4.18.0-513.5.1.rt7.307.el8_9RHSA-2023:6901
Red Hatenterprise_linux:9::appstreamrv, perf, rtla and 24 more0:5.14.0-362.8.1.el9_3RHSA-2023:6583
26 more for Red Hat in the JSON and on Red Hat's page.
AlmaLinux8perf, kernel, bpftool and 22 more4.18.0-513.5.1.el8_9ALSA-2023:7077
Azure Linux2kernel5.15.131.1-2AZL-28677

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; AlmaLinux's OSV database, MIT; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Important.

Red Hat's mitigation

To mitigate this issue, prevent the module cls_u32 from being loaded by blacklisting the module to prevent it from loading automatically.

~~~

https://access.redhat.com/solutions/41278

~~~

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7kernel-rt-0:3.10.0-1160.105.1.rt56.1256.el7Fixed 2023-11-21RHSA-2023:7424
Red Hat Enterprise Linux 7kpatch-patchFixed 2023-11-21RHSA-2023:7419
Red Hat Enterprise Linux 7kernel-0:3.10.0-1160.105.1.el7Fixed 2023-11-21RHSA-2023:7423
Red Hat Enterprise Linux 7.6 Advanced Update Supportkernel-0:3.10.0-957.109.1.el7Fixed 2024-01-16RHSA-2024:0261
Red Hat Enterprise Linux 7.7 Advanced Update Supportkernel-0:3.10.0-1062.82.1.el7Fixed 2024-01-16RHSA-2024:0262
Red Hat Enterprise Linux 8kernel-rt-0:4.18.0-513.5.1.rt7.307.el8_9Fixed 2023-11-14RHSA-2023:6901
Red Hat Enterprise Linux 8kernel-0:4.18.0-513.5.1.el8_9Fixed 2023-11-14RHSA-2023:7077
Red Hat Enterprise Linux 8.8 Extended Update Supportkernel-0:4.18.0-477.36.1.el8_8Fixed 2023-11-28RHSA-2023:7539
Red Hat Enterprise Linux 8.8 Extended Update Supportkpatch-patchFixed 2023-11-28RHSA-2023:7558
Red Hat Enterprise Linux 9kernel-0:5.14.0-362.8.1.el9_3Fixed 2023-11-07RHSA-2023:6583
Red Hat Enterprise Linux 9.2 Extended Update Supportkernel-0:5.14.0-284.40.1.el9_2Fixed 2023-11-21RHSA-2023:7370
Red Hat Enterprise Linux 9.2 Extended Update Supportkernel-rt-0:5.14.0-284.40.1.rt14.325.el9_2Fixed 2023-11-21RHSA-2023:7379
Red Hat Enterprise Linux 9.2 Extended Update Supportkpatch-patchFixed 2023-11-21RHSA-2023:7418
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 9kernel-rtAffected

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-2023-4208.

References

Check your stackJSON