# CVE-2025-37840: mtd: rawnand: brcmnand: fix PM resume warning

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.33% (percentile 19, 2026-11-26)
- **Published:** 2025-05-09T06:41:50.015Z
- **Modified:** 2026-06-17T09:15:32.643Z

## Who should check

- Anyone running Linux \>= 97d90da8a886949f09bb4754843fb0b504956ad2, \< 6f567c6a5250e3531cfd9c7ff254ecc2650464fa; \>= 97d90da8a886949f09bb4754843fb0b504956ad2, \< 8775581e1c48e1bdd04a893d6f6bbe5128ad0ea7; \>= 97d90da8a886949f09bb4754843fb0b504956ad2, \< fbcb584efa5cd912ff8a151d67b8fe22f4162a85; \>= 97d90da8a886949f09bb4754843fb0b504956ad2, \< 9dd161f707ecb7db38e5f529e979a5b6eb565b2d; \>= 97d90da8a886949f09bb4754843fb0b504956ad2, \< 9bd51723ab51580e077c91d494c37e80703b8524; \>= 97d90da8a886949f09bb4754843fb0b504956ad2, \< 7266066b9469f04ed1d4c0fdddaea1425835eb55; \>= 97d90da8a886949f09bb4754843fb0b504956ad2, \< c2eb3cffb0d972c5503e4d48921971c81def0fe5; \>= 97d90da8a886949f09bb4754843fb0b504956ad2, \< 659b1f29f3e2fd5d751fdf35c5526d1f1c9b3dd2; \>= 97d90da8a886949f09bb4754843fb0b504956ad2, \< ddc210cf8b8a8be68051ad958bf3e2cef6b681c2
- Anyone running Linux 4.16

## Description

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

mtd: rawnand: brcmnand: fix PM resume warning

