# CVE-2025-21953: net: mana: cleanup mana struct after debugfs\_remove()

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.24% (percentile 9, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-04-01T15:46:54.712Z
- **Modified:** 2026-06-17T08:44:41.860Z

## Who should check

- Anyone running Linux \>= 6607c17c6c5e029da03a90085db22daf518232bf, \< a1466112fb6e819261272ad75e7db750a43b78bf; \>= 6607c17c6c5e029da03a90085db22daf518232bf, \< 3e64bb2ae7d9f2b3a8259d4d6b86ed1984d5460a
- Anyone running Linux 6.13

## Description

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

net: mana: cleanup mana struct after debugfs\_remove()

When on a MANA VM hibernation is triggered, as part of hibernate\_snapshot(),
mana\_gd\_suspend() and mana\_gd\_resume() are called. If during this
mana\_gd\_resume(), a failure occurs with HWC creation, mana\_port\_debugfs
pointer does not get reinitialized and ends up pointing to older,
cleaned-up dentry.
Further in the hibernation path, as part of power\_down(), mana\_gd\_shutdown()
is triggered. This call, unaware of the failures in resume, tries to cleanup
the already cleaned up  mana\_port\_debugfs value and hits the following bug:

\[  191.359296\] mana 7870:00:00.0: Shutdown was called
\[  191.359918\] BUG: kernel NULL pointer dereference, address: 0000000000000098
\[  191.360584\] \#PF: supervisor write access in kernel mode
\[  191.361125\] \#PF: error\_code(0x0002) - not-present page
\[  191.361727\] PGD 1080ea067 P4D 0
\[  191.362172\] Oops: Oops: 0002 \[\#1\] SMP NOPTI
\[  191.362606\] CPU: 11 UID: 0 PID: 1674 Comm: bash Not tainted 6.14.0-rc5+ \#2
\[  191.363292\] Hardware name: Microsoft Corporation Virtual Machine/Virtual Machine, BIOS Hyper-V UEFI Release v4.1 11/21/2024
\[  191.364124\] RIP: 0010:down\_write+0x19/0x50
\[  191.364537\] Code: 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1f 44 00 00 55 48 89 e5 53 48 89 fb e8 de cd ff ff 31 c0 ba 01 00 00 00 \<f0\> 48 0f b1 13 75 16 65 48 8b 05 88 24 4c 6a 48 89 43 08 48 8b 5d
\[  191.365867\] RSP: 0000:ff45fbe0c1c037b8 EFLAGS: 00010246
\[  191.366350\] RAX: 0000000000000000 RBX: 0000000000000098 RCX: ffffff8100000000
\[  191.366951\] RDX: 0000000000000001 RSI: 0000000000000064 RDI: 0000000000000098
\[  191.367600\] RBP: ff45fbe0c1c037c0 R08: 0000000000000000 R09: 0000000000000001
\[  191.368225\] R10: ff45fbe0d2b01000 R11: 0000000000000008 R12: 0000000000000000
\[  191.368874\] R13: 000000000000000b R14: ff43dc27509d67c0 R15: 0000000000000020
\[  191.369549\] FS:  00007dbc5001e740(0000) GS:ff43dc663f380000(0000) knlGS:0000000000000000
\[  191.370213\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[  191.370830\] CR2: 0000000000000098 CR3: 0000000168e8e002 CR4: 0000000000b73ef0
\[  191.371557\] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
\[  191.372192\] DR3: 0000000000000000 DR6: 00000000fffe07f0 DR7: 0000000000000400
\[  191.372906\] Call Trace:
\[  191.373262\]  \<TASK\>
\[  191.373621\]  ? show\_regs+0x64/0x70
\[  191.374040\]  ? \_\_die+0x24/0x70
\[  191.374468\]  ? page\_fault\_oops+0x290/0x5b0
\[  191.374875\]  ? do\_user\_addr\_fault+0x448/0x800
\[  191.375357\]  ? exc\_page\_fault+0x7a/0x160
\[  191.375971\]  ? asm\_exc\_page\_fault+0x27/0x30
\[  191.376416\]  ? down\_write+0x19/0x50
\[  191.376832\]  ? down\_write+0x12/0x50
\[  191.377232\]  simple\_recursive\_removal+0x4a/0x2a0
\[  191.377679\]  ? \_\_pfx\_remove\_one+0x10/0x10
\[  191.378088\]  debugfs\_remove+0x44/0x70
\[  191.378530\]  mana\_detach+0x17c/0x4f0
\[  191.378950\]  ? \_\_flush\_work+0x1e2/0x3b0
\[  191.379362\]  ? \_\_cond\_resched+0x1a/0x50
\[  191.379787\]  mana\_remove+0xf2/0x1a0
\[  191.380193\]  mana\_gd\_shutdown+0x3b/0x70
\[  191.380642\]  pci\_device\_shutdown+0x3a/0x80
\[  191.381063\]  device\_shutdown+0x13e/0x230
\[  191.381480\]  kernel\_power\_off+0x35/0x80
\[  191.381890\]  hibernate+0x3c6/0x470
\[  191.382312\]  state\_store+0xcb/0xd0
\[  191.382734\]  kobj\_attr\_store+0x12/0x30
\[  191.383211\]  sysfs\_kf\_write+0x3e/0x50
\[  191.383640\]  kernfs\_fop\_write\_iter+0x140/0x1d0
\[  191.384106\]  vfs\_write+0x271/0x440
\[  191.384521\]  ksys\_write+0x72/0xf0
\[  191.384924\]  \_\_x64\_sys\_write+0x19/0x20
\[  191.385313\]  x64\_sys\_call+0x2b0/0x20b0
\[  191.385736\]  do\_syscall\_64+0x79/0x150
\[  191.386146\]  ? \_\_mod\_memcg\_lruvec\_state+0xe7/0x240
\[  191.386676\]  ? \_\_lruvec\_stat\_mod\_folio+0x79/0xb0
\[  191.387124\]  ? \_\_pfx\_lru\_add+0x10/0x10
\[  191.387515\]  ? queued\_spin\_unlock+0x9/0x10
\[  191.387937\]  ? do\_anonymous\_page+0x33c/0xa00
\[  191.388374\]  ? \_\_handle\_mm\_fault+0xcf3/0x1210
\[  191.388805\]  ? \_\_count\_memcg\_events+0xbe/0x180
\[  191.389235\]  ? handle\_mm\_fault+0xae/0x300
\[  19
---truncated---

## Affected and fixed versions

- Linux: \>= 6607c17c6c5e029da03a90085db22daf518232bf, \< a1466112fb6e819261272ad75e7db750a43b78bf; \>= 6607c17c6c5e029da03a90085db22daf518232bf, \< 3e64bb2ae7d9f2b3a8259d4d6b86ed1984d5460a (cvelist)
- Linux: 6.13 (cvelist)

## Mitigation

- Upgrade Linux to 3e64bb2ae7d9f2b3a8259d4d6b86ed1984d5460a or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-21953.md
Affected: Linux >= 6607c17c6c5e029da03a90085db22daf518232bf, < a1466112fb6e819261272ad75e7db750a43b78bf; >= 6607c17c6c5e029da03a90085db22daf518232bf, < 3e64bb2ae7d9f2b3a8259d4d6b86ed1984d5460a; Linux 6.13
Fixed in: Linux 3e64bb2ae7d9f2b3a8259d4d6b86ed1984d5460a

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-21953 being exploited?

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

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

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 6607c17c6c5e029da03a90085db22daf518232bf, \< a1466112fb6e819261272ad75e7db750a43b78bf; \>= 6607c17c6c5e029da03a90085db22daf518232bf, \< 3e64bb2ae7d9f2b3a8259d4d6b86ed1984d5460a; Linux 6.13.

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

Yes. Fixed in Linux 3e64bb2ae7d9f2b3a8259d4d6b86ed1984d5460a. Upgrade Linux to 3e64bb2ae7d9f2b3a8259d4d6b86ed1984d5460a or later.

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

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/a1466112fb6e819261272ad75e7db750a43b78bf>
- patch: <https://git.kernel.org/stable/c/3e64bb2ae7d9f2b3a8259d4d6b86ed1984d5460a>

## 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-21953>

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