# CVE-2024-46791: can: mcp251x: fix deadlock if an interrupt occurs during mcp251x\_open

> 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.23% (percentile 8, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2024-09-18T07:12:46.677Z
- **Modified:** 2026-06-17T07:55:56.523Z

## Who should check

- Anyone running Linux \>= 8ce8c0abcba314e1fe954a1840f6568bf5aef2ef, \< 3a49b6b1caf5cefc05264d29079d52c99cb188e0; \>= 8ce8c0abcba314e1fe954a1840f6568bf5aef2ef, \< 513c8fc189b52f7922e36bdca58997482b198f0e; \>= 8ce8c0abcba314e1fe954a1840f6568bf5aef2ef, \< f7ab9e14b23a3eac6714bdc4dba244d8aa1ef646; \>= 8ce8c0abcba314e1fe954a1840f6568bf5aef2ef, \< 8fecde9c3f9a4b97b68bb97c9f47e5b662586ba7; \>= 8ce8c0abcba314e1fe954a1840f6568bf5aef2ef, \< e554113a1cd2a9cfc6c7af7bdea2141c5757e188; \>= 8ce8c0abcba314e1fe954a1840f6568bf5aef2ef, \< 7dd9c26bd6cf679bcfdef01a8659791aa6487a29
- Anyone running Linux 5.5

## Description

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

can: mcp251x: fix deadlock if an interrupt occurs during mcp251x\_open

The mcp251x\_hw\_wake() function is called with the mpc\_lock mutex held and
disables the interrupt handler so that no interrupts can be processed while
waking the device. If an interrupt has already occurred then waiting for
the interrupt handler to complete will deadlock because it will be trying
to acquire the same mutex.

CPU0                           CPU1
----                           ----
mcp251x\_open()
 mutex\_lock(&priv-\>mcp\_lock)
  request\_threaded\_irq()
                               \<interrupt\>
                               mcp251x\_can\_ist()
                                mutex\_lock(&priv-\>mcp\_lock)
  mcp251x\_hw\_wake()
   disable\_irq() \<-- deadlock

Use disable\_irq\_nosync() instead because the interrupt handler does
everything while holding the mutex so it doesn't matter if it's still
running.

## Affected and fixed versions

- Linux: \>= 8ce8c0abcba314e1fe954a1840f6568bf5aef2ef, \< 3a49b6b1caf5cefc05264d29079d52c99cb188e0; \>= 8ce8c0abcba314e1fe954a1840f6568bf5aef2ef, \< 513c8fc189b52f7922e36bdca58997482b198f0e; \>= 8ce8c0abcba314e1fe954a1840f6568bf5aef2ef, \< f7ab9e14b23a3eac6714bdc4dba244d8aa1ef646; \>= 8ce8c0abcba314e1fe954a1840f6568bf5aef2ef, \< 8fecde9c3f9a4b97b68bb97c9f47e5b662586ba7; \>= 8ce8c0abcba314e1fe954a1840f6568bf5aef2ef, \< e554113a1cd2a9cfc6c7af7bdea2141c5757e188; \>= 8ce8c0abcba314e1fe954a1840f6568bf5aef2ef, \< 7dd9c26bd6cf679bcfdef01a8659791aa6487a29 (cvelist)
- Linux: 5.5 (cvelist)

## Mitigation

- Upgrade Linux to 7dd9c26bd6cf679bcfdef01a8659791aa6487a29 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-46791.md
Affected: Linux >= 8ce8c0abcba314e1fe954a1840f6568bf5aef2ef, < 3a49b6b1caf5cefc05264d29079d52c99cb188e0; >= 8ce8c0abcba314e1fe954a1840f6568bf5aef2ef, < 513c8fc189b52f7922e36bdca58997482b198f0e; >= 8ce8c0abcba314e1fe954a1840f6568bf5aef2ef, < f7ab9e14b23a3eac6714bdc4dba244d8aa1ef646; >= 8ce8c0abcba314e1fe954a1…
Fixed in: Linux 3a49b6b1caf5cefc05264d29079d52c99cb188e0, Linux 513c8fc189b52f7922e36bdca58997482b198f0e, Linux 8fecde9c3f9a4b97b68bb97c9f47e5b662586ba7, Linux 7dd9c26bd6cf679bcfdef01a8659791aa6487a29

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-2024-46791 being exploited?

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

### How serious is CVE-2024-46791?

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

### Which versions are affected by CVE-2024-46791?

Linux \>= 8ce8c0abcba314e1fe954a1840f6568bf5aef2ef, \< 3a49b6b1caf5cefc05264d29079d52c99cb188e0; \>= 8ce8c0abcba314e1fe954a1840f6568bf5aef2ef, \< 513c8fc189b52f7922e36bdca58997482b198f0e; \>= 8ce8c0abcba314e1fe954a1840f6568bf5aef2ef, \< f7ab9e14b23a3eac6714bdc4dba244d8aa1ef646; \>= 8ce8c0abcba314e1fe954a1840f6568bf5aef2ef, \< 8fecde9c3f9a4b97b68bb97c9f47e5b662586ba7; \>= 8ce8c0abcba314e1fe954a1840f6568bf5aef2ef, \< e554113a1cd2a9cfc6c7af7bdea2141c5757e188; \>= 8ce8c0abcba314e1fe954a1840f6568bf5aef2ef, \< 7dd9c26bd6cf679bcfdef01a8659791aa6487a29; Linux 5.5.

### Is there a fix for CVE-2024-46791?

Yes. Fixed in Linux 3a49b6b1caf5cefc05264d29079d52c99cb188e0, Linux 513c8fc189b52f7922e36bdca58997482b198f0e, Linux 8fecde9c3f9a4b97b68bb97c9f47e5b662586ba7, Linux 7dd9c26bd6cf679bcfdef01a8659791aa6487a29. Upgrade Linux to 7dd9c26bd6cf679bcfdef01a8659791aa6487a29 or later.

### How do I check if I'm affected by CVE-2024-46791?

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/3a49b6b1caf5cefc05264d29079d52c99cb188e0>
- patch: <https://git.kernel.org/stable/c/513c8fc189b52f7922e36bdca58997482b198f0e>
- patch: <https://git.kernel.org/stable/c/f7ab9e14b23a3eac6714bdc4dba244d8aa1ef646>
- patch: <https://git.kernel.org/stable/c/8fecde9c3f9a4b97b68bb97c9f47e5b662586ba7>
- patch: <https://git.kernel.org/stable/c/e554113a1cd2a9cfc6c7af7bdea2141c5757e188>
- patch: <https://git.kernel.org/stable/c/7dd9c26bd6cf679bcfdef01a8659791aa6487a29>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/10/msg00003.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-2024-46791>

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