CVE-2024-42069 net: mana: Fix possible double free in error handling path

High 7.8 Published Updated

A double free vulnerability in the Linux kernel's mana network driver can cause a system crash or denial of service.

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-42069?

CVE-2024-42069 is a high-severity use after free vulnerability in Linux kernel, published on 29 Jul 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: mana: Fix possible double free in error handling path

When auxiliary_device_add() returns error and then calls auxiliary_device_uninit(), callback function adev_release calls kfree(madev). We shouldn't call kfree(madev) again in the error handling path. Set 'madev' to NULL.

Weakness: CWE-476

Which versions are affected by CVE-2024-42069?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-42069?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2024-42069 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as AZL-47095, AZL-47180, BELL-CVE-2024-42069, DEBIAN-CVE-2024-42069, GHSA-47v5-cr23-pw2c, UBUNTU-CVE-2024-42069.

Is CVE-2024-42069 in your software?

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

Check your SBOMs for free