Bug 1220655 (CVE-2021-46995) - VUL-0: CVE-2021-46995: kernel: can: mcp251xfd: mcp251xfd_probe(): fix an error pointer dereference in probe
Summary: VUL-0: CVE-2021-46995: kernel: can: mcp251xfd: mcp251xfd_probe(): fix an erro...
Status: RESOLVED FIXED
Alias: CVE-2021-46995
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/395444/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-29 10:33 UTC by SMASH SMASH
Modified: 2024-06-05 13:01 UTC (History)
2 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SMASH SMASH 2024-02-29 10:33:05 UTC
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.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-46995
https://www.cve.org/CVERecord?id=CVE-2021-46995
https://git.kernel.org/stable/c/15f8f96ec7fc35024d4e03296e4d838fcea33d83
https://git.kernel.org/stable/c/4cc7faa406975b460aa674606291dea197c1210c
Comment 1 Gabriele Sonnu 2024-02-29 10:45:15 UTC
All affected branches already contain the fix. Closing.
Comment 4 Andrea Mattiazzo 2024-06-05 13:01:16 UTC
All done, closing.