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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.1, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-06-18 · Modified: 2026-05-11
- Aliases: UBUNTU-CVE-2025-38027, DEBIAN-CVE-2025-38027
- Record: https://cvemate.com/vulnerability/CVE-2025-38027 · JSON: https://cvemate.com/vulnerability/CVE-2025-38027/json

## Description

```text
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.
```

## Signals

- CVSS: 7.1 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
- EPSS: 0.211%, percentile 11.901%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 123)

- debian linux (Debian): \< 6.1.140-1 \| \< 6.12.30-1
- ubuntu linux (Ubuntu): \< 6.8.0-100.100
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 6.8.0-1046.49
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): \< 6.14.0-1011.11~24.04.1
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1046.49~22.04.1
- ubuntu linux-aws-fips (Ubuntu): \< 6.8.0-1046.49+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1046.52
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.3 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 29)

- <https://git.kernel.org/stable/c/6ba30f7aa2c550b2ac04f16b81a19a8c045b8660>
- <https://git.kernel.org/stable/c/7bddac8603d4e396872c2fbf4403ec08e7b1d7c8>
- <https://git.kernel.org/stable/c/d2a9a92bb4cc7568cff68241b0051dc7268bdc68>
- <https://git.kernel.org/stable/c/5578ab04bd7732f470fc614bbc0a924900399fb8>
- <https://git.kernel.org/stable/c/6b0cd72757c69bc2d45da42b41023e288d02e772>
- <https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html>
- <https://ubuntu.com/security/CVE-2025-38027>
- <https://www.cve.org/CVERecord?id=CVE-2025-38027>
- <https://git.kernel.org/linus/6b0cd72757c69bc2d45da42b41023e288d02e772>
- <https://ubuntu.com/security/notices/USN-7699-1>
- <https://ubuntu.com/security/notices/USN-7699-2>
- <https://ubuntu.com/security/notices/USN-7721-1>
- <https://ubuntu.com/security/notices/USN-8028-1>
- <https://ubuntu.com/security/notices/USN-8028-2>
- <https://ubuntu.com/security/notices/USN-8031-1>
- <https://ubuntu.com/security/notices/USN-8028-3>
- <https://ubuntu.com/security/notices/USN-8028-4>
- <https://ubuntu.com/security/notices/USN-8028-5>
- <https://ubuntu.com/security/notices/USN-8031-2>
- <https://ubuntu.com/security/notices/USN-8028-6>

---

Data as of 2026-12-05T06:37:34.264Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
