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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.34% (percentile 20, 2026-11-26)
- **Published:** 2024-08-26T10:11:21.425Z
- **Modified:** 2026-06-17T07:53:15.067Z

## Who should check

- Anyone running Linux \>= 521a2ad6f862a28e2e43cb3e254a26bf0f9452e9, \< 18504710442671b02d00e6db9804a0ad26c5a479; \>= 521a2ad6f862a28e2e43cb3e254a26bf0f9452e9, \< 9ae2d8e75b741dbcb0da374753f972410e83b5f3; \>= 521a2ad6f862a28e2e43cb3e254a26bf0f9452e9, \< 9d682e89c44bd5819b01f3fbb45a8e3681a4b6d0; \>= 521a2ad6f862a28e2e43cb3e254a26bf0f9452e9, \< c65ab97efcd438cb4e9f299400f2ea55251f3a67; \>= 521a2ad6f862a28e2e43cb3e254a26bf0f9452e9, \< 672c19165fc96dfad531a5458e0b3cdab414aae4; \>= 521a2ad6f862a28e2e43cb3e254a26bf0f9452e9, \< 1b955f786a4bcde8c0ccb2b7d519def2acb6f3cc; \>= 521a2ad6f862a28e2e43cb3e254a26bf0f9452e9, \< d776c0486b03a5c4afca65b8ff44573592bf93bb; \>= 521a2ad6f862a28e2e43cb3e254a26bf0f9452e9, \< d795848ecce24a75dfd46481aee066ae6fe39775
- Anyone running Linux 4.6

## Description

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.

## Affected and fixed versions

- Linux: \>= 521a2ad6f862a28e2e43cb3e254a26bf0f9452e9, \< 18504710442671b02d00e6db9804a0ad26c5a479; \>= 521a2ad6f862a28e2e43cb3e254a26bf0f9452e9, \< 9ae2d8e75b741dbcb0da374753f972410e83b5f3; \>= 521a2ad6f862a28e2e43cb3e254a26bf0f9452e9, \< 9d682e89c44bd5819b01f3fbb45a8e3681a4b6d0; \>= 521a2ad6f862a28e2e43cb3e254a26bf0f9452e9, \< c65ab97efcd438cb4e9f299400f2ea55251f3a67; \>= 521a2ad6f862a28e2e43cb3e254a26bf0f9452e9, \< 672c19165fc96dfad531a5458e0b3cdab414aae4; \>= 521a2ad6f862a28e2e43cb3e254a26bf0f9452e9, \< 1b955f786a4bcde8c0ccb2b7d519def2acb6f3cc; \>= 521a2ad6f862a28e2e43cb3e254a26bf0f9452e9, \< d776c0486b03a5c4afca65b8ff44573592bf93bb; \>= 521a2ad6f862a28e2e43cb3e254a26bf0f9452e9, \< d795848ecce24a75dfd46481aee066ae6fe39775 (cvelist)
- Linux: 4.6 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-44931. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-44931.md
Affected: Linux >= 521a2ad6f862a28e2e43cb3e254a26bf0f9452e9, < 18504710442671b02d00e6db9804a0ad26c5a479; >= 521a2ad6f862a28e2e43cb3e254a26bf0f9452e9, < 9ae2d8e75b741dbcb0da374753f972410e83b5f3; >= 521a2ad6f862a28e2e43cb3e254a26bf0f9452e9, < 9d682e89c44bd5819b01f3fbb45a8e3681a4b6d0; >= 521a2ad6f862a28e2e43cb3…
Fixed in: Linux 18504710442671b02d00e6db9804a0ad26c5a479, Linux 9ae2d8e75b741dbcb0da374753f972410e83b5f3, Linux 9d682e89c44bd5819b01f3fbb45a8e3681a4b6d0, Linux 672c19165fc96dfad531a5458e0b3cdab414aae4, Linux 1b955f786a4bcde8c0ccb2b7d519def2acb6f3cc

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-44931 being exploited?

There is no confirmed exploitation: CVE-2024-44931 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.34% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-44931?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-44931?

Linux \>= 521a2ad6f862a28e2e43cb3e254a26bf0f9452e9, \< 18504710442671b02d00e6db9804a0ad26c5a479; \>= 521a2ad6f862a28e2e43cb3e254a26bf0f9452e9, \< 9ae2d8e75b741dbcb0da374753f972410e83b5f3; \>= 521a2ad6f862a28e2e43cb3e254a26bf0f9452e9, \< 9d682e89c44bd5819b01f3fbb45a8e3681a4b6d0; \>= 521a2ad6f862a28e2e43cb3e254a26bf0f9452e9, \< c65ab97efcd438cb4e9f299400f2ea55251f3a67; \>= 521a2ad6f862a28e2e43cb3e254a26bf0f9452e9, \< 672c19165fc96dfad531a5458e0b3cdab414aae4; \>= 521a2ad6f862a28e2e43cb3e254a26bf0f9452e9, \< 1b955f786a4bcde8c0ccb2b7d519def2acb6f3cc; \>= 521a2ad6f862a28e2e43cb3e254a26bf0f9452e9, \< d776c0486b03a5c4afca65b8ff44573592bf93bb; \>= 521a2ad6f862a28e2e43cb3e254a26bf0f9452e9, \< d795848ecce24a75dfd46481aee066ae6fe39775; Linux 4.6.

### Is there a fix for CVE-2024-44931?

Yes. Fixed in Linux 18504710442671b02d00e6db9804a0ad26c5a479, Linux 9ae2d8e75b741dbcb0da374753f972410e83b5f3, Linux 9d682e89c44bd5819b01f3fbb45a8e3681a4b6d0, Linux 672c19165fc96dfad531a5458e0b3cdab414aae4, Linux 1b955f786a4bcde8c0ccb2b7d519def2acb6f3cc. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-44931?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/1b955f786a4bcde8c0ccb2b7d519def2acb6f3cc>
- patch: <https://git.kernel.org/stable/c/d776c0486b03a5c4afca65b8ff44573592bf93bb>
- patch: <https://git.kernel.org/stable/c/d795848ecce24a75dfd46481aee066ae6fe39775>
- other: <https://git.kernel.org/stable/c/18504710442671b02d00e6db9804a0ad26c5a479>
- other: <https://git.kernel.org/stable/c/9ae2d8e75b741dbcb0da374753f972410e83b5f3>
- other: <https://git.kernel.org/stable/c/9d682e89c44bd5819b01f3fbb45a8e3681a4b6d0>
- other: <https://git.kernel.org/stable/c/c65ab97efcd438cb4e9f299400f2ea55251f3a67>
- other: <https://git.kernel.org/stable/c/672c19165fc96dfad531a5458e0b3cdab414aae4>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-44931>

HTML: <https://flawdb.com/CVE-2024-44931> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-44931>
