# CVE-2025-37772: RDMA/cma: Fix workqueue crash in cma\_netevent\_work\_handler

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-05-01T13:07:12.168Z
- **Modified:** 2026-06-17T09:15:24.550Z

## Who should check

- Anyone running Linux \>= 925d046e7e52c71c3531199ce137e141807ef740, \< 51003b2c872c63d28bcf5fbcc52cf7b05615f7b7; \>= 925d046e7e52c71c3531199ce137e141807ef740, \< c2b169fc7a12665d8a675c1ff14bca1b9c63fb9a; \>= 925d046e7e52c71c3531199ce137e141807ef740, \< d23fd7a539ac078df119707110686a5b226ee3bb; \>= 925d046e7e52c71c3531199ce137e141807ef740, \< b172a4a0de254f1fcce7591833a9a63547c2f447; \>= 925d046e7e52c71c3531199ce137e141807ef740, \< 45f5dcdd049719fb999393b30679605f16ebce14
- Anyone running Linux 6.0

## Description

In the Linux kernel, the following vulnerability has been resolved:

RDMA/cma: Fix workqueue crash in cma\_netevent\_work\_handler

struct rdma\_cm\_id has member "struct work\_struct net\_work"
that is reused for enqueuing cma\_netevent\_work\_handler()s
onto cma\_wq.

Below crash\[1\] can occur if more than one call to
cma\_netevent\_callback() occurs in quick succession,
which further enqueues cma\_netevent\_work\_handler()s for the
same rdma\_cm\_id, overwriting any previously queued work-item(s)
that was just scheduled to run i.e. there is no guarantee
the queued work item may run between two successive calls
to cma\_netevent\_callback() and the 2nd INIT\_WORK would overwrite
the 1st work item (for the same rdma\_cm\_id), despite grabbing
id\_table\_lock during enqueue.

Also drgn analysis \[2\] indicates the work item was likely overwritten.

Fix this by moving the INIT\_WORK() to \_\_rdma\_create\_id(),
so that it doesn't race with any existing queue\_work() or
its worker thread.

\[1\] Trimmed crash stack:
=============================================
BUG: kernel NULL pointer dereference, address: 0000000000000008
kworker/u256:6 ... 6.12.0-0...
Workqueue:  cma\_netevent\_work\_handler \[rdma\_cm\] (rdma\_cm)
RIP: 0010:process\_one\_work+0xba/0x31a
Call Trace:
 worker\_thread+0x266/0x3a0
 kthread+0xcf/0x100
 ret\_from\_fork+0x31/0x50
 ret\_from\_fork\_asm+0x1a/0x30
=============================================

\[2\] drgn crash analysis:

\>\>\> trace = prog.crashed\_thread().stack\_trace()
\>\>\> trace
(0)  crash\_setup\_regs (./arch/x86/include/asm/kexec.h:111:15)
(1)  \_\_crash\_kexec (kernel/crash\_core.c:122:4)
(2)  panic (kernel/panic.c:399:3)
(3)  oops\_end (arch/x86/kernel/dumpstack.c:382:3)
...
(8)  process\_one\_work (kernel/workqueue.c:3168:2)
(9)  process\_scheduled\_works (kernel/workqueue.c:3310:3)
(10) worker\_thread (kernel/workqueue.c:3391:4)
(11) kthread (kernel/kthread.c:389:9)

Line workqueue.c:3168 for this kernel version is in process\_one\_work():
3168	strscpy(worker-\>desc, pwq-\>wq-\>name, WORKER\_DESC\_LEN);

\>\>\> trace\[8\]\["work"\]
\*(struct work\_struct \*)0xffff92577d0a21d8 = {
	.data = (atomic\_long\_t){
		.counter = (s64)536870912,    \<=== Note
	},
	.entry = (struct list\_head){
		.next = (struct list\_head \*)0xffff924d075924c0,
		.prev = (struct list\_head \*)0xffff924d075924c0,
	},
	.func = (work\_func\_t)cma\_netevent\_work\_handler+0x0 = 0xffffffffc2cec280,
}

Suspicion is that pwq is NULL:
\>\>\> trace\[8\]\["pwq"\]
(struct pool\_workqueue \*)\<absent\>

In process\_one\_work(), pwq is assigned from:
struct pool\_workqueue \*pwq = get\_work\_pwq(work);

