Bug 2307888 (CVE-2024-44931) - CVE-2024-44931 kernel: gpio: prevent potential speculation leaks in gpio_device_get_desc()
Summary: CVE-2024-44931 kernel: gpio: prevent potential speculation leaks in gpio_devi...
Keywords:
Status: NEW
Alias: CVE-2024-44931
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2308131
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-08-26 11:21 UTC by OSIDB Bzimport
Modified: 2025-05-13 08:27 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2025:6966 0 None None None 2025-05-13 08:27:50 UTC

Description OSIDB Bzimport 2024-08-26 11:21:50 UTC
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.

Comment 1 Mauro Matteo Cascella 2024-08-27 12:05:34 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024082636-CVE-2024-44931-8212@gregkh/T

Comment 3 errata-xmlrpc 2025-05-13 08:27:49 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2025:6966 https://access.redhat.com/errata/RHSA-2025:6966


Note You need to log in before you can comment on or make changes to this bug.