CVE-2021-47263Published May 21, 2024 · May 21Updated Jun 17
gpio: wcd934x: Fix shift-out-of-bounds error
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
5.10.445.12.115.13In 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
From the CVE record · Linux
The Linux kernel’s wcd934x GPIO driver uses an incorrect bit mask for pins 0 through 4, causing a shift-out-of-bounds error. The input does not specify what an attacker could do or whether exploitation requires network access, authentication, or user interaction.
Engineers running Linux kernels with the wcd934x GPIO driver should check their installations; affected versions are not specified.