CVE-2023-53998
hwrng: virtio - Fix race on data_avail and actual data
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= f7f510ec195781c857ab76366a3e1c59e1caae42, < 241ef15776a7c8505008db689175b320d345ecd3; >= f7f510ec195781c857ab76366a3e1c59e1caae42, < a43bcb0b661cbbf3ad797d2aee6b6fd06b8fc69d; >= f7f510ec195781c857ab76366a3e1c59e1caae42, < 77471e4912d3960dafe141e268c44be8024fe4dc; >= f7f510ec195781c857ab76366a3e1c59e1caae42, < c76d991b6f01a5d931e7053a73bc9524975a5215; >= f7f510ec195781c857ab76366a3e1c59e1caae42, < 22c30022cde6e2c88612b3a499223cfa912f1bc7; >= f7f510ec195781c857ab76366a3e1c59e1caae42, < 318657b4c2077289659f1cd9e2a34f6a3b208e3e; >= f7f510ec195781c857ab76366a3e1c59e1caae42, < 2fc91f156b3f3446a1bce80cf4adedcbf41271c2; >= f7f510ec195781c857ab76366a3e1c59e1caae42, < ac52578d6e8d300dd50f790f29a24169b1edd26c
- Anyone running Linux 2.6.26
Vulnerability facts
- Affected
- Linux >= f7f510ec195781c857ab76366a3e1c59e1caae42, < 241ef15776a7c8505008db689175b320d345ecd3; >= f7f510ec195781c857ab76366a3e1c59e1caae42, < a43bcb0b661cbbf3ad797d2aee6b6fd06b8fc69d; >= f7f510ec195781c857ab76366a3e1c59e1caae42, < 77471e4912d3960dafe141e268c44be8024fe4dc; >= f7f510ec195781c857ab76366a3e1c59e1caae42, < c76d991b6f01a5d931e7053a73bc9524975a5215; >= f7f510ec195781c857ab76366a3e1c59e1caae42, < 22c30022cde6e2c88612b3a499223cfa912f1bc7; >= f7f510ec195781c857ab76366a3e1c59e1caae42, < 318657b4c2077289659f1cd9e2a34f6a3b208e3e; >= f7f510ec195781c857ab76366a3e1c59e1caae42, < 2fc91f156b3f3446a1bce80cf4adedcbf41271c2; >= f7f510ec195781c857ab76366a3e1c59e1caae42, < ac52578d6e8d300dd50f790f29a24169b1edd26c; Linux 2.6.26
- Fixed in
- Linux 241ef15776a7c8505008db689175b320d345ecd3, Linux 77471e4912d3960dafe141e268c44be8024fe4dc, Linux 22c30022cde6e2c88612b3a499223cfa912f1bc7, Linux 318657b4c2077289659f1cd9e2a34f6a3b208e3e, Linux 2fc91f156b3f3446a1bce80cf4adedcbf41271c2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- EPSS
- 0.29% chance of exploitation in 30 days (percentile 14, 2026-11-26)
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: hwrng: virtio - Fix race on data_avail and actual data The virtio rng device kicks off a new entropy request whenever the data available reaches zero. When a new request occurs at the end of a read operation, that is, when the result of that request is only needed by the next reader, then there is a race between the writing of the new data and the next reader. This is because there is no synchronisation whatsoever between the writer and the reader. Fix this by writing data_avail with smp_store_release and reading it with smp_load_acquire when we first enter read. The subsequent reads are safe because they're either protected by the first load acquire, or by the completion mechanism. Also remove the redundant zeroing of data_idx in random_recv_done (data_idx must already be zero at this point) and data_avail in request_entropy (ditto).
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= f7f510ec195781c857ab76366a3e1c59e1caae42, < 241ef15776a7c8505008db689175b320d345ecd3; >= f7f510ec195781c857ab76366a3e1c59e1caae42, < a43bcb0b661cbbf3ad797d2aee6b6fd06b8fc69d; >= f7f510ec195781c857ab76366a3e1c59e1caae42, < 77471e4912d3960dafe141e268c44be8024fe4dc; >= f7f510ec195781c857ab76366a3e1c59e1caae42, < c76d991b6f01a5d931e7053a73bc9524975a5215; >= f7f510ec195781c857ab76366a3e1c59e1caae42, < 22c30022cde6e2c88612b3a499223cfa912f1bc7; >= f7f510ec195781c857ab76366a3e1c59e1caae42, < 318657b4c2077289659f1cd9e2a34f6a3b208e3e; >= f7f510ec195781c857ab76366a3e1c59e1caae42, < 2fc91f156b3f3446a1bce80cf4adedcbf41271c2; >= f7f510ec195781c857ab76366a3e1c59e1caae42, < ac52578d6e8d300dd50f790f29a24169b1edd26c | — | cvelist |
| Linux | 2.6.26 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-53998. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-53998.md Affected: Linux >= f7f510ec195781c857ab76366a3e1c59e1caae42, < 241ef15776a7c8505008db689175b320d345ecd3; >= f7f510ec195781c857ab76366a3e1c59e1caae42, < a43bcb0b661cbbf3ad797d2aee6b6fd06b8fc69d; >= f7f510ec195781c857ab76366a3e1c59e1caae42, < 77471e4912d3960dafe141e268c44be8024fe4dc; >= f7f510ec195781c857ab763… Fixed in: Linux 241ef15776a7c8505008db689175b320d345ecd3, Linux 77471e4912d3960dafe141e268c44be8024fe4dc, Linux 22c30022cde6e2c88612b3a499223cfa912f1bc7, Linux 318657b4c2077289659f1cd9e2a34f6a3b208e3e, Linux 2fc91f156b3f3446a1bce80cf4adedcbf41271c2 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Other
- https://git.kernel.org/stable/c/241ef15776a7c8505008db689175b320d345ecd3
- https://git.kernel.org/stable/c/a43bcb0b661cbbf3ad797d2aee6b6fd06b8fc69d
- https://git.kernel.org/stable/c/77471e4912d3960dafe141e268c44be8024fe4dc
- https://git.kernel.org/stable/c/c76d991b6f01a5d931e7053a73bc9524975a5215
- https://git.kernel.org/stable/c/22c30022cde6e2c88612b3a499223cfa912f1bc7
- https://git.kernel.org/stable/c/318657b4c2077289659f1cd9e2a34f6a3b208e3e
- https://git.kernel.org/stable/c/2fc91f156b3f3446a1bce80cf4adedcbf41271c2
- https://git.kernel.org/stable/c/ac52578d6e8d300dd50f790f29a24169b1edd26c
FAQ
Is CVE-2023-53998 being exploited?
There is no confirmed exploitation: CVE-2023-53998 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-53998?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2023-53998?
Linux >= f7f510ec195781c857ab76366a3e1c59e1caae42, < 241ef15776a7c8505008db689175b320d345ecd3; >= f7f510ec195781c857ab76366a3e1c59e1caae42, < a43bcb0b661cbbf3ad797d2aee6b6fd06b8fc69d; >= f7f510ec195781c857ab76366a3e1c59e1caae42, < 77471e4912d3960dafe141e268c44be8024fe4dc; >= f7f510ec195781c857ab76366a3e1c59e1caae42, < c76d991b6f01a5d931e7053a73bc9524975a5215; >= f7f510ec195781c857ab76366a3e1c59e1caae42, < 22c30022cde6e2c88612b3a499223cfa912f1bc7; >= f7f510ec195781c857ab76366a3e1c59e1caae42, < 318657b4c2077289659f1cd9e2a34f6a3b208e3e; >= f7f510ec195781c857ab76366a3e1c59e1caae42, < 2fc91f156b3f3446a1bce80cf4adedcbf41271c2; >= f7f510ec195781c857ab76366a3e1c59e1caae42, < ac52578d6e8d300dd50f790f29a24169b1edd26c; Linux 2.6.26.
Is there a fix for CVE-2023-53998?
Yes. Fixed in Linux 241ef15776a7c8505008db689175b320d345ecd3, Linux 77471e4912d3960dafe141e268c44be8024fe4dc, Linux 22c30022cde6e2c88612b3a499223cfa912f1bc7, Linux 318657b4c2077289659f1cd9e2a34f6a3b208e3e, Linux 2fc91f156b3f3446a1bce80cf4adedcbf41271c2. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2023-53998?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.