# CVE-2025-37993: can: m\_can: m\_can\_class\_allocate\_dev(): initialize spin lock on device probe

> 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.27% (percentile 13, 2026-11-26)
- **Published:** 2025-05-29T13:15:52.811Z
- **Modified:** 2026-06-17T09:15:50.493Z

## Who should check

- Anyone running Linux \>= 1fa80e23c15051edc1c594270517de3517ded798, \< 2ecce25ea296f328d79070ee36229a15aeeb7aca; \>= 1fa80e23c15051edc1c594270517de3517ded798, \< 7d5379cfecfdd665e4206bc4f19824656388779f; \>= 1fa80e23c15051edc1c594270517de3517ded798, \< dcaeeb8ae84c5506ebc574732838264f3887738c
- Anyone running Linux 6.9

## Description

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

can: m\_can: m\_can\_class\_allocate\_dev(): initialize spin lock on device probe

The spin lock tx\_handling\_spinlock in struct m\_can\_classdev is not
being initialized. This leads the following spinlock bad magic
complaint from the kernel, eg. when trying to send CAN frames with
cansend from can-utils:

\| BUG: spinlock bad magic on CPU\#0, cansend/95
\|  lock: 0xff60000002ec1010, .magic: 00000000, .owner: \<none\>/-1, .owner\_cpu: 0
\| CPU: 0 UID: 0 PID: 95 Comm: cansend Not tainted 6.15.0-rc3-00032-ga79be02bba5c \#5 NONE
\| Hardware name: MachineWare SIM-V (DT)
\| Call Trace:
\| \[\<ffffffff800133e0\>\] dump\_backtrace+0x1c/0x24
\| \[\<ffffffff800022f2\>\] show\_stack+0x28/0x34
\| \[\<ffffffff8000de3e\>\] dump\_stack\_lvl+0x4a/0x68
\| \[\<ffffffff8000de70\>\] dump\_stack+0x14/0x1c
\| \[\<ffffffff80003134\>\] spin\_dump+0x62/0x6e
\| \[\<ffffffff800883ba\>\] do\_raw\_spin\_lock+0xd0/0x142
\| \[\<ffffffff807a6fcc\>\] \_raw\_spin\_lock\_irqsave+0x20/0x2c
\| \[\<ffffffff80536dba\>\] m\_can\_start\_xmit+0x90/0x34a
\| \[\<ffffffff806148b0\>\] dev\_hard\_start\_xmit+0xa6/0xee
\| \[\<ffffffff8065b730\>\] sch\_direct\_xmit+0x114/0x292
\| \[\<ffffffff80614e2a\>\] \_\_dev\_queue\_xmit+0x3b0/0xaa8
\| \[\<ffffffff8073b8fa\>\] can\_send+0xc6/0x242
\| \[\<ffffffff8073d1c0\>\] raw\_sendmsg+0x1a8/0x36c
\| \[\<ffffffff805ebf06\>\] sock\_write\_iter+0x9a/0xee
\| \[\<ffffffff801d06ea\>\] vfs\_write+0x184/0x3a6
\| \[\<ffffffff801d0a88\>\] ksys\_write+0xa0/0xc0
\| \[\<ffffffff801d0abc\>\] \_\_riscv\_sys\_write+0x14/0x1c
\| \[\<ffffffff8079ebf8\>\] do\_trap\_ecall\_u+0x168/0x212
\| \[\<ffffffff807a830a\>\] handle\_exception+0x146/0x152

Initializing the spin lock in m\_can\_class\_allocate\_dev solves that
problem.

## Affected and fixed versions

- Linux: \>= 1fa80e23c15051edc1c594270517de3517ded798, \< 2ecce25ea296f328d79070ee36229a15aeeb7aca; \>= 1fa80e23c15051edc1c594270517de3517ded798, \< 7d5379cfecfdd665e4206bc4f19824656388779f; \>= 1fa80e23c15051edc1c594270517de3517ded798, \< dcaeeb8ae84c5506ebc574732838264f3887738c (cvelist)
- Linux: 6.9 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-37993.md
Affected: Linux >= 1fa80e23c15051edc1c594270517de3517ded798, < 2ecce25ea296f328d79070ee36229a15aeeb7aca; >= 1fa80e23c15051edc1c594270517de3517ded798, < 7d5379cfecfdd665e4206bc4f19824656388779f; >= 1fa80e23c15051edc1c594270517de3517ded798, < dcaeeb8ae84c5506ebc574732838264f3887738c; Linux 6.9
Fixed in: Linux 2ecce25ea296f328d79070ee36229a15aeeb7aca, Linux 7d5379cfecfdd665e4206bc4f19824656388779f

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-37993 being exploited?

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

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

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

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

Linux \>= 1fa80e23c15051edc1c594270517de3517ded798, \< 2ecce25ea296f328d79070ee36229a15aeeb7aca; \>= 1fa80e23c15051edc1c594270517de3517ded798, \< 7d5379cfecfdd665e4206bc4f19824656388779f; \>= 1fa80e23c15051edc1c594270517de3517ded798, \< dcaeeb8ae84c5506ebc574732838264f3887738c; Linux 6.9.

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

Yes. Fixed in Linux 2ecce25ea296f328d79070ee36229a15aeeb7aca, Linux 7d5379cfecfdd665e4206bc4f19824656388779f. No fix listed yet: follow the vendor advisory.

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

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/2ecce25ea296f328d79070ee36229a15aeeb7aca>
- patch: <https://git.kernel.org/stable/c/7d5379cfecfdd665e4206bc4f19824656388779f>
- patch: <https://git.kernel.org/stable/c/dcaeeb8ae84c5506ebc574732838264f3887738c>

## 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-37993>

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