VDB

CVE-2023-53998

CVE-2023-53998 PUBLISHED

hwrng: virtio - Fix race on data_avail and actual data

Reported by linux · Published December 24, 2025

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

EPSS 0.21% · 11.3th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-libbpf-staticAmazon Linux6.1.41-63.109.amzn2023
kernel-libbpf-develAmazon Linux6.1.41-63.109.amzn2023
kernelAmazon Linux6.1.41-63.109.amzn2023, 4.14.344-262.563.amzn2
bpftoolAmazon Linux6.1.41-63.109.amzn2023
kernel-libbpfAmazon Linux6.1.41-63.109.amzn2023
perfAmazon Linux4.14.344-262.563.amzn2
python-perfAmazon Linux4.14.344-262.563.amzn2
kernel-tools-develAmazon Linux6.1.41-63.109.amzn2023

Risk scores

EPSS Score
0.21%
11.3th percentile

Affected products

VendorProductVersions
LinuxLinuxf7f510ec195781c857ab76366a3e1c59e1caae42, f7f510ec195781c857ab76366a3e1c59e1caae42, f7f510ec195781c857ab76366a3e1c59e1caae42
LinuxLinux2.6.26, 0, 4.19.291
amazon:2023kernel-libbpf-static0
amazon:2023kernel-libbpf-devel0
amazon:2023kernel0
amazon:2023bpftool0
amazon:2023kernel-libbpf0
amazon:2perf0
amazon:2kernel0
amazon:2python-perf0
amazon:2023kernel-tools-devel0
linuxlinux_kernel2.6.26, 2.6.26, 2.6.26
amazon:2023python3-perf0
amazon:2023kernel-devel0
amazon:2023kernel-livepatch-6.1.41-63.1090
amazon:2kernel-livepatch-4.14.344-262.5630
amazon:2kernel-devel0
LinuxLinux5.4.251, 5.10.188, 5.15.121
amazon:2kernel-tools-devel0
amazon:2023perf0

…and 4 more

Timeline

  • Dec 24, 2025 CVE Published
  • Dec 28, 2025 EPSS Score (29 in total, the first dated here)
  • Jun 2, 2026 Security Advisory (116 in total, the first dated here)
  • Jul 28, 2026 Coalition ESS Score
  • Oct 2, 2026 Distribution Patch (111 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2023-53998
vulnetix vdb fixes CVE-2023-53998

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-53998/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›