CVE-2021-46934 i2c: validate user data in compat ioctl
A local attacker can trigger kernel warnings and potential denial of service by providing invalid data to the i2c compat ioctl interface.
- 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-46934?
CVE-2021-46934 is a low-severity denial of service 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:
i2c: validate user data in compat ioctl
Wrong user data may cause warning in i2c_transfer(), ex: zero msgs. Userspace should not be able to trigger warnings, so this patch adds validation checks for user data in compact ioctl to prevent reported warnings
Weakness: CWE-754
Which versions are affected by CVE-2021-46934?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2021-46934?
Apply the vendor's patch.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2021-46934 being exploited?
There is no known exploitation of CVE-2021-46934 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2021-46934, GHSA-5gwx-vhc7-55r8, UBUNTU-CVE-2021-46934.