CVE-2021-46995

can: mcp251xfd: mcp251xfd_probe(): fix an error pointer dereference in probe

State
Published
Severity
Not scored
Published
Feb 28, 2024
Updated
May 11, 2026
Reserved
Feb 27, 2024

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • cf8ee6de2543a0fa6d9471ddbb7216464a9681a1 to before 15f8f96ec7fc35024d4e03296e4d838fcea33d83Affected
  • cf8ee6de2543a0fa6d9471ddbb7216464a9681a1 to before 4cc7faa406975b460aa674606291dea197c1210cAffected
LinuxLinux
  • 5.12Affected
  • before 5.12Not affected
  • 5.12.5 through 5.12.*Not affected
  • 5.13 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.