CVE-2023-3776: Use-after-free in Linux kernel's net/sched: cls_fw component

Published Jul 21, 2023
·
Updated

A flaw in the Linux Kernel found. A use-after-free vulnerability in the Linux kernel's net/sched: clsfw component can be exploited to achieve local privilege escalation. If tcfchangeindev() fails, fwsetparms() will immediately return an error after incrementing or decrementing the reference counter in tcfbindfilter(). 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.

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=0323bce598eea038714f941ce2b22541c46d488f

Other sources

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

If tcfchangeindev() fails, fwsetparms() will immediately return an error after incrementing or decrementing the reference counter in tcfbindfilter(). 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.

Affected Software

15 affected componentsFixes available
redhat/Kernel<6.5
6.5
F5 Traffix SDC=5.2.0, =5.1.0
5.2.0
Linux Linux kernel>=2.6<6.5
Linux Linux kernel=6.5-rc1
Linux Linux kernel>=2.6.12<4.14.322
Linux Linux kernel>=4.15<4.19.291
Linux Linux kernel>=4.20<5.4.251
Linux Linux kernel>=5.5<5.10.188
Linux Linux kernel>=5.11<5.15.121
Linux Linux kernel>=5.16<6.1.40
Linux Linux kernel>=6.2<6.4.5
Debian Debian Linux=10.0
Debian Debian Linux=11.0
Debian Debian Linux=12.0
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade F5 Traffix Systems Signaling Delivery Controller to a version that resolves this vulnerability.

    Fixed in 5.2.0
  2. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1
  3. Upgrade

    Upgrade redhat/Kernel to a version that resolves this vulnerability.

    Fixed in 6.5
  4. Upgrade

    Upgrade Linux kernel (net/sched: cls_fw) to a version that resolves this vulnerability.

    Fixed in past commit 0323bce598eea038714f941ce2b22541c46d488f
  5. Configuration

    Disable creation of user namespaces for unprivileged users by setting kernel.unprivileged_userns_clone=0 (both temporarily with: sysctl -w kernel.unprivileged_userns_clone=0 and persistently by writing kernel.unprivileged_userns_clone=0 to /etc/sysctl.d/99-disable-unpriv-userns.conf).

    Linux kernel sysctl kernel.unprivileged_userns_clone = 0

Event History

Jul 21, 2023
CVE Published
via MITRE·08:49 PM
Data Sourced
via MITRE·08:49 PM
DescriptionSeverityWeakness
Data Sourced
09:15 PM
Description
Data Sourced
via NVD·09:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 24, 2023
Data Sourced
via Red Hat·10:19 AM
DescriptionSeverityAffected Software
Feb 17, 2024
Data Sourced
via Launchpad·12:44 AM
Description
Feb 27, 2024
Advisory Published
via F5·07:14 PM
May 2, 2025
Data Sourced
via Ubuntu·02:14 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2023-3776?

CVE-2023-3776 is considered a high-severity vulnerability due to its potential for local privilege escalation.

2

How do I fix CVE-2023-3776?

To fix CVE-2023-3776, upgrade the Linux kernel to version 6.5 or apply the relevant patches provided by your distribution.

3

Which versions of the Linux kernel are affected by CVE-2023-3776?

CVE-2023-3776 affects Linux kernel versions prior to 6.5, including multiple versions in the 4.x and 5.x series.

4

Can CVE-2023-3776 be exploited remotely?

CVE-2023-3776 is a local privilege escalation vulnerability and cannot be exploited remotely.

5

What components of the Linux kernel are impacted by CVE-2023-3776?

CVE-2023-3776 impacts the net/sched: cls_fw component of the Linux kernel.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203