# CVE-2026-23071: regmap: Fix race condition in hwspinlock irqsave routine

- Severity: Medium 4.7 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-02-04T16:07:51.603Z
- Modified: 2026-10-19T19:17:33.930Z
- Weaknesses: CWE-362
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 8698b9364710e7bac84b3af07dd410e39c8c2e08 before e1a7072bc4f958c9e852dc7e57e39f12b0bb44b5; from 8698b9364710e7bac84b3af07dd410e39c8c2e08 before 766e243ae8c8b27087a4cc605752c0d5ee2daeab; from 8698b9364710e7bac84b3af07dd410e39c8c2e08 before f1e2fe26a51eca95b41420af76d22c2e613efd5e; from 8698b9364710e7bac84b3af07dd410e39c8c2e08 before 24f31be6ad70537fd7706269d99c92cade465a09; from 8698b9364710e7bac84b3af07dd410e39c8c2e08 before 4aab0ca0a0f7760e33edcb4e47576064d05128f5; from 8698b9364710e7bac84b3af07dd410e39c8c2e08 before c2d2cf710dc3ee1a69e00b4ed8de607a92a07889; from 8698b9364710e7bac84b3af07dd410e39c8c2e08 before 4b58aac989c1e3fafb1c68a733811859df388250; 4.15 (not affected: before 4.15; from 5.10.249 up to 5.10.*; from 5.15.199 up to 5.15.*; from 6.1.162 up to 6.1.*; from 6.6.122 up to 6.6.*; from 6.12.68 up to 6.12.*; from 6.18.8 up to 6.18.*; from 6.19 up to *)
- linux linux_kernel: from 4.15 before 5.10.249; from 5.11 before 5.15.199; from 5.16 before 6.1.162; from 6.2 before 6.6.122; from 6.7 before 6.12.68; from 6.13 before 6.18.8; 6.19

## References

- <https://git.kernel.org/stable/c/e1a7072bc4f958c9e852dc7e57e39f12b0bb44b5> (patch)
- <https://git.kernel.org/stable/c/766e243ae8c8b27087a4cc605752c0d5ee2daeab> (patch)
- <https://git.kernel.org/stable/c/f1e2fe26a51eca95b41420af76d22c2e613efd5e> (patch)
- <https://git.kernel.org/stable/c/24f31be6ad70537fd7706269d99c92cade465a09> (patch)
- <https://git.kernel.org/stable/c/4aab0ca0a0f7760e33edcb4e47576064d05128f5> (patch)
- <https://git.kernel.org/stable/c/c2d2cf710dc3ee1a69e00b4ed8de607a92a07889> (patch)
- <https://git.kernel.org/stable/c/4b58aac989c1e3fafb1c68a733811859df388250> (patch)

## Sources

- CVE List: [CVE-2026-23071](https://www.cve.org/CVERecord?id=CVE-2026-23071), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-23071](https://nvd.nist.gov/vuln/detail/CVE-2026-23071), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-23071 · Whole record: https://cve.day/CVE-2026-23071.json · Rebuilt by cve.day 2026-11-25T22:59:13.462Z
