CVE-2021-47263

published 21 May 2024 · updated 11 May 2026

gpio: wcd934x: Fix shift-out-of-bounds error

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel dbec64b11c65d74f31427e2b9d5746fbf17bf840, Kernel dd55331d493b7ea75c5db1f24d6822946fde2862 and Kernel e0b518a2eb44d8a74c19e50f79a8ed393e96d634.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.6, >=59c324683400b41caa6d85b091e812ee3d5415c3 <dbec64b11c65d74f31427e2b9d5746fbf17bf840, >=59c324683400b41caa6d85b091e812ee3d5415c3 <dd55331d493b7ea75c5db1f24d6822946fde2862, >=59c324683400b41caa6d85b091e812ee3d5415c3 <e0b518a2eb44d8a74c19e50f79a8ed393e96d634dbec64b11c65d74f31427e2b9d5746fbf17bf840, dd55331d493b7ea75c5db1f24d6822946fde2862, e0b518a2eb44d8a74c19e50f79a8ed393e96d634

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-47263 severity on Zeptric[![CVE-2021-47263](https://zeptric.io/badge/cve/CVE-2021-47263.svg)](https://zeptric.io/cve/CVE-2021-47263)