mtd: block: prevent reclaim I/O during request processing

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:

mtd: block: prevent reclaim I/O during request processing

The blktrans request callbacks run under dev->lock and may allocate memory with GFP_KERNEL. For example, mtdblock_writesect() uses vmalloc() to allocate its eraseblock cache. Direct reclaim can then recurse into block I/O and deadlock on resources held by the request being processed. syzbot reports a circular locking dependency involving the device mutex and fs_reclaim.

Commit d5ba1c8ffd0b ("mtd: don't use PF_MEMALLOC") removed PF_MEMALLOC from the MTD request thread. That flag had prevented direct reclaim, so its removal made allocations during request processing eligible for reclaim without excluding I/O.

Wrap request processing in mtd_queue_rq() in a NOIO scope. This covers both the request and background callbacks, including allocations made by lower MTD drivers, and prevents reclaim from initiating filesystem or block I/O.

ProductVersions
Linux Linuxd5ba1c8ffd0b7d38e1fac48184637e6d6c1197d3 to before 7bf9b7abd92cfd237003c1587dd24aef7d15ee8f Affectedd5ba1c8ffd0b7d38e1fac48184637e6d6c1197d3 to before 940c60048d8b0c93ca798418cdc996d076c42b5b Affectedd5ba1c8ffd0b7d38e1fac48184637e6d6c1197d3 to before dc188de1ba3e10f8c234b5bc3c64e2d0159cbf7a Affectedd5ba1c8ffd0b7d38e1fac48184637e6d6c1197d3 to before f791e81b0811cc9d233da667e48923aa96823a08 Affectedd5ba1c8ffd0b7d38e1fac48184637e6d6c1197d3 to before 2ff609c66f9d6cd9f2462186331343d97e18a6aa Affectedd5ba1c8ffd0b7d38e1fac48184637e6d6c1197d3 to before b9474d60eba5e8b73ec51a791c34cb0adb0a1649 Affectedd5ba1c8ffd0b7d38e1fac48184637e6d6c1197d3 to before f1ce933dffb4e051a41e66bc77eb022d9d0fce5b Affectedd5ba1c8ffd0b7d38e1fac48184637e6d6c1197d3 to before d498b2ddda99eed28cde177b1620dbcea246a1c4 Affected
Linux Linux2.6.33 Affectedbefore 2.6.33 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* 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.