CVE-2021-46995Published Feb 28, 2024 · Feb 28Updated Jun 17
can: mcp251xfd: mcp251xfd_probe(): fix an error pointer dereference in probe
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's mcp251xfd probe path can dereference an error pointer if devm_clk_get() fails, causing a kernel Oops. The input does not establish an attacker-controlled trigger or specify network access, authentication, or user interaction requirements.
Engineers running Linux kernels with the mcp251xfd driver should check their versions; affected versions are not specified.