# CVE-2023-53021: net/sched: sch\_taprio: fix possible use-after-free

> 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.30% (percentile 15, 2026-11-29)
- **CWE:** CWE-416
- **Published:** 2025-03-27T16:43:47.860Z
- **Modified:** 2026-08-05T09:12:22.973Z

## Who should check

- Anyone running Linux \>= 5a781ccbd19e4664babcbe4b4ead7aa2b9283d22, \< 1200388a0b1c3c6fda48d4d2143db8f7e4ef5348; \>= 5a781ccbd19e4664babcbe4b4ead7aa2b9283d22, \< c60fe70078d6e515f424cb868d07e00411b27fbc; \>= 5a781ccbd19e4664babcbe4b4ead7aa2b9283d22, \< c53acbf2facfdfabdc6e6984a1a38f5d38b606a1; \>= 5a781ccbd19e4664babcbe4b4ead7aa2b9283d22, \< d3b2d2820a005e43855fa71b80c4a4b194201c60; \>= 5a781ccbd19e4664babcbe4b4ead7aa2b9283d22, \< 3a415d59c1dbec9d772dbfab2d2520d98360caae
- Anyone running Linux 4.20

## Description

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

net/sched: sch\_taprio: fix possible use-after-free

syzbot reported a nasty crash \[1\] in net\_tx\_action() which
made little sense until we got a repro.

This repro installs a taprio qdisc, but providing an
invalid TCA\_RATE attribute.

qdisc\_create() has to destroy the just initialized
taprio qdisc, and taprio\_destroy() is called.

However, the hrtimer used by taprio had already fired,
therefore advance\_sched() called \_\_netif\_schedule().

Then net\_tx\_action was trying to use a destroyed qdisc.

We can not undo the \_\_netif\_schedule(), so we must wait
until one cpu serviced the qdisc before we can proceed.

Many thanks to Alexander Potapenko for his help.

\[1\]
BUG: KMSAN: uninit-value in queued\_spin\_trylock include/asm-generic/qspinlock.h:94 \[inline\]
BUG: KMSAN: uninit-value in do\_raw\_spin\_trylock include/linux/spinlock.h:191 \[inline\]
BUG: KMSAN: uninit-value in \_\_raw\_spin\_trylock include/linux/spinlock\_api\_smp.h:89 \[inline\]
BUG: KMSAN: uninit-value in \_raw\_spin\_trylock+0x92/0xa0 kernel/locking/spinlock.c:138
 queued\_spin\_trylock include/asm-generic/qspinlock.h:94 \[inline\]
 do\_raw\_spin\_trylock include/linux/spinlock.h:191 \[inline\]
 \_\_raw\_spin\_trylock include/linux/spinlock\_api\_smp.h:89 \[inline\]
 \_raw\_spin\_trylock+0x92/0xa0 kernel/locking/spinlock.c:138
 spin\_trylock include/linux/spinlock.h:359 \[inline\]
 qdisc\_run\_begin include/net/sch\_generic.h:187 \[inline\]
 qdisc\_run+0xee/0x540 include/net/pkt\_sched.h:125
 net\_tx\_action+0x77c/0x9a0 net/core/dev.c:5086
 \_\_do\_softirq+0x1cc/0x7fb kernel/softirq.c:571
 run\_ksoftirqd+0x2c/0x50 kernel/softirq.c:934
 smpboot\_thread\_fn+0x554/0x9f0 kernel/smpboot.c:164
 kthread+0x31b/0x430 kernel/kthread.c:376
 ret\_from\_fork+0x1f/0x30

Uninit was created at:
 slab\_post\_alloc\_hook mm/slab.h:732 \[inline\]
 slab\_alloc\_node mm/slub.c:3258 \[inline\]
 \_\_kmalloc\_node\_track\_caller+0x814/0x1250 mm/slub.c:4970
 kmalloc\_reserve net/core/skbuff.c:358 \[inline\]
 \_\_alloc\_skb+0x346/0xcf0 net/core/skbuff.c:430
 alloc\_skb include/linux/skbuff.h:1257 \[inline\]
 nlmsg\_new include/net/netlink.h:953 \[inline\]
 netlink\_ack+0x5f3/0x12b0 net/netlink/af\_netlink.c:2436
 netlink\_rcv\_skb+0x55d/0x6c0 net/netlink/af\_netlink.c:2507
 rtnetlink\_rcv+0x30/0x40 net/core/rtnetlink.c:6108
 netlink\_unicast\_kernel net/netlink/af\_netlink.c:1319 \[inline\]
 netlink\_unicast+0xf3b/0x1270 net/netlink/af\_netlink.c:1345
 netlink\_sendmsg+0x1288/0x1440 net/netlink/af\_netlink.c:1921
 sock\_sendmsg\_nosec net/socket.c:714 \[inline\]
 sock\_sendmsg net/socket.c:734 \[inline\]
 \_\_\_\_sys\_sendmsg+0xabc/0xe90 net/socket.c:2482
 \_\_\_sys\_sendmsg+0x2a1/0x3f0 net/socket.c:2536
 \_\_sys\_sendmsg net/socket.c:2565 \[inline\]
 \_\_do\_sys\_sendmsg net/socket.c:2574 \[inline\]
 \_\_se\_sys\_sendmsg net/socket.c:2572 \[inline\]
 \_\_x64\_sys\_sendmsg+0x367/0x540 net/socket.c:2572
 do\_syscall\_x64 arch/x86/entry/common.c:50 \[inline\]
 do\_syscall\_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd

