# CVE-2021-46995: can: mcp251xfd: mcp251xfd_probe(): fix an error pointer dereference in probe

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 6% of CVEs (2026-11-30)
- Published: 2024-02-28T08:13:19.751Z
- Modified: 2026-06-17T04:16:07.100Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from cf8ee6de2543a0fa6d9471ddbb7216464a9681a1 before 15f8f96ec7fc35024d4e03296e4d838fcea33d83; from cf8ee6de2543a0fa6d9471ddbb7216464a9681a1 before 4cc7faa406975b460aa674606291dea197c1210c; 5.12 (not affected: before 5.12; from 5.12.5 up to 5.12.*; from 5.13 up to *)
- linux linux_kernel: from 5.12 before 5.12.5

## References

- <https://git.kernel.org/stable/c/15f8f96ec7fc35024d4e03296e4d838fcea33d83> (patch)
- <https://git.kernel.org/stable/c/4cc7faa406975b460aa674606291dea197c1210c> (patch)

## Sources

- CVE List: [CVE-2021-46995](https://www.cve.org/CVERecord?id=CVE-2021-46995), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-46995](https://nvd.nist.gov/vuln/detail/CVE-2021-46995), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-46995 · Whole record: https://cve.day/CVE-2021-46995.json · Rebuilt by cve.day 2026-11-25T22:58:08.607Z
