CVE-2024-35858 net: bcmasp: fix memory leak when bringing down interface

High 7.8 Published Updated

A memory leak in the Linux kernel's BCMASP network driver can cause memory exhaustion and potential corruption when interfaces are brought down.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-35858?

CVE-2024-35858 is a high-severity memory corruption vulnerability in Linux kernel, published on 17 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In the Linux kernel, the following vulnerability has been resolved:

net: bcmasp: fix memory leak when bringing down interface

When bringing down the TX rings we flush the rings but forget to reclaimed the flushed packets. This leads to a memory leak since we do not free the dma mapped buffers. This also leads to tx control block corruption when bringing down the interface for power management.

Weakness: CWE-401

Which versions are affected by CVE-2024-35858?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-35858?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2024-35858 being exploited?

There is no known exploitation of CVE-2024-35858 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-35858, DEBIAN-CVE-2024-35858, GHSA-f3jw-96pp-6m3w, UBUNTU-CVE-2024-35858.

Is CVE-2024-35858 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free