What’s Vulnerable › Vulnerabilities
CVE-2021-47263: gpio: wcd934x: Fix shift-out-of-bounds error
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-05-21 · updated 2026-06-17
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
Affected products
- Linux kernel: from 5.6 before 5.10.44; from 5.11 before 5.12.11; 5.13-rc1, 5.13-rc2, 5.13-rc3, 5.13-rc4, 5.13-rc5 — fixed in 5.10.44, 5.12.11
How to fix
Upgrade to a fixed version: Linux kernel 5.10.44, 5.12.11. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/dbec64b11c65d74f31427e2b9d5746fbf17bf840
- https://git.kernel.org/stable/c/dd55331d493b7ea75c5db1f24d6822946fde2862
- https://git.kernel.org/stable/c/e0b518a2eb44d8a74c19e50f79a8ed393e96d634
- https://git.kernel.org/stable/c/dbec64b11c65d74f31427e2b9d5746fbf17bf840
- https://git.kernel.org/stable/c/dd55331d493b7ea75c5db1f24d6822946fde2862
- https://git.kernel.org/stable/c/e0b518a2eb44d8a74c19e50f79a8ed393e96d634
Get alerted when CVE-2021-47263 or the next vulnerability affects your stack