CVE-2021-47671 Details
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.
A memory leak vulnerability has been identified in the Linux kernel's CAN (Controller Area Network) error message handling. The issue arises in the function 'es58x_rx_err_msg()', where a failure in 'can->do_set_mode()' causes the function to return prematurely, leaving a socket buffer (skb) allocated by 'alloc_can_err_skb()' unfreed. This behavior creates a memory leak. The vulnerability has been addressed by modifying the function to remove the early return in the error handling path, allowing for proper cleanup of the allocated skb.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 17, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/4f389e1276a5389c92cef860c9fde8e1c802a871 | kernel.org | Patch |
| https://git.kernel.org/stable/c/7eb0881aec26099089f12ae850aebd93190b1dfe | kernel.org | Patch |
| https://git.kernel.org/stable/c/d9447f768bc8c60623e4bb3ce65b8f4654d33a50 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-401 | Missing Release of Memory after Effective Lifetime | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.13, < 5.14.19 >= 5.15, < 5.15.3 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 21, 2025 | Initial Analysis | [email protected] |
| Apr 17, 2025 | CVE Modified | CISA-ADP |
| Apr 17, 2025 | New CVE Received | kernel.org |