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: 2024-09-27 14:01 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

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


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