# CVE-2025-38582: RDMA/hns: Fix double destruction of rsv\_qp

> 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, CNA) `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.28% (percentile 13, 2026-11-26)
- **CWE:** CWE-415
- **Published:** 2025-08-19T17:03:04.535Z
- **Modified:** 2026-10-30T13:18:06.000Z

## Who should check

- Anyone running Linux \>= 2ccf1c75d39949d8ea043d04a2e92d7100ea723d, \< 5a791715803304bf81ae2a3a278f606e36b82481; \>= d2d9c5127122745da6e887f451dd248cfeffca33, \< 067ca15be8b8342931536b66206c496e76864ecf; \>= fd8489294dd2beefb70f12ec4f6132aeec61a4d0, \< dab173bae3303f074f063750a8dead2550d8c782; \>= fd8489294dd2beefb70f12ec4f6132aeec61a4d0, \< fc8b0f5b16bab2e032b4cfcd6218d5df3b80b2ea; \>= fd8489294dd2beefb70f12ec4f6132aeec61a4d0, \< 10b083dbba22be19baa848432b6f25aa68ab2db5; \>= fd8489294dd2beefb70f12ec4f6132aeec61a4d0, \< c6957b95ecc5b63c5a4bb4ecc28af326cf8f6dc8; dac2723d8bfa9cf5333f477741e6e5fa1ed34645; 60595923371c2ebe7faf82536c47eb0c967e3425; \>= 6.1.113, \< 6.1.191; \>= 6.6.54, \< 6.6.160; …
- Anyone running Linux 6.12

## Description

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

RDMA/hns: Fix double destruction of rsv\_qp

rsv\_qp may be double destroyed in error flow, first in free\_mr\_init(),
and then in hns\_roce\_exit(). Fix it by moving the free\_mr\_init() call
into hns\_roce\_v2\_init().

list\_del corruption, ffff589732eb9b50-\>next is LIST\_POISON1 (dead000000000100)
WARNING: CPU: 8 PID: 1047115 at lib/list\_debug.c:53 \_\_list\_del\_entry\_valid+0x148/0x240
...
Call trace:
 \_\_list\_del\_entry\_valid+0x148/0x240
 hns\_roce\_qp\_remove+0x4c/0x3f0 \[hns\_roce\_hw\_v2\]
 hns\_roce\_v2\_destroy\_qp\_common+0x1dc/0x5f4 \[hns\_roce\_hw\_v2\]
 hns\_roce\_v2\_destroy\_qp+0x22c/0x46c \[hns\_roce\_hw\_v2\]
 free\_mr\_exit+0x6c/0x120 \[hns\_roce\_hw\_v2\]
 hns\_roce\_v2\_exit+0x170/0x200 \[hns\_roce\_hw\_v2\]
 hns\_roce\_exit+0x118/0x350 \[hns\_roce\_hw\_v2\]
 \_\_hns\_roce\_hw\_v2\_init\_instance+0x1c8/0x304 \[hns\_roce\_hw\_v2\]
 hns\_roce\_hw\_v2\_reset\_notify\_init+0x170/0x21c \[hns\_roce\_hw\_v2\]
 hns\_roce\_hw\_v2\_reset\_notify+0x6c/0x190 \[hns\_roce\_hw\_v2\]
 hclge\_notify\_roce\_client+0x6c/0x160 \[hclge\]
 hclge\_reset\_rebuild+0x150/0x5c0 \[hclge\]
 hclge\_reset+0x10c/0x140 \[hclge\]
 hclge\_reset\_subtask+0x80/0x104 \[hclge\]
 hclge\_reset\_service\_task+0x168/0x3ac \[hclge\]
 hclge\_service\_task+0x50/0x100 \[hclge\]
 process\_one\_work+0x250/0x9a0
 worker\_thread+0x324/0x990
 kthread+0x190/0x210
 ret\_from\_fork+0x10/0x18

## Affected and fixed versions

- Linux: \>= 2ccf1c75d39949d8ea043d04a2e92d7100ea723d, \< 5a791715803304bf81ae2a3a278f606e36b82481; \>= d2d9c5127122745da6e887f451dd248cfeffca33, \< 067ca15be8b8342931536b66206c496e76864ecf; \>= fd8489294dd2beefb70f12ec4f6132aeec61a4d0, \< dab173bae3303f074f063750a8dead2550d8c782; \>= fd8489294dd2beefb70f12ec4f6132aeec61a4d0, \< fc8b0f5b16bab2e032b4cfcd6218d5df3b80b2ea; \>= fd8489294dd2beefb70f12ec4f6132aeec61a4d0, \< 10b083dbba22be19baa848432b6f25aa68ab2db5; \>= fd8489294dd2beefb70f12ec4f6132aeec61a4d0, \< c6957b95ecc5b63c5a4bb4ecc28af326cf8f6dc8; dac2723d8bfa9cf5333f477741e6e5fa1ed34645; 60595923371c2ebe7faf82536c47eb0c967e3425; \>= 6.1.113, \< 6.1.191; \>= 6.6.54, \< 6.6.160; … (cvelist)
- Linux: 6.12 (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-38582. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38582.md
Affected: Linux >= 2ccf1c75d39949d8ea043d04a2e92d7100ea723d, < 5a791715803304bf81ae2a3a278f606e36b82481; >= d2d9c5127122745da6e887f451dd248cfeffca33, < 067ca15be8b8342931536b66206c496e76864ecf; >= fd8489294dd2beefb70f12ec4f6132aeec61a4d0, < dab173bae3303f074f063750a8dead2550d8c782; >= fd8489294dd2beefb70f12e…
Fixed in: Linux 5a791715803304bf81ae2a3a278f606e36b82481, Linux 067ca15be8b8342931536b66206c496e76864ecf, Linux 10b083dbba22be19baa848432b6f25aa68ab2db5, Linux 6.1.191, Linux 6.6.160

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

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

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

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

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

Linux \>= 2ccf1c75d39949d8ea043d04a2e92d7100ea723d, \< 5a791715803304bf81ae2a3a278f606e36b82481; \>= d2d9c5127122745da6e887f451dd248cfeffca33, \< 067ca15be8b8342931536b66206c496e76864ecf; \>= fd8489294dd2beefb70f12ec4f6132aeec61a4d0, \< dab173bae3303f074f063750a8dead2550d8c782; \>= fd8489294dd2beefb70f12ec4f6132aeec61a4d0, \< fc8b0f5b16bab2e032b4cfcd6218d5df3b80b2ea; \>= fd8489294dd2beefb70f12ec4f6132aeec61a4d0, \< 10b083dbba22be19baa848432b6f25aa68ab2db5; \>= fd8489294dd2beefb70f12ec4f6132aeec61a4d0, \< c6957b95ecc5b63c5a4bb4ecc28af326cf8f6dc8; dac2723d8bfa9cf5333f477741e6e5fa1ed34645; 60595923371c2ebe7faf82536c47eb0c967e3425; \>= 6.1.113, \< 6.1.191; \>= 6.6.54, \< 6.6.160; …; Linux 6.12.

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

Yes. Fixed in Linux 5a791715803304bf81ae2a3a278f606e36b82481, Linux 067ca15be8b8342931536b66206c496e76864ecf, Linux 10b083dbba22be19baa848432b6f25aa68ab2db5, Linux 6.1.191, Linux 6.6.160. No fix listed yet: follow the vendor advisory.

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

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/dab173bae3303f074f063750a8dead2550d8c782>
- patch: <https://git.kernel.org/stable/c/fc8b0f5b16bab2e032b4cfcd6218d5df3b80b2ea>
- patch: <https://git.kernel.org/stable/c/10b083dbba22be19baa848432b6f25aa68ab2db5>
- patch: <https://git.kernel.org/stable/c/c6957b95ecc5b63c5a4bb4ecc28af326cf8f6dc8>
- other: <https://git.kernel.org/stable/c/5a791715803304bf81ae2a3a278f606e36b82481>
- other: <https://git.kernel.org/stable/c/067ca15be8b8342931536b66206c496e76864ecf>

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

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