Lucene search

K
cvelistLinuxCVELIST:CVE-2021-47263
HistoryMay 21, 2024 - 2:19 p.m.

CVE-2021-47263 gpio: wcd934x: Fix shift-out-of-bounds error

2024-05-2114:19:55
Linux
www.cve.org
vulnerability
linux kernel
gpio
wcd934x
bit-mask
shift-out-of-bounds
error
ubsan
drivers

6.4 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.6%

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

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/gpio/gpio-wcd934x.c"
    ],
    "versions": [
      {
        "version": "59c324683400",
        "lessThan": "e0b518a2eb44",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "59c324683400",
        "lessThan": "dd55331d493b",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "59c324683400",
        "lessThan": "dbec64b11c65",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/gpio/gpio-wcd934x.c"
    ],
    "versions": [
      {
        "version": "5.6",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.6",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.44",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.12.11",
        "lessThanOrEqual": "5.12.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.13",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

6.4 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.6%

Related for CVELIST:CVE-2021-47263