{"api_version":"1","generated_at":"2026-12-03T05:14:26+00:00","cve":"CVE-2026-142904","urls":{"html":"https://cve.report/CVE-2026-142904","api":"https://cve.report/api/cve/CVE-2026-142904.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-142904","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-142904"},"summary":{"title":"veth: clear rx queue hint in veth_xmit","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nveth: clear rx queue hint in veth_xmit\n\nWith more tx queues on one end of a veth pair than rx queues on the\nother, and RPS or generic XDP enabled on the receiving end, we get:\n\n    veth1 received packet on queue 2, but number of RX queues is 2\n    WARNING: net/core/dev.c:5212 at get_rps_cpu+0x560/0x1360\n    Call Trace:\n     <TASK>\n     netif_rx_internal+0x1af/0x4c0\n     __netif_rx+0x99/0x350\n     veth_xmit+0x713/0xca0\n     dev_hard_start_xmit+0x166/0x5f0\n     __dev_queue_xmit+0x1797/0x42d0\n     ip_finish_output2+0xa34/0x1f40\n     __ip_finish_output+0x510/0x7e0\n     ip_finish_output+0x2f/0x320\n     ip_output+0x17a/0x3f0\n     ip_send_skb+0x1bc/0x220\n     ......\n\nEasy to hit with \"ethtool -L veth0 tx 4\", \"ethtool -L veth1 rx 2\",\nrps_cpus set on veth1 and a few flows sent over the pair [1].\n\nveth_xmit() uses skb->queue_mapping to pick the peer rq, but never\nclears it before veth_forward_skb(), so the rx side still sees the tx\nqueue index. Everything on the rx side that goes through\nskb_get_rx_queue(), like get_rps_cpu() and netif_get_rxqueue() for\ngeneric XDP, takes it as a recorded rx queue and warns once it is out\nof range.\n\nClear it before handing the skb to the peer:\n\n- It is the tx queue index of this device, it says nothing about the\n  rx queue of the peer.\n\n- The two sides don't even agree on the encoding. The tx side stores\n  the index as is, the rx side stores index + 1 so that 0 can mean\n  \"not recorded\". So tx queue k is read back as rx queue k - 1, and\n  tx queue 0 as \"not recorded\".\n\n- Commit 710ad98c363a (\"veth: Do not record rx queue hint in\n  veth_xmit\") already decided that veth should not pass any queue\n  hint to the peer. There is no tx->rx queue mapping to preserve, so\n  nothing is lost by clearing it.\n\nOn NETDEV_TX_BUSY the skb goes back to the qdisc, which looks up the\ntxq from skb->queue_mapping to decide when to retry, so restore it\nthere, next to the existing __skb_push().\n\n[1]: https://lore.kernel.org/netdev/156834bb-8e40-496e-9443-9d515fa18eab@linux.dev/","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 04:18:29","updated_at":"2026-12-03 04:18:29"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/8277f6db255e1d4f51225d3e517902a80fe6727a","name":"https://git.kernel.org/stable/c/8277f6db255e1d4f51225d3e517902a80fe6727a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/bdd3535781fb0508b3715fa04c930e5224d20407","name":"https://git.kernel.org/stable/c/bdd3535781fb0508b3715fa04c930e5224d20407","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/539bf961c11392022fc581357a965d9b1330687e","name":"https://git.kernel.org/stable/c/539bf961c11392022fc581357a965d9b1330687e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/1b1c0e87cfe78d731bbab99c9c018655980b6790","name":"https://git.kernel.org/stable/c/1b1c0e87cfe78d731bbab99c9c018655980b6790","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-142904","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142904","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 76ff5cc91935c51fcf1a6a99ffa28b97a6e7a884 539bf961c11392022fc581357a965d9b1330687e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 76ff5cc91935c51fcf1a6a99ffa28b97a6e7a884 bdd3535781fb0508b3715fa04c930e5224d20407 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 76ff5cc91935c51fcf1a6a99ffa28b97a6e7a884 8277f6db255e1d4f51225d3e517902a80fe6727a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 76ff5cc91935c51fcf1a6a99ffa28b97a6e7a884 1b1c0e87cfe78d731bbab99c9c018655980b6790 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3.6","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 3.6 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/net/veth.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"539bf961c11392022fc581357a965d9b1330687e","status":"affected","version":"76ff5cc91935c51fcf1a6a99ffa28b97a6e7a884","versionType":"git"},{"lessThan":"bdd3535781fb0508b3715fa04c930e5224d20407","status":"affected","version":"76ff5cc91935c51fcf1a6a99ffa28b97a6e7a884","versionType":"git"},{"lessThan":"8277f6db255e1d4f51225d3e517902a80fe6727a","status":"affected","version":"76ff5cc91935c51fcf1a6a99ffa28b97a6e7a884","versionType":"git"},{"lessThan":"1b1c0e87cfe78d731bbab99c9c018655980b6790","status":"affected","version":"76ff5cc91935c51fcf1a6a99ffa28b97a6e7a884","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/net/veth.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"3.6"},{"lessThan":"3.6","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"3.6","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"3.6","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"3.6","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"3.6","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nveth: clear rx queue hint in veth_xmit\n\nWith more tx queues on one end of a veth pair than rx queues on the\nother, and RPS or generic XDP enabled on the receiving end, we get:\n\n    veth1 received packet on queue 2, but number of RX queues is 2\n    WARNING: net/core/dev.c:5212 at get_rps_cpu+0x560/0x1360\n    Call Trace:\n     <TASK>\n     netif_rx_internal+0x1af/0x4c0\n     __netif_rx+0x99/0x350\n     veth_xmit+0x713/0xca0\n     dev_hard_start_xmit+0x166/0x5f0\n     __dev_queue_xmit+0x1797/0x42d0\n     ip_finish_output2+0xa34/0x1f40\n     __ip_finish_output+0x510/0x7e0\n     ip_finish_output+0x2f/0x320\n     ip_output+0x17a/0x3f0\n     ip_send_skb+0x1bc/0x220\n     ......\n\nEasy to hit with \"ethtool -L veth0 tx 4\", \"ethtool -L veth1 rx 2\",\nrps_cpus set on veth1 and a few flows sent over the pair [1].\n\nveth_xmit() uses skb->queue_mapping to pick the peer rq, but never\nclears it before veth_forward_skb(), so the rx side still sees the tx\nqueue index. Everything on the rx side that goes through\nskb_get_rx_queue(), like get_rps_cpu() and netif_get_rxqueue() for\ngeneric XDP, takes it as a recorded rx queue and warns once it is out\nof range.\n\nClear it before handing the skb to the peer:\n\n- It is the tx queue index of this device, it says nothing about the\n  rx queue of the peer.\n\n- The two sides don't even agree on the encoding. The tx side stores\n  the index as is, the rx side stores index + 1 so that 0 can mean\n  \"not recorded\". So tx queue k is read back as rx queue k - 1, and\n  tx queue 0 as \"not recorded\".\n\n- Commit 710ad98c363a (\"veth: Do not record rx queue hint in\n  veth_xmit\") already decided that veth should not pass any queue\n  hint to the peer. There is no tx->rx queue mapping to preserve, so\n  nothing is lost by clearing it.\n\nOn NETDEV_TX_BUSY the skb goes back to the qdisc, which looks up the\ntxq from skb->queue_mapping to decide when to retry, so restore it\nthere, next to the existing __skb_push().\n\n[1]: https://lore.kernel.org/netdev/156834bb-8e40-496e-9443-9d515fa18eab@linux.dev/"}],"providerMetadata":{"dateUpdated":"2026-12-03T03:25:50.694Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/539bf961c11392022fc581357a965d9b1330687e"},{"url":"https://git.kernel.org/stable/c/bdd3535781fb0508b3715fa04c930e5224d20407"},{"url":"https://git.kernel.org/stable/c/8277f6db255e1d4f51225d3e517902a80fe6727a"},{"url":"https://git.kernel.org/stable/c/1b1c0e87cfe78d731bbab99c9c018655980b6790"}],"title":"veth: clear rx queue hint in veth_xmit","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-142904","datePublished":"2026-12-03T03:25:50.694Z","dateReserved":"2026-12-03T03:10:28.336Z","dateUpdated":"2026-12-03T03:25:50.694Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 04:18:29","lastModifiedDate":"2026-12-03 04:18:29","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"142904","Ordinal":"1","Title":"veth: clear rx queue hint in veth_xmit","CVE":"CVE-2026-142904","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"142904","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nveth: clear rx queue hint in veth_xmit\n\nWith more tx queues on one end of a veth pair than rx queues on the\nother, and RPS or generic XDP enabled on the receiving end, we get:\n\n    veth1 received packet on queue 2, but number of RX queues is 2\n    WARNING: net/core/dev.c:5212 at get_rps_cpu+0x560/0x1360\n    Call Trace:\n     <TASK>\n     netif_rx_internal+0x1af/0x4c0\n     __netif_rx+0x99/0x350\n     veth_xmit+0x713/0xca0\n     dev_hard_start_xmit+0x166/0x5f0\n     __dev_queue_xmit+0x1797/0x42d0\n     ip_finish_output2+0xa34/0x1f40\n     __ip_finish_output+0x510/0x7e0\n     ip_finish_output+0x2f/0x320\n     ip_output+0x17a/0x3f0\n     ip_send_skb+0x1bc/0x220\n     ......\n\nEasy to hit with \"ethtool -L veth0 tx 4\", \"ethtool -L veth1 rx 2\",\nrps_cpus set on veth1 and a few flows sent over the pair [1].\n\nveth_xmit() uses skb->queue_mapping to pick the peer rq, but never\nclears it before veth_forward_skb(), so the rx side still sees the tx\nqueue index. Everything on the rx side that goes through\nskb_get_rx_queue(), like get_rps_cpu() and netif_get_rxqueue() for\ngeneric XDP, takes it as a recorded rx queue and warns once it is out\nof range.\n\nClear it before handing the skb to the peer:\n\n- It is the tx queue index of this device, it says nothing about the\n  rx queue of the peer.\n\n- The two sides don't even agree on the encoding. The tx side stores\n  the index as is, the rx side stores index + 1 so that 0 can mean\n  \"not recorded\". So tx queue k is read back as rx queue k - 1, and\n  tx queue 0 as \"not recorded\".\n\n- Commit 710ad98c363a (\"veth: Do not record rx queue hint in\n  veth_xmit\") already decided that veth should not pass any queue\n  hint to the peer. There is no tx->rx queue mapping to preserve, so\n  nothing is lost by clearing it.\n\nOn NETDEV_TX_BUSY the skb goes back to the qdisc, which looks up the\ntxq from skb->queue_mapping to decide when to retry, so restore it\nthere, next to the existing __skb_push().\n\n[1]: https://lore.kernel.org/netdev/156834bb-8e40-496e-9443-9d515fa18eab@linux.dev/","Type":"Description","Title":"veth: clear rx queue hint in veth_xmit"}]}}}