CVE-2023-3609: Use-after-free in Linux kernel's net/sched: cls_u32 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: clsu32 component can be exploited to achieve local privilege escalation. If tcfchangeindev() fails, u32setparms() 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=04c55383fa5689357bcdd2c8036725a55ed632bc

Other sources

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

If tcfchangeindev() fails, u32setparms() 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 04c55383fa5689357bcdd2c8036725a55ed632bc.

Linux Kernel could allow a local authenticated attacker to gain elevated privileges on the system, caused by a use-after-free flaw in the net/sched: clsu32 component. By sending a specially crafted request using the reference counter, an authenticated attacker could exploit this vulnerability to gain elevated privileges.

IBM

Affected Software

12 affected componentsFixes available
Linux Linux kernel>=4.14<6.4
Linux Linux kernel=6.4-rc1
Linux Linux kernel=6.4-rc2
Linux Linux kernel=6.4-rc3
Linux Linux kernel=6.4-rc4
Linux Linux kernel=6.4-rc5
Linux Linux kernel=6.4-rc6
Debian Debian Linux=10.0
Debian Debian Linux=11.0
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-1
redhat/Kernel<6.4
6.4
IBM QRadar Network Packet Capture<=7.5.0 - 7.5.0 Update Package 7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. 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-1
  2. Upgrade

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

    Fixed in 6.4
  3. Upgrade

    Upgrade Linux Kernel net/sched: cls_u32 to a version that resolves this vulnerability.

    Patch 04c55383fa5689357bcdd2c8036725a55ed632bc
  4. Configuration

    Disable unprivileged user namespaces (to reduce exposure of the local authenticated attacker path): run `sudo sysctl -w kernel.unprivileged_userns_clone=0` and persist across reboots by creating `/etc/sysctl.d/99-disable-unpriv-userns.conf` with `kernel.unprivileged_userns_clone=0`.

    Linux kernel kernel.unprivileged_userns_clone = 0

Event History

Jul 21, 2023
CVE Published
via MITRE·08:47 PM
Data Sourced
via MITRE·08:47 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·02:28 PM
DescriptionSeverityAffected Software
Jan 20, 2024
Data Sourced
via Launchpad·12:24 AM
Description
Jul 23, 2024
Data Sourced
via IBM·12:00 AM
DescriptionSeverityAffected Software
Apr 28, 2025
Data Sourced
via Ubuntu·02:13 PM
RemedyDescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2023-3609?

CVE-2023-3609 is classified as a high severity vulnerability due to its potential for local privilege escalation.

2

How do I fix CVE-2023-3609?

To address CVE-2023-3609, upgrade the Linux kernel to version 6.4 or apply the recommended patches.

3

Which Linux versions are affected by CVE-2023-3609?

CVE-2023-3609 affects Linux kernel versions from 4.14 up to but not including 6.4.

4

What components are impacted by CVE-2023-3609?

CVE-2023-3609 affects the cls_u32 component of the Linux kernel's networking subsystem.

5

Is CVE-2023-3609 exploitable remotely?

CVE-2023-3609 is not known to be exploitable remotely, as it requires local access to achieve privilege escalation.

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