In the Linux kernel, the following vulnerability has been resolved:
net: usb: kalmia: bound RX frame length in kalmia_rx_fixup()
kalmia_rx_fixup() computes usb_packet_length = skb->len - (2 *
KALMIA_HEADER_LENGTH) as a u16, guarded only by a pre-loop check that
skb->len is at least KALMIA_HEADER_LENGTH, which is 6. A device can
deliver a short bulk-IN frame with skb->len in the 6 to 11 range, or
leave a short trailing remainder on a later loop iteration. Either case
underflows usb_packet_length to about 65530.
That bypasses the usb_packet_length < ether_packet_length truncation path.
The device-supplied ether_packet_length, a le16 up to 65535 read from
header_start[2], then drives a memcmp() and the following skb_trim() and
skb_pull() past the end of the rx buffer. The rx buffer is hard_mtu * 10,
which is 14000 bytes. That is an out of bounds read.
Require both the start and end framing headers to be present before
subtracting them, on every loop iteration.
CVSS
5.5 MEDIUM (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
from d40261236e8e278cb1936cb5e934262971692b10 before 391706889a5112feafdc0c68db3ecc7ed325d09c; from d40261236e8e278cb1936cb5e934262971692b10 before aa4eef2cbb66ea3dfcfc24bdce798dd78a81b54b; from d40261236e8e278cb1936cb5e934262971692b10 before 2d04c37ed4e1d0f733ad39ec35b5a5d8818b4f4a; from d40261236e8e278cb1936cb5e934262971692b10 before 46ab32870d010e9a057bc5659cea22b7e728ca88; from d40261236e8e278cb1936cb5e934262971692b10 before c466097d85d52f3aa200736cb4759e66d4bbf6e3; from d40261236e8e278cb1936cb5e934262971692b10 before e24eb271061db384a3c3ef6f107fe515e68ef222; from d40261236e8e278cb1936cb5e934262971692b10 before 51e65f1d78457ea4f9513d90ab22c9dccbb35110; from d40261236e8e278cb1936cb5e934262971692b10 before 47b6bcef6e679593d2e86e04ee72c46a4e2f7139
from 3.0.1 before 5.10.261; from 5.11 before 5.15.212; from 5.16 before 6.1.178; from 6.2 before 6.6.145; from 6.7 before 6.12.96; from 6.13 before 6.18.39; from 6.19 before 7.1.4; 3.0; and 4 more ranges
The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.
Printed from infosecsignals.com. Every record links back to the agency that published it.
Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.