What’s Vulnerable › Vulnerabilities

CVE-2026-99684: hwrng: virtio - prevent use-after-free after a failed restore

Description

In the Linux kernel, the following vulnerability has been resolved: hwrng: virtio - prevent use-after-free after a failed restore remove_common() frees the driver data during freeze, but does not clear vdev->priv, which points to freed memory. If probe_common() then fails during restore, a later remove or freeze can dereference the dangling pointer. Clear vdev->priv on the probe_common() error cleanup path and before freeing the driver data in remove_common(). Also reset the device and return early from remove_common() if vdev->priv is already NULL for a safe teardown after a failed restore.

Affected products

How to fix

Upgrade to a fixed version: Linux 7.4-rc2. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-99684 or the next vulnerability affects your stack