Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-99638

published

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

Published
20 Nov 2026, 05:49:54 UTC
Updated
23 Nov 2026, 08:05:26 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux74e31ca850c1cddeca03503171dd145b6ce293b6 to < 8378f8af694bbebb8aeb8f6b5ee85d8776deb91a · 74e31ca850c1cddeca03503171dd145b6ce293b6 to < 9d102a396aec33bdf4c1e92e0818e2bbdf5b0221 · 74e31ca850c1cddeca03503171dd145b6ce293b6 to < 542f917040437eef76fd45df57874541b5dd2e01 · 74e31ca850c1cddeca03503171dd145b6ce293b6 to < 4697611292458bc7ded42f50ab649d6d5dd68710 · 74e31ca850c1cddeca03503171dd145b6ce293b6 to < 8182ba13500b39d75b66fe9f37e13cb325c4b17e · 74e31ca850c1cddeca03503171dd145b6ce293b6 to < 7445eccce376f7adb876c9f466d7d893344af7ce · 74e31ca850c1cddeca03503171dd145b6ce293b6 to < 7327092a678bfcb1bae033acb1be1006a1399e30 · 74e31ca850c1cddeca03503171dd145b6ce293b6 to < f19f2b308beb158d0e6f6eb806ced636e4ebf6ce · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.1 (affected) · 0 to < 5.1 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.118 through 6.12.* (unaffected · semver) · 6.18.64 through 6.18.* (unaffected · semver) · 7.3.5 through 7.3.* (unaffected · semver) · 7.4-rc2 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Pending Fix; Not Affected Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Pending Fix Not stated Amazon Linux assessment
Debian trixie linux Advisory build 6.12.118-1 DSA-6652-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---

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

1

Assessment

CVSS risk assessment and additional context for this vulnerability.

No normalized assessments.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 74e31ca850c1cddeca03503171dd145b6ce293b6 to < 8378f8af694bbebb8aeb8f6b5ee85d8776deb91a (affected · git)74e31ca850c1cddeca03503171dd145b6ce293b6 to < 9d102a396aec33bdf4c1e92e0818e2bbdf5b0221 (affected · git)74e31ca850c1cddeca03503171dd145b6ce293b6 to < 542f917040437eef76fd45df57874541b5dd2e01 (affected · git)74e31ca850c1cddeca03503171dd145b6ce293b6 to < 4697611292458bc7ded42f50ab649d6d5dd68710 (affected · git)74e31ca850c1cddeca03503171dd145b6ce293b6 to < 8182ba13500b39d75b66fe9f37e13cb325c4b17e (affected · git)74e31ca850c1cddeca03503171dd145b6ce293b6 to < 7445eccce376f7adb876c9f466d7d893344af7ce (affected · git)74e31ca850c1cddeca03503171dd145b6ce293b6 to < 7327092a678bfcb1bae033acb1be1006a1399e30 (affected · git)74e31ca850c1cddeca03503171dd145b6ce293b6 to < f19f2b308beb158d0e6f6eb806ced636e4ebf6ce (affected · git)Default: unaffected Linux · cna
Linux Linux 5.1 (affected)0 to < 5.1 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.118 through 6.12.* (unaffected · semver)6.18.64 through 6.18.* (unaffected · semver)7.3.5 through 7.3.* (unaffected · semver)7.4-rc2 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

8

Provider assertions

1

Linux · cna

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

Provenance

Schema
5.2
Searchable
yes
Content hash
34baa7faac680d65484cec3ed05b519b6ea8e4e5a9b4c7ef98612cdf48b30075
Ingested
23 Nov 2026, 14:37:13 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected