Junglewise Threat Intelligence

CVE-2026-64505: Linux Kernel out-of-bounds access in USB RNDIS gadget driver

CVE-2026-64505 · Severity: info · CVSS 0 · Published 2026-07-25

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability was identified in the Linux kernel's USB RNDIS (Remote Network Driver Interface Specification) gadget driver. This component allows a Linux device to act as a virtual network card when connected to a computer via USB. An attacker with physical or local access to the USB interface could potentially cause a system crash or memory corruption by sending specially crafted, undersized network packets that the system fails to validate before processing.

Technical details

A vulnerability exists in the `rndis_rm_hdr` function within `drivers/usb/gadget/function/rndis.c` of the Linux kernel. The code failed to verify that an incoming socket buffer (skb) contained at least 16 bytes before attempting to access the RNDIS header fields (MessageType, MessageLength, DataOffset, and DataLength). An attacker providing a truncated packet could trigger an out-of-bounds read or memory corruption. The fix introduces a check to ensure `skb->len` is at least 16 bytes, otherwise the packet is dropped and an error is returned. This affects systems using the USB gadget framework with RNDIS enabled.

Affected products

  • Linux Linux Kernel < 5.10.261, < 5.15.212, < 6.1.178, < 6.6.145, < 6.12.96, < 6.18.39, < 7.1.4

Timeline

  • 2026-07-25: disclosed
  • 2026-07-25: advisory
  • 2026-07-24: patched

References

Related threats