CVE-2021-46995 can: mcp251xfd: mcp251xfd_probe(): fix an error pointer dereference in probe
A missing return statement in the MCP251xFD CAN driver probe function causes a null pointer dereference, leading to a kernel crash.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-46995?
CVE-2021-46995 is a medium-severity vulnerability in Linux kernel, published on 28 Feb 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-476
Which versions are affected by CVE-2021-46995?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2021-46995?
No fix has been published for CVE-2021-46995 yet. Limit exposure of the affected software until one is available.
Is CVE-2021-46995 being exploited?
There is no known exploitation of CVE-2021-46995 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as GHSA-5vm6-785f-3cj3, UBUNTU-CVE-2021-46995.