Linux · Linux Kernel · CVE-2024-35825
**Name of the Vulnerable Software and Affected Versions**
Linux kernel (affected versions not specified)
**Description**
The issue is related to the handling of zero block length packets in the Linux kernel's USB gadget ncm implementation. When connecting to a Linux host with CDC NCM NTB DEF SIZE TX set to 65536, short packets with block length zero but containing valid datagrams may be received. According to the NCM spec, if wBlockLength = 0x0000, the block is terminated by a short packet, and the USB transfer must still be shorter than dwNtbInMaxSize or dwNtbOutMaxSize. However, the current implementation may process the same NTB infinitely if the block length reads zero, leading to a crash. The fix involves bailing out if the block length reads zero.
**Recommendations**
At the moment, there is no information about a newer version that contains a fix for this vulnerability.