{"id":"CVE-2026-142898","summary":"ibmveth: step past bad RX correlators instead of spinning or oopsing","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nibmveth: step past bad RX correlators instead of spinning or oopsing\n\nibmveth_poll() mishandles a bad RX correlator from PHYP in two ways.\n\nIf harvest fails or ibmveth_rxq_get_buffer() returns NULL, poll\nbreaks out without advancing the ring and restarts on the same slot\nforever. For an out-of-range correlator it also fires a WARN_ON() and\nschedules a reset each pass, but the reset is queued on that CPU and\nnever runs, and the CPU stalls RCU, so RTNL holders hang too. This\ndates from the first commit in Fixes:, which turned the BUG_ON()s\nhere into WARN_ON() plus a reset.\n\nThe range check also accepts a correlator naming an inactive buffer\npool (pools 2 and 3 by default), whose skbuff array is NULL, so the\nlookup dereferences NULL in softirq. Pools became inactive with the\nsecond commit in Fixes:.\n\nValidate the correlator in one helper that also rejects a pool with\nno skbuff array. On a bad slot, advance the ring, count the drop in\nrx_dropped and still schedule the reset, which rebuilds the pools.\nThe slot has moved, so stay in the budget loop and count it in\nframes_processed. Breaking out would complete NAPI, re-arm, and\nnapi_schedule() with budget left. When the final check finds more\nwork, queue the NAPI and return instead of going back to\nrestart_poll: after napi_complete_done() the NAPI is no longer this\ncall's, and with threaded NAPI and busy polling the kthread can\nalready be polling it on another CPU. frames_processed is below\nbudget there, so busy_poll_stop() does not queue it a second time.\nMask the interrupt before queueing, as ibmveth_interrupt() does;\nmasking after napi_schedule() could land after that kthread has\nfinished and unmasked, leaving RX masked with nothing scheduled.\n\nDrop a frame whose offset + length does not fit the pool buffer:\ncopybreak would read past the RX buffer and skb_put() would BUG().\nAlso drop one shorter than an Ethernet header, which eth_type_trans()\nwould read past. Read the correlator once per slot and use that value\nfor the lookup, the bound and the harvest.\n\nThe base driver never checked frame bounds, and they have not been\nseen in the field, so they have no Fixes: tag of their own. The tags\nbelow are for the correlator hang.\n\nThe correlator comes from PHYP, and with the ring advancing a burst\nof bad slots would WARN once per slot (and panic with\npanic_on_warn), so use a ratelimited netdev_err() instead. Also free\nthe rx_copybreak skb if harvest fails there.\n\nAdd a KUnit case for harvest advancing on errors and extend the\nexisting cases to an inactive pool. Run against the unfixed driver,\nwith the calls changed back to its signatures, the first fails and\nthe others oops.\n\nFound in review of the ibmveth multi-queue RX series (the frame bound by\nthe Sashiko review of v2 of this series) and confirmed by code\ninspection and the KUnit cases above. Hitting either correlator bug\nneeds PHYP to return a bad correlator, so neither was reproduced on\nhardware. Tested with KUnit on qemu pseries (ppc64le), and on a POWER10\nLPAR with a ping flood and MTU changes under traffic. No kernel\nselftests cover ibmveth.","modified":"2026-12-03T05:01:16.498931971Z","published":"2026-12-03T03:25:47.464Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142898.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7b6a6d2c1ac8b3bc15634cef9e313fffbd9d1c15"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7bfec4697f3d3e74b4e81eaecd0bf6d08591d9a9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c9b95adc755f2396307be676ce838161fb011986"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142898.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142898"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"860f242eb5340d0b0cfe243cb86b2a98f92e8b91"},{"fixed":"7bfec4697f3d3e74b4e81eaecd0bf6d08591d9a9"},{"fixed":"7b6a6d2c1ac8b3bc15634cef9e313fffbd9d1c15"},{"fixed":"c9b95adc755f2396307be676ce838161fb011986"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142898.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.18"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142898.json"}}],"schema_version":"1.9.2"}