CVE-2025-38395 Details
Description
In the Linux kernel, the following vulnerability has been resolved: regulator: gpio: Fix the out-of-bounds access to drvdata::gpiods drvdata::gpiods is supposed to hold an array of 'gpio_desc' pointers. But the memory is allocated for only one pointer. This will lead to out-of-bounds access later in the code if 'config::ngpios' is > 1. So fix the code to allocate enough memory to hold 'config::ngpios' of GPIO descriptors. While at it, also move the check for memory allocation failure to be below the allocation to make it more readable.
A vulnerability in the Linux kernel's GPIO regulator handling has been addressed. The issue stemmed from an out-of-bounds access to the driver data's GPIO descriptor array. The memory was allocated for only a single pointer, leading to potential out-of-bounds access if the configuration specified more than one GPIO. The vulnerability has been fixed by ensuring that enough memory is allocated to accommodate the specified number of GPIO descriptors. Additionally, the error handling for memory allocation failures has been improved for better readability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/24418bc77a66cb5be9f5a837431ba3674ed8b52f | kernel.org | Patch |
| https://git.kernel.org/stable/c/3830ab97cda9599872625cc0dc7b00160193634f | kernel.org | Patch |
| https://git.kernel.org/stable/c/56738cbac3bbb1d39a71a07f57484dec1db8b239 | kernel.org | Patch |
| https://git.kernel.org/stable/c/9fe71972869faed1f8f9b3beb9040f9c1b300c79 | kernel.org | Patch |
| https://git.kernel.org/stable/c/a1e12fac214d4f49fcb186dbdf9c5592e7fa0a7a | kernel.org | Patch |
| https://git.kernel.org/stable/c/a3cd5ae7befbac849e0e0529c94ca04e8093cfd2 | kernel.org | Patch |
| https://git.kernel.org/stable/c/c9764fd88bc744592b0604ccb6b6fc1a5f76b4e3 | kernel.org | Patch |
| https://git.kernel.org/stable/c/e4d19e5d71b217940e33f2ef6c6962b7b68c5606 | kernel.org | Patch |
| https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html | CVE | Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html | CVE | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-125 | Out-of-bounds Read | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.1, < 5.4.296 >= 5.5, < 5.10.240 >= 5.11, < 5.15.187 >= 5.16, < 6.1.144 >= 6.2, < 6.6.97 >= 6.7, < 6.12.37 >= 6.13, < 6.15.6 6.16 rc1 6.16 rc2 6.16 rc3 6.16 rc4 |
CPE
Remediation
| |
| debian debian linux | 11.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 30, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 23, 2025 | Initial Analysis | [email protected] |
| Nov 3, 2025 | CVE Modified | CVE |
| Jul 25, 2025 | New CVE Received | kernel.org |