CVE-2025-38582
RDMA/hns: Fix double destruction of rsv_qp
Check your servers for CVE-2025-38582
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-38582 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.25%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 17.0% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 2ccf1c75d39949d8ea043d04a2e92d7100ea723d, before 5a791715803304bf81ae2a3a278f606e36b82481 affected from d2d9c5127122745da6e887f451dd248cfeffca33, before 067ca15be8b8342931536b66206c496e76864ecf affected from fd8489294dd2beefb70f12ec4f6132aeec61a4d0, before dab173bae3303f074f063750a8dead2550d8c782 affected from fd8489294dd2beefb70f12ec4f6132aeec61a4d0, before fc8b0f5b16bab2e032b4cfcd6218d5df3b80b2ea affected from fd8489294dd2beefb70f12ec4f6132aeec61a4d0, before 10b083dbba22be19baa848432b6f25aa68ab2db5 affected from fd8489294dd2beefb70f12ec4f6132aeec61a4d0, before c6957b95ecc5b63c5a4bb4ecc28af326cf8f6dc8 affected dac2723d8bfa9cf5333f477741e6e5fa1ed34645 affected 60595923371c2ebe7faf82536c47eb0c967e3425 affected from 6.1.113, before 6.1.191 affected from 6.6.54, before 6.6.160 affected from 6.10.13, before 6.11 affected from 6.11.2, before 6.12
Other versions: unaffected
|
| Linux |
affected 6.12 unaffected before 6.12 unaffected from 6.1.191 up to and including 6.1.* unaffected from 6.6.160 up to and including 6.6.* unaffected from 6.12.42 up to and including 6.12.* unaffected from 6.15.10 up to and including 6.15.* unaffected from 6.16.1 up to and including 6.16.* unaffected 6.17 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-38582 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38582
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-38582
trivy image --scanners vuln IMAGE | grep CVE-2025-38582
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/5a791715803304bf81ae2a3a278f606e36b82481 git.kernel.org
- https://git.kernel.org/stable/c/067ca15be8b8342931536b66206c496e76864ecf git.kernel.org
- https://git.kernel.org/stable/c/dab173bae3303f074f063750a8dead2550d8c782 git.kernel.org
- https://git.kernel.org/stable/c/fc8b0f5b16bab2e032b4cfcd6218d5df3b80b2ea git.kernel.org
- https://git.kernel.org/stable/c/10b083dbba22be19baa848432b6f25aa68ab2db5 git.kernel.org
- https://git.kernel.org/stable/c/c6957b95ecc5b63c5a4bb4ecc28af326cf8f6dc8 git.kernel.org
Source: the record CVE-2025-38582 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse