{"id":"CVE-2021-46995","state":"PUBLISHED","title":"can: mcp251xfd: mcp251xfd_probe(): fix an error pointer dereference in probe","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncan: mcp251xfd: mcp251xfd_probe(): fix an error pointer dereference in probe\n\nWhen we converted this code to use dev_err_probe() we accidentally\nremoved a return. It means that if devm_clk_get() it will lead to an\nOops when we call clk_get_rate() on the next line.","publishedAt":"2024-02-28T08:13:19.751Z","updatedAt":"2026-05-11T13:45:55.202Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"cf8ee6de2543a0fa6d9471ddbb7216464a9681a1","status":"affected","lessThan":"15f8f96ec7fc35024d4e03296e4d838fcea33d83","versionType":"git"},{"version":"cf8ee6de2543a0fa6d9471ddbb7216464a9681a1","status":"affected","lessThan":"4cc7faa406975b460aa674606291dea197c1210c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/can/spi/mcp251xfd/mcp251xfd-core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.12","versionType":"semver"},{"version":"5.12.5","status":"unaffected","lessThanOrEqual":"5.12.*","versionType":"semver"},{"version":"5.13","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/can/spi/mcp251xfd/mcp251xfd-core.c"]}],"references":["https://git.kernel.org/stable/c/15f8f96ec7fc35024d4e03296e4d838fcea33d83","https://git.kernel.org/stable/c/4cc7faa406975b460aa674606291dea197c1210c"],"weaknesses":[],"ingestedAt":"2026-10-29T19:49:16.371Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/46xxx/CVE-2021-46995.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2021-46995","state":"PUBLISHED","datePublished":"2024-02-28T08:13:19.751Z","dateUpdated":"2026-05-11T13:45:55.202Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-02-27T18:42:55.949Z"},"containers":{"cna":{"title":"can: mcp251xfd: mcp251xfd_probe(): fix an error pointer dereference in probe","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ncan: mcp251xfd: mcp251xfd_probe(): fix an error pointer dereference in probe\n\nWhen we converted this code to use dev_err_probe() we accidentally\nremoved a return. It means that if devm_clk_get() it will lead to an\nOops when we call clk_get_rate() on the next line."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"cf8ee6de2543a0fa6d9471ddbb7216464a9681a1","status":"affected","lessThan":"15f8f96ec7fc35024d4e03296e4d838fcea33d83","versionType":"git"},{"version":"cf8ee6de2543a0fa6d9471ddbb7216464a9681a1","status":"affected","lessThan":"4cc7faa406975b460aa674606291dea197c1210c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/can/spi/mcp251xfd/mcp251xfd-core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.12","versionType":"semver"},{"version":"5.12.5","status":"unaffected","lessThanOrEqual":"5.12.*","versionType":"semver"},{"version":"5.13","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/can/spi/mcp251xfd/mcp251xfd-core.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/15f8f96ec7fc35024d4e03296e4d838fcea33d83"},{"url":"https://git.kernel.org/stable/c/4cc7faa406975b460aa674606291dea197c1210c"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T13:45:55.202Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.12","versionEndExcluding":"5.12.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.12","versionEndExcluding":"5.13"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2021-46995","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-02-28T19:11:57.977064Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-04T17:13:08.432Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/15f8f96ec7fc35024d4e03296e4d838fcea33d83","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/4cc7faa406975b460aa674606291dea197c1210c","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-04T05:24:38.464Z"}}]}}}