What’s Vulnerable › Vulnerabilities
CVE-2021-46995: can: mcp251xfd: mcp251xfd_probe(): fix an error pointer dereference in probe
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-02-28 · updated 2026-06-17
- Weakness: CWE-476
Description
In the Linux kernel, the following vulnerability has been resolved: can: mcp251xfd: mcp251xfd_probe(): fix an error pointer dereference in probe When we converted this code to use dev_err_probe() we accidentally removed a return. It means that if devm_clk_get() it will lead to an Oops when we call clk_get_rate() on the next line.
Affected products
- Linux kernel: from 5.12 before 5.12.5 — fixed in 5.12.5
How to fix
Upgrade to a fixed version: Linux kernel 5.12.5. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/15f8f96ec7fc35024d4e03296e4d838fcea33d83
- https://git.kernel.org/stable/c/4cc7faa406975b460aa674606291dea197c1210c
- https://git.kernel.org/stable/c/15f8f96ec7fc35024d4e03296e4d838fcea33d83
- https://git.kernel.org/stable/c/4cc7faa406975b460aa674606291dea197c1210c
Get alerted when CVE-2021-46995 or the next vulnerability affects your stack