Local privilege escalation via reserved-QP double destruction
Published Aug 19, 2025 · Updated Aug 5, 2026
Double destruction in the Linux kernel RDMA/hns driver allows local users to corrupt kernel memory during HNS RoCE initialization. If reserved-QP allocation fails partway, free_mr_init() destroys allocated QPs but leaves dangling array entries that hns_roce_exit() destroys again. Access to RDMA uverbs plus resource pressure and a driver initialization or reset path is required; the resulting use-after-free permits kernel read/write primitives, privilege escalation, or a panic.
Summary
What happened
Double destruction in the Linux kernel RDMA/hns driver allows local users to corrupt kernel memory during HNS RoCE initialization. If reserved-QP allocation fails partway, free_mr_init() destroys allocated QPs but leaves dangling array entries that hns_roce_exit() destroys again. Access to RDMA uverbs plus resource pressure and a driver initialization or reset path is required; the resulting use-after-free permits kernel read/write primitives, privilege escalation, or a panic.
The record
- CVE
- CVE-2025-38582
- Published
- Aug 19, 2025
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- T1499.004
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Aug 19, 2025CVE publishedPublication date reported by the CVE source.
- Aug 5, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=2ccf1c75d39949d8ea043d04a2e92d7100ea723d
- Affected versionversion=60595923371c2ebe7faf82536c47eb0c967e3425
- Affected versionversion=6.10.13 <6.11
- Affected versionversion=6.1.113 <6.2
- Affected versionversion=6.11.2 <6.12
- Affected versionversion=6.12
- Affected versionversion=6.6.54 <6.7
- Affected versionversion=d2d9c5127122745da6e887f451dd248cfeffca33
- Affected versionversion=dac2723d8bfa9cf5333f477741e6e5fa1ed34645
- Affected versionversion=fd8489294dd2beefb70f12ec4f6132aeec61a4d0 <10b083dbba22be19baa848432b6f25aa68ab2db5
- Affected versionversion=fd8489294dd2beefb70f12ec4f6132aeec61a4d0 <c6957b95ecc5b63c5a4bb4ecc28af326cf8f6dc8
- Affected versionversion=fd8489294dd2beefb70f12ec4f6132aeec61a4d0 <dab173bae3303f074f063750a8dead2550d8c782
- Affected versionversion=fd8489294dd2beefb70f12ec4f6132aeec61a4d0 <fc8b0f5b16bab2e032b4cfcd6218d5df3b80b2ea
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo