CVE-2021-47263 gpio: wcd934x: Fix shift-out-of-bounds error
A shift-out-of-bounds error in the Linux kernel WCD934x GPIO driver can cause a system crash or undefined behavior.
- 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-47263?
CVE-2021-47263 is a medium-severity vulnerability in Linux kernel, published on 21 May 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:
gpio: wcd934x: Fix shift-out-of-bounds error
bit-mask for pins 0 to 4 is BIT(0) to BIT(4) however we ended up with BIT(n - 1) which is not right, and this was caught by below usban check
UBSAN: shift-out-of-bounds in drivers/gpio/gpio-wcd934x.c:34:14
Which versions are affected by CVE-2021-47263?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2021-47263?
Apply the vendor's patch.
Is CVE-2021-47263 being exploited?
There is no known exploitation of CVE-2021-47263 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2021-47263, GHSA-4mwj-7h55-4fvc, UBUNTU-CVE-2021-47263.