cve.bz

CVE-2023-3776 Use After Free

7.8 highEPSS 0.5%Fix available

High (7.8). EPSS 0.5% 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_fw component can be exploited to achieve local privilege escalation. If tcf_change_indev() fails, fw_set_parms() will immediately return an error after incrementing or decrementing the reference counter in tcf_bind_filter(). If an attacker can control the reference counter and set it to zero, they can cause the reference to be freed, leading to a use-after-free vulnerability. We recommend upgrading past commit 0323bce598eea038714f941ce2b22541c46d488f.

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.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 44th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-03-05. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
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-3776 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-3776?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-3776?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-3776 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 2.6 before 6.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10linux4.19.304-1DLA-3710-1
Debian10linux-5.105.10.197-1~deb10u1DLA-3623-1
Debian11linux5.10.191-1DSA-5480-1
Debian12linux6.1.52-1DEBIAN-CVE-2023-3776 DSA-5492-1
Debian13, 14linux6.4.4-2DEBIAN-CVE-2023-3776
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2023-3776
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2023-3776
Ubuntu20.04:LTSlinux5.4.0-159.176UBUNTU-CVE-2023-3776 USN-6317-1
Ubuntu20.04:LTSlinux-aws5.4.0-1108.116UBUNTU-CVE-2023-3776 USN-6317-1
Ubuntu20.04:LTSlinux-aws-5.155.15.0-1043.48~20.04.1UBUNTU-CVE-2023-3776 USN-6315-1
Ubuntu20.04:LTSlinux-azure5.4.0-1114.120UBUNTU-CVE-2023-3776 USN-6331-1
Ubuntu20.04:LTSlinux-azure-5.155.15.0-1045.52~20.04.1UBUNTU-CVE-2023-3776 USN-6332-1
Ubuntu20.04:LTSlinux-bluefield5.4.0-1070.76UBUNTU-CVE-2023-3776 USN-6397-1
Ubuntu20.04:LTSlinux-gcp5.4.0-1111.120UBUNTU-CVE-2023-3776 USN-6317-1
Ubuntu20.04:LTSlinux-gcp-5.155.15.0-1040.48~20.04.1UBUNTU-CVE-2023-3776 USN-6330-1
Ubuntu20.04:LTSlinux-gke, linux-riscv, linux-raspi2 and 24 moreno fix listedUBUNTU-CVE-2023-3776
Ubuntu20.04:LTSlinux-gkeop5.4.0-1075.79UBUNTU-CVE-2023-3776 USN-6324-1
116 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::baseoskpatch-patch-4_18_0-477_10_1, kpatch-patch-4_18_0-477_10_1-debuginfo, kpatch-patch-4_18_0-477_10_1-debugsource0:1-3.el8_8RHSA-2023:5221
Red Hatenterprise_linux:8::baseoskpatch-patch-4_18_0-477_13_1, kpatch-patch-4_18_0-477_15_1, kpatch-patch-4_18_0-477_13_1-debuginfo and 3 more0:1-2.el8_8RHSA-2023:5221
Red Hatenterprise_linux:8::baseoskpatch-patch-4_18_0-477_21_1, kpatch-patch-4_18_0-477_21_1-debuginfo, kpatch-patch-4_18_0-477_21_1-debugsource0:1-1.el8_8RHSA-2023:5221
Red Hatenterprise_linux:8::baseosperf, kernel, bpftool and 30 more0:4.18.0-477.27.1.el8_8RHSA-2023:5244
Red Hatenterprise_linux:8::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-477.27.1.el8_8RHSA-2023:5244
55 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-ESPOS, Linux Enterprise High Performance Computing 15 SP3-LTSSkernel-64kb, kernel-docs, kernel-syms and 4 more5.3.18-150300.59.130.1SUSE-SU-2023:3391-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-ESPOS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 6 morekernel-default-base5.3.18-150300.59.130.1.150300.18.76.1SUSE-SU-2023:3391-1
SUSELinux Enterprise High Availability Extension 12 SP5, Linux Enterprise Live Patching 12 SP5, Linux Enterprise Workstation Extension 12 SP5kernel-default4.12.14-122.173.1SUSE-SU-2023:3309-1
SUSELinux Enterprise High Availability Extension 15 SP1, Linux Enterprise Live Patching 15 SP1kernel-default4.12.14-150100.197.154.1SUSE-SU-2023:3392-1
SUSELinux Enterprise High Availability Extension 15 SP2, Linux Enterprise Live Patching 15 SP2kernel-default5.3.18-150200.24.160.2SUSE-SU-2023:3390-1
SUSELinux Enterprise High Availability Extension 15 SP3, Linux Enterprise Live Patching 15 SP3, Linux Enterprise Micro 5.1 and 1 morekernel-default5.3.18-150300.59.130.1SUSE-SU-2023:3391-1
SUSELinux Enterprise High Availability Extension 15 SP4, Linux Enterprise Live Patching 15 SP4, Linux Enterprise Micro 5.3 and 3 morekernel-default5.14.21-150400.24.81.1SUSE-SU-2023:3313-1
SUSELinux Enterprise High Availability Extension 15 SP5, Linux Enterprise Live Patching 15 SP5, Linux Enterprise Module for Legacy 15 SP5 and 1 morekernel-default5.14.21-150500.55.19.1SUSE-SU-2023:3311-1
SUSELinux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise Server for SAP Applications 15 SP1kernel-docs, kernel-syms, kernel-source and 2 more4.12.14-150100.197.154.1SUSE-SU-2023:3392-1
SUSELinux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise Server 15 SP2-LTSS, Linux Enterprise Server for SAP Applications 15 SP2kernel-default, kernel-preempt, kernel-obs-build5.3.18-150200.24.160.2SUSE-SU-2023:3390-1
SUSELinux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise Server 15 SP2-LTSS, Linux Enterprise Server for SAP Applications 15 SP2kernel-default-base5.3.18-150200.24.160.2.150200.9.79.2SUSE-SU-2023:3390-1
SUSELinux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise Server 15 SP2-LTSS, Linux Enterprise Server for SAP Applications 15 SP2kernel-docs5.3.18-150200.24.160.3SUSE-SU-2023:3390-1
58 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.4dtb-aarch645.3.18-150300.59.130.1SUSE-SU-2023:3391-1
openSUSELeap 15.4dtb-aarch64, kernel-64kb, kernel-docs and 8 more5.14.21-150400.24.81.1SUSE-SU-2023:3313-1
openSUSELeap 15.4kernel-azure, kernel-syms-azure, kernel-source-azure5.14.21-150400.14.63.1SUSE-SU-2023:3377-1
openSUSELeap 15.4kernel-debug, kernel-default, kernel-vanilla and 2 more4.12.14-150100.197.154.1SUSE-SU-2023:3392-1
openSUSELeap 15.4kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more5.14.21-150400.15.46.1SUSE-SU-2023:3318-1
openSUSELeap 15.4, Leap Micro 5.3, Leap Micro 5.4kernel-default-base5.14.21-150400.24.81.1.150400.24.35.3SUSE-SU-2023:3313-1
openSUSELeap 15.5dtb-aarch64, kernel-64kb, kernel-docs and 8 more5.14.21-150500.55.19.1SUSE-SU-2023:3311-1
openSUSELeap 15.5kernel-azure, kernel-syms-azure, kernel-source-azure5.14.21-150500.33.14.1SUSE-SU-2023:3376-1
openSUSELeap 15.5kernel-default-base5.14.21-150500.55.19.1.150500.6.6.4SUSE-SU-2023:3311-1
openSUSELeap 15.5kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more5.14.21-150500.13.11.1SUSE-SU-2023:3302-1
openSUSELeap 15.5kernel-vanilla4.12.14-150100.197.154.1SUSE-SU-2023:3392-1
openSUSELeap Micro 5.3, Leap Micro 5.4kernel-default5.14.21-150400.24.81.1SUSE-SU-2023:3313-1
1 more for openSUSE in the JSON and on openSUSE's page.
AlmaLinux8perf, kernel, bpftool and 22 more4.18.0-477.27.2.el8_8ALSA-2023:5244
AlmaLinux9bpftool7.0.0-284.30.1.el9_2ALSA-2023:5069
AlmaLinux9kernel-rt, kernel-rt-kvm, kernel-rt-core and 11 more5.14.0-284.30.1.rt14.315.el9_2ALSA-2023:5091
AlmaLinux9perf, rtla, kernel and 41 more5.14.0-284.30.1.el9_2ALSA-2023:5069
Rocky Linux8kernel0:4.18.0-477.27.1.el8_8RLSA-2023:5244
Rocky Linux8kernel0:4.18.0-477.27.1.el8_8.cloudRXSA-2023:5244
Rocky Linux9kernel-rt0:5.14.0-284.30.1.rt14.315.el9_2RLSA-2023:5091
Azure Linux2kernel5.15.122.1-2AZL-27677

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; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's mitigation

