# CVE-2025-38027: regulator: max20086: fix invalid memory access

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 14, 2026-11-28)
- **CWE:** CWE-125
- **Published:** 2025-06-18T09:28:32.546Z
- **Modified:** 2026-06-17T09:15:54.530Z

## Who should check

- Anyone running Linux \>= bfff546aae50ae68ed395bf0e0848188d27b0ba3, \< 6ba30f7aa2c550b2ac04f16b81a19a8c045b8660; \>= bfff546aae50ae68ed395bf0e0848188d27b0ba3, \< 7bddac8603d4e396872c2fbf4403ec08e7b1d7c8; \>= bfff546aae50ae68ed395bf0e0848188d27b0ba3, \< d2a9a92bb4cc7568cff68241b0051dc7268bdc68; \>= bfff546aae50ae68ed395bf0e0848188d27b0ba3, \< 5578ab04bd7732f470fc614bbc0a924900399fb8; \>= bfff546aae50ae68ed395bf0e0848188d27b0ba3, \< 6b0cd72757c69bc2d45da42b41023e288d02e772
- Anyone running Linux 5.17

## Description

In the Linux kernel, the following vulnerability has been resolved:

regulator: max20086: fix invalid memory access

max20086\_parse\_regulators\_dt() calls of\_regulator\_match() using an
array of struct of\_regulator\_match allocated on the stack for the
matches argument.

of\_regulator\_match() calls devm\_of\_regulator\_put\_matches(), which calls
devres\_alloc() to allocate a struct devm\_of\_regulator\_matches which will
be de-allocated using devm\_of\_regulator\_put\_matches().

struct devm\_of\_regulator\_matches is populated with the stack allocated
matches array.

If the device fails to probe, devm\_of\_regulator\_put\_matches() will be
called and will try to call of\_node\_put() on that stack pointer,
generating the following dmesg entries:

max20086 6-0028: Failed to read DEVICE\_ID reg: -121
kobject: '\\xc0$\\xa5\\x03' (000000002cebcb7a): is not initialized, yet
kobject\_put() is being called.

Followed by a stack trace matching the call flow described above.

Switch to allocating the matches array using devm\_kcalloc() to
avoid accessing the stack pointer long after it's out of scope.

This also has the advantage of allowing multiple max20086 to probe
without overriding the data stored inside the global of\_regulator\_match.

## Affected and fixed versions

- Linux: \>= bfff546aae50ae68ed395bf0e0848188d27b0ba3, \< 6ba30f7aa2c550b2ac04f16b81a19a8c045b8660; \>= bfff546aae50ae68ed395bf0e0848188d27b0ba3, \< 7bddac8603d4e396872c2fbf4403ec08e7b1d7c8; \>= bfff546aae50ae68ed395bf0e0848188d27b0ba3, \< d2a9a92bb4cc7568cff68241b0051dc7268bdc68; \>= bfff546aae50ae68ed395bf0e0848188d27b0ba3, \< 5578ab04bd7732f470fc614bbc0a924900399fb8; \>= bfff546aae50ae68ed395bf0e0848188d27b0ba3, \< 6b0cd72757c69bc2d45da42b41023e288d02e772 (cvelist)
- Linux: 5.17 (cvelist)

## Mitigation

- Upgrade Linux to 6b0cd72757c69bc2d45da42b41023e288d02e772 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38027. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38027.md
Affected: Linux >= bfff546aae50ae68ed395bf0e0848188d27b0ba3, < 6ba30f7aa2c550b2ac04f16b81a19a8c045b8660; >= bfff546aae50ae68ed395bf0e0848188d27b0ba3, < 7bddac8603d4e396872c2fbf4403ec08e7b1d7c8; >= bfff546aae50ae68ed395bf0e0848188d27b0ba3, < d2a9a92bb4cc7568cff68241b0051dc7268bdc68; >= bfff546aae50ae68ed395bf…
Fixed in: Linux 6ba30f7aa2c550b2ac04f16b81a19a8c045b8660, Linux 7bddac8603d4e396872c2fbf4403ec08e7b1d7c8, Linux 5578ab04bd7732f470fc614bbc0a924900399fb8, Linux 6b0cd72757c69bc2d45da42b41023e288d02e772

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38027 being exploited?

There is no confirmed exploitation: CVE-2025-38027 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2025-38027?

High: CVSS 7.1 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38027?

Linux \>= bfff546aae50ae68ed395bf0e0848188d27b0ba3, \< 6ba30f7aa2c550b2ac04f16b81a19a8c045b8660; \>= bfff546aae50ae68ed395bf0e0848188d27b0ba3, \< 7bddac8603d4e396872c2fbf4403ec08e7b1d7c8; \>= bfff546aae50ae68ed395bf0e0848188d27b0ba3, \< d2a9a92bb4cc7568cff68241b0051dc7268bdc68; \>= bfff546aae50ae68ed395bf0e0848188d27b0ba3, \< 5578ab04bd7732f470fc614bbc0a924900399fb8; \>= bfff546aae50ae68ed395bf0e0848188d27b0ba3, \< 6b0cd72757c69bc2d45da42b41023e288d02e772; Linux 5.17.

### Is there a fix for CVE-2025-38027?

Yes. Fixed in Linux 6ba30f7aa2c550b2ac04f16b81a19a8c045b8660, Linux 7bddac8603d4e396872c2fbf4403ec08e7b1d7c8, Linux 5578ab04bd7732f470fc614bbc0a924900399fb8, Linux 6b0cd72757c69bc2d45da42b41023e288d02e772. Upgrade Linux to 6b0cd72757c69bc2d45da42b41023e288d02e772 or later.

### How do I check if I'm affected by CVE-2025-38027?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/6ba30f7aa2c550b2ac04f16b81a19a8c045b8660>
- patch: <https://git.kernel.org/stable/c/7bddac8603d4e396872c2fbf4403ec08e7b1d7c8>
- patch: <https://git.kernel.org/stable/c/d2a9a92bb4cc7568cff68241b0051dc7268bdc68>
- patch: <https://git.kernel.org/stable/c/5578ab04bd7732f470fc614bbc0a924900399fb8>
- patch: <https://git.kernel.org/stable/c/6b0cd72757c69bc2d45da42b41023e288d02e772>
- other: <https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38027>

HTML: <https://flawdb.com/CVE-2025-38027> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38027>
