CVE-2022-49508 HID: elan: Fix potential double free in elan_input_configured

High 7.8 Published Updated

A double free vulnerability in the Linux kernel's Elan HID driver allows attackers to cause a denial of service or potentially execute 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-2022-49508?

CVE-2022-49508 is a high-severity use after free vulnerability in Linux kernel, published on 26 Feb 2025. 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:

HID: elan: Fix potential double free in elan_input_configured

'input' is a managed resource allocated with devm_input_allocate_device(), so there is no need to call input_free_device() explicitly or there will be a double free.

According to the doc of devm_input_allocate_device(): * Managed input devices do not need to be explicitly unregistered or * freed as it will be done automatically when owner device unbinds from * its driver (or binding fails).

Weakness: CWE-415

Which versions are affected by CVE-2022-49508?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2022-49508?

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-2022-49508 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-49508, GHSA-9jwp-f88q-j572, UBUNTU-CVE-2022-49508.

Is CVE-2022-49508 in your software?

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

Check your SBOMs for free