# CVE-2026-23340: net: sched: avoid qdisc\_reset\_all\_tx\_gt() vs dequeue race for lockless qdiscs

> 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.16% (percentile 3, 2026-11-26)
- **CWE:** CWE-416, CWE-362
- **Published:** 2026-03-25T10:27:28.728Z
- **Modified:** 2026-11-23T08:17:15.250Z

## Who should check

- Anyone running Linux \>= 6b3ba9146fe64b9bebb6346c9dcfe3b4851de2d7, \< a5dee96fc4407f9944e640e0d732ee6de7504b46; \>= 6b3ba9146fe64b9bebb6346c9dcfe3b4851de2d7, \< 5bb27ad54d12de67e457d7d251198e361bef835e; \>= 6b3ba9146fe64b9bebb6346c9dcfe3b4851de2d7, \< 7594467c49bfc2f4644dee0415ac2290db11fa0d; \>= 6b3ba9146fe64b9bebb6346c9dcfe3b4851de2d7, \< dbd58b0730aa06ab6ad26079cf9a5b6b58e7e750; \>= 6b3ba9146fe64b9bebb6346c9dcfe3b4851de2d7, \< 5bc4e69306ed7ae02232eb4c0b23ed621a26d504; \>= 6b3ba9146fe64b9bebb6346c9dcfe3b4851de2d7, \< 8314944cc3bdeaa5a73e6f8a8cf0d94822e625cb; \>= 6b3ba9146fe64b9bebb6346c9dcfe3b4851de2d7, \< c69df4e0524f8de8e176ba389acd83e85f5f49d0; \>= 6b3ba9146fe64b9bebb6346c9dcfe3b4851de2d7, \< 7f083faf59d14c04e01ec05a7507f036c965acf8
- Anyone running Linux 4.16

## Description

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

net: sched: avoid qdisc\_reset\_all\_tx\_gt() vs dequeue race for lockless qdiscs

When shrinking the number of real tx queues,
netif\_set\_real\_num\_tx\_queues() calls qdisc\_reset\_all\_tx\_gt() to flush
qdiscs for queues which will no longer be used.

qdisc\_reset\_all\_tx\_gt() currently serializes qdisc\_reset() with
qdisc\_lock(). However, for lockless qdiscs, the dequeue path is
serialized by qdisc\_run\_begin/end() using qdisc-\>seqlock instead, so
qdisc\_reset() can run concurrently with \_\_qdisc\_run() and free skbs
while they are still being dequeued, leading to UAF.

This can easily be reproduced on e.g. virtio-net by imposing heavy
traffic while frequently changing the number of queue pairs:

  iperf3 -ub0 -c $peer -t 0 &
  while :; do
    ethtool -L eth0 combined 1
    ethtool -L eth0 combined 2
  done

With KASAN enabled, this leads to reports like:

  BUG: KASAN: slab-use-after-free in \_\_qdisc\_run+0x133f/0x1760
  ...
  Call Trace:
   \<TASK\>
   ...
   \_\_qdisc\_run+0x133f/0x1760
   \_\_dev\_queue\_xmit+0x248f/0x3550
   ip\_finish\_output2+0xa42/0x2110
   ip\_output+0x1a7/0x410
   ip\_send\_skb+0x2e6/0x480
   udp\_send\_skb+0xb0a/0x1590
   udp\_sendmsg+0x13c9/0x1fc0
   ...
   \</TASK\>

  Allocated by task 1270 on cpu 5 at 44.558414s:
   ...
   alloc\_skb\_with\_frags+0x84/0x7c0
   sock\_alloc\_send\_pskb+0x69a/0x830
   \_\_ip\_append\_data+0x1b86/0x48c0
   ip\_make\_skb+0x1e8/0x2b0
   udp\_sendmsg+0x13a6/0x1fc0
   ...

  Freed by task 1306 on cpu 3 at 44.558445s:
   ...
   kmem\_cache\_free+0x117/0x5e0
   pfifo\_fast\_reset+0x14d/0x580
   qdisc\_reset+0x9e/0x5f0
   netif\_set\_real\_num\_tx\_queues+0x303/0x840
   virtnet\_set\_channels+0x1bf/0x260 \[virtio\_net\]
   ethnl\_set\_channels+0x684/0xae0
   ethnl\_default\_set\_doit+0x31a/0x890
   ...

Serialize qdisc\_reset\_all\_tx\_gt() against the lockless dequeue path by
taking qdisc-\>seqlock for TCQ\_F\_NOLOCK qdiscs, matching the
serialization model already used by dev\_reset\_queue().

Additionally clear QDISC\_STATE\_NON\_EMPTY after reset so the qdisc state
reflects an empty queue, avoiding needless re-scheduling.

## Affected and fixed versions

