Bug 2376049 (CVE-2025-38151) - CVE-2025-38151 kernel: RDMA/cma: Fix hang when cma_netevent_callback fails to queue_work
Summary: CVE-2025-38151 kernel: RDMA/cma: Fix hang when cma_netevent_callback fails to...
Keywords:
Status: NEW
Alias: CVE-2025-38151
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-07-03 09:02 UTC by OSIDB Bzimport
Modified: 2025-07-03 18:56 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-07-03 09:02:18 UTC
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.

Comment 1 Avinash Hanwate 2025-07-03 18:54:41 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025070336-CVE-2025-38151-6483@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.