regmap: Fix race condition in hwspinlock irqsave routine
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.249, 5.15.199, 6.1.162, 6.6.122, 6.12.68, and 1 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: partial
Summary
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.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- Record last updated
Affected versions
- Linux Linux
From 8698b9364710e7bac84b3af07dd410e39c8c2e08 · fixed in e1a7072bc4f958c9e852dc7e57e39f12b0bb44b5; From 8698b9364710e7bac84b3af07dd410e39c8c2e08 · fixed in 766e243ae8c8b27087a4cc605752c0d5ee2daeab; From 8698b9364710e7bac84b3af07dd410e39c8c2e08 · fixed in f1e2fe26a51eca95b41420af76d22c2e613efd5e; From 8698b9364710e7bac84b3af07dd410e39c8c2e08 · fixed in 24f31be6ad70537fd7706269d99c92cade465a09; From 8698b9364710e7bac84b3af07dd410e39c8c2e08 · fixed in 4aab0ca0a0f7760e33edcb4e47576064d05128f5; From 8698b9364710e7bac84b3af07dd410e39c8c2e08 · fixed in c2d2cf710dc3ee1a69e00b4ed8de607a92a07889; From 8698b9364710e7bac84b3af07dd410e39c8c2e08 · fixed in 4b58aac989c1e3fafb1c68a733811859df388250
- Linux Linux
4.15
- KernelLinux
From 4.15.0 · fixed in 5.10.249; From 5.11.0 · fixed in 5.15.199; From 5.16.0 · fixed in 6.1.162; From 6.2.0 · fixed in 6.6.122; From 6.7.0 · fixed in 6.12.68; From 6.13.0 · fixed in 6.18.8
References 7
git.kernel.org
- stable/c/e1a7072bc4f958c9e852dc7e57e39f12b0bb44b5
- stable/c/766e243ae8c8b27087a4cc605752c0d5ee2daeab
- stable/c/f1e2fe26a51eca95b41420af76d22c2e613efd5e
- stable/c/24f31be6ad70537fd7706269d99c92cade465a09
- stable/c/4aab0ca0a0f7760e33edcb4e47576064d05128f5
- stable/c/c2d2cf710dc3ee1a69e00b4ed8de607a92a07889
- stable/c/4b58aac989c1e3fafb1c68a733811859df388250