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.
History

Sat, 19 Apr 2025 01:30:00 +0000


Thu, 17 Apr 2025 20:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-401
Metrics cvssV3_1

{'score': 3.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 17 Apr 2025 18:15:00 +0000

Type Values Removed Values Added
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.
Title can: etas_es58x: es58x_rx_err_msg(): fix memory leak in error path
References

cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2025-04-17T19:49:36.575Z

Reserved: 2025-04-16T07:16:05.753Z

Link: CVE-2021-47671

cve-icon Vulnrichment

Updated: 2025-04-17T19:49:24.576Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2025-04-17T18:15:43.933

Modified: 2025-04-17T20:21:05.203

Link: CVE-2021-47671

cve-icon Redhat

Severity : Low

Publid Date: 2025-04-17T00:00:00Z

Links: CVE-2021-47671 - Bugzilla