# CVE-2026-99638: net/sched: clamp skb-\>queue\_mapping before indexing the tx queue

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.22% (percentile 7, 2026-11-28)
- **Published:** 2026-11-20T05:49:54.656Z
- **Modified:** 2026-11-23T08:18:05.443Z

## Who should check

- Anyone running Linux \>= 74e31ca850c1cddeca03503171dd145b6ce293b6, \< 8378f8af694bbebb8aeb8f6b5ee85d8776deb91a; \>= 74e31ca850c1cddeca03503171dd145b6ce293b6, \< 9d102a396aec33bdf4c1e92e0818e2bbdf5b0221; \>= 74e31ca850c1cddeca03503171dd145b6ce293b6, \< 542f917040437eef76fd45df57874541b5dd2e01; \>= 74e31ca850c1cddeca03503171dd145b6ce293b6, \< 4697611292458bc7ded42f50ab649d6d5dd68710; \>= 74e31ca850c1cddeca03503171dd145b6ce293b6, \< 8182ba13500b39d75b66fe9f37e13cb325c4b17e; \>= 74e31ca850c1cddeca03503171dd145b6ce293b6, \< 7445eccce376f7adb876c9f466d7d893344af7ce; \>= 74e31ca850c1cddeca03503171dd145b6ce293b6, \< 7327092a678bfcb1bae033acb1be1006a1399e30; \>= 74e31ca850c1cddeca03503171dd145b6ce293b6, \< f19f2b308beb158d0e6f6eb806ced636e4ebf6ce
- Anyone running Linux 5.1

## Description

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

net/sched: clamp skb-\>queue\_mapping before indexing the tx queue

This issue was caught by Sashiko (nipa). A producer-side path cap is
already merged (ea4d4b5dddb5); this patch adds the matching consumer-side
caps.

The issue:
The tx queue is picked and capped in netdev\_core\_pick\_tx() before the
\_\_dev\_xmit\_skb() qdisc enqueue path. A tc BPF program running inside an
egress qdisc (not clsact) can then change \_\_sk\_buff-\>queue\_mapping; that
store is never re-checked. bpf\_convert\_ctx\_access() bounds it only by
NO\_QUEUE\_MAPPING, not by the device's queue count.

Two consumers read the stale value:

  - On dequeue, qdisc\_restart() calls netdev\_get\_tx\_queue(), which
    indexes dev-\>\_tx\[\]. netdev\_get\_tx\_queue() guards it with just a
    DEBUG\_NET\_WARN\_ON\_ONCE, so sch\_direct\_xmit() takes the out-of-bounds
    txq-\>\_xmit\_lock and writes txq-\>xmit\_lock\_owner past the end of the
    allocation on non-lltx devices such as ifb. Drivers that index their
    rings from skb\_get\_queue\_mapping() (ex: ifb) go out of range the same
    way.

  - On enqueue, taprio\_enqueue() indexes q-\>qdiscs\[\] with the same value;
    the array is sized dev-\>num\_tx\_queues. A duplicating netem on a child
    qdisc clones the skb and re-enqueues the clone at the taprio root
    (qdisc\_root\_bh()) through a direct rootq-\>enqueue() call, so the value
    reaches taprio\_enqueue() before any dequeue cap runs.

The Fix:
Cap the mapping at the consumers and write the capped value back, so the
qdisc's \_tx\[\] lookup, the taprio q-\>qdiscs\[\] lookup and any later driver
read stay in range.

On the dequeue side the cap folds into the dequeue path instead of a
separate walk over the returned list: dequeue\_skb() caps the head, and
each bulk helper caps the element it appends. For a qdisc that is not
TCQ\_F\_ONETXQUEUE, netdev\_cap\_txqueue() logs a ratelimited notice and
selects queue 0.

A TCQ\_F\_ONETXQUEUE qdisc is bound to a single tx queue: dequeue\_skb() uses
q-\>dev\_queue for the frozen check, the BQL limit and the trace point, while
qdisc\_restart() transmits on the skb's queue. Capping an out-of-range
mapping to queue 0 would therefore send a per-queue child's skb through a
different queue than the one it was dequeued for. On mq, mqprio, taprio and
htb offload children, a stopped queue 0 could then park the list in
q-\>gso\_skb, and the later wake would schedule queue 0's own child instead
of this qdisc. Pin a TCQ\_F\_ONETXQUEUE mapping to the qdisc's own queue to
keep the documented invariant.

The pin covers every mapping, not only an out-of-range one: an in-range
mapping that a filter sets on one of those per-queue children is rewritten
to the child's own queue, and this path does not call netdev\_cap\_txqueue(),
so it logs no notice. On a single-queue device qdisc\_create() sets
TCQ\_F\_ONETXQUEUE, so the one-queue trigger described below also takes this
branch and is corrected without a notice.

That also keeps a bulk list on one queue by construction: every element of
a TCQ\_F\_ONETXQUEUE qdisc, including a follower changed by a filter, is
pinned to q-\>dev\_queue before it is appended. The fast bulk helper
therefore needs no head comparison and no skb\_bad\_txq requeue; the slow
helper, used only by non-ONETXQUEUE qdiscs, still compares and requeues a
mismatched follower, where a wake on any queue reschedules q.

On the enqueue side taprio\_enqueue() caps the mapping against
real\_num\_tx\_queues and writes it back before selecting q-\>qdiscs\[queue\], so
a duplicating child cannot steer the clone out of the array.