CPU: 0 PID: 13 Comm: ksoftirqd/0 Not tainted 6.0.0-rc2-syzkaller-47461-gac3859c02d7f \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022

## Affected and fixed versions

- Linux: \>= 5a781ccbd19e4664babcbe4b4ead7aa2b9283d22, \< 1200388a0b1c3c6fda48d4d2143db8f7e4ef5348; \>= 5a781ccbd19e4664babcbe4b4ead7aa2b9283d22, \< c60fe70078d6e515f424cb868d07e00411b27fbc; \>= 5a781ccbd19e4664babcbe4b4ead7aa2b9283d22, \< c53acbf2facfdfabdc6e6984a1a38f5d38b606a1; \>= 5a781ccbd19e4664babcbe4b4ead7aa2b9283d22, \< d3b2d2820a005e43855fa71b80c4a4b194201c60; \>= 5a781ccbd19e4664babcbe4b4ead7aa2b9283d22, \< 3a415d59c1dbec9d772dbfab2d2520d98360caae (cvelist)
- Linux: 4.20 (cvelist)

## Mitigation

- Upgrade Linux to 3a415d59c1dbec9d772dbfab2d2520d98360caae or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-53021.md
Affected: Linux >= 5a781ccbd19e4664babcbe4b4ead7aa2b9283d22, < 1200388a0b1c3c6fda48d4d2143db8f7e4ef5348; >= 5a781ccbd19e4664babcbe4b4ead7aa2b9283d22, < c60fe70078d6e515f424cb868d07e00411b27fbc; >= 5a781ccbd19e4664babcbe4b4ead7aa2b9283d22, < c53acbf2facfdfabdc6e6984a1a38f5d38b606a1; >= 5a781ccbd19e4664babcbe4…
Fixed in: Linux 1200388a0b1c3c6fda48d4d2143db8f7e4ef5348, Linux 3a415d59c1dbec9d772dbfab2d2520d98360caae

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-53021 being exploited?

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

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

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

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

Linux \>= 5a781ccbd19e4664babcbe4b4ead7aa2b9283d22, \< 1200388a0b1c3c6fda48d4d2143db8f7e4ef5348; \>= 5a781ccbd19e4664babcbe4b4ead7aa2b9283d22, \< c60fe70078d6e515f424cb868d07e00411b27fbc; \>= 5a781ccbd19e4664babcbe4b4ead7aa2b9283d22, \< c53acbf2facfdfabdc6e6984a1a38f5d38b606a1; \>= 5a781ccbd19e4664babcbe4b4ead7aa2b9283d22, \< d3b2d2820a005e43855fa71b80c4a4b194201c60; \>= 5a781ccbd19e4664babcbe4b4ead7aa2b9283d22, \< 3a415d59c1dbec9d772dbfab2d2520d98360caae; Linux 4.20.

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

Yes. Fixed in Linux 1200388a0b1c3c6fda48d4d2143db8f7e4ef5348, Linux 3a415d59c1dbec9d772dbfab2d2520d98360caae. Upgrade Linux to 3a415d59c1dbec9d772dbfab2d2520d98360caae or later.

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

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

- patch: <https://git.kernel.org/stable/c/1200388a0b1c3c6fda48d4d2143db8f7e4ef5348>
- patch: <https://git.kernel.org/stable/c/c60fe70078d6e515f424cb868d07e00411b27fbc>
- patch: <https://git.kernel.org/stable/c/c53acbf2facfdfabdc6e6984a1a38f5d38b606a1>
- patch: <https://git.kernel.org/stable/c/d3b2d2820a005e43855fa71b80c4a4b194201c60>
- patch: <https://git.kernel.org/stable/c/3a415d59c1dbec9d772dbfab2d2520d98360caae>

## 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-53021>

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