CVE-2026-52936: crypto: jitterentropy - replace long-held spinlock with mutex
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
crypto: jitterentropy - replace long-held spinlock with mutex
jent_kcapi_random() serializes the shared jitterentropy state, but it currently holds a spinlock across the jent_read_entropy() call. That path performs expensive jitter collection and SHA3 conditioning, so parallel readers can trigger stalls as contending waiters spin for the same lock.
To prevent non-preemptible lock hold, replace rng->jent_lock with a mutex so contended readers sleep instead of spinning on a shared lock held across expensive entropy generation.
The Linux kernel CVE team has assigned CVE-2026-52936 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.2 with commit bb5530e4082446aac3a3d69780cd4dbfa4520013 and fixed in 6.6.141 with commit 18216b8ab6904753eaf31baf453cb02ecd202ba4 Issue introduced in 4.2 with commit bb5530e4082446aac3a3d69780cd4dbfa4520013 and fixed in 6.12.91 with commit 4c03e6eb98443dc4d6d422a9780034a5b75376b4 Issue introduced in 4.2 with commit bb5530e4082446aac3a3d69780cd4dbfa4520013 and fixed in 6.18.33 with commit ff734dbd9e2432601a6dcd167cfb0bf8a36d1880 Issue introduced in 4.2 with commit bb5530e4082446aac3a3d69780cd4dbfa4520013 and fixed in 7.0.10 with commit ec427dc5286da1ed08f2d510e2147a7581b0cb02 Issue introduced in 4.2 with commit bb5530e4082446aac3a3d69780cd4dbfa4520013 and fixed in 7.1 with commit 01d798e9feb30212952d4e992801ba6bd6a82351
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-52936
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
crypto/jitterentropy-kcapi.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/18216b8ab6904753eaf31baf453cb02ecd202ba4 https://git.kernel.org/stable/c/4c03e6eb98443dc4d6d422a9780034a5b75376b4 https://git.kernel.org/stable/c/ff734dbd9e2432601a6dcd167cfb0bf8a36d1880 https://git.kernel.org/stable/c/ec427dc5286da1ed08f2d510e2147a7581b0cb02 https://git.kernel.org/stable/c/01d798e9feb30212952d4e992801ba6bd6a82351