net: usb: pegasus: check rx pkt_len against the received length

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

net: usb: pegasus: check rx pkt_len against the received length

read_bulk_callback() takes the frame length from the device, from the receive header on the 0x8513 and from the trailing status bytes on the other chips, and only checks it against PEGASUS_MTU before passing that many bytes up the stack. In two cases the stack then uses bytes that the device did not send:

- A device that sends a short transfer but claims a long frame gets the stale or uninitialized remainder of the receive skb delivered as packet data.

- A device that claims a frame shorter than an Ethernet header gets past the check as well. eth_type_trans() takes pkt_type from h_dest and the protocol from h_proto without checking skb->len. If the transfer is also short, those come from bytes left in the skb by an earlier transfer, or from uninitialized memory.

Drop frames shorter than ETH_HLEN, and frames whose claimed length, plus the 0x8513 header, does not fit in the bytes actually received, and count them as length errors. urb->actual_length never exceeds the PEGASUS_MTU sized transfer buffer, so this also covers the existing PEGASUS_MTU check. Valid Ethernet frames are at least 60 bytes long without the FCS, so they are not affected.

Found by code review with LLM assistance. With an emulated USB device, a 101-byte transfer claiming a 1500-byte frame was passed up as a 1500-byte packet before this change and is dropped after it, and frames claiming 0, 4 and 13 bytes were passed up and are now dropped and counted in rx_length_errors. The extra bytes happened to be zero in the first test, so disclosure of actual kernel data was not demonstrated.

ProductVersions
Linux Linux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 76ff3ffdc8d3a83e0d12143e17053747200cf9f8 Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 735008c0ed2d1e85900ef7473d50eda63ee47598 Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before da9b52e9b2fe357adf94440c11278f2b40344a30 Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before eb13f958159f481ea45640a3c9d2fc2cbc0cf1a1 Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 8c0f5e2babfa63b13c2bf0b9624ce519fd1d2207 Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 1179a864db9dff2258d72deee2348d967cfd6f29 Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before c160b4490d5ed9e4d8fa3c602583858f89cfc80a Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before efee699f6de06611234ef9b0abd52db1340e5452 Affected
Linux Linux2.6.12 Affectedbefore 2.6.12 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.117 through 6.12.* Not Affected6.18.63 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

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.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.