CVE-2026-139614

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

Published Nov 30, 2026 CVSS 3.1 · 4.7 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability arises when the Linux kernel performs memory allocations while servicing an MTD block device request. These allocations can trigger direct memory reclaim that initiates filesystem or block I/O, re‑entering the request path and causing a circular lock dependency on the device mutex and filesystem reclaim locks. The resulting deadlock can halt I/O operations and potentially freeze the entire system, producing a denial‑of‑service scenario.

Affected Systems

All Linux kernel builds are potentially affected, as the flaw resides in the generic MTD block layer. No specific release versions are enumerated in the advisory, so any kernel that includes the vulnerable MTD request handling code could be impacted.

Risk and Exploitability

No EPSS score is available and the vulnerability has not been listed in the CISA KEV catalog. The risk is primarily a local denial‑of‑service attack; an attacker who can trigger MTD write or erase operations (for example by executing privileged code or gaining direct access to the board) could induce the deadlock. The attack vector is inferred to be local, requiring direct interaction with the device driver, but the impact on system availability makes the flaw significant.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel update that contains the fix introduced in commit d5ba1c8ffd0b.
  • If an immediate kernel upgrade is not possible, manually cherry‑pick the changes from that commit into your kernel source, rebuild the kernel, and install it.
  • During the remediation window, avoid performing extensive write or erase operations on MTD block devices to reduce the chance of a deadlock occurring.

Generated by OpenCVE AI on December 1, 2026 at 14:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-1025
CWE-823
Type Values Removed Values Added
Weaknesses CWE-833
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-1025
CWE-823
Type Values Removed Values Added
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.
Title mtd: block: prevent reclaim I/O during request processing
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:36 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:36 PM