regmap: Fix race condition in hwspinlock irqsave routine (Linux Linux)

CVE-2026-23071
MEDIUM 4.7

At a glance

Source
NVD
EPSS
EPSS 0.14 % · percentile 3 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: regmap: Fix race condition in hwspinlock irqsave routine Previously, the address of the shared member '&map->spinlock_flags' was passed directly to 'hwspin_lock_timeout_irqsave'. This creates a race condition where multiple contexts contending for the lock could overwrite the shared flags variable, potentially corrupting the state for the current lock owner. Fix this by using a local stack variable 'flags' to store the IRQ state temporarily.

Weaknesses (CWE)

  • CWE-362 — Concurrent Execution using Shared Resource with Improper Synchronization

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 4.7CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 8698b9364710e7bac84b3af07dd410e39c8c2e08 < e1a7072bc4f958c9e852dc7e57e39f12b0bb44b5 ; affected 8698b9364710e7bac84b3af07dd410e39c8c2e08 < 766e243ae8c8b27087a4cc605752c0d5ee2daeab ; affected 8698b9364710e7bac84b3af07dd410e39c8c2e08 < f1e2fe26a51eca95b41420af76d22c2e613efd5e ; affected 8698b9364710e7bac84b3af07dd410e39c8c2e08 < 24f31be6ad70537fd7706269d99c92cade465a09 ; affected 8698b9364710e7bac84b3af07dd410e39c8c2e08 < 4aab0ca0a0f7760e33edcb4e47576064d05128f5 ; affected 8698b9364710e7bac84b3af07dd410e39c8c2e08 < c2d2cf710dc3ee1a69e00b4ed8de607a92a07889
Linux · Linuxaffected 4.15 ; unaffected 0 < 4.15 ; unaffected 5.10.249 ≤ 5.10.* ; unaffected 5.15.199 ≤ 5.15.* ; unaffected 6.1.162 ≤ 6.1.* ; unaffected 6.6.122 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD