CVE-2025-38395
Last modified
CVE-2025-38395 is a high-severity vulnerability rated 7.1/10 on the CVSS scale. 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. EPSS estimates a 0.16% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 5.1, < 5.4.296 | — |
| Linux | Linux Kernel | >= 5.5, < 5.10.240 | — |
| Linux | Linux Kernel | >= 5.11, < 5.15.187 | — |
| Linux | Linux Kernel | >= 5.16, < 6.1.144 | — |
| Linux | Linux Kernel | >= 6.2, < 6.6.97 | — |
| Linux | Linux Kernel | >= 6.7, < 6.12.37 | — |
| Linux | Linux Kernel | >= 6.13, < 6.15.6 | — |
| Linux | Linux Kernel | 6.16 | Rc1 |
| Debian | Debian Linux | 11.0 | — |
References
- https://lists.debian.org/debian-lts-announce/2025/10/msg00007.htmlThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.htmlThird Party Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2025-38395?
How severe is CVE-2025-38395?
How do I fix CVE-2025-38395?
Are you affected by CVE-2025-38395?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
