Bug 2360784 (CVE-2021-47671) - CVE-2021-47671 kernel: can: etas_es58x: es58x_rx_err_msg(): fix memory leak in error path
Summary: CVE-2021-47671 kernel: can: etas_es58x: es58x_rx_err_msg(): fix memory leak i...
Keywords:
Status: NEW
Alias: CVE-2021-47671
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-04-17 19:01 UTC by OSIDB Bzimport
Modified: 2025-04-18 04:10 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-04-17 19:01:26 UTC
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.

Comment 1 Avinash Hanwate 2025-04-18 04:01:39 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025041735-CVE-2021-47671-9b1a@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.