# CVE-2026-98797: net: cap skb-\>queue\_mapping when the tx queue is picked

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.20% (percentile 6, 2026-11-26)
- **Published:** 2026-10-18T15:48:41.613Z
- **Modified:** 2026-10-19T10:19:43.707Z

## Who should check

- Anyone running Linux \>= 2f1e85b1aee459b7d0fd981839042c6a38ffaf0c, \< c6ec35c8267c84c2094cb485db20c06384fc2bcc; \>= 2f1e85b1aee459b7d0fd981839042c6a38ffaf0c, \< 2f581814e4e3ea6a5e98f49813dc4c68444a0c4a; \>= 2f1e85b1aee459b7d0fd981839042c6a38ffaf0c, \< f99de42f5c6f8d088063817dad82c3334e87c570; \>= 2f1e85b1aee459b7d0fd981839042c6a38ffaf0c, \< ea4d4b5dddb5121e64f56fd8e0720bd8b447b63d
- Anyone running Linux 5.19

## Description

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

net: cap skb-\>queue\_mapping when the tx queue is picked

skbedit can set skb-\>queue\_mapping and raise the per-CPU skip\_txqueue
flag so \_\_dev\_queue\_xmit() honours the mapping. \_\_dev\_queue\_xmit()
cleared the flag before sch\_handle\_egress() and only read it afterwards,
so the flag was not confined to the xmit that set it: a nested xmit
(mirred redirect or mirror, or a drop after skbedit) could set the flag
and the outer xmit would consume it for an skb that never went through
skbedit.

A forwarded packet still carries the ingress NIC's rx\_queue + 1 in
skb-\>queue\_mapping, so the outer device then indexes its tx queue state
with that stale value. Taprio's child array q-\>qdiscs\[\] is sized to the
device's queue count, so taprio\_enqueue() indexes past its allocation
and dereferences the result as a struct Qdisc \*.

We (ab)use the skb-\>nf\_skip\_egress which means "skip netfilter egress
for this packet" to tag to "am I in tc egress?". Despite the overload
I dont see it as a conflict since the marker is set only around the
single sch\_handle\_egress() call and ingress path is guarded by
tc\_at\_ingress.
I will send a followup(net-next) patch once this hits net-next to
rename the skb-\>nf\_skip\_egress bit/flag to skb-\>skip\_egress

Arm the flag only from the egress classifier that can use it: raise
skip\_txqueue from tcf\_skbedit\_act() only when it runs inside
sch\_handle\_egress(), thanks to skb-\>nf\_skip\_egress. An egress qdisc
classifier runs in q-\>enqueue(), after the tx queue has been picked,
so a mapping it sets cannot affect the current packet; arming the flag
there only pollutes it for a later xmit. Then own the flag for the xmit
frame the egress hook runs in: save the incoming value and clear it just
before sch\_handle\_egress(), and restore it after the hook - on the
consumed (drop) path, or, in the same call that reads it, on the
surviving path. The save and the restores stay inside the
egress\_needed\_key static branch, so a packet pays for them only when
egress hooks are active (2f1e85b1aee4).

Store the value netdev\_cap\_txqueue() selected back into skb-\>queue\_mapping
in netdev\_tx\_queue\_mapping(), as netdev\_core\_pick\_tx() already does, so
the skip\_txqueue path never hands a later reader on the xmit path a
mapping the device cannot serve. A store made still later in the same
frame, by a tc BPF program attached to a transmit qdisc, is outside this
path and is not re-capped; a separate followup will resolve that path.

netdev\_xmit\_skip\_txqueue() returns the previous flag value so the
save-and-clear is one call, and a no-op stub is provided when
CONFIG\_NET\_EGRESS is disabled. skb-\>nf\_skip\_egress is compiled under
CONFIG\_NET\_EGRESS rather than CONFIG\_NETFILTER\_SKIP\_EGRESS, so
skb\_at\_tc\_egress() is valid whenever the egress path is built.

