# CVE-2026-142904: veth: clear rx queue hint in veth\_xmit

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-12-03T03:25:50.694Z
- **Modified:** 2026-12-03T04:18:29.940Z

> **AI summary (AI-generated, claude-haiku-5-5):** A local user can trigger a kernel warning and disrupt packet receive handling by sending traffic over a veth pair with mismatched tx and rx queue counts in the Linux kernel.

## Who should check

- Anyone running Linux \>= 76ff5cc91935c51fcf1a6a99ffa28b97a6e7a884, \< 539bf961c11392022fc581357a965d9b1330687e; \>= 76ff5cc91935c51fcf1a6a99ffa28b97a6e7a884, \< bdd3535781fb0508b3715fa04c930e5224d20407; \>= 76ff5cc91935c51fcf1a6a99ffa28b97a6e7a884, \< 8277f6db255e1d4f51225d3e517902a80fe6727a; \>= 76ff5cc91935c51fcf1a6a99ffa28b97a6e7a884, \< 1b1c0e87cfe78d731bbab99c9c018655980b6790
- Anyone running Linux 3.6

## Description

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

veth: clear rx queue hint in veth\_xmit

With more tx queues on one end of a veth pair than rx queues on the
other, and RPS or generic XDP enabled on the receiving end, we get:

    veth1 received packet on queue 2, but number of RX queues is 2
    WARNING: net/core/dev.c:5212 at get\_rps\_cpu+0x560/0x1360
    Call Trace:
     \<TASK\>
     netif\_rx\_internal+0x1af/0x4c0
     \_\_netif\_rx+0x99/0x350
     veth\_xmit+0x713/0xca0
     dev\_hard\_start\_xmit+0x166/0x5f0
     \_\_dev\_queue\_xmit+0x1797/0x42d0
     ip\_finish\_output2+0xa34/0x1f40
     \_\_ip\_finish\_output+0x510/0x7e0
     ip\_finish\_output+0x2f/0x320
     ip\_output+0x17a/0x3f0
     ip\_send\_skb+0x1bc/0x220
     ......

Easy to hit with "ethtool -L veth0 tx 4", "ethtool -L veth1 rx 2",
rps\_cpus set on veth1 and a few flows sent over the pair \[1\].

veth\_xmit() uses skb-\>queue\_mapping to pick the peer rq, but never
clears it before veth\_forward\_skb(), so the rx side still sees the tx
queue index. Everything on the rx side that goes through
skb\_get\_rx\_queue(), like get\_rps\_cpu() and netif\_get\_rxqueue() for
generic XDP, takes it as a recorded rx queue and warns once it is out
of range.

Clear it before handing the skb to the peer:

- It is the tx queue index of this device, it says nothing about the
  rx queue of the peer.

- The two sides don't even agree on the encoding. The tx side stores
  the index as is, the rx side stores index + 1 so that 0 can mean
  "not recorded". So tx queue k is read back as rx queue k - 1, and
  tx queue 0 as "not recorded".

- Commit 710ad98c363a ("veth: Do not record rx queue hint in
  veth\_xmit") already decided that veth should not pass any queue
  hint to the peer. There is no tx-\>rx queue mapping to preserve, so
  nothing is lost by clearing it.

On NETDEV\_TX\_BUSY the skb goes back to the qdisc, which looks up the
txq from skb-\>queue\_mapping to decide when to retry, so restore it
there, next to the existing \_\_skb\_push().

\[1\]: https://lore.kernel.org/netdev/156834bb-8e40-496e-9443-9d515fa18eab@linux.dev/

## Affected and fixed versions

- Linux: \>= 76ff5cc91935c51fcf1a6a99ffa28b97a6e7a884, \< 539bf961c11392022fc581357a965d9b1330687e; \>= 76ff5cc91935c51fcf1a6a99ffa28b97a6e7a884, \< bdd3535781fb0508b3715fa04c930e5224d20407; \>= 76ff5cc91935c51fcf1a6a99ffa28b97a6e7a884, \< 8277f6db255e1d4f51225d3e517902a80fe6727a; \>= 76ff5cc91935c51fcf1a6a99ffa28b97a6e7a884, \< 1b1c0e87cfe78d731bbab99c9c018655980b6790 (cvelist)
- Linux: 3.6 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 1b1c0e87cfe78d731bbab99c9c018655980b6790 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-142904. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-142904.md
Affected: Linux >= 76ff5cc91935c51fcf1a6a99ffa28b97a6e7a884, < 539bf961c11392022fc581357a965d9b1330687e; >= 76ff5cc91935c51fcf1a6a99ffa28b97a6e7a884, < bdd3535781fb0508b3715fa04c930e5224d20407; >= 76ff5cc91935c51fcf1a6a99ffa28b97a6e7a884, < 8277f6db255e1d4f51225d3e517902a80fe6727a; >= 76ff5cc91935c51fcf1a6a9…
Fixed in: Linux 539bf961c11392022fc581357a965d9b1330687e, Linux 8277f6db255e1d4f51225d3e517902a80fe6727a, Linux 1b1c0e87cfe78d731bbab99c9c018655980b6790

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

There is no confirmed exploitation: CVE-2026-142904 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

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

It has no CVSS score yet. Unknown.

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

Linux \>= 76ff5cc91935c51fcf1a6a99ffa28b97a6e7a884, \< 539bf961c11392022fc581357a965d9b1330687e; \>= 76ff5cc91935c51fcf1a6a99ffa28b97a6e7a884, \< bdd3535781fb0508b3715fa04c930e5224d20407; \>= 76ff5cc91935c51fcf1a6a99ffa28b97a6e7a884, \< 8277f6db255e1d4f51225d3e517902a80fe6727a; \>= 76ff5cc91935c51fcf1a6a99ffa28b97a6e7a884, \< 1b1c0e87cfe78d731bbab99c9c018655980b6790; Linux 3.6.

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

Yes. Fixed in Linux 539bf961c11392022fc581357a965d9b1330687e, Linux 8277f6db255e1d4f51225d3e517902a80fe6727a, Linux 1b1c0e87cfe78d731bbab99c9c018655980b6790. Upgrade Linux to 1b1c0e87cfe78d731bbab99c9c018655980b6790 or later.

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

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/539bf961c11392022fc581357a965d9b1330687e>
- other: <https://git.kernel.org/stable/c/bdd3535781fb0508b3715fa04c930e5224d20407>
- other: <https://git.kernel.org/stable/c/8277f6db255e1d4f51225d3e517902a80fe6727a>
- other: <https://git.kernel.org/stable/c/1b1c0e87cfe78d731bbab99c9c018655980b6790>

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

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