CVE-2024-46791

can: mcp251x: fix deadlock if an interrupt occurs during mcp251x_open

No CVSS score yet EPSS 0.16%

Published 18 Sep 2024 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2024-46791

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-46791 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.16%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 5.78% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 29 Sep 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 8ce8c0abcba314e1fe954a1840f6568bf5aef2ef, before 3a49b6b1caf5cefc05264d29079d52c99cb188e0
affected from 8ce8c0abcba314e1fe954a1840f6568bf5aef2ef, before 513c8fc189b52f7922e36bdca58997482b198f0e
affected from 8ce8c0abcba314e1fe954a1840f6568bf5aef2ef, before f7ab9e14b23a3eac6714bdc4dba244d8aa1ef646
affected from 8ce8c0abcba314e1fe954a1840f6568bf5aef2ef, before 8fecde9c3f9a4b97b68bb97c9f47e5b662586ba7
affected from 8ce8c0abcba314e1fe954a1840f6568bf5aef2ef, before e554113a1cd2a9cfc6c7af7bdea2141c5757e188
affected from 8ce8c0abcba314e1fe954a1840f6568bf5aef2ef, before 7dd9c26bd6cf679bcfdef01a8659791aa6487a29
Other versions: unaffected
Linux
affected 5.5
unaffected before 5.5
unaffected from 5.10.226 up to and including 5.10.*
unaffected from 5.15.167 up to and including 5.15.*
unaffected from 6.1.110 up to and including 6.1.*
unaffected from 6.6.51 up to and including 6.6.*
unaffected from 6.10.10 up to and including 6.10.*
unaffected 6.11 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-46791 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-46791

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-46791
trivy image --scanners vuln IMAGE | grep CVE-2024-46791

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-46791 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.