To mitigate this issue, prevent module cls_fw from being loaded. Please see https://access.redhat.com/solutions/41278 for how to blacklist a kernel module to prevent it from loading automatically.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6 Extended Lifecycle Supportkernel-0:2.6.32-754.53.1.el6Fixed 2024-04-16RHSA-2024:1831
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.108.1.el7Fixed 2023-11-15RHSA-2023:7294
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-477.27.1.rt7.290.el8_8Fixed 2023-09-19RHSA-2023:5255
Red Hat Enterprise Linux 8kpatch-patchFixed 2023-09-19RHSA-2023:5221
Red Hat Enterprise Linux 8kernel-0:4.18.0-477.27.1.el8_8Fixed 2023-09-19RHSA-2023:5244
Red Hat Enterprise Linux 8.1 Update Services for SAP Solutionskpatch-patchFixed 2023-11-08RHSA-2023:6799
Red Hat Enterprise Linux 8.1 Update Services for SAP Solutionskernel-0:4.18.0-147.94.1.el8_1Fixed 2023-11-08RHSA-2023:6813
Red Hat Enterprise Linux 8.2 Advanced Update Supportkernel-0:4.18.0-193.119.1.el8_2Fixed 2023-11-21RHSA-2023:7434
Red Hat Enterprise Linux 8.2 Telecommunications Update Servicekernel-rt-0:4.18.0-193.119.1.rt13.170.el8_2Fixed 2023-11-21RHSA-2023:7431
Red Hat Enterprise Linux 8.2 Telecommunications Update Servicekernel-0:4.18.0-193.119.1.el8_2Fixed 2023-11-21RHSA-2023:7434
Red Hat Enterprise Linux 8.2 Update Services for SAP Solutionskpatch-patchFixed 2023-11-21RHSA-2023:7417
Red Hat Enterprise Linux 8.2 Update Services for SAP Solutionskernel-0:4.18.0-193.119.1.el8_2Fixed 2023-11-21RHSA-2023:7434
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportkernel-0:4.18.0-305.108.1.el8_4Fixed 2023-10-10RHSA-2023:5628
Red Hat Enterprise Linux 8.4 Telecommunications Update Servicekernel-rt-0:4.18.0-305.108.1.rt7.183.el8_4Fixed 2023-10-17RHSA-2023:5794
Red Hat Enterprise Linux 8.4 Telecommunications Update Servicekernel-0:4.18.0-305.108.1.el8_4Fixed 2023-10-10RHSA-2023:5628
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutionskernel-0:4.18.0-305.108.1.el8_4Fixed 2023-10-10RHSA-2023:5628
10 more in the JSON and on Red Hat's page.

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-3776.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-24-046-11Siemens SCALANCE XCM-/XRM-3002024-02-13MultipleSCALANCE XCH328 (6GK5328-4TS01-2EC2), SCALANCE XCM324 (6GK5324-8TS01-2AC2), SCALANCE XCM328 (6GK5328-4TS01-2AC2) and 8 morenone listed
ICSA-23-166-10Siemens SIMATIC S7-1500 TM MFP BIOS2023-06-13MultipleSIMATIC S7-1500 TM MFP - BIOSnone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

References

Check your stackJSON