# CVE-2021-47671: can: etas_es58x: es58x_rx_err_msg(): fix memory leak in error path

- Severity: Low 3.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 12% of CVEs (2026-11-30)
- Published: 2025-04-17T18:01:31.459Z
- Modified: 2026-06-17T04:18:17.430Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

can: etas_es58x: es58x_rx_err_msg(): fix memory leak in error path

In es58x_rx_err_msg(), if can->do_set_mode() fails, the function
directly returns without calling netif_rx(skb). This means that the
skb previously allocated by alloc_can_err_skb() is not freed. In other
terms, this is a memory leak.

This patch simply removes the return statement in the error branch and
let the function continue.

Issue was found with GCC -fanalyzer, please follow the link below for
details.

(As written by CVE List.)

## Affected

- Linux Linux: from 8537257874e949a59c834cecfd5a063e11b64b0b before 4f389e1276a5389c92cef860c9fde8e1c802a871; from 8537257874e949a59c834cecfd5a063e11b64b0b before 7eb0881aec26099089f12ae850aebd93190b1dfe; from 8537257874e949a59c834cecfd5a063e11b64b0b before d9447f768bc8c60623e4bb3ce65b8f4654d33a50; 5.13 (not affected: before 5.13; from 5.14.19 up to 5.14.*; from 5.15.3 up to 5.15.*; from 5.16 up to *)
- linux linux_kernel: from 5.13 before 5.14.19; from 5.15 before 5.15.3

## References

- <https://git.kernel.org/stable/c/4f389e1276a5389c92cef860c9fde8e1c802a871> (patch)
- <https://git.kernel.org/stable/c/7eb0881aec26099089f12ae850aebd93190b1dfe> (patch)
- <https://git.kernel.org/stable/c/d9447f768bc8c60623e4bb3ce65b8f4654d33a50> (patch)

## Sources

- CVE List: [CVE-2021-47671](https://www.cve.org/CVERecord?id=CVE-2021-47671), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-47671](https://nvd.nist.gov/vuln/detail/CVE-2021-47671), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47671 · Whole record: https://cve.day/CVE-2021-47671.json · Rebuilt by cve.day 2026-11-25T22:58:09.015Z
