CVE-2026-80975: mfd: qnap-mcu: keep the reply buffer alive past a command timeout

Published Sep 11, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

mfd: qnap-mcu: keep the reply buffer alive past a command timeout

qnapmcuexec() publishes an on-stack buffer to the receive path:

unsigned char rx[QNAPMCURXBUFFERSIZE]; ... reply->data = rx; reply->length = length;

and qnapmcureceivebuf() writes into it from the serdev receive path, which runs out of flushtoldisc() and is not serialized against qnapmcuexec() at all. buslock cannot cover it, because qnapmcuexec() holds that mutex across waitforcompletiontimeout().

On a timeout qnapmcuexec() returns with reply->data still pointing at its own frame. A reply that arrives late, or an unsolicited message from the MCU, is then written into a stack frame that has been left, corrupting whatever runs next on that stack. The same applies when qnapmcuwrite() fails, since that path returns without touching the reply state either.

Move the receive buffer into struct qnapmcu. It is 37 bytes and the structure is devmkzalloc()ed, so it lives as long as the driver, and a late write lands in memory that is still valid and is reinitialized by the next command. buslock keeps commands from sharing it.

This deliberately does not clear reply->data or reply->length on the timeout path. Doing so races with qnapmcureceivebuf(), which reads both after its

if (!reply->length) return size;

check: clearing reply->data gives a NULL dereference, and clearing reply->length alone removes the reply->received == reply->length exit condition, so the copy loop runs until the uart chunk is consumed and overruns the buffer. Leaving both set keeps the write bounded by reply->length, which qnapmcuexec() has already checked against sizeof(mcu->rx).

Affected Software

1 affected component
Linux Kernel

Event History

Sep 11, 2026
CVE Published
via MITRE·07:42 PM
Data Sourced
via MITRE·07:42 PM
Description

Frequently Asked Questions

1

Which systems are exposed to this issue?

Exposure is limited to Linux systems using the qnap-mcu driver and receiving data through its serdev receive path. The unsafe write can occur when an MCU response arrives after a command timeout or after a qnap_mcu_write() failure, including unsolicited MCU messages.

2

What would be required to trigger the memory corruption?

A response or unsolicited message must reach the receive path after qnap_mcu_exec() has returned while its reply state still points to the expired stack buffer. The issue is associated with command timeouts and command write failures; the provided data does not identify a remote attack path.

3

Does the driver's bus lock protect against this race?

No. qnap_mcu_exec() holds bus_lock while waiting for completion, but the serdev receive path is not serialized against it, so the receive handler can still write through the stale buffer pointer.

4

How can remediation be verified without relying on an unspecified version number?

Verify that the kernel incorporates one of the referenced stable commits: 0b6680e306397097a97767447368221fac753809, 8391ee06d08845a0a165b5fe679ba326915166b2, or 47504742cea7878ebd1bf1491bbed923df6b90b1. The fix moves the 37-byte receive buffer into the driver structure so it remains valid after command return.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203