and get\_work\_pwq() is:
static struct pool\_workqueue \*get\_work\_pwq(struct work\_struct \*work)
{
 	unsigned long data = atomic\_long\_read(&work-\>data);

 	if (data & WORK\_STRUCT\_PWQ)
 		return work\_struct\_pwq(data);
 	else
 		return NULL;
}

WORK\_STRUCT\_PWQ is 0x4:
\>\>\> print(repr(prog\['WORK\_STRUCT\_PWQ'\]))
Object(prog, 'enum work\_flags', value=4)

But work-\>data is 536870912 which is 0x20000000.
So, get\_work\_pwq() returns NULL and we crash in process\_one\_work():
3168	strscpy(worker-\>desc, pwq-\>wq-\>name, WORKER\_DESC\_LEN);
=============================================

## Affected and fixed versions

- Linux: \>= 925d046e7e52c71c3531199ce137e141807ef740, \< 51003b2c872c63d28bcf5fbcc52cf7b05615f7b7; \>= 925d046e7e52c71c3531199ce137e141807ef740, \< c2b169fc7a12665d8a675c1ff14bca1b9c63fb9a; \>= 925d046e7e52c71c3531199ce137e141807ef740, \< d23fd7a539ac078df119707110686a5b226ee3bb; \>= 925d046e7e52c71c3531199ce137e141807ef740, \< b172a4a0de254f1fcce7591833a9a63547c2f447; \>= 925d046e7e52c71c3531199ce137e141807ef740, \< 45f5dcdd049719fb999393b30679605f16ebce14 (cvelist)
- Linux: 6.0 (cvelist)

## Mitigation

- Upgrade Linux to 45f5dcdd049719fb999393b30679605f16ebce14 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-37772. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-37772.md
Affected: Linux >= 925d046e7e52c71c3531199ce137e141807ef740, < 51003b2c872c63d28bcf5fbcc52cf7b05615f7b7; >= 925d046e7e52c71c3531199ce137e141807ef740, < c2b169fc7a12665d8a675c1ff14bca1b9c63fb9a; >= 925d046e7e52c71c3531199ce137e141807ef740, < d23fd7a539ac078df119707110686a5b226ee3bb; >= 925d046e7e52c71c3531199…
Fixed in: Linux 51003b2c872c63d28bcf5fbcc52cf7b05615f7b7, Linux 45f5dcdd049719fb999393b30679605f16ebce14

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-37772 being exploited?

There is no confirmed exploitation: CVE-2025-37772 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-37772?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-37772?

Linux \>= 925d046e7e52c71c3531199ce137e141807ef740, \< 51003b2c872c63d28bcf5fbcc52cf7b05615f7b7; \>= 925d046e7e52c71c3531199ce137e141807ef740, \< c2b169fc7a12665d8a675c1ff14bca1b9c63fb9a; \>= 925d046e7e52c71c3531199ce137e141807ef740, \< d23fd7a539ac078df119707110686a5b226ee3bb; \>= 925d046e7e52c71c3531199ce137e141807ef740, \< b172a4a0de254f1fcce7591833a9a63547c2f447; \>= 925d046e7e52c71c3531199ce137e141807ef740, \< 45f5dcdd049719fb999393b30679605f16ebce14; Linux 6.0.

### Is there a fix for CVE-2025-37772?

Yes. Fixed in Linux 51003b2c872c63d28bcf5fbcc52cf7b05615f7b7, Linux 45f5dcdd049719fb999393b30679605f16ebce14. Upgrade Linux to 45f5dcdd049719fb999393b30679605f16ebce14 or later.

### How do I check if I'm affected by CVE-2025-37772?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/51003b2c872c63d28bcf5fbcc52cf7b05615f7b7>
- patch: <https://git.kernel.org/stable/c/c2b169fc7a12665d8a675c1ff14bca1b9c63fb9a>
- patch: <https://git.kernel.org/stable/c/d23fd7a539ac078df119707110686a5b226ee3bb>
- patch: <https://git.kernel.org/stable/c/b172a4a0de254f1fcce7591833a9a63547c2f447>
- patch: <https://git.kernel.org/stable/c/45f5dcdd049719fb999393b30679605f16ebce14>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-37772>

HTML: <https://flawdb.com/CVE-2025-37772> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-37772>
