Menu

Star on GitHub · 3.2k

CVE-2025-38395

8.4 · HIGH

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' po…

Published Jul 25, 2025CWE-125EPSS 0.19%

Overview

CVE-2025-38395 is a high-severity vulnerability. It was published on July 25, 2025 and has a CVSS 3.1 base score of 8.4 (HIGH).

This vulnerability has a CVSS 3.1 base score of 8.4, rated HIGH. It requires local or adjacent network access to exploit. No authentication or special privileges are required for exploitation.

Technical 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.

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2025-38395?

CVE-2025-38395 is a high-severity vulnerability. It was published on July 25, 2025 and has a CVSS 3.1 base score of 8.4 (HIGH).

How severe is CVE-2025-38395?

This vulnerability has a CVSS 3.1 base score of 8.4, rated HIGH. It requires local or adjacent network access to exploit. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2025-38395?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2025-38395?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2025-38395 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2025

View all