blk-mq: don't bring back flags of a completed request

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

Description

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 RQF_TIMED_OUT in a request it only holds a reference to, with a plain read-modify-write, while the completion clears flags in rq_flags the same way. If the two interleave, blk_mq_finish_request() runs twice with the flags back: the zone write plug reference is dropped twice and the scheduler's ->finish_request() is called again.

Change RQF_TIMED_OUT with cmpxchg, so the handler never writes back a flag that changed under it.

ProductVersions
Linux Linux052e4c8987ee9bef8994cf9c9166e2c6759e0752 to before 6c681181a9adf301550d5539b52b07d0e13292ad Affectede5c0ca13659e9d18f53368d651ed7e6e433ec1cf to before a41beacd62449f29337419f40967e0e63ef06b0b Affectede5c0ca13659e9d18f53368d651ed7e6e433ec1cf to before 5d1abbe56e767959389a14f9f894c7817b64bdca Affectede5c0ca13659e9d18f53368d651ed7e6e433ec1cf to before 01686e7fffa83df2b36707ef7df2484e984b8e3b Affectede5c0ca13659e9d18f53368d651ed7e6e433ec1cf to before 47947572ad14c01872b60e91084954e0b0ebcadb Affectede5c0ca13659e9d18f53368d651ed7e6e433ec1cf to before 9531230ee1fcb8eca2c9cbb9bf02651cbf798842 Affected6.1.84 to before 6.1.193 Affected
Linux Linux6.5 Affectedbefore 6.5 Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.