CVE-2025-38151: RDMA/cma: Fix hang when cma_netevent_callback fails to queue_work
In the Linux kernel, the following vulnerability has been resolved:
RDMA/cma: Fix hang when cmaneteventcallback fails to queuework
The cited commit fixed a crash when cmaneteventcallback was called for a cmaid 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 queuework fails (because the item is still pending in the work queue from a previous call). In this case, cmaidput (which is called in the work handler) is therefore not called. This results in a userspace process hang (zombie process).
Fix this by calling cmaidput() if queuework fails.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2025-38151?
CVE-2025-38151 has a medium severity rating due to the potential for system instability.
How do I fix CVE-2025-38151?
To fix CVE-2025-38151, update your Linux kernel to the latest version that includes the patched commit.
What systems are affected by CVE-2025-38151?
CVE-2025-38151 affects the Linux Kernel, particularly when using RDMA/cma features.
What does CVE-2025-38151 address?
CVE-2025-38151 addresses a potential hang situation when cma_netevent_callback fails to queue work.
When was CVE-2025-38151 disclosed?
CVE-2025-38151 was disclosed in 2025 following the resolution of an identified crash issue.