A local user in a network namespace can redirect a packet from a device
with more TX queues to one with fewer after setting a mapping valid only
on the larger device. That reaches these reads and, under KASAN, faults
with "slab-out-of-bounds in taprio\_enqueue".

Conditions to recreate the bug: the report's own trigger is a local user
with CAP\_NET\_ADMIN in a network namespace, so no eBPF program is needed.
With CONFIG\_NET\_SCH\_TAPRIO=y, CONFIG\_NET\_ACT\_SKBEDIT=y,
CONFIG\_NET\_ACT\_MIRRED=y, CONFIG\_NET\_CLS\_MATCHALL=y,
CONFIG\_NET\_SCH\_PRIO=y and KASAN enabled, create qa (3 queues), qb
(2 queues) and qc (1 queue) as dummy devices; put a taprio root on qb
(num\_tc 1, queues 2@0) and clsact on all three; then add an egress
matchall filter on every device. On qa: "action skbedit queue\_mapping 2
pipe action mirred egress redirect dev qb". On qb: "action mirred egress
mirror dev qc". On qc: "action skbedit queue\_mapping 0 pipe". Send one
packet out qa. qc's skbedit sets the flag while qb's outer xmit is in
flight; without the fix qb consumes it and reads its two-entry taprio
child array with the forwarded packet's stale mapping. A qc whose
skb
---truncated---

## Affected and fixed versions

- Linux: \>= 2f1e85b1aee459b7d0fd981839042c6a38ffaf0c, \< c6ec35c8267c84c2094cb485db20c06384fc2bcc; \>= 2f1e85b1aee459b7d0fd981839042c6a38ffaf0c, \< 2f581814e4e3ea6a5e98f49813dc4c68444a0c4a; \>= 2f1e85b1aee459b7d0fd981839042c6a38ffaf0c, \< f99de42f5c6f8d088063817dad82c3334e87c570; \>= 2f1e85b1aee459b7d0fd981839042c6a38ffaf0c, \< ea4d4b5dddb5121e64f56fd8e0720bd8b447b63d (cvelist)
- Linux: 5.19 (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-2026-98797. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98797.md
Affected: Linux >= 2f1e85b1aee459b7d0fd981839042c6a38ffaf0c, < c6ec35c8267c84c2094cb485db20c06384fc2bcc; >= 2f1e85b1aee459b7d0fd981839042c6a38ffaf0c, < 2f581814e4e3ea6a5e98f49813dc4c68444a0c4a; >= 2f1e85b1aee459b7d0fd981839042c6a38ffaf0c, < f99de42f5c6f8d088063817dad82c3334e87c570; >= 2f1e85b1aee459b7d0fd981…
Fixed in: Linux 2f581814e4e3ea6a5e98f49813dc4c68444a0c4a

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 2f1e85b1aee459b7d0fd981839042c6a38ffaf0c, \< c6ec35c8267c84c2094cb485db20c06384fc2bcc; \>= 2f1e85b1aee459b7d0fd981839042c6a38ffaf0c, \< 2f581814e4e3ea6a5e98f49813dc4c68444a0c4a; \>= 2f1e85b1aee459b7d0fd981839042c6a38ffaf0c, \< f99de42f5c6f8d088063817dad82c3334e87c570; \>= 2f1e85b1aee459b7d0fd981839042c6a38ffaf0c, \< ea4d4b5dddb5121e64f56fd8e0720bd8b447b63d; Linux 5.19.

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

Yes. Fixed in Linux 2f581814e4e3ea6a5e98f49813dc4c68444a0c4a. No fix listed yet: follow the vendor advisory.

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

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/c6ec35c8267c84c2094cb485db20c06384fc2bcc>
- other: <https://git.kernel.org/stable/c/2f581814e4e3ea6a5e98f49813dc4c68444a0c4a>
- other: <https://git.kernel.org/stable/c/f99de42f5c6f8d088063817dad82c3334e87c570>
- other: <https://git.kernel.org/stable/c/ea4d4b5dddb5121e64f56fd8e0720bd8b447b63d>

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

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