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
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.116-1Fixed in 7.2.15-1Fixed in 7.3.4-1 - Compensating control
In RDMA/cma, call cma_id_put() when queue_work() fails in cma_netevent_callback, ensuring the reference is released when the work item remains pending.
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.