CVE-2021-47671

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

LOW
3.3
CVSS Score
Published: April 17, 2025 at 06:01 PM UTC
Updated: June 17, 2026 at 04:18 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
LOW3.3
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.13 ≤ v < 5.14.195.13 ≤ v < 5.15.35.13 ≤ v < 5.165.15 ≤ v < 5.15.35.138537257874e949a59c834cecfd5a063e11b64b0b
Vendor states this is fixed in 4f389e1276a5389c92cef860c9fde8e1c802a871 (fixed)
Vendor states this is fixed in 7eb0881aec26099089f12ae850aebd93190b1dfe (fixed)
Vendor states this is fixed in d9447f768bc8c60623e4bb3ce65b8f4654d33a50 (fixed)
Vendor states this is fixed in 5.13 (unaffected)
Vendor states this is fixed in 5.14.19 (unaffected)
Vendor states this is fixed in 5.15.3 (unaffected)
Vendor states this is fixed in 5.16 (unaffected)

References (3)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4f389e1276a5389c92cef860c9fde8e1c802a871
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7eb0881aec26099089f12ae850aebd93190b1dfe
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d9447f768bc8c60623e4bb3ce65b8f4654d33a50

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

3.3LOWCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
LOW
Vector?

Quick Info

StatusANALYZED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card