CVE-2023-52475 Input: powermate - fix use-after-free in powermate_config_complete

High 7.8 Published Updated

A use-after-free in the Linux kernel powermate driver allows attackers to potentially execute code or escalate privileges via device disconnection.

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-2023-52475?

CVE-2023-52475 is a high-severity use after free vulnerability in Linux kernel, published on 29 Feb 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:

Input: powermate - fix use-after-free in powermate_config_complete

syzbot has found a use-after-free bug [1] in the powermate driver. This happens when the device is disconnected, which leads to a memory free from the powermate_device struct. When an asynchronous control message completes after the kfree and its callback is invoked, the lock does not exist anymore and hence the bug.

Use usb_kill_urb() on pm->config to cancel any in-progress requests upon device disconnection.

[1] https://syzkaller.appspot.com/bug?extid=0434ac83f907a1dbdd1e

Weakness: CWE-416

Which versions are affected by CVE-2023-52475?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2023-52475?

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-2023-52475 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2023-52475, DEBIAN-CVE-2023-52475, GHSA-jr9w-q6f5-5c6c, UBUNTU-CVE-2023-52475.

Is CVE-2023-52475 in your software?

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

Check your SBOMs for free