CVE-2025-38582

RDMA/hns: Fix double destruction of rsv_qp

HIGH
7.8
CVSS Score
Published: August 19, 2025 at 05:03 PM UTC
Updated: October 30, 2026 at 01:18 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

6.1.113 ≤ v < 6.26.10.13 ≤ v < 6.116.11.2 ≤ v < 6.12.426.13 ≤ v < 6.15.106.16 ≤ v < 6.16.16.6.54 ≤ v < 6.72ccf1c75d39949d8ea043d04a2e92d7100ea723d6.1.1136.10.136.11.26.126.6.5460595923371c2ebe7faf82536c47eb0c967e3425d2d9c5127122745da6e887f451dd248cfeffca33dac2723d8bfa9cf5333f477741e6e5fa1ed34645fd8489294dd2beefb70f12ec4f6132aeec61a4d0
Vendor states this is fixed in 10b083dbba22be19baa848432b6f25aa68ab2db5 (fixed)
Vendor states this is fixed in c6957b95ecc5b63c5a4bb4ecc28af326cf8f6dc8 (fixed)
Vendor states this is fixed in dab173bae3303f074f063750a8dead2550d8c782 (fixed)
Vendor states this is fixed in fc8b0f5b16bab2e032b4cfcd6218d5df3b80b2ea (fixed)
Affected range stops below 6.11, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 6.12 (unaffected)
Vendor states this is fixed in 6.12.42 (unaffected)
Vendor states this is fixed in 6.15.10 (unaffected)
Vendor states this is fixed in 6.16.1 (unaffected)
Vendor states this is fixed in 6.17 (unaffected)
Affected range stops below 6.2, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 6.6.160 (unaffected)
Affected range stops below 6.7, so it looks safe — our inference, not a vendor statement

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-415

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card