CVE-2025-38027
regulator: max20086: fix invalid memory access
Mitigation
- Upgrade Linux to 6b0cd72757c69bc2d45da42b41023e288d02e772 or later.
Who should check
- Anyone running Linux >= bfff546aae50ae68ed395bf0e0848188d27b0ba3, < 6ba30f7aa2c550b2ac04f16b81a19a8c045b8660; >= bfff546aae50ae68ed395bf0e0848188d27b0ba3, < 7bddac8603d4e396872c2fbf4403ec08e7b1d7c8; >= bfff546aae50ae68ed395bf0e0848188d27b0ba3, < d2a9a92bb4cc7568cff68241b0051dc7268bdc68; >= bfff546aae50ae68ed395bf0e0848188d27b0ba3, < 5578ab04bd7732f470fc614bbc0a924900399fb8; >= bfff546aae50ae68ed395bf0e0848188d27b0ba3, < 6b0cd72757c69bc2d45da42b41023e288d02e772
- Anyone running Linux 5.17
Vulnerability facts
- Affected
- Linux >= bfff546aae50ae68ed395bf0e0848188d27b0ba3, < 6ba30f7aa2c550b2ac04f16b81a19a8c045b8660; >= bfff546aae50ae68ed395bf0e0848188d27b0ba3, < 7bddac8603d4e396872c2fbf4403ec08e7b1d7c8; >= bfff546aae50ae68ed395bf0e0848188d27b0ba3, < d2a9a92bb4cc7568cff68241b0051dc7268bdc68; >= bfff546aae50ae68ed395bf0e0848188d27b0ba3, < 5578ab04bd7732f470fc614bbc0a924900399fb8; >= bfff546aae50ae68ed395bf0e0848188d27b0ba3, < 6b0cd72757c69bc2d45da42b41023e288d02e772; Linux 5.17
- Fixed in
- Linux 6ba30f7aa2c550b2ac04f16b81a19a8c045b8660, Linux 7bddac8603d4e396872c2fbf4403ec08e7b1d7c8, Linux 5578ab04bd7732f470fc614bbc0a924900399fb8, Linux 6b0cd72757c69bc2d45da42b41023e288d02e772
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.1 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 0.29% chance of exploitation in 30 days (percentile 14, 2026-11-26)
- CWE
- CWE-125
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= bfff546aae50ae68ed395bf0e0848188d27b0ba3, < 6ba30f7aa2c550b2ac04f16b81a19a8c045b8660; >= bfff546aae50ae68ed395bf0e0848188d27b0ba3, < 7bddac8603d4e396872c2fbf4403ec08e7b1d7c8; >= bfff546aae50ae68ed395bf0e0848188d27b0ba3, < d2a9a92bb4cc7568cff68241b0051dc7268bdc68; >= bfff546aae50ae68ed395bf0e0848188d27b0ba3, < 5578ab04bd7732f470fc614bbc0a924900399fb8; >= bfff546aae50ae68ed395bf0e0848188d27b0ba3, < 6b0cd72757c69bc2d45da42b41023e288d02e772 | — | cvelist |
| Linux | 5.17 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Patches
- 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
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-26).
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.