CVE-2026-72314

regulator: core: regulator_lock_two() should test for EDEADLK not EDEADLOCK

Published Aug 15, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

regulator: core: regulator_lock_two() should test for EDEADLK not EDEADLOCK

Compare against -EDEADLK, which is what ww_mutex_lock() actually
returns and what every other deadlock check in this file already uses.

Function regulator_lock_two() acquires two regulators via
regulator_lock_nested() -> ww_mutex_lock(). On contention,
ww_mutex_lock() returns -EDEADLK, which is the caller's signal to drop
the lock it holds and retry the acquisition in the canonical order.

However, regulator_lock_two() tests the return value against -EDEADLOCK
rather than -EDEADLK. On most architectures, EDEADLK and EDEADLOCK are
the same value, so the comparison happens to be correct and the bug is
invisible. But on MIPS, SPARC, and PowerPC, those two errors have
different values. The test is wrong: a genuine -EDEADLK backoff no
longer matches -EDEADLOCK, so instead of unlocking and retrying, the
code falls into WARN_ON(ret) and returns with only one of the two
regulators locked.

In practice, this is a bug only on MIPS, because the regulator core is
not built or used on the other two platforms.

In general, EDEADLK is preferred over EDEADLOCK for new code.

Analysis

AI-generated

Technical impact

In the Linux kernel, the function that locks two regulators uses a deadlock‑aware mutex lock. When contention occurs, the mutex function returns -EDEADLK to signal that the caller should release any lock it already holds and retry in the correct order. The regulator code, however, mistakenly checks for the value -EDEADLOCK. On processors where EDEADLK and EDEADLOCK are distinct, such as MIPS, the comparison fails. The code therefore skips the expected back‑off logic, triggers a warning, and returns with only one of the two regulators locked. This improper error handling can leave a regulator in an inconsistent state, potentially leading to power‑management failures or device malfunction. The weakness is a result of an incorrect comparison of error return codes, categorised as CWE‑1025. The missing logic does not directly provide a path for arbitrary code execution, but it can compromise the reliability of power‑management subsystems that depend on multi‑regulator coordination. The CVSS score of 7.8 indicates high severity, yet the EPSS score is below 1 %. The vulnerability is not listed in the CISA KEV catalogue. Exploitation would require the ability to trigger concurrent regulator acquisition on a MIPS system – a capability normally limited to local, privileged code. These inferred attack requirements are not directly stated in the advisory. The overall threat is therefore moderate, with low likelihood of exploitation in most environments but potentially significant availability impact on vulnerable MIPS platforms when the regulator core is enabled.

Affected Systems

The defect resides in the Linux kernel code for regulator_lock_two, which is invoked when the regulator core subsystem is compiled into the kernel. The bug manifests on MIPS architectures because the error codes differ; on SPARC and PowerPC the kernel usually does not use the regulator core, so they are effectively not impacted. Therefore the affected platforms are Linux kernel (regulator core enabled) running on MIPS, with no specific version information provided.

Risk and Exploitability

The CVSS score of 7.8 reflects significant potential impact on system availability. The EPSS score of < 1 % indicates that current exploit activity is believed to be very low. The vulnerability is not listed in the CISA KEV catalogue, so there is no known widespread or targeted exploitation campaign associated with it. The likely attack vector is local privilege escalation on a MIPS system where a malicious user or process can trigger the regulator_lock_two function. Since the regulator core is not typically built on SPARC or PowerPC, those architectures are effectively immune. In the absence of a direct code‑execution path, the risk is primarily the failure of power‑management operations, potentially causing device malfunction or service interruption.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the kernel patch that corrects the regulator_lock_two comparison to -EDEADLK
  • If a patch cannot be applied, disable the regulator core in kernel configuration to avoid the code path
  • Monitor kernel logs for WARN_ON messages related to regulator locking failures and investigate promptly

Generated by OpenCVE AI on August 22, 2026 at 11:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8876-1 Linux kernel (Azure CVM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8875-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8877-1 Linux kernel (GCP) vulnerabilities
Ubuntu USN Ubuntu USN USN-8878-1 Linux kernel (GCP) vulnerabilities
Ubuntu USN Ubuntu USN USN-8879-1 Linux kernel (Oracle) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8889-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-2 Linux kernel (AWS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8875-2 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-3 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8917-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8918-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9003-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9024-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9025-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9026-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9029-1 Linux kernel (Raspberry Pi) vulnerabilities
Ubuntu USN Ubuntu USN USN-9040-1 Linux kernel (Low Latency NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9043-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9066-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-9192-1 Linux kernel (NVIDIA) vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-558
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Weaknesses CWE-558
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: regulator: core: regulator_lock_two() should test for EDEADLK not EDEADLOCK Compare against -EDEADLK, which is what ww_mutex_lock() actually returns and what every other deadlock check in this file already uses. Function regulator_lock_two() acquires two regulators via regulator_lock_nested() -> ww_mutex_lock(). On contention, ww_mutex_lock() returns -EDEADLK, which is the caller's signal to drop the lock it holds and retry the acquisition in the canonical order. However, regulator_lock_two() tests the return value against -EDEADLOCK rather than -EDEADLK. On most architectures, EDEADLK and EDEADLOCK are the same value, so the comparison happens to be correct and the bug is invisible. But on MIPS, SPARC, and PowerPC, those two errors have different values. The test is wrong: a genuine -EDEADLK backoff no longer matches -EDEADLOCK, so instead of unlocking and retrying, the code falls into WARN_ON(ret) and returns with only one of the two regulators locked. In practice, this is a bug only on MIPS, because the regulator core is not built or used on the other two platforms. In general, EDEADLK is preferred over EDEADLOCK for new code.
Title regulator: core: regulator_lock_two() should test for EDEADLK not EDEADLOCK
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-1025

    Comparison Using Wrong Factors

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 16, 2026, 6:55 PM
Reserved
Aug 9, 2026, 3:40 AM
Status
Received
Published
Aug 15, 2026, 6:22 AM
Modified
Oct 16, 2026, 7:17 PM
Severity
Low
Public date
Aug 15, 2026, 12:00 AM