CVE-2021-47519

Medium

Description

In the Linux kernel, the following vulnerability has been resolved: can: m_can: m_can_read_fifo: fix memory leak in error branch In m_can_read_fifo(), if the second call to m_can_fifo_read() fails, the function jump to the out_fail label and returns without calling m_can_receive_skb(). This means that the skb previously allocated by alloc_can_skb() is not freed. In other terms, this is a memory leak. This patch adds a goto label to destroy the skb if an error occurs. Issue was found with GCC -fanalyzer, please follow the link below for details.

SeverityMedium
CVSS5.5
Exploit probability—
ProductLinux Kernel
PublishedMay 24, 2024
First seenMay 24, 2024
Weakness typeCWE-401CWE-401

How to fix

Update
  • linux linux_kernel5.15.8 or later

Affected products

ProductAffected versionsFixed in
linux linux_kernel5.15 ≤ v < 5.15.85.15.8

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2021-47519 · Linux Kernel · Dark Radar