CVE-2025-38151

RDMA/cma: Fix hang when cma_netevent_callback fails to queue_work

No CVSS score yet EPSS 0.19%

Published 3 Jul 2025 Updated 23 May 2026 CNA: Linux

Check your servers for CVE-2025-38151

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-38151 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/cma: Fix hang when cma_netevent_callback fails to queue_work

The cited commit fixed a crash when cma_netevent_callback was called for a cma_id while work on that id from a previous call had not yet started. The work item was re-initialized in the second call, which corrupted the work item currently in the work queue.

However, it left a problem when queue_work fails (because the item is still pending in the work queue from a previous call). In this case, cma_id_put (which is called in the work handler) is therefore not called. This results in a userspace process hang (zombie process).

Fix this by calling cma_id_put() if queue_work fails.

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 9.05% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 51003b2c872c63d28bcf5fbcc52cf7b05615f7b7, before 1ac40736c8c4255d8417b937c9715b193f4a87b3
affected from c2b169fc7a12665d8a675c1ff14bca1b9c63fb9a, before ac7897c0124066b9705ffca252a3662d54fc0c9b
affected from d23fd7a539ac078df119707110686a5b226ee3bb, before 02e45168e0fd6fdc6f8f7c42c4b500857aa5efb0
affected from 45f5dcdd049719fb999393b30679605f16ebce14, before 8b05aa3692e45b8249379dc52b14acc6a104d2e5
affected from 45f5dcdd049719fb999393b30679605f16ebce14, before 92a251c3df8ea1991cd9fe00f1ab0cfce18d7711
affected b172a4a0de254f1fcce7591833a9a63547c2f447
affected from 6.1.135, before 6.1.142
affected from 6.6.88, before 6.6.94
affected from 6.12.25, before 6.12.34
affected from 6.14.4, before 6.15
Other versions: unaffected
Linux
affected 6.15
unaffected before 6.15
unaffected from 6.1.142 up to and including 6.1.*
unaffected from 6.6.94 up to and including 6.6.*
unaffected from 6.12.34 up to and including 6.12.*
unaffected from 6.15.3 up to and including 6.15.*
unaffected 6.16 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-38151 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38151

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

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