CVE-2025-38668: regulator: core: fix NULL dereference on unbind due to stale coupling data
In the Linux kernel, the following vulnerability has been resolved:
regulator: core: fix NULL dereference on unbind due to stale coupling data
Failing to reset coupling_desc.n_coupled after freeing coupled_rdevs can
lead to NULL pointer dereference when regulators are accessed post-unbind.
This can happen during runtime PM or other regulator operations that rely
on coupling metadata.
For example, on ridesx4, unbinding the 'reg-dummy' platform device triggers
a panic in regulator_lock_recursive() due to stale coupling state.
Ensure n_coupled is set to 0 to prevent access to invalid pointers.
Security readout for executives and security teams
Plain-English summary
This Linux kernel flaw can crash an affected system when regulator cleanup leaves stale coupling metadata behind. It is primarily an availability risk: systems using the affected regulator paths may panic during device unbind or related power-management activity.
Executive priority
Treat as a scheduled kernel reliability update, not an emergency remote-compromise event based on current sources. Prioritize systems where kernel panics would affect production availability or embedded device uptime.
Technical view
The regulator core may free coupled_rdevs without resetting coupling_desc.n_coupled. Later regulator operations can treat the stale count as valid and dereference invalid or NULL coupling data, causing a kernel panic such as in regulator_lock_recursive().
Likely exposure
Exposure appears limited to Linux kernels with the affected regulator core behavior and platforms or drivers using coupled regulators, device unbind, or runtime PM paths. The bundle lists Linux kernel versions and stable commits, but does not provide distribution-specific affected package ranges beyond Debian advisory references.
Exploitation context
The sources do not show active exploitation, and KEV is false. The provided example is a panic after unbinding the reg-dummy platform device on ridesx4. No remote attack path or public exploit details are provided.
Researcher notes
The key issue is stale coupling state after freeing coupled_rdevs. The fix direction is to reset n_coupled to zero so later regulator operations do not traverse invalid coupling metadata.
Mitigation direction
Update to a Linux kernel containing the referenced stable fixes.
Apply relevant distribution kernel updates, including Debian LTS guidance where applicable.
Avoid unnecessary regulator device unbind operations on vulnerable systems until patched.
Check vendor or distribution advisories for exact package-level fixed versions.
Validation and detection
Inventory systems running Linux kernels in the affected version range.
Confirm whether deployed kernels include one of the referenced regulator core fix commits.
Review crash logs for regulator_lock_recursive or regulator unbind panic indicators.
Check whether platforms use coupled regulators or runtime PM paths affected by this bug.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2025-38668 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
0CVSS vectors
3Timeline events
1ADP providers
11Source links
Vulnerability timeline
Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.
CVE reservedCVE Program
The CVE ID was reserved by the assigning CNA.
CVE publishedCVE Program
The CVE record was published.
Aug 22, 2025, 16:02 UTC (UTC+00:00)
CVE updatedCVE Program
The CVE record metadata indicates this as the latest update time.