Conditions to recreate the bug:
The dequeue path: load a SCHED\_CLS or SCHED\_ACT program that stores
\_\_sk\_buff-\>queue\_mapping (a tc BPF action is enough), attach it to a
transmit qdisc (for example a matchall filter on a prio root), and send a
packet. With a 1-queue device a store of 1 indexes one past dev-\>\_tx\[\].
Under KASAN with panic\_on\_warn=1 the unfixed kernel faults with "BUG:
KASAN: slab-out-
---truncated---

## Affected and fixed versions

- Linux: \>= 74e31ca850c1cddeca03503171dd145b6ce293b6, \< 8378f8af694bbebb8aeb8f6b5ee85d8776deb91a; \>= 74e31ca850c1cddeca03503171dd145b6ce293b6, \< 9d102a396aec33bdf4c1e92e0818e2bbdf5b0221; \>= 74e31ca850c1cddeca03503171dd145b6ce293b6, \< 542f917040437eef76fd45df57874541b5dd2e01; \>= 74e31ca850c1cddeca03503171dd145b6ce293b6, \< 4697611292458bc7ded42f50ab649d6d5dd68710; \>= 74e31ca850c1cddeca03503171dd145b6ce293b6, \< 8182ba13500b39d75b66fe9f37e13cb325c4b17e; \>= 74e31ca850c1cddeca03503171dd145b6ce293b6, \< 7445eccce376f7adb876c9f466d7d893344af7ce; \>= 74e31ca850c1cddeca03503171dd145b6ce293b6, \< 7327092a678bfcb1bae033acb1be1006a1399e30; \>= 74e31ca850c1cddeca03503171dd145b6ce293b6, \< f19f2b308beb158d0e6f6eb806ced636e4ebf6ce (cvelist)
- Linux: 5.1 (cvelist)

## Technologies

Linux kernel

## 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-2026-99638. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99638.md
Affected: Linux >= 74e31ca850c1cddeca03503171dd145b6ce293b6, < 8378f8af694bbebb8aeb8f6b5ee85d8776deb91a; >= 74e31ca850c1cddeca03503171dd145b6ce293b6, < 9d102a396aec33bdf4c1e92e0818e2bbdf5b0221; >= 74e31ca850c1cddeca03503171dd145b6ce293b6, < 542f917040437eef76fd45df57874541b5dd2e01; >= 74e31ca850c1cddeca03503…
Fixed in: Linux 8378f8af694bbebb8aeb8f6b5ee85d8776deb91a, Linux 9d102a396aec33bdf4c1e92e0818e2bbdf5b0221, Linux 542f917040437eef76fd45df57874541b5dd2e01, Linux 4697611292458bc7ded42f50ab649d6d5dd68710, Linux 8182ba13500b39d75b66fe9f37e13cb325c4b17e, Linux 7445eccce376f7adb876c9f466d7d893344af7ce, Linux 73270…

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 74e31ca850c1cddeca03503171dd145b6ce293b6, \< 8378f8af694bbebb8aeb8f6b5ee85d8776deb91a; \>= 74e31ca850c1cddeca03503171dd145b6ce293b6, \< 9d102a396aec33bdf4c1e92e0818e2bbdf5b0221; \>= 74e31ca850c1cddeca03503171dd145b6ce293b6, \< 542f917040437eef76fd45df57874541b5dd2e01; \>= 74e31ca850c1cddeca03503171dd145b6ce293b6, \< 4697611292458bc7ded42f50ab649d6d5dd68710; \>= 74e31ca850c1cddeca03503171dd145b6ce293b6, \< 8182ba13500b39d75b66fe9f37e13cb325c4b17e; \>= 74e31ca850c1cddeca03503171dd145b6ce293b6, \< 7445eccce376f7adb876c9f466d7d893344af7ce; \>= 74e31ca850c1cddeca03503171dd145b6ce293b6, \< 7327092a678bfcb1bae033acb1be1006a1399e30; \>= 74e31ca850c1cddeca03503171dd145b6ce293b6, \< f19f2b308beb158d0e6f6eb806ced636e4ebf6ce; Linux 5.1.

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

Yes. Fixed in Linux 8378f8af694bbebb8aeb8f6b5ee85d8776deb91a, Linux 9d102a396aec33bdf4c1e92e0818e2bbdf5b0221, Linux 542f917040437eef76fd45df57874541b5dd2e01, Linux 4697611292458bc7ded42f50ab649d6d5dd68710, Linux 8182ba13500b39d75b66fe9f37e13cb325c4b17e, Linux 7445eccce376f7adb876c9f466d7d893344af7ce, Linux 7327092a678bfcb1bae033acb1be1006a1399e30. No fix listed yet: follow the vendor advisory.

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

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/8378f8af694bbebb8aeb8f6b5ee85d8776deb91a>
- other: <https://git.kernel.org/stable/c/9d102a396aec33bdf4c1e92e0818e2bbdf5b0221>
- other: <https://git.kernel.org/stable/c/542f917040437eef76fd45df57874541b5dd2e01>
- other: <https://git.kernel.org/stable/c/4697611292458bc7ded42f50ab649d6d5dd68710>
- other: <https://git.kernel.org/stable/c/8182ba13500b39d75b66fe9f37e13cb325c4b17e>
- other: <https://git.kernel.org/stable/c/7445eccce376f7adb876c9f466d7d893344af7ce>
- other: <https://git.kernel.org/stable/c/7327092a678bfcb1bae033acb1be1006a1399e30>
- other: <https://git.kernel.org/stable/c/f19f2b308beb158d0e6f6eb806ced636e4ebf6ce>

## 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-99638>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

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