CyberSecBulletin
CVE-2025-38395NVD status: Modified

Linux: Out-of-bounds Read

CVE-2025-38395 is a high-severity out-of-bounds read vulnerability in Linux, with a CVSS 3.1 base score of 7.1 out of 10. It can be exploited with local access to the system by an attacker with a low-privileged account, without any action from a user. The record lists versions a3cd5ae7befbac849e0e0529c94ca04e8093cfd2, 9fe71972869faed1f8f9b3beb9040f9c1b300c79, 56738cbac3bbb1d39a71a07f57484dec1db8b239 as the first without the flaw, so updating Linux to one of those releases or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 0.21% chance of exploitation within 30 days, which is low compared with other CVEs.

Next patch cycle

High severity with no evidence of exploitation so far.

What to do

  1. Update Linux to a3cd5ae7befbac849e0e0529c94ca04e8093cfd2 or 9fe71972869faed1f8f9b3beb9040f9c1b300c79 or 56738cbac3bbb1d39a71a07f57484dec1db8b239 or a1e12fac214d4f49fcb186dbdf9c5592e7fa0a7a, whichever matches your release line, or a later version.
  2. Update Linux Kernel to 5.4.296 or 5.10.240 or 5.15.187 or 6.1.144, whichever matches your release line, or a later version.

Affected products and versions

VendorProductAffected versionsFixed in
LinuxLinuxd6cd33ad71029a3f77ba1686caf55d4dea58d916 up to, but not including, a3cd5ae7befbac849e0e0529c94ca04e8093cfd2; d6cd33ad71029a3f77ba1686caf55d4dea58d916 up to, but not including, 9fe71972869faed1f8f9b3beb9040f9c1b300c79; d6cd33ad71029a3f77ba1686caf55d4dea58d916 up to, but not including, 56738cbac3bbb1d39a71a07f57484dec1db8b239; d6cd33ad71029a3f77ba1686caf55d4dea58d916 up to, but not including, a1e12fac214d4f49fcb186dbdf9c5592e7fa0a7a; d6cd33ad71029a3f77ba1686caf55d4dea58d916 up to, but not including, 24418bc77a66cb5be9f5a837431ba3674ed8b52f; d6cd33ad71029a3f77ba1686caf55d4dea58d916 up to, but not including, e4d19e5d71b217940e33f2ef6c6962b7b68c5606; d6cd33ad71029a3f77ba1686caf55d4dea58d916 up to, but not including, 3830ab97cda9599872625cc0dc7b00160193634f; d6cd33ad71029a3f77ba1686caf55d4dea58d916 up to, but not including, c9764fd88bc744592b0604ccb6b6fc1a5f76b4e3; and 1 more rangesa3cd5ae7befbac849e0e0529c94ca04e8093cfd2, 9fe71972869faed1f8f9b3beb9040f9c1b300c79, 56738cbac3bbb1d39a71a07f57484dec1db8b239, a1e12fac214d4f49fcb186dbdf9c5592e7fa0a7a, 24418bc77a66cb5be9f5a837431ba3674ed8b52f, e4d19e5d71b217940e33f2ef6c6962b7b68c5606
LinuxLinux Kernel5.1 up to, but not including, 5.4.296; 5.5 up to, but not including, 5.10.240; 5.11 up to, but not including, 5.15.187; 5.16 up to, but not including, 6.1.144; 6.2 up to, but not including, 6.6.97; 6.7 up to, but not including, 6.12.37; 6.13 up to, but not including, 6.15.6; 6.165.4.296, 5.10.240, 5.15.187, 6.1.144, 6.6.97, 6.12.37
DebianDebian Linux11.0Not stated

Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.

How the severity score breaks down

Attack vector
LocalThe attacker needs local access or must trick a user into running something.
Attack complexity
LowNo special conditions are needed; the attack works reliably.
Privileges required
LowA basic user account is enough.
User interaction
NoneNo action by a victim is required.
Scope
UnchangedImpact stays within the vulnerable component.
Confidentiality
HighAll data handled by the component can be read.
Integrity
NoneNothing can be modified.
Availability
HighThe component can be taken down completely.

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H. Scored by NVD.

Scoring systemScoreSeverityScored by
CVSS 3.18.4HighCNA
CVSS 3.17.1HighNVD

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

Source: the CVE record as published by its numbering authority, via NVD and CVE.org.

The underlying weakness: Out-of-bounds Read

The product reads data past the end, or before the beginning, of the intended buffer.

How developers prevent this class of flaw

  • Use a language that provides appropriate memory abstractions.

More Out-of-bounds Read vulnerabilities (CWE-125)

Timeline

  1. CVE record published.
  2. Record last changed materially (score, affected products, status or references).

References

Recent Out-of-bounds Read vulnerabilities

Spotted an error? Tell us.