Junglewise Threat Intelligence

CVE-2025-39949: Linux Kernel qed driver buffer overflow in GRC dump path

CVE-2025-39949 · Severity: high · CVSS 7.8 · Published 2025-10-04

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's QLogic 'qed' driver could allow a local user to cause a system crash. The driver, which manages high-speed network and storage adapters, fails to properly limit data received from the hardware's firmware during diagnostic dumps. This can lead to a kernel panic, resulting in a complete service outage and potential system instability.

Technical details

A heap-based buffer overflow exists in the qed driver's protection override dump path. The root cause is a failure to validate the number of GRC elements returned by the firmware against the size of the kmalloc'ed 'dump_buf'. When the firmware returns more elements than expected, the 'qed_protection_override_dump' function attempts to write past the end of the allocated buffer, triggering a kernel paging request violation and subsequent panic. This can be triggered via both the 'qede' (Ethernet) and 'qedf' (FCoE storage) driver paths during fatal error reporting or health dumps. The fix implements clamping of the firmware's return value using the 'min()' macro to ensure it does not exceed 'PROTECTION_OVERRIDE_DEPTH_DWORDS'.

Affected products

  • Linux Linux Kernel d52c89f120de849575f6b2e5948038f2be12ce6f to 56c0a2a9ddc2f5b5078c5fb0f81ab76bbc3d4c37

Timeline

  • 2025-09-10: other: Vulnerability fix authored
  • 2025-10-02: patched: Fix committed to stable tree
  • 2025-10-04: advisory: CVE published

References

Related threats