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

Published Jun 18, 2025
·
Updated

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

regulator: max20086: fix invalid memory access

max20086parseregulatorsdt() calls ofregulatormatch() using an array of struct ofregulatormatch allocated on the stack for the matches argument.

ofregulatormatch() calls devmofregulatorputmatches(), which calls devresalloc() to allocate a struct devmofregulatormatches which will be de-allocated using devmofregulatorputmatches().

struct devmofregulatormatches is populated with the stack allocated matches array.

If the device fails to probe, devmofregulatorputmatches() will be called and will try to call ofnodeput() on that stack pointer, generating the following dmesg entries:

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

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

Switch to allocating the matches array using devmkcalloc() 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 ofregulatormatch.

Affected Software

12 affected components
Linux Kernel
Linux Linux kernel>=5.17<6.1.140
Linux Linux kernel>=6.2<6.6.92
Linux Linux kernel>=6.7<6.12.30
Linux Linux kernel>=6.13<6.14.8
Linux Linux kernel=6.15-rc1
Linux Linux kernel=6.15-rc2
Linux Linux kernel=6.15-rc3
Linux Linux kernel=6.15-rc4
Linux Linux kernel=6.15-rc5
Linux Linux kernel=6.15-rc6
Debian Debian Linux=11.0

Event History

Jun 18, 2025
CVE Published
via MITRE·09:28 AM
Data Sourced
via MITRE·09:28 AM
Description
Data Sourced
via NVD·10:15 AM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-38027?

CVE-2025-38027 is considered a high severity vulnerability in the Linux kernel due to its potential for invalid memory access.

2

How do I fix CVE-2025-38027?

To mitigate CVE-2025-38027, update to the latest version of the Linux kernel that includes the patch for this vulnerability.

3

Which versions of the Linux kernel are affected by CVE-2025-38027?

CVE-2025-38027 affects various versions of the Linux kernel from 5.17 up to certain releases in the 6.x series.

4

What kind of vulnerability is CVE-2025-38027?

CVE-2025-38027 is a memory access vulnerability that can lead to crashes or potential data corruption in the Linux kernel.

5

Can CVE-2025-38027 be exploited remotely?

CVE-2025-38027 is mainly a local privilege escalation vulnerability and is not likely to be exploited remotely.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203