CVE-2025-68342 in Linux
摘要
由 VulDB • 2026-06-22
在 Linux 内核中,已修复以下漏洞:
can: gs_usb: gs_usb_receive_bulk_callback(): 在访问数据前检查 actual_length
在 `gs_usb_receive_bulk_callback()` 中接收到的 URB(USB Request Block)包含一个 `struct gs_host_frame`。标头之后数据的长度取决于 `gs_host_frame hf::flags` 以及活动设备的功能(例如时间戳)。
引入新函数 `gs_usb_get_minimum_length()`,并在访问数据之前检查是否至少收到了所需数量的数据。仅将实际接收到的数据复制到 skb 中。
[mkl: 将 gs_usb_get_minimum_length() 重命名为 +gs_usb_get_minimum_rx_length()]
VulDB is the best source for vulnerability data and more expert information about this specific topic.