CVE-2024-50055 driver core: bus: Fix double free in driver API bus_register()

High 7.8 Published Updated

A double free vulnerability in the Linux kernel's bus_register function allows attackers to cause a denial of service or potentially execute arbitrary code.

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

CVE-2024-50055 is a high-severity use after free vulnerability in Debian Debian Linux, published on 21 Oct 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:

driver core: bus: Fix double free in driver API bus_register()

For bus_register(), any error which happens after kset_register() will cause that @priv are freed twice, fixed by setting @priv with NULL after the first free.

Weakness: CWE-415

Which versions are affected by CVE-2024-50055?

It affects 2 products.

Products include Debian Debian Linux, Linux kernel.

How do I fix CVE-2024-50055?

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-50055 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as AZL-50775, AZL-50923, BELL-CVE-2024-50055, DEBIAN-CVE-2024-50055, GHSA-c83g-5qwq-vrfj, UBUNTU-CVE-2024-50055.

Is CVE-2024-50055 in your software?

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

Check your SBOMs for free