Fixed warning on PM resume as shown below caused due to uninitialized
struct nand\_operation that checks chip select field :
WARN\_ON(op-\>cs \>= nanddev\_ntargets(&chip-\>base)

\[   14.588522\] ------------\[ cut here \]------------
\[   14.588529\] WARNING: CPU: 0 PID: 1392 at drivers/mtd/nand/raw/internals.h:139 nand\_reset\_op+0x1e0/0x1f8
\[   14.588553\] Modules linked in: bdc udc\_core
\[   14.588579\] CPU: 0 UID: 0 PID: 1392 Comm: rtcwake Tainted: G        W          6.14.0-rc4-g5394eea10651 \#16
\[   14.588590\] Tainted: \[W\]=WARN
\[   14.588593\] Hardware name: Broadcom STB (Flattened Device Tree)
\[   14.588598\] Call trace:
\[   14.588604\]  dump\_backtrace from show\_stack+0x18/0x1c
\[   14.588622\]  r7:00000009 r6:0000008b r5:60000153 r4:c0fa558c
\[   14.588625\]  show\_stack from dump\_stack\_lvl+0x70/0x7c
\[   14.588639\]  dump\_stack\_lvl from dump\_stack+0x18/0x1c
\[   14.588653\]  r5:c08d40b0 r4:c1003cb0
\[   14.588656\]  dump\_stack from \_\_warn+0x84/0xe4
\[   14.588668\]  \_\_warn from warn\_slowpath\_fmt+0x18c/0x194
\[   14.588678\]  r7:c08d40b0 r6:c1003cb0 r5:00000000 r4:00000000
\[   14.588681\]  warn\_slowpath\_fmt from nand\_reset\_op+0x1e0/0x1f8
\[   14.588695\]  r8:70c40dff r7:89705f41 r6:36b4a597 r5:c26c9444 r4:c26b0048
\[   14.588697\]  nand\_reset\_op from brcmnand\_resume+0x13c/0x150
\[   14.588714\]  r9:00000000 r8:00000000 r7:c24f8010 r6:c228a3f8 r5:c26c94bc r4:c26b0040
\[   14.588717\]  brcmnand\_resume from platform\_pm\_resume+0x34/0x54
\[   14.588735\]  r5:00000010 r4:c0840a50
\[   14.588738\]  platform\_pm\_resume from dpm\_run\_callback+0x5c/0x14c
\[   14.588757\]  dpm\_run\_callback from device\_resume+0xc0/0x324
\[   14.588776\]  r9:c24f8054 r8:c24f80a0 r7:00000000 r6:00000000 r5:00000010 r4:c24f8010
\[   14.588779\]  device\_resume from dpm\_resume+0x130/0x160
\[   14.588799\]  r9:c22539e4 r8:00000010 r7:c22bebb0 r6:c24f8010 r5:c22539dc r4:c22539b0
\[   14.588802\]  dpm\_resume from dpm\_resume\_end+0x14/0x20
\[   14.588822\]  r10:c2204e40 r9:00000000 r8:c228a3fc r7:00000000 r6:00000003 r5:c228a414
\[   14.588826\]  r4:00000010
\[   14.588828\]  dpm\_resume\_end from suspend\_devices\_and\_enter+0x274/0x6f8
\[   14.588848\]  r5:c228a414 r4:00000000
\[   14.588851\]  suspend\_devices\_and\_enter from pm\_suspend+0x228/0x2bc
\[   14.588868\]  r10:c3502910 r9:c3501f40 r8:00000004 r7:c228a438 r6:c0f95e18 r5:00000000
\[   14.588871\]  r4:00000003
\[   14.588874\]  pm\_suspend from state\_store+0x74/0xd0
\[   14.588889\]  r7:c228a438 r6:c0f934c8 r5:00000003 r4:00000003
\[   14.588892\]  state\_store from kobj\_attr\_store+0x1c/0x28
\[   14.588913\]  r9:00000000 r8:00000000 r7:f09f9f08 r6:00000004 r5:c3502900 r4:c0283250
\[   14.588916\]  kobj\_attr\_store from sysfs\_kf\_write+0x40/0x4c
\[   14.588936\]  r5:c3502900 r4:c0d92a48
\[   14.588939\]  sysfs\_kf\_write from kernfs\_fop\_write\_iter+0x104/0x1f0
\[   14.588956\]  r5:c3502900 r4:c3501f40
\[   14.588960\]  kernfs\_fop\_write\_iter from vfs\_write+0x250/0x420
\[   14.588980\]  r10:c0e14b48 r9:00000000 r8:c25f5780 r7:00443398 r6:f09f9f68 r5:c34f7f00
\[   14.588983\]  r4:c042a88c
\[   14.588987\]  vfs\_write from ksys\_write+0x74/0xe4
\[   14.589005\]  r10:00000004 r9:c25f5780 r8:c02002fA0 r7:00000000 r6:00000000 r5:c34f7f00
\[   14.589008\]  r4:c34f7f00
\[   14.589011\]  ksys\_write from sys\_write+0x10/0x14
\[   14.589029\]  r7:00000004 r6:004421c0 r5:00443398 r4:00000004
\[   14.589032\]  sys\_write from ret\_fast\_syscall+0x0/0x5c
\[   14.589044\] Exception stack(0xf09f9fa8 to 0xf09f9ff0)
\[   14.589050\] 9fa0:                   00000004 00443398 00000004 00443398 00000004 00000001
\[   14.589056\] 9fc0: 00000004 00443398 004421c0 00000004 b6ecbd58 00000008 bebfbc38 0043eb78
\[   14.589062\] 9fe0: 00440eb0 bebfbaf8 b6de18a0 b6e579e8
\[   14.589065\] ---\[ end trace 0000000000000000 \]---

The fix uses the higher level nand\_reset(chip, chipnr); where chipnr = 0, when
doing PM resume operation in compliance with the controller support for single
die nand chip. Switching from nand\_reset\_op() to nan
---truncated---

## Affected and fixed versions

- Linux: \>= 97d90da8a886949f09bb4754843fb0b504956ad2, \< 6f567c6a5250e3531cfd9c7ff254ecc2650464fa; \>= 97d90da8a886949f09bb4754843fb0b504956ad2, \< 8775581e1c48e1bdd04a893d6f6bbe5128ad0ea7; \>= 97d90da8a886949f09bb4754843fb0b504956ad2, \< fbcb584efa5cd912ff8a151d67b8fe22f4162a85; \>= 97d90da8a886949f09bb4754843fb0b504956ad2, \< 9dd161f707ecb7db38e5f529e979a5b6eb565b2d; \>= 97d90da8a886949f09bb4754843fb0b504956ad2, \< 9bd51723ab51580e077c91d494c37e80703b8524; \>= 97d90da8a886949f09bb4754843fb0b504956ad2, \< 7266066b9469f04ed1d4c0fdddaea1425835eb55; \>= 97d90da8a886949f09bb4754843fb0b504956ad2, \< c2eb3cffb0d972c5503e4d48921971c81def0fe5; \>= 97d90da8a886949f09bb4754843fb0b504956ad2, \< 659b1f29f3e2fd5d751fdf35c5526d1f1c9b3dd2; \>= 97d90da8a886949f09bb4754843fb0b504956ad2, \< ddc210cf8b8a8be68051ad958bf3e2cef6b681c2 (cvelist)
- Linux: 4.16 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-37840. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-37840.md
Affected: Linux >= 97d90da8a886949f09bb4754843fb0b504956ad2, < 6f567c6a5250e3531cfd9c7ff254ecc2650464fa; >= 97d90da8a886949f09bb4754843fb0b504956ad2, < 8775581e1c48e1bdd04a893d6f6bbe5128ad0ea7; >= 97d90da8a886949f09bb4754843fb0b504956ad2, < fbcb584efa5cd912ff8a151d67b8fe22f4162a85; >= 97d90da8a886949f09bb475…
Fixed in: Linux 6f567c6a5250e3531cfd9c7ff254ecc2650464fa, Linux 8775581e1c48e1bdd04a893d6f6bbe5128ad0ea7, Linux 9dd161f707ecb7db38e5f529e979a5b6eb565b2d, Linux 9bd51723ab51580e077c91d494c37e80703b8524, Linux 7266066b9469f04ed1d4c0fdddaea1425835eb55, Linux 659b1f29f3e2fd5d751fdf35c5526d1f1c9b3dd2

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-37840 being exploited?

There is no confirmed exploitation: CVE-2025-37840 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-37840?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-37840?

Linux \>= 97d90da8a886949f09bb4754843fb0b504956ad2, \< 6f567c6a5250e3531cfd9c7ff254ecc2650464fa; \>= 97d90da8a886949f09bb4754843fb0b504956ad2, \< 8775581e1c48e1bdd04a893d6f6bbe5128ad0ea7; \>= 97d90da8a886949f09bb4754843fb0b504956ad2, \< fbcb584efa5cd912ff8a151d67b8fe22f4162a85; \>= 97d90da8a886949f09bb4754843fb0b504956ad2, \< 9dd161f707ecb7db38e5f529e979a5b6eb565b2d; \>= 97d90da8a886949f09bb4754843fb0b504956ad2, \< 9bd51723ab51580e077c91d494c37e80703b8524; \>= 97d90da8a886949f09bb4754843fb0b504956ad2, \< 7266066b9469f04ed1d4c0fdddaea1425835eb55; \>= 97d90da8a886949f09bb4754843fb0b504956ad2, \< c2eb3cffb0d972c5503e4d48921971c81def0fe5; \>= 97d90da8a886949f09bb4754843fb0b504956ad2, \< 659b1f29f3e2fd5d751fdf35c5526d1f1c9b3dd2; \>= 97d90da8a886949f09bb4754843fb0b504956ad2, \< ddc210cf8b8a8be68051ad958bf3e2cef6b681c2; Linux 4.16.

### Is there a fix for CVE-2025-37840?

Yes. Fixed in Linux 6f567c6a5250e3531cfd9c7ff254ecc2650464fa, Linux 8775581e1c48e1bdd04a893d6f6bbe5128ad0ea7, Linux 9dd161f707ecb7db38e5f529e979a5b6eb565b2d, Linux 9bd51723ab51580e077c91d494c37e80703b8524, Linux 7266066b9469f04ed1d4c0fdddaea1425835eb55, Linux 659b1f29f3e2fd5d751fdf35c5526d1f1c9b3dd2. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-37840?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/6f567c6a5250e3531cfd9c7ff254ecc2650464fa>
- patch: <https://git.kernel.org/stable/c/8775581e1c48e1bdd04a893d6f6bbe5128ad0ea7>
- patch: <https://git.kernel.org/stable/c/fbcb584efa5cd912ff8a151d67b8fe22f4162a85>
- patch: <https://git.kernel.org/stable/c/9dd161f707ecb7db38e5f529e979a5b6eb565b2d>
- patch: <https://git.kernel.org/stable/c/9bd51723ab51580e077c91d494c37e80703b8524>
- patch: <https://git.kernel.org/stable/c/7266066b9469f04ed1d4c0fdddaea1425835eb55>
- patch: <https://git.kernel.org/stable/c/c2eb3cffb0d972c5503e4d48921971c81def0fe5>
- patch: <https://git.kernel.org/stable/c/659b1f29f3e2fd5d751fdf35c5526d1f1c9b3dd2>
- patch: <https://git.kernel.org/stable/c/ddc210cf8b8a8be68051ad958bf3e2cef6b681c2>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-37840>

HTML: <https://flawdb.com/CVE-2025-37840> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-37840>
