CVE-2023-53998

Linux Kernel - Race Condition in Virtio RNG Data Availability Handling

Title source: llm
STIX 2.1

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

Scores

EPSS 0.0018
EPSS Percentile 8.3%

Details

Status published
Products (25)
linux/Kernel 2.6.26 - 4.19.291linux
linux/Kernel 4.20.0 - 5.4.251linux
linux/Kernel 5.11.0 - 5.15.121linux
linux/Kernel 5.16.0 - 6.1.39linux
linux/Kernel 5.5.0 - 5.10.188linux
linux/Kernel 6.2.0 - 6.3.13linux
linux/Kernel 6.4.0 - 6.4.4linux
Linux/Linux < 2.6.26
Linux/Linux 2.6.26
Linux/Linux 4.19.291 - 4.19.*
... and 15 more
Published Dec 24, 2025
Tracked Since Feb 18, 2026