CVE-2025-38395
CVE.org · Published
- Record status
- Published
- Identifier year (not publication year)
- 2025
- Source publication
- Source updated
- Imported by cveboard
- Source snapshot
- cve_2026-10-24_midnight_baseline ·
CNA source text (English)
regulator: gpio: Fix the out-of-bounds access to drvdata::gpiods
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.
Scoped product and version facts
Fix information unknown; no fixed version is derived here. Missing information does not prove that no fix exists.
Exploitation unknown; this catalogue does not assess exploitation.
Linux
- Vendor
- Linux
- Product
- Linux
- Platforms
- Unknown
- Default status
unaffected
| Version (version) | Status (status) | Version scheme (versionType) | Exclusive end (lessThan) | Inclusive end (lessThanOrEqual) | Status changes (at → status) |
|---|---|---|---|---|---|
| d6cd33ad71029a3f77ba1686caf55d4dea58d916 | affected | git | a3cd5ae7befbac849e0e0529c94ca04e8093cfd2 | Unavailable | None listed |
| d6cd33ad71029a3f77ba1686caf55d4dea58d916 | affected | git | 9fe71972869faed1f8f9b3beb9040f9c1b300c79 | Unavailable | None listed |
| d6cd33ad71029a3f77ba1686caf55d4dea58d916 | affected | git | 56738cbac3bbb1d39a71a07f57484dec1db8b239 | Unavailable | None listed |
| d6cd33ad71029a3f77ba1686caf55d4dea58d916 | affected | git | a1e12fac214d4f49fcb186dbdf9c5592e7fa0a7a | Unavailable | None listed |
| d6cd33ad71029a3f77ba1686caf55d4dea58d916 | affected | git | 24418bc77a66cb5be9f5a837431ba3674ed8b52f | Unavailable | None listed |
| d6cd33ad71029a3f77ba1686caf55d4dea58d916 | affected | git | e4d19e5d71b217940e33f2ef6c6962b7b68c5606 | Unavailable | None listed |
| d6cd33ad71029a3f77ba1686caf55d4dea58d916 | affected | git | 3830ab97cda9599872625cc0dc7b00160193634f | Unavailable | None listed |
| d6cd33ad71029a3f77ba1686caf55d4dea58d916 | affected | git | c9764fd88bc744592b0604ccb6b6fc1a5f76b4e3 | Unavailable | None listed |
Linux
- Vendor
- Linux
- Product
- Linux
- Platforms
- Unknown
- Default status
affected
| Version (version) | Status (status) | Version scheme (versionType) | Exclusive end (lessThan) | Inclusive end (lessThanOrEqual) | Status changes (at → status) |
|---|---|---|---|---|---|
| 5.1 | affected | Unavailable | Unavailable | Unavailable | None listed |
| 0 | unaffected | semver | 5.1 | Unavailable | None listed |
| 5.4.296 | unaffected | semver | Unavailable | 5.4.* | None listed |
| 5.10.240 | unaffected | semver | Unavailable | 5.10.* | None listed |
| 5.15.187 | unaffected | semver | Unavailable | 5.15.* | None listed |
| 6.1.144 | unaffected | semver | Unavailable | 6.1.* | None listed |
| 6.6.97 | unaffected | semver | Unavailable | 6.6.* | None listed |
| 6.12.37 | unaffected | semver | Unavailable | 6.12.* | None listed |
| 6.15.6 | unaffected | semver | Unavailable | 6.15.* | None listed |
| 6.16 | unaffected | original_commit_for_fix | Unavailable | * | None listed |