{"id":"CVE-2021-47263","aliases":["CVE-2021-47263"],"related":[],"kind":"vulnerability","state":"published","title":"gpio: wcd934x: Fix shift-out-of-bounds error","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpio: wcd934x: Fix shift-out-of-bounds error\n\nbit-mask for pins 0 to 4 is BIT(0) to BIT(4) however we ended up with BIT(n - 1)\nwhich is not right, and this was caught by below usban check\n\nUBSAN: shift-out-of-bounds in drivers/gpio/gpio-wcd934x.c:34:14","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpio: wcd934x: Fix shift-out-of-bounds error\n\nbit-mask for pins 0 to 4 is BIT(0) to BIT(4) however we ended up with BIT(n - 1)\nwhich is not right, and this was caught by below usban check\n\nUBSAN: shift-out-of-bounds in drivers/gpio/gpio-wcd934x.c:34:14","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se resolvió la siguiente vulnerabilidad: gpio: wcd934x: corrección de error de desplazamiento fuera de los límites. La máscara de bits para los pines 0 a 4 es BIT(0) a BIT(4); sin embargo, terminamos con BIT( n - 1) lo cual no es correcto, y esto fue detectado por la siguiente verificación USB UBSAN: shift-out-of-bounds in drivers/gpio/gpio-wcd934x.c:34:14","source":"nvd"}],"published":"2024-05-21T14:19:55.318Z","modified":"2026-06-17T04:17:02.833Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"59c324683400b41caa6d85b091e812ee3d5415c3","fixed":"e0b518a2eb44d8a74c19e50f79a8ed393e96d634","status":"affected"},{"type":"git","introduced":"59c324683400b41caa6d85b091e812ee3d5415c3","fixed":"dd55331d493b7ea75c5db1f24d6822946fde2862","status":"affected"},{"type":"git","introduced":"59c324683400b41caa6d85b091e812ee3d5415c3","fixed":"dbec64b11c65d74f31427e2b9d5746fbf17bf840","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.6","status":"unaffected"},{"type":"semver","introduced":"5.10.44","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.12.11","lastAffected":"5.12.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.13","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.6","fixed":"5.10.44"},{"status":"affected","introduced":"5.11","fixed":"5.12.11"},{"status":"affected","version":"5.13"},{"status":"affected","version":"5.13"},{"status":"affected","version":"5.13"},{"status":"affected","version":"5.13"},{"status":"affected","version":"5.13"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/e0b518a2eb44d8a74c19e50f79a8ed393e96d634","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dd55331d493b7ea75c5db1f24d6822946fde2862","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dbec64b11c65d74f31427e2b9d5746fbf17bf840","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-06-12T15:03:36.656Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-47263","url":"https://www.cve.org/CVERecord?id=CVE-2021-47263","licence":"CVE Terms of Use","modified":"2026-05-11T13:51:07.490Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-47263","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47263","licence":"Public domain","modified":"2026-06-17T04:17:02.833Z"}],"updatedAt":"2026-11-25T22:58:08.763Z","epss":{"score":0.00225,"percentile":0.14051,"date":"2026-12-01T12:00:22.000Z"}}