CVE-2025-22010

RDMA/hns: Fix soft lockup during bt pages loop

No CVSS score yet EPSS 0.19%

Published 8 Apr 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2025-22010

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-22010 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.

Check my servers

Description

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

RDMA/hns: Fix soft lockup during bt pages loop

Driver runs a for-loop when allocating bt pages and mapping them with buffer pages. When a large buffer (e.g. MR over 100GB) is being allocated, it may require a considerable loop count. This will lead to soft lockup:

watchdog: BUG: soft lockup - CPU#27 stuck for 22s! ... Call trace: hem_list_alloc_mid_bt+0x124/0x394 [hns_roce_hw_v2] hns_roce_hem_list_request+0xf8/0x160 [hns_roce_hw_v2] hns_roce_mtr_create+0x2e4/0x360 [hns_roce_hw_v2] alloc_mr_pbl+0xd4/0x17c [hns_roce_hw_v2] hns_roce_reg_user_mr+0xf8/0x190 [hns_roce_hw_v2] ib_uverbs_reg_mr+0x118/0x290

watchdog: BUG: soft lockup - CPU#35 stuck for 23s! ... Call trace: hns_roce_hem_list_find_mtt+0x7c/0xb0 [hns_roce_hw_v2] mtr_map_bufs+0xc4/0x204 [hns_roce_hw_v2] hns_roce_mtr_create+0x31c/0x3c4 [hns_roce_hw_v2] alloc_mr_pbl+0xb0/0x160 [hns_roce_hw_v2] hns_roce_reg_user_mr+0x108/0x1c0 [hns_roce_hw_v2] ib_uverbs_reg_mr+0x120/0x2bc

Add a cond_resched() to fix soft lockup during these loops. In order not to affect the allocation performance of normal-size buffer, set the loop count of a 100GB MR as the threshold to call cond_resched().

Exploitation

EPSS 0.19%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 8.60% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 38389eaa4db192648916464b60f6086d6bbaa6de, before 461eb4ddede266df8f181f578732bb01742c3fd6
affected from 38389eaa4db192648916464b60f6086d6bbaa6de, before efe544462fc0b499725364f90bd0f8bbf16f861a
affected from 38389eaa4db192648916464b60f6086d6bbaa6de, before 4104b0023ff66b5df900d23dbf38310893deca79
affected from 38389eaa4db192648916464b60f6086d6bbaa6de, before 975355faba56c0751292ed15a90c3e2c7dc0aad6
affected from 38389eaa4db192648916464b60f6086d6bbaa6de, before 13a52f6c9ff99f7d88f81da535cb4e85eade662b
affected from 38389eaa4db192648916464b60f6086d6bbaa6de, before 9ab20fec7a1ce3057ad86afd27bfd08420b7cd11
affected from 38389eaa4db192648916464b60f6086d6bbaa6de, before 25655580136de59ec89f09089dd28008ea440fc9
Other versions: unaffected
Linux
affected 5.3
unaffected before 5.3
unaffected from 5.10.236 up to and including 5.10.*
unaffected from 5.15.180 up to and including 5.15.*
unaffected from 6.1.132 up to and including 6.1.*
unaffected from 6.6.85 up to and including 6.6.*
unaffected from 6.12.21 up to and including 6.12.*
unaffected from 6.13.9 up to and including 6.13.*
unaffected 6.14 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-22010 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-22010

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-22010
trivy image --scanners vuln IMAGE | grep CVE-2025-22010

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

Source: the record CVE-2025-22010 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.