{"id":"CVE-2026-139235","state":"PUBLISHED","title":"ibmveth: check headers in the RX large send and checksum helpers","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nibmveth: check headers in the RX large send and checksum helpers\n\nibmveth_rx_mss_helper() and ibmveth_rx_csum_helper() trust the IP and\nTCP headers of received frames, which come from another partition on\nthe virtual LAN.\n\nThe worst case is an IPv4 frame with ihl 0 and iph->check 0xffff: the\nchecksum helper calls ip_fast_csum(iph, 0), and the ppc64 version\nloops ihl - 1 times on an unsigned count, reading up to 16 GiB in\nsoftirq: a long stall, or an oops once the read leaves mapped memory.\nBoth helpers also read and write header fields past the end of a short\nframe. The large send helper takes the segment size from the TCP\nchecksum field and gso_segs from a TCP header length it never checks,\nand treats an IPv4 TCP fragment as a large send, which can zero two of\nits bytes; the checksum helper can write a checksum into a later\nfragment's payload.\n\nThe ihl problem dates from the first commit in Fixes:, the large send\nhelper from the second, and the checksum helper from the third.\n\nBefore using a header, check that it fits the frame, that the IPv4 ihl\nis at least 5, and that an IPv4 TCP frame is not a fragment. In the\nlarge send helper, also require a TCP doff of at least 5, TCP payload\nwithin the IP length, and an IP length equal to the frame length:\nEthernet padding or other bytes past the IP length would otherwise\nstay in a bridged or switched frame, which the stack does not trim,\nand be segmented but not counted in gso_segs. Compute gso_segs from\nthe IP length, and keep the segment size at or above TCP_MIN_GSO_SIZE,\nas virtio_net_hdr_to_skb() does since commit c27c449d455a (\"virtio-net:\nEnsure that TCP packets don't overflow gso_segs\"), and below\nGSO_BY_FRAGS, which virtio rejects. With the headers checked and\ngso_segs computed, the skb is not marked SKB_GSO_DODGY, which would\nalso keep it from hardware TSO on the egress device.\n\nA frame that fails a check is passed up unchanged, without the GSO\nfields or CHECKSUM_UNNECESSARY, so nothing downstream trusts its\nsegment count or checksum. The skb is linear, so the checks use\nskb_headlen(); pskb_may_pull() could reallocate the head under the\nhelpers' header pointers.\n\nAdd KUnit cases for both helpers: valid IPv4 and IPv6 large sends, the\nsegment size clamp, and refused frames. With any one of the ihl, doff,\nIP length, TCP payload, fragment or clamp checks, or the checksum\nhelper's IPv4 options, IPv6 header or TCP header length checks,\nremoved, a case fails; without the checksum helper's ihl check,\nip_fast_csum() oopses on qemu.\n\nFound by the Sashiko review of the previous version of this series and\nconfirmed by code inspection and the KUnit cases above. Tested with\nKUnit on qemu pseries (ppc64le) and on a POWER10 LPAR with iperf3 large\nsends over IPv4 and IPv6 at MTU 1500 and 9000, threaded NAPI and busy\npolling, with no new drops or InCsumErrors. No kernel selftests cover\nibmveth.","publishedAt":"2026-11-30T13:32:52.328Z","updatedAt":"2026-11-30T13:32:52.328Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"9c7e8bc584f52ae42f4528ca459f711ad38a130f","status":"affected","lessThan":"0009668f182ee13143f340da89beca10b64068b3","versionType":"git"},{"version":"9c7e8bc584f52ae42f4528ca459f711ad38a130f","status":"affected","lessThan":"dcf7fee13e50633a9cc99ef55c91d35fe0a5734f","versionType":"git"},{"version":"9c7e8bc584f52ae42f4528ca459f711ad38a130f","status":"affected","lessThan":"9486c89a8e157cedecfb561c3d86053e654d32ab","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/ibm/ibmveth.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.2","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/ibm/ibmveth.c"]}],"references":["https://git.kernel.org/stable/c/0009668f182ee13143f340da89beca10b64068b3","https://git.kernel.org/stable/c/dcf7fee13e50633a9cc99ef55c91d35fe0a5734f","https://git.kernel.org/stable/c/9486c89a8e157cedecfb561c3d86053e654d32ab"],"weaknesses":[],"ingestedAt":"2026-11-30T13:46:04.484Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139235.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139235","state":"PUBLISHED","datePublished":"2026-11-30T13:32:52.328Z","dateUpdated":"2026-11-30T13:32:52.328Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.922Z"},"containers":{"cna":{"title":"ibmveth: check headers in the RX large send and checksum helpers","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nibmveth: check headers in the RX large send and checksum helpers\n\nibmveth_rx_mss_helper() and ibmveth_rx_csum_helper() trust the IP and\nTCP headers of received frames, which come from another partition on\nthe virtual LAN.\n\nThe worst case is an IPv4 frame with ihl 0 and iph->check 0xffff: the\nchecksum helper calls ip_fast_csum(iph, 0), and the ppc64 version\nloops ihl - 1 times on an unsigned count, reading up to 16 GiB in\nsoftirq: a long stall, or an oops once the read leaves mapped memory.\nBoth helpers also read and write header fields past the end of a short\nframe. The large send helper takes the segment size from the TCP\nchecksum field and gso_segs from a TCP header length it never checks,\nand treats an IPv4 TCP fragment as a large send, which can zero two of\nits bytes; the checksum helper can write a checksum into a later\nfragment's payload.\n\nThe ihl problem dates from the first commit in Fixes:, the large send\nhelper from the second, and the checksum helper from the third.\n\nBefore using a header, check that it fits the frame, that the IPv4 ihl\nis at least 5, and that an IPv4 TCP frame is not a fragment. In the\nlarge send helper, also require a TCP doff of at least 5, TCP payload\nwithin the IP length, and an IP length equal to the frame length:\nEthernet padding or other bytes past the IP length would otherwise\nstay in a bridged or switched frame, which the stack does not trim,\nand be segmented but not counted in gso_segs. Compute gso_segs from\nthe IP length, and keep the segment size at or above TCP_MIN_GSO_SIZE,\nas virtio_net_hdr_to_skb() does since commit c27c449d455a (\"virtio-net:\nEnsure that TCP packets don't overflow gso_segs\"), and below\nGSO_BY_FRAGS, which virtio rejects. With the headers checked and\ngso_segs computed, the skb is not marked SKB_GSO_DODGY, which would\nalso keep it from hardware TSO on the egress device.\n\nA frame that fails a check is passed up unchanged, without the GSO\nfields or CHECKSUM_UNNECESSARY, so nothing downstream trusts its\nsegment count or checksum. The skb is linear, so the checks use\nskb_headlen(); pskb_may_pull() could reallocate the head under the\nhelpers' header pointers.\n\nAdd KUnit cases for both helpers: valid IPv4 and IPv6 large sends, the\nsegment size clamp, and refused frames. With any one of the ihl, doff,\nIP length, TCP payload, fragment or clamp checks, or the checksum\nhelper's IPv4 options, IPv6 header or TCP header length checks,\nremoved, a case fails; without the checksum helper's ihl check,\nip_fast_csum() oopses on qemu.\n\nFound by the Sashiko review of the previous version of this series and\nconfirmed by code inspection and the KUnit cases above. Tested with\nKUnit on qemu pseries (ppc64le) and on a POWER10 LPAR with iperf3 large\nsends over IPv4 and IPv6 at MTU 1500 and 9000, threaded NAPI and busy\npolling, with no new drops or InCsumErrors. No kernel selftests cover\nibmveth."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"9c7e8bc584f52ae42f4528ca459f711ad38a130f","status":"affected","lessThan":"0009668f182ee13143f340da89beca10b64068b3","versionType":"git"},{"version":"9c7e8bc584f52ae42f4528ca459f711ad38a130f","status":"affected","lessThan":"dcf7fee13e50633a9cc99ef55c91d35fe0a5734f","versionType":"git"},{"version":"9c7e8bc584f52ae42f4528ca459f711ad38a130f","status":"affected","lessThan":"9486c89a8e157cedecfb561c3d86053e654d32ab","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/ibm/ibmveth.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.2","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/ibm/ibmveth.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/0009668f182ee13143f340da89beca10b64068b3"},{"url":"https://git.kernel.org/stable/c/dcf7fee13e50633a9cc99ef55c91d35fe0a5734f"},{"url":"https://git.kernel.org/stable/c/9486c89a8e157cedecfb561c3d86053e654d32ab"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:32:52.328Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}