In the Linux kernel, the following vulnerability has been resolved: ibmveth: check headers in the RX large send and checksum helpers ibmveth_rx_mss_...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Debian:12linux |
All versions→ Not listed |
Not listed |
| Debian:13linux |
All versions→ Not listed |
Not listed |
| Debian:14linux |
< 7.3.6-1→ 7.3.6-1 |
7.3.6-1 |
Original description The description as published by the source.
In the Linux kernel, the following vulnerability has been resolved: ibmveth: check headers in the RX large send and checksum helpers ibmveth_rx_mss_helper() and ibmveth_rx_csum_helper() trust the IP and TCP headers of received frames, which come from another partition on the virtual LAN. The worst case is an IPv4 frame with ihl 0 and iph->check 0xffff: the checksum helper calls ip_fast_csum(iph, 0), and the ppc64 version loops ihl - 1 times on an unsigned count, reading up to 16 GiB in softirq: a long stall, or an oops once the read leaves mapped memory. Both helpers also read and write header fields past the end of a short frame. The large send helper takes the segment size from the TCP checksum field and gso_segs from a TCP header length it never checks, and treats an IPv4 TCP fragment as a large send, which can zero two of its bytes; the checksum helper can write a checksum into a later fragment's payload. The ihl problem dates from the first commit in Fixes:, the large send helper from the second, and the checksum helper from the third. Before using a header, check that it fits the frame, that the IPv4 ihl is at least 5, and that an IPv4 TCP frame is not a fragment. In the large send helper, also require a TCP doff of at least 5, TCP payload within the IP length, and an IP length equal to the frame length: Ethernet padding or other bytes past the IP length would otherwise stay in a bridged or switched frame, which the stack does not trim, and be segmented but not cou…
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- advisory security-tracker.debian.org