CVE-2021-46994

can: mcp251x: fix resume from sleep before interface was brought up

No CVSS score yet EPSS 0.23%

Published 28 Feb 2024 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2021-46994

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-2021-46994 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 resume from sleep before interface was brought up

Since 8ce8c0abcba3 the driver queues work via priv->restart_work when resuming after suspend, even when the interface was not previously enabled. This causes a null dereference error as the workqueue is only allocated and initialized in mcp251x_open().

To fix this we move the workqueue init to mcp251x_can_probe() as there is no reason to do it later and repeat it whenever mcp251x_open() is called.

[mkl: fix error handling in mcp251x_stop()]

Exploitation

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

The assessment of CISA (SSVC, 10 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 eecb4df8ec9f896b19ee05bfa632ac6c1dcd8f21
affected from 8ce8c0abcba314e1fe954a1840f6568bf5aef2ef, before 6f8f1c27b577de15f69fefce3c502bb6300d825c
affected from 8ce8c0abcba314e1fe954a1840f6568bf5aef2ef, before e1e10a390fd9479209c4d834d916ca5e6d5d396b
affected from 8ce8c0abcba314e1fe954a1840f6568bf5aef2ef, before 03c427147b2d3e503af258711af4fc792b89b0af
Other versions: unaffected
Linux
affected 5.5
unaffected before 5.5
unaffected from 5.10.38 up to and including 5.10.*
unaffected from 5.11.22 up to and including 5.11.*
unaffected from 5.12.5 up to and including 5.12.*
unaffected 5.13 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-2021-46994 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-46994

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-2021-46994
trivy image --scanners vuln IMAGE | grep CVE-2021-46994

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-2021-46994 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.