- Linux: \>= 6b3ba9146fe64b9bebb6346c9dcfe3b4851de2d7, \< a5dee96fc4407f9944e640e0d732ee6de7504b46; \>= 6b3ba9146fe64b9bebb6346c9dcfe3b4851de2d7, \< 5bb27ad54d12de67e457d7d251198e361bef835e; \>= 6b3ba9146fe64b9bebb6346c9dcfe3b4851de2d7, \< 7594467c49bfc2f4644dee0415ac2290db11fa0d; \>= 6b3ba9146fe64b9bebb6346c9dcfe3b4851de2d7, \< dbd58b0730aa06ab6ad26079cf9a5b6b58e7e750; \>= 6b3ba9146fe64b9bebb6346c9dcfe3b4851de2d7, \< 5bc4e69306ed7ae02232eb4c0b23ed621a26d504; \>= 6b3ba9146fe64b9bebb6346c9dcfe3b4851de2d7, \< 8314944cc3bdeaa5a73e6f8a8cf0d94822e625cb; \>= 6b3ba9146fe64b9bebb6346c9dcfe3b4851de2d7, \< c69df4e0524f8de8e176ba389acd83e85f5f49d0; \>= 6b3ba9146fe64b9bebb6346c9dcfe3b4851de2d7, \< 7f083faf59d14c04e01ec05a7507f036c965acf8 (cvelist)
- Linux: 4.16 (cvelist)

## Mitigation

- Upgrade Linux to 7f083faf59d14c04e01ec05a7507f036c965acf8 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-23340.md
Affected: Linux >= 6b3ba9146fe64b9bebb6346c9dcfe3b4851de2d7, < a5dee96fc4407f9944e640e0d732ee6de7504b46; >= 6b3ba9146fe64b9bebb6346c9dcfe3b4851de2d7, < 5bb27ad54d12de67e457d7d251198e361bef835e; >= 6b3ba9146fe64b9bebb6346c9dcfe3b4851de2d7, < 7594467c49bfc2f4644dee0415ac2290db11fa0d; >= 6b3ba9146fe64b9bebb6346…
Fixed in: Linux 5bb27ad54d12de67e457d7d251198e361bef835e, Linux 7594467c49bfc2f4644dee0415ac2290db11fa0d, Linux 5bc4e69306ed7ae02232eb4c0b23ed621a26d504, Linux 8314944cc3bdeaa5a73e6f8a8cf0d94822e625cb, Linux 7f083faf59d14c04e01ec05a7507f036c965acf8

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-2026-23340 being exploited?

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

### How serious is CVE-2026-23340?

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

### Which versions are affected by CVE-2026-23340?

Linux \>= 6b3ba9146fe64b9bebb6346c9dcfe3b4851de2d7, \< a5dee96fc4407f9944e640e0d732ee6de7504b46; \>= 6b3ba9146fe64b9bebb6346c9dcfe3b4851de2d7, \< 5bb27ad54d12de67e457d7d251198e361bef835e; \>= 6b3ba9146fe64b9bebb6346c9dcfe3b4851de2d7, \< 7594467c49bfc2f4644dee0415ac2290db11fa0d; \>= 6b3ba9146fe64b9bebb6346c9dcfe3b4851de2d7, \< dbd58b0730aa06ab6ad26079cf9a5b6b58e7e750; \>= 6b3ba9146fe64b9bebb6346c9dcfe3b4851de2d7, \< 5bc4e69306ed7ae02232eb4c0b23ed621a26d504; \>= 6b3ba9146fe64b9bebb6346c9dcfe3b4851de2d7, \< 8314944cc3bdeaa5a73e6f8a8cf0d94822e625cb; \>= 6b3ba9146fe64b9bebb6346c9dcfe3b4851de2d7, \< c69df4e0524f8de8e176ba389acd83e85f5f49d0; \>= 6b3ba9146fe64b9bebb6346c9dcfe3b4851de2d7, \< 7f083faf59d14c04e01ec05a7507f036c965acf8; Linux 4.16.

### Is there a fix for CVE-2026-23340?

Yes. Fixed in Linux 5bb27ad54d12de67e457d7d251198e361bef835e, Linux 7594467c49bfc2f4644dee0415ac2290db11fa0d, Linux 5bc4e69306ed7ae02232eb4c0b23ed621a26d504, Linux 8314944cc3bdeaa5a73e6f8a8cf0d94822e625cb, Linux 7f083faf59d14c04e01ec05a7507f036c965acf8. Upgrade Linux to 7f083faf59d14c04e01ec05a7507f036c965acf8 or later.

### How do I check if I'm affected by CVE-2026-23340?

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/5bb27ad54d12de67e457d7d251198e361bef835e>
- patch: <https://git.kernel.org/stable/c/7594467c49bfc2f4644dee0415ac2290db11fa0d>
- patch: <https://git.kernel.org/stable/c/dbd58b0730aa06ab6ad26079cf9a5b6b58e7e750>
- patch: <https://git.kernel.org/stable/c/5bc4e69306ed7ae02232eb4c0b23ed621a26d504>
- patch: <https://git.kernel.org/stable/c/8314944cc3bdeaa5a73e6f8a8cf0d94822e625cb>
- patch: <https://git.kernel.org/stable/c/c69df4e0524f8de8e176ba389acd83e85f5f49d0>
- patch: <https://git.kernel.org/stable/c/7f083faf59d14c04e01ec05a7507f036c965acf8>
- other: <https://git.kernel.org/stable/c/a5dee96fc4407f9944e640e0d732ee6de7504b46>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

## 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-2026-23340>

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