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

Published Nov 20, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

hwrng: virtio - prevent use-after-free after a failed restore

removecommon() frees the driver data during freeze, but does not clear vdev->priv, which points to freed memory. If probecommon() then fails during restore, a later remove or freeze can dereference the dangling pointer.

Clear vdev->priv on the probecommon() error cleanup path and before freeing the driver data in removecommon(). Also reset the device and return early from removecommon() if vdev->priv is already NULL for a safe teardown after a failed restore.

Affected Software

7 affected componentsFixes available
linux/kernel>=3.16.0<6.12.118
6.12.118
linux/kernel>=6.13.0<6.18.64
6.18.64
linux/kernel>=6.19.0<7.3.5
7.3.5
debian/linux*
debian/linux*
debian/linux*
debian/linux<=6.1.176-1, <=6.1.192-2, <=6.12.107-1, <=6.12.117-1, <=7.3.4-1
7.3.5-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.118
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.64
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.5
  4. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.5-1
  5. Compensating control

    In the virtio hwrng driver, clear vdev->priv on the probe_common() error cleanup path and before freeing driver data in remove_common(); make remove_common() return early when vdev->priv is NULL.

Event History

Nov 20, 2026
CVE Published
via MITRE·05:50 AM
Data Sourced
via MITRE·05:50 AM
Description
Data Sourced
via OSV·05:50 AM
DescriptionAffected Software
Data Sourced
via NVD·06:18 AM
Description

Frequently Asked Questions

1

What conditions are required to trigger the issue?

The affected virtio hardware RNG driver must be frozen, freeing its driver data, followed by a failed restore in which probe_common() fails. A later remove or freeze operation can then dereference the stale vdev->priv pointer.

2

Which systems are exposed?

Systems using the Linux kernel's virtio hardware RNG driver are relevant. The described failure path specifically involves device freeze and restore handling, rather than ordinary operation alone.

3

What happens if restoration fails?

Before the fix, vdev->priv can continue to reference freed driver data after the failed restore. Subsequent teardown or freeze processing can dereference that dangling pointer, causing a use-after-free.

4

What mitigation is described when the failed-restore state is encountered?

The fix clears vdev->priv during probe error cleanup and before freeing driver data. It also resets the device and returns early from remove_common() when vdev->priv is already NULL, allowing safe teardown after a failed restore.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203