CVE-2024-49986 platform/x86: x86-android-tablets: Fix use after free on platform_device_register() errors

High 7.8 Published Updated

A use-after-free vulnerability in the Linux kernel x86-android-tablets driver allows attackers to potentially execute code or escalate privileges via error handling paths.

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

CVE-2024-49986 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:

platform/x86: x86-android-tablets: Fix use after free on platform_device_register() errors

x86_android_tablet_remove() frees the pdevs[] array, so it should not be used after calling x86_android_tablet_remove().

When platform_device_register() fails, store the pdevs[x] PTR_ERR() value into the local ret variable before calling x86_android_tablet_remove() to avoid using pdevs[] after it has been freed.

Weakness: CWE-416

Which versions are affected by CVE-2024-49986?

It affects 2 products.

Products include Debian Debian Linux, Linux kernel.

How do I fix CVE-2024-49986?

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

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

All Debian Debian Linux vulnerabilities

Sources

Also known as BELL-CVE-2024-49986, DEBIAN-CVE-2024-49986, GHSA-3cmg-5p27-qj6j, UBUNTU-CVE-2024-49986.

Is CVE-2024-49986 in your software?

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

Check your SBOMs for free