NULL Pointer Dereference in Linux Kernel Affects USB Command Handling
CVE-2024-57981

Currently unrated

Key Information:

Vendor
Linux
Status
Vendor
CVE Published:
27 February 2025

Summary

A vulnerability in the Linux kernel affects USB command handling, specifically during command abortion procedures. When a command is queued to the final usable TRB of a ring segment and is subsequently aborted, a NULL pointer dereference can occur in the xhci_handle_stopped_cmd_ring() function. This issue arises due to the dequeue pointer being advanced incorrectly, leading to the assumption that a pending command exists when there is none. This flaw can result in system crashes. Recent tests with a USB MCU have confirmed that the issue can be reproduced and has been adequately addressed to prevent crashes, enhancing the reliability of USB command execution.

Affected Version(s)

Linux c311e391a7efd101250c0e123286709b7e736249 < 4ff18870af793ce2034a6ad746e91d0a3d985b88

Linux c311e391a7efd101250c0e123286709b7e736249

Linux c311e391a7efd101250c0e123286709b7e736249

References

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.