# CVE-2023-54193: net/sched: cls\_api: remove block\_cb from driver\_list before freeing

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.21% (percentile 7, 2026-11-26)
- **Published:** 2025-12-30T12:09:00.738Z
- **Modified:** 2026-10-28T19:10:00.193Z

## Who should check

- Anyone running Linux \>= 59094b1e5094c7e50a3d2912202fd30b6a1dadf8, \< cc5fe387c6294d0471cb7ed064efac97fac65ccc; \>= 59094b1e5094c7e50a3d2912202fd30b6a1dadf8, \< 7311c8be3755611bf6edea4dfbeb190b4bdd489f; \>= 59094b1e5094c7e50a3d2912202fd30b6a1dadf8, \< cb145932fcf6814e7e95e467eb70e7849a845ae9; \>= 59094b1e5094c7e50a3d2912202fd30b6a1dadf8, \< 55866fe3fded3ce94ac3fc1bb3dfce654282f483; \>= 59094b1e5094c7e50a3d2912202fd30b6a1dadf8, \< 26aec72429a05e917d574eca0efc5306c63a8862; \>= 59094b1e5094c7e50a3d2912202fd30b6a1dadf8, \< 7b7a74ed303d532fb73ae4b1697f16a0fea89cd0; \>= 59094b1e5094c7e50a3d2912202fd30b6a1dadf8, \< da94a7781fc3c92e7df7832bc2746f4d39bc624e
- Anyone running Linux 5.3

## Description

In the Linux kernel, the following vulnerability has been resolved:

net/sched: cls\_api: remove block\_cb from driver\_list before freeing

Error handler of tcf\_block\_bind() frees the whole bo-\>cb\_list on error.
However, by that time the flow\_block\_cb instances are already in the driver
list because driver ndo\_setup\_tc() callback is called before that up the
call chain in tcf\_block\_offload\_cmd(). This leaves dangling pointers to
freed objects in the list and causes use-after-free\[0\]. Fix it by also
removing flow\_block\_cb instances from driver\_list before deallocating them.

\[0\]:
\[  279.868433\] ==================================================================
\[  279.869964\] BUG: KASAN: slab-use-after-free in flow\_block\_cb\_setup\_simple+0x631/0x7c0
\[  279.871527\] Read of size 8 at addr ffff888147e2bf20 by task tc/2963

