# CVE-2024-44931: gpio: prevent potential speculation leaks in gpio\_device\_get\_desc()

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-08-26 · Modified: 2026-05-11
- Aliases: UBUNTU-CVE-2024-44931, DEBIAN-CVE-2024-44931
- Record: https://cvemate.com/vulnerability/CVE-2024-44931 · JSON: https://cvemate.com/vulnerability/CVE-2024-44931/json

## Description

```text
In the Linux kernel, the following vulnerability has been resolved:

gpio: prevent potential speculation leaks in gpio_device_get_desc()

Userspace may trigger a speculative read of an address outside the gpio
descriptor array.
Users can do that by calling gpio_ioctl() with an offset out of range.
Offset is copied from user and then used as an array index to get
the gpio descriptor without sanitization in gpio_device_get_desc().

This change ensures that the offset is sanitized by using
array_index_nospec() to mitigate any possibility of speculative
information leaks.

This bug was discovered and resolved using Coverity Static Analysis
Security Testing (SAST) by Synopsys, Inc.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- EPSS: 0.25%, percentile 17.475%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 133)

- debian linux (Debian): \< 6.1.112-1 \| \< 6.10.6-1
- ubuntu linux (Ubuntu): \< 4.4.0-266.300 \| \< 4.15.0-235.247 \| \< 5.4.0-208.228 \| \< 5.15.0-127.137 \| \< 6.8.0-50.51
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 4.4.0-1141.147 \| \< 4.4.0-1179.194 \| \< 4.15.0-1178.191 \| \< 5.4.0-1140.150 \| \< 5.15.0-1073.79 \| \< 6.8.0-1020.22
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1073.79~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1142.152~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1020.22~22.04.1
- ubuntu linux-aws-fips (Ubuntu): \< 4.15.0-2116.122 \| All versions (No fix recorded) \| \< 5.4.0-1140.151+fips1 \| \< 5.15.0-1073.79+fips1
- ubuntu linux-aws-hwe (Ubuntu): \< 4.15.0-1178.191~16.04.1
- ubuntu linux-azure (Ubuntu): \< 4.15.0-1186.201~14.04.1 \| \< 4.15.0-1186.201~16.04.1 \| All versions (No fix recorded) \| \< 5.4.0-1145.152 \| \< 5.15.0-1078.87 \| \< 6.8.0-1020.23
- ubuntu linux-azure-4.15 (Ubuntu): \< 4.15.0-1186.201
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 44)

- <https://git.kernel.org/stable/c/18504710442671b02d00e6db9804a0ad26c5a479>
- <https://git.kernel.org/stable/c/9ae2d8e75b741dbcb0da374753f972410e83b5f3>
- <https://git.kernel.org/stable/c/9d682e89c44bd5819b01f3fbb45a8e3681a4b6d0>
- <https://git.kernel.org/stable/c/c65ab97efcd438cb4e9f299400f2ea55251f3a67>
- <https://git.kernel.org/stable/c/672c19165fc96dfad531a5458e0b3cdab414aae4>
- <https://git.kernel.org/stable/c/1b955f786a4bcde8c0ccb2b7d519def2acb6f3cc>
- <https://git.kernel.org/stable/c/d776c0486b03a5c4afca65b8ff44573592bf93bb>
- <https://git.kernel.org/stable/c/d795848ecce24a75dfd46481aee066ae6fe39775>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- <https://ubuntu.com/security/CVE-2024-44931>
- <https://www.cve.org/CVERecord?id=CVE-2024-44931>
- <https://git.kernel.org/linus/d795848ecce24a75dfd46481aee066ae6fe39775>
- <https://ubuntu.com/security/notices/USN-7154-1>
- <https://ubuntu.com/security/notices/USN-7155-1>
- <https://ubuntu.com/security/notices/USN-7156-1>
- <https://ubuntu.com/security/notices/USN-7166-1>
- <https://ubuntu.com/security/notices/USN-7166-2>
- <https://ubuntu.com/security/notices/USN-7166-3>
- <https://ubuntu.com/security/notices/USN-7154-2>

---

Data as of 2026-12-05T04:22:43.262Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
