7.5
CWE
401
Advisory Published
Updated

CVE-2021-47519: can: m_can: m_can_read_fifo: fix memory leak in error branch

First published: Fri May 24 2024(Updated: )

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.

Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Affected SoftwareAffected VersionHow to fix
Linux Kernel>=5.15<5.15.8

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2021-47519?

    CVE-2021-47519 is classified as a low severity vulnerability affecting the Linux kernel.

  • How do I fix CVE-2021-47519?

    To fix CVE-2021-47519, update your Linux kernel to a version beyond 5.15.8 where the vulnerability has been patched.

  • What systems are affected by CVE-2021-47519?

    CVE-2021-47519 affects systems running Linux kernel versions between 5.15 and 5.15.8.

  • What does CVE-2021-47519 impact in the Linux kernel?

    CVE-2021-47519 impacts the m_can_read_fifo function, specifically a memory leak in the error handling branch.

  • Is CVE-2021-47519 a remote exploit vulnerability?

    CVE-2021-47519 does not provide an avenue for remote exploitation as it requires local access to the affected kernel.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203