# CVE-2023-53998: hwrng: virtio - Fix race on data\_avail and actual data

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2025-12-24T10:55:34.856Z
- **Modified:** 2026-06-17T06:46:30.587Z

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

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

- Linux: \>= f7f510ec195781c857ab76366a3e1c59e1caae42, \< 241ef15776a7c8505008db689175b320d345ecd3; \>= f7f510ec195781c857ab76366a3e1c59e1caae42, \< a43bcb0b661cbbf3ad797d2aee6b6fd06b8fc69d; \>= f7f510ec195781c857ab76366a3e1c59e1caae42, \< 77471e4912d3960dafe141e268c44be8024fe4dc; \>= f7f510ec195781c857ab76366a3e1c59e1caae42, \< c76d991b6f01a5d931e7053a73bc9524975a5215; \>= f7f510ec195781c857ab76366a3e1c59e1caae42, \< 22c30022cde6e2c88612b3a499223cfa912f1bc7; \>= f7f510ec195781c857ab76366a3e1c59e1caae42, \< 318657b4c2077289659f1cd9e2a34f6a3b208e3e; \>= f7f510ec195781c857ab76366a3e1c59e1caae42, \< 2fc91f156b3f3446a1bce80cf4adedcbf41271c2; \>= f7f510ec195781c857ab76366a3e1c59e1caae42, \< ac52578d6e8d300dd50f790f29a24169b1edd26c (cvelist)
- Linux: 2.6.26 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

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

## References

- other: <https://git.kernel.org/stable/c/241ef15776a7c8505008db689175b320d345ecd3>
- other: <https://git.kernel.org/stable/c/a43bcb0b661cbbf3ad797d2aee6b6fd06b8fc69d>
- other: <https://git.kernel.org/stable/c/77471e4912d3960dafe141e268c44be8024fe4dc>
- other: <https://git.kernel.org/stable/c/c76d991b6f01a5d931e7053a73bc9524975a5215>
- other: <https://git.kernel.org/stable/c/22c30022cde6e2c88612b3a499223cfa912f1bc7>
- other: <https://git.kernel.org/stable/c/318657b4c2077289659f1cd9e2a34f6a3b208e3e>
- other: <https://git.kernel.org/stable/c/2fc91f156b3f3446a1bce80cf4adedcbf41271c2>
- other: <https://git.kernel.org/stable/c/ac52578d6e8d300dd50f790f29a24169b1edd26c>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-53998>

HTML: <https://flawdb.com/CVE-2023-53998> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-53998>
