CVE-2026-139124: blk-mq: don't bring back flags of a completed request
In the Linux kernel, the following vulnerability has been resolved:
blk-mq: don't bring back flags of a completed request
The timeout handler sets and clears RQFTIMEDOUT in a request it only holds a reference to, with a plain read-modify-write, while the completion clears flags in rqflags the same way. If the two interleave, blkmqfinishrequest() runs twice with the flags back: the zone write plug reference is dropped twice and the scheduler's ->finishrequest() is called again.
Change RQFTIMEDOUT with cmpxchg, so the handler never writes back a flag that changed under it.