CVE-2021-46995
JSON

5.5medium

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

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.21% (higher than 6% of CVEs)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 5.12 before 5.12.5NVD

Classification

CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: can: mcp251xfd: mcp251xfd_probe(): corrige una desreferencia de puntero de error en la sonda Cuando convertimos este código para usar dev_err_probe() eliminamos accidentalmente un retorno. Significa que si devm_clk_get() generará un Ups cuando llamemos a clk_get_rate() en la siguiente línea.

References

Sources

SourceRecordLicence
CVE ListCVE-2021-46995 changed 2026-05-11CVE Terms of Use
NVDCVE-2021-46995 changed 2026-06-17Public domain