CVE-2022-50733 usb: idmouse: fix an uninit-value in idmouse_open

Not scored Published Updated

A local attacker with physical access can trigger an uninitialized memory read in the idmouse USB driver, potentially disclosing kernel memory contents.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2022-50733?

CVE-2022-50733 is a vulnerability in Linux, published on 24 Dec 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

In the Linux kernel, the following vulnerability has been resolved:

usb: idmouse: fix an uninit-value in idmouse_open

In idmouse_create_image, if any ftip_command fails, it will go to the reset label. However, this leads to the data in bulk_in_buffer[HEADER..IMGSIZE] uninitialized. And the check for valid image incurs an uninitialized dereference.

Fix this by moving the check before reset label since this check only be valid if the data after bulk_in_buffer[HEADER] has concrete data.

Note that this is found by KMSAN, so only kernel compilation is tested.

Which versions are affected by CVE-2022-50733?

How do I fix CVE-2022-50733?

Apply the vendor's patch.

Is CVE-2022-50733 being exploited?

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

Sources

Also known as DEBIAN-CVE-2022-50733, GHSA-3qmv-4mq3-fcr8, UBUNTU-CVE-2022-50733.

Is CVE-2022-50733 in your software?

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

Check your SBOMs for free