CVE-2021-47263

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

State
Published
Severity
Not scored
Published
May 21, 2024
Updated
May 11, 2026
Reserved
May 21, 2024

Read the record on cve.org

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

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 59c324683400b41caa6d85b091e812ee3d5415c3 to before e0b518a2eb44d8a74c19e50f79a8ed393e96d634Affected
  • 59c324683400b41caa6d85b091e812ee3d5415c3 to before dd55331d493b7ea75c5db1f24d6822946fde2862Affected
  • 59c324683400b41caa6d85b091e812ee3d5415c3 to before dbec64b11c65d74f31427e2b9d5746fbf17bf840Affected
LinuxLinux
  • 5.6Affected
  • before 5.6Not affected
  • 5.10.44 through 5.10.*Not affected
  • 5.12.11 through 5.12.*Not affected
  • 5.13 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.