In the Linux kernel, the following vulnerability has been resolved: hwrng: virtio: clamp device-reported used.len at copy_data() random_recv_done()… (CVE-2026-64456)
A vulnerability in the Linux kernel's virtio-rng driver allowed a malicious or buggy virtio-rng backend to report an excessive used.len value, causing an out-of-bounds read past an internal buffer. This could lead to guest kernel memory disclosure via the /dev/hwrng interface. The issue affects the guest environment and can leak adjacent kernel slab memory into the guest's random number generator output. The vulnerability has been resolved by clamping the device-reported length and adding bounds checks.
AI Analysis
Technical Summary
The Linux kernel's virtio-rng driver stored the device-reported used.len value directly without validating it against the buffer size, leading to an out-of-bounds read in copy_data(). A malicious or buggy virtio-rng backend could set used.len beyond the size of the internal data buffer, causing memcpy() to read past the buffer into adjacent kmalloc slab memory. This memory is then mixed into the guest RNG output and can be directly read by guest root via /dev/hwrng. This creates a memory safety issue and a potential cross-boundary information leak in confidential compute environments. The vulnerability was confirmed by KASAN testing and fixed by clamping the used.len value and adding array_index_nospec() to prevent speculative out-of-bounds access.
Potential Impact
The vulnerability allows a malicious or buggy virtio-rng backend to cause an out-of-bounds read of guest kernel memory, contaminating the guest's random number generator output with adjacent slab data. In confidential compute scenarios, a malicious hypervisor combined with compromised guest root can use this to leak guest kernel heap contents. The issue compromises memory safety and can lead to information disclosure within the guest. However, many confidential compute guests disable virtio-rng, limiting the attack surface. No known exploits are reported in the wild.
Mitigation Recommendations
A fix is available that clamps the device-reported used.len at the point of use and applies array_index_nospec() to prevent out-of-bounds access. Users should apply the official Linux kernel patches that address this issue. Since this is a kernel vulnerability, upgrading to a patched kernel version is the recommended remediation. No additional mitigation is required if the kernel is updated. Patch status is not explicitly confirmed in the provided data; check the vendor advisory for current remediation guidance.
In the Linux kernel, the following vulnerability has been resolved: hwrng: virtio: clamp device-reported used.len at copy_data() random_recv_done()… (CVE-2026-64456)
Description
A vulnerability in the Linux kernel's virtio-rng driver allowed a malicious or buggy virtio-rng backend to report an excessive used.len value, causing an out-of-bounds read past an internal buffer. This could lead to guest kernel memory disclosure via the /dev/hwrng interface. The issue affects the guest environment and can leak adjacent kernel slab memory into the guest's random number generator output. The vulnerability has been resolved by clamping the device-reported length and adding bounds checks.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel's virtio-rng driver stored the device-reported used.len value directly without validating it against the buffer size, leading to an out-of-bounds read in copy_data(). A malicious or buggy virtio-rng backend could set used.len beyond the size of the internal data buffer, causing memcpy() to read past the buffer into adjacent kmalloc slab memory. This memory is then mixed into the guest RNG output and can be directly read by guest root via /dev/hwrng. This creates a memory safety issue and a potential cross-boundary information leak in confidential compute environments. The vulnerability was confirmed by KASAN testing and fixed by clamping the used.len value and adding array_index_nospec() to prevent speculative out-of-bounds access.
Potential Impact
The vulnerability allows a malicious or buggy virtio-rng backend to cause an out-of-bounds read of guest kernel memory, contaminating the guest's random number generator output with adjacent slab data. In confidential compute scenarios, a malicious hypervisor combined with compromised guest root can use this to leak guest kernel heap contents. The issue compromises memory safety and can lead to information disclosure within the guest. However, many confidential compute guests disable virtio-rng, limiting the attack surface. No known exploits are reported in the wild.
Mitigation Recommendations
A fix is available that clamps the device-reported used.len at the point of use and applies array_index_nospec() to prevent out-of-bounds access. Users should apply the official Linux kernel patches that address this issue. Since this is a kernel vulnerability, upgrading to a patched kernel version is the recommended remediation. No additional mitigation is required if the kernel is updated. Patch status is not explicitly confirmed in the provided data; check the vendor advisory for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-7vrc-rff8-p548
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-64456"]
- Ecosystems
- []
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a6542089c2644c7f8082fc7
Added to database: 07/25/2026, 23:08:56 UTC
Last enriched: 07/25/2026, 23:20:58 UTC
Last updated: 07/26/2026, 04:31:53 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.