CVE-2023-53998
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-libbpf-static | Amazon Linux | 6.1.41-63.109.amzn2023 |
| kernel-libbpf-devel | Amazon Linux | 6.1.41-63.109.amzn2023 |
| kernel | Amazon Linux | 6.1.41-63.109.amzn2023, 4.14.344-262.563.amzn2 |
| bpftool | Amazon Linux | 6.1.41-63.109.amzn2023 |
| kernel-libbpf | Amazon Linux | 6.1.41-63.109.amzn2023 |
| perf | Amazon Linux | 4.14.344-262.563.amzn2 |
| python-perf | Amazon Linux | 4.14.344-262.563.amzn2 |
| kernel-tools-devel | Amazon Linux | 6.1.41-63.109.amzn2023 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | f7f510ec195781c857ab76366a3e1c59e1caae42, f7f510ec195781c857ab76366a3e1c59e1caae42, f7f510ec195781c857ab76366a3e1c59e1caae42 |
| Linux | Linux | 2.6.26, 0, 4.19.291 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2 | perf | 0 |
| amazon:2 | kernel | 0 |
| amazon:2 | python-perf | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| linux | linux_kernel | 2.6.26, 2.6.26, 2.6.26 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-livepatch-6.1.41-63.109 | 0 |
| amazon:2 | kernel-livepatch-4.14.344-262.563 | 0 |
| amazon:2 | kernel-devel | 0 |
| Linux | Linux | 5.4.251, 5.10.188, 5.15.121 |
| amazon:2 | kernel-tools-devel | 0 |
| amazon:2023 | perf | 0 |
…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