CVE-2025-38582CWE-415

CVE-2025-38582

High · published August 19, 2025

CVSS v3.1
7.8
EPSS
0%
Percentile
6.8
In the wild
Unconfirmed
What it is

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

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00176 · 6.8th percentile
Weakness
CWE-415 · Double Free
Published
2025-08-19T21:15Z
Affected products (6)
ProductVersionsFixed in
linux/linux_kernel≥ 6.13, < 6.15.106.15.10
linux/linux_kernel≥ 6.16, < 6.16.16.16.1
linux/linux_kernel≥ 6.1.113, < 6.26.2
linux/linux_kernel≥ 6.6.54, < 6.76.7
linux/linux_kernel≥ 6.10.13, < 6.116.11
linux/linux_kernel≥ 6.11.2, < 6.12.426.12.42
References (5)
EPSS history
Timeline
  • 19 AUG 17:03Z
    RDMA/hns: Fix double destruction of rsv_qp
    cvelistv5