\[  279.873151\] CPU: 6 PID: 2963 Comm: tc Not tainted 6.3.0-rc6+ \#4
\[  279.874273\] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.13.0-0-gf21b5a4aeb02-prebuilt.qemu.org 04/01/2014
\[  279.876295\] Call Trace:
\[  279.876882\]  \<TASK\>
\[  279.877413\]  dump\_stack\_lvl+0x33/0x50
\[  279.878198\]  print\_report+0xc2/0x610
\[  279.878987\]  ? flow\_block\_cb\_setup\_simple+0x631/0x7c0
\[  279.879994\]  kasan\_report+0xae/0xe0
\[  279.880750\]  ? flow\_block\_cb\_setup\_simple+0x631/0x7c0
\[  279.881744\]  ? mlx5e\_tc\_reoffload\_flows\_work+0x240/0x240 \[mlx5\_core\]
\[  279.883047\]  flow\_block\_cb\_setup\_simple+0x631/0x7c0
\[  279.884027\]  tcf\_block\_offload\_cmd.isra.0+0x189/0x2d0
\[  279.885037\]  ? tcf\_block\_setup+0x6b0/0x6b0
\[  279.885901\]  ? mutex\_lock+0x7d/0xd0
\[  279.886669\]  ? \_\_mutex\_unlock\_slowpath.constprop.0+0x2d0/0x2d0
\[  279.887844\]  ? ingress\_init+0x1c0/0x1c0 \[sch\_ingress\]
\[  279.888846\]  tcf\_block\_get\_ext+0x61c/0x1200
\[  279.889711\]  ingress\_init+0x112/0x1c0 \[sch\_ingress\]
\[  279.890682\]  ? clsact\_init+0x2b0/0x2b0 \[sch\_ingress\]
\[  279.891701\]  qdisc\_create+0x401/0xea0
\[  279.892485\]  ? qdisc\_tree\_reduce\_backlog+0x470/0x470
\[  279.893473\]  tc\_modify\_qdisc+0x6f7/0x16d0
\[  279.894344\]  ? tc\_get\_qdisc+0xac0/0xac0
\[  279.895213\]  ? mutex\_lock+0x7d/0xd0
\[  279.896005\]  ? \_\_mutex\_lock\_slowpath+0x10/0x10
\[  279.896910\]  rtnetlink\_rcv\_msg+0x5fe/0x9d0
\[  279.897770\]  ? rtnl\_calcit.isra.0+0x2b0/0x2b0
\[  279.898672\]  ? \_\_sys\_sendmsg+0xb5/0x140
\[  279.899494\]  ? do\_syscall\_64+0x3d/0x90
\[  279.900302\]  ? entry\_SYSCALL\_64\_after\_hwframe+0x46/0xb0
\[  279.901337\]  ? kasan\_save\_stack+0x2e/0x40
\[  279.902177\]  ? kasan\_save\_stack+0x1e/0x40
\[  279.903058\]  ? kasan\_set\_track+0x21/0x30
\[  279.903913\]  ? kasan\_save\_free\_info+0x2a/0x40
\[  279.904836\]  ? \_\_\_\_kasan\_slab\_free+0x11a/0x1b0
\[  279.905741\]  ? kmem\_cache\_free+0x179/0x400
\[  279.906599\]  netlink\_rcv\_skb+0x12c/0x360
\[  279.907450\]  ? rtnl\_calcit.isra.0+0x2b0/0x2b0
\[  279.908360\]  ? netlink\_ack+0x1550/0x1550
\[  279.909192\]  ? rhashtable\_walk\_peek+0x170/0x170
\[  279.910135\]  ? kmem\_cache\_alloc\_node+0x1af/0x390
\[  279.911086\]  ? \_copy\_from\_iter+0x3d6/0xc70
\[  279.912031\]  netlink\_unicast+0x553/0x790
\[  279.912864\]  ? netlink\_attachskb+0x6a0/0x6a0
\[  279.913763\]  ? netlink\_recvmsg+0x416/0xb50
\[  279.914627\]  netlink\_sendmsg+0x7a1/0xcb0
\[  279.915473\]  ? netlink\_unicast+0x790/0x790
\[  279.916334\]  ? iovec\_from\_user.part.0+0x4d/0x220
\[  279.917293\]  ? netlink\_unicast+0x790/0x790
\[  279.918159\]  sock\_sendmsg+0xc5/0x190
\[  279.918938\]  \_\_\_\_sys\_sendmsg+0x535/0x6b0
\[  279.919813\]  ? import\_iovec+0x7/0x10
\[  279.920601\]  ? kernel\_sendmsg+0x30/0x30
\[  279.921423\]  ? \_\_copy\_msghdr+0x3c0/0x3c0
\[  279.922254\]  ? import\_iovec+0x7/0x10
\[  279.923041\]  \_\_\_sys\_sendmsg+0xeb/0x170
\[  279.923854\]  ? copy\_msghdr\_from\_user+0x110/0x110
\[  279.924797\]  ? \_\_\_sys\_recvmsg+0xd9/0x130
\[  279.925630\]  ? \_\_perf\_event\_task\_sched\_in+0x183/0x470
\[  279.926656\]  ? \_\_\_sys\_sendmsg+0x170/0x170
\[  279.927529\]  ? ctx\_sched\_in+0x530/0x530
\[  279.928369\]  ? update\_curr+0x283/0x4f0
\[  279.929185\]  ? perf\_event\_update\_userpage+0x570/0x570
\[  279.930201\]  ? \_\_fget\_light+0x57/0x520
\[  279.931023\]  ? \_\_switch\_to+0x53d/0xe70
\[  27
---truncated---

## Affected and fixed versions

- Linux: \>= 59094b1e5094c7e50a3d2912202fd30b6a1dadf8, \< cc5fe387c6294d0471cb7ed064efac97fac65ccc; \>= 59094b1e5094c7e50a3d2912202fd30b6a1dadf8, \< 7311c8be3755611bf6edea4dfbeb190b4bdd489f; \>= 59094b1e5094c7e50a3d2912202fd30b6a1dadf8, \< cb145932fcf6814e7e95e467eb70e7849a845ae9; \>= 59094b1e5094c7e50a3d2912202fd30b6a1dadf8, \< 55866fe3fded3ce94ac3fc1bb3dfce654282f483; \>= 59094b1e5094c7e50a3d2912202fd30b6a1dadf8, \< 26aec72429a05e917d574eca0efc5306c63a8862; \>= 59094b1e5094c7e50a3d2912202fd30b6a1dadf8, \< 7b7a74ed303d532fb73ae4b1697f16a0fea89cd0; \>= 59094b1e5094c7e50a3d2912202fd30b6a1dadf8, \< da94a7781fc3c92e7df7832bc2746f4d39bc624e (cvelist)
- Linux: 5.3 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-54193. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-54193.md
Affected: Linux >= 59094b1e5094c7e50a3d2912202fd30b6a1dadf8, < cc5fe387c6294d0471cb7ed064efac97fac65ccc; >= 59094b1e5094c7e50a3d2912202fd30b6a1dadf8, < 7311c8be3755611bf6edea4dfbeb190b4bdd489f; >= 59094b1e5094c7e50a3d2912202fd30b6a1dadf8, < cb145932fcf6814e7e95e467eb70e7849a845ae9; >= 59094b1e5094c7e50a3d291…
Fixed in: Linux 7311c8be3755611bf6edea4dfbeb190b4bdd489f, Linux 55866fe3fded3ce94ac3fc1bb3dfce654282f483, Linux 26aec72429a05e917d574eca0efc5306c63a8862, Linux 7b7a74ed303d532fb73ae4b1697f16a0fea89cd0

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-54193 being exploited?

There is no confirmed exploitation: CVE-2023-54193 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-54193?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-54193?

Linux \>= 59094b1e5094c7e50a3d2912202fd30b6a1dadf8, \< cc5fe387c6294d0471cb7ed064efac97fac65ccc; \>= 59094b1e5094c7e50a3d2912202fd30b6a1dadf8, \< 7311c8be3755611bf6edea4dfbeb190b4bdd489f; \>= 59094b1e5094c7e50a3d2912202fd30b6a1dadf8, \< cb145932fcf6814e7e95e467eb70e7849a845ae9; \>= 59094b1e5094c7e50a3d2912202fd30b6a1dadf8, \< 55866fe3fded3ce94ac3fc1bb3dfce654282f483; \>= 59094b1e5094c7e50a3d2912202fd30b6a1dadf8, \< 26aec72429a05e917d574eca0efc5306c63a8862; \>= 59094b1e5094c7e50a3d2912202fd30b6a1dadf8, \< 7b7a74ed303d532fb73ae4b1697f16a0fea89cd0; \>= 59094b1e5094c7e50a3d2912202fd30b6a1dadf8, \< da94a7781fc3c92e7df7832bc2746f4d39bc624e; Linux 5.3.

### Is there a fix for CVE-2023-54193?

Yes. Fixed in Linux 7311c8be3755611bf6edea4dfbeb190b4bdd489f, Linux 55866fe3fded3ce94ac3fc1bb3dfce654282f483, Linux 26aec72429a05e917d574eca0efc5306c63a8862, Linux 7b7a74ed303d532fb73ae4b1697f16a0fea89cd0. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-54193?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/cc5fe387c6294d0471cb7ed064efac97fac65ccc>
- other: <https://git.kernel.org/stable/c/7311c8be3755611bf6edea4dfbeb190b4bdd489f>
- other: <https://git.kernel.org/stable/c/cb145932fcf6814e7e95e467eb70e7849a845ae9>
- other: <https://git.kernel.org/stable/c/55866fe3fded3ce94ac3fc1bb3dfce654282f483>
- other: <https://git.kernel.org/stable/c/26aec72429a05e917d574eca0efc5306c63a8862>
- other: <https://git.kernel.org/stable/c/7b7a74ed303d532fb73ae4b1697f16a0fea89cd0>
- other: <https://git.kernel.org/stable/c/da94a7781fc3c92e7df7832bc2746f4d39bc624e>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-54193>

HTML: <https://flawdb.com/CVE-2023-54193> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-54193>
