CVE-2021-46932 Input: appletouch - initialize work before device registration

Medium 5.5 Published Updated

A race condition in the appletouch driver causes a null pointer dereference, leading to a kernel crash and denial of service.

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-2021-46932?

CVE-2021-46932 is a medium-severity vulnerability in Linux kernel, published on 27 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: appletouch - initialize work before device registration

Syzbot has reported warning in __flush_work(). This warning is caused by work->func == NULL, which means missing work initialization.

This may happen, since input_dev->close() calls cancel_work_sync(&dev->work), but dev->work initalization happens _after_ input_register_device() call.

So this patch moves dev->work initialization before registering input device

Weakness: CWE-665

Which versions are affected by CVE-2021-46932?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2021-46932?

Apply the vendor's patch.

Is CVE-2021-46932 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-46932, GHSA-7674-fj4m-c42f, UBUNTU-CVE-2021-46932.

Is CVE-2021-46932 in your software?

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

Check your SBOMs for free