{"id":"CVE-2021-47671","state":"PUBLISHED","title":"can: etas_es58x: es58x_rx_err_msg(): fix memory leak in error path","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncan: etas_es58x: es58x_rx_err_msg(): fix memory leak in error path\n\nIn es58x_rx_err_msg(), if can->do_set_mode() fails, the function\ndirectly returns without calling netif_rx(skb). This means that the\nskb previously allocated by alloc_can_err_skb() is not freed. In other\nterms, this is a memory leak.\n\nThis patch simply removes the return statement in the error branch and\nlet the function continue.\n\nIssue was found with GCC -fanalyzer, please follow the link below for\ndetails.","publishedAt":"2025-04-17T18:01:31.459Z","updatedAt":"2026-05-11T13:58:56.813Z","severity":{"score":3.3,"label":"Low","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","source":"CISA-ADP"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8537257874e949a59c834cecfd5a063e11b64b0b","status":"affected","lessThan":"4f389e1276a5389c92cef860c9fde8e1c802a871","versionType":"git"},{"version":"8537257874e949a59c834cecfd5a063e11b64b0b","status":"affected","lessThan":"7eb0881aec26099089f12ae850aebd93190b1dfe","versionType":"git"},{"version":"8537257874e949a59c834cecfd5a063e11b64b0b","status":"affected","lessThan":"d9447f768bc8c60623e4bb3ce65b8f4654d33a50","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/can/usb/etas_es58x/es58x_core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.13","versionType":"semver"},{"version":"5.14.19","status":"unaffected","lessThanOrEqual":"5.14.*","versionType":"semver"},{"version":"5.15.3","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.16","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/usb/etas_es58x/es58x_core.c"]}],"references":["https://git.kernel.org/stable/c/4f389e1276a5389c92cef860c9fde8e1c802a871","https://git.kernel.org/stable/c/7eb0881aec26099089f12ae850aebd93190b1dfe","https://git.kernel.org/stable/c/d9447f768bc8c60623e4bb3ce65b8f4654d33a50"],"weaknesses":["CWE-401"],"ingestedAt":"2026-10-29T19:49:19.404Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/47xxx/CVE-2021-47671.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2021-47671","state":"PUBLISHED","datePublished":"2025-04-17T18:01:31.459Z","dateUpdated":"2026-05-11T13:58:56.813Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T07:16:05.753Z"},"containers":{"cna":{"title":"can: etas_es58x: es58x_rx_err_msg(): fix memory leak in error path","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ncan: etas_es58x: es58x_rx_err_msg(): fix memory leak in error path\n\nIn es58x_rx_err_msg(), if can->do_set_mode() fails, the function\ndirectly returns without calling netif_rx(skb). This means that the\nskb previously allocated by alloc_can_err_skb() is not freed. In other\nterms, this is a memory leak.\n\nThis patch simply removes the return statement in the error branch and\nlet the function continue.\n\nIssue was found with GCC -fanalyzer, please follow the link below for\ndetails."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8537257874e949a59c834cecfd5a063e11b64b0b","status":"affected","lessThan":"4f389e1276a5389c92cef860c9fde8e1c802a871","versionType":"git"},{"version":"8537257874e949a59c834cecfd5a063e11b64b0b","status":"affected","lessThan":"7eb0881aec26099089f12ae850aebd93190b1dfe","versionType":"git"},{"version":"8537257874e949a59c834cecfd5a063e11b64b0b","status":"affected","lessThan":"d9447f768bc8c60623e4bb3ce65b8f4654d33a50","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/can/usb/etas_es58x/es58x_core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.13","versionType":"semver"},{"version":"5.14.19","status":"unaffected","lessThanOrEqual":"5.14.*","versionType":"semver"},{"version":"5.15.3","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.16","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/usb/etas_es58x/es58x_core.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/4f389e1276a5389c92cef860c9fde8e1c802a871"},{"url":"https://git.kernel.org/stable/c/7eb0881aec26099089f12ae850aebd93190b1dfe"},{"url":"https://git.kernel.org/stable/c/d9447f768bc8c60623e4bb3ce65b8f4654d33a50"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T13:58:56.813Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"5.14.19"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"5.15.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"5.16"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":3.3,"attackVector":"LOCAL","baseSeverity":"LOW","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"LOW","privilegesRequired":"LOW","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"timestamp":"2025-04-17T19:49:27.476298Z","id":"CVE-2021-47671","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-401","type":"CWE","lang":"en","description":"CWE-401 Missing Release of Memory after Effective Lifetime"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-04-17T19:49:36.575Z"}}]}}}