# CVE-2025-38151: RDMA/cma: Fix hang when cma_netevent_callback fails to queue_work

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2025-07-03T08:35:55.879Z
- Modified: 2026-06-17T09:16:09.450Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 51003b2c872c63d28bcf5fbcc52cf7b05615f7b7 before 1ac40736c8c4255d8417b937c9715b193f4a87b3; from c2b169fc7a12665d8a675c1ff14bca1b9c63fb9a before ac7897c0124066b9705ffca252a3662d54fc0c9b; from d23fd7a539ac078df119707110686a5b226ee3bb before 02e45168e0fd6fdc6f8f7c42c4b500857aa5efb0; from 45f5dcdd049719fb999393b30679605f16ebce14 before 8b05aa3692e45b8249379dc52b14acc6a104d2e5; from 45f5dcdd049719fb999393b30679605f16ebce14 before 92a251c3df8ea1991cd9fe00f1ab0cfce18d7711; b172a4a0de254f1fcce7591833a9a63547c2f447; from 6.1.135 before 6.1.142; from 6.6.88 before 6.6.94; from 6.12.25 before 6.12.34; from 6.14.4 before 6.15; 6.15 (not affected: before 6.15; from 6.1.142 up to 6.1.*; from 6.6.94 up to 6.6.*; from 6.12.34 up to 6.12.*; from 6.15.3 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 6.1.135 before 6.1.142; from 6.6.88 before 6.6.94; from 6.12.25 before 6.12.34; from 6.14.4 before 6.15; from 6.15.1 before 6.15.3; 6.15
- debian debian_linux: 11.0

## References

- <https://git.kernel.org/stable/c/1ac40736c8c4255d8417b937c9715b193f4a87b3> (patch)
- <https://git.kernel.org/stable/c/ac7897c0124066b9705ffca252a3662d54fc0c9b> (patch)
- <https://git.kernel.org/stable/c/02e45168e0fd6fdc6f8f7c42c4b500857aa5efb0> (patch)
- <https://git.kernel.org/stable/c/8b05aa3692e45b8249379dc52b14acc6a104d2e5> (patch)
- <https://git.kernel.org/stable/c/92a251c3df8ea1991cd9fe00f1ab0cfce18d7711> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (third-party-advisory)

## Sources

- CVE List: [CVE-2025-38151](https://www.cve.org/CVERecord?id=CVE-2025-38151), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2025-38151](https://nvd.nist.gov/vuln/detail/CVE-2025-38151), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-38151 · Whole record: https://cve.day/CVE-2025-38151.json · Rebuilt by cve.day 2026-11-25T22:59:00.542Z
