CVE-2026-64351

net: usb: kalmia: bound RX frame length in kalmia_rx_fixup()

State
Published
Severity
Not scored
Published
Jul 25, 2026
Updated
Aug 17, 2026
Reserved
Jul 19, 2026

Read the record on cve.org

Description

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • d40261236e8e278cb1936cb5e934262971692b10 to before 391706889a5112feafdc0c68db3ecc7ed325d09cAffected
  • d40261236e8e278cb1936cb5e934262971692b10 to before aa4eef2cbb66ea3dfcfc24bdce798dd78a81b54bAffected
  • d40261236e8e278cb1936cb5e934262971692b10 to before 2d04c37ed4e1d0f733ad39ec35b5a5d8818b4f4aAffected
  • d40261236e8e278cb1936cb5e934262971692b10 to before 46ab32870d010e9a057bc5659cea22b7e728ca88Affected
  • d40261236e8e278cb1936cb5e934262971692b10 to before c466097d85d52f3aa200736cb4759e66d4bbf6e3Affected
  • d40261236e8e278cb1936cb5e934262971692b10 to before e24eb271061db384a3c3ef6f107fe515e68ef222Affected
  • d40261236e8e278cb1936cb5e934262971692b10 to before 51e65f1d78457ea4f9513d90ab22c9dccbb35110Affected
  • d40261236e8e278cb1936cb5e934262971692b10 to before 47b6bcef6e679593d2e86e04ee72c46a4e2f7139Affected
LinuxLinux
  • 3.0Affected
  • before 3.0Not affected
  • 5.10.261 through 5.10.*Not affected
  • 5.15.212 through 5.15.*Not affected
  • 6.1.178 through 6.1.*Not affected
  • 6.6.145 through 6.6.*Not affected
  • 6.12.96 through 6.12.*Not affected
  • 6.18.39 through 6.18.*Not affected
  • 7.1.4 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.