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

- Severity: High 7.8 (CVSS:3.1, scored by Google) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 26% of CVEs (2026-12-02)
- Published: 2023-09-06T13:53:22.834Z
- Modified: 2026-06-17T06:37:18.963Z
- Weaknesses: CWE-416
- Assigned by: Google

## Description

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

When fw_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 76e42ae831991c828cffa8c37736ebfb831ad5ec.

(As written by CVE List.)

## Affected

- kernel: from 3.18 before 6.5
- linux linux_kernel: from 3.18 before 4.14.326; from 4.15 before 4.19.295; from 4.20 before 5.4.253; from 5.5 before 5.10.190; from 5.11 before 5.15.126; from 5.16 before 6.1.45; from 6.2 before 6.4.10
- debian debian_linux: 12.0

## Every score

- Google: 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`
- NVD: 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`

## References

- <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=76e42ae831991c828cffa8c37736ebfb831ad5ec> (issue-tracking, mailing-list, patch, vendor-advisory)
- <https://kernel.dance/76e42ae831991c828cffa8c37736ebfb831ad5ec> (patch, vendor-advisory)
- <https://www.debian.org/security/2023/dsa-5492> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2024/01/msg00004.html> (mailing-list, third-party-advisory, vdb-entry)

## Sources

- CVE List: [CVE-2023-4207](https://www.cve.org/CVERecord?id=CVE-2023-4207), CVE Terms of Use, modified 2025-02-13
- NVD: [CVE-2023-4207](https://nvd.nist.gov/vuln/detail/CVE-2023-4207), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-4207 · Whole record: https://cve.day/CVE-2023-4207.json · Rebuilt by cve.day 2026-11-25T22:58:27.722Z
