Impact
The qnap_mcu driver in the Linux kernel allocates a small on‑stack buffer for replies from the QNAP MCU. On command timeout the driver returns while the buffer is still pointed to, and a later or unsolicited reply can write into that now‑freed stack frame. This race allows an attacker who can inject a delayed response to corrupt the stack, potentially causing a crash or enabling arbitrary code execution. The weakness is a classic example of uncontrolled write to a stale buffer, corresponding to CWE‑562.
Affected Systems
The affected product is the Linux kernel’s qnap_mcu driver, used in QNAP devices that expose the MCU interface over a serial device. All kernel versions prior to the patch that moved the receive buffer into the driver’s allocated structure are vulnerable. The driver appears in all Linux kernel releases, so any distribution shipping these kernels with the driver enabled may be impacted until the patch is applied.
Risk and Exploitability
The CVSS base score is 5.7, indicating a medium severity. Because EPSS is not available and the vulnerability has not been listed in the CISA KEV catalog, the likelihood of widespread exploitation is uncertain, but the attack is feasible for a local attacker with control over the serial interface or a compromised application that triggers the driver. The fix removes the race by allocating the buffer in heap memory, keeping it valid until the next command irrespective of a timeout.
OpenCVE Enrichment