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

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-02)
- Published: 2026-11-20T05:50:30.317Z
- Modified: 2026-11-23T08:18:09.257Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 08e53fbdb85c0f6f45c0f7c1ea3defc1752a95ce before 4e16413f7bf306947c81b913330d54ed75646808; from 08e53fbdb85c0f6f45c0f7c1ea3defc1752a95ce before 2aecdb2c490384618057535d461a4fcd19f64b7c; from 08e53fbdb85c0f6f45c0f7c1ea3defc1752a95ce before e8a75bd0e3c3270076cdf8d841ffe49c35516096; from 08e53fbdb85c0f6f45c0f7c1ea3defc1752a95ce before eb07306b576b6545323abb806e2f840d2de67dd4; from 08e53fbdb85c0f6f45c0f7c1ea3defc1752a95ce before ec81f97c6b13b839e5800cdade1e5b187b9b2738; from 08e53fbdb85c0f6f45c0f7c1ea3defc1752a95ce before 42f2f4ee9d6e75b8b55b9108f6f5cf254425db64; from 08e53fbdb85c0f6f45c0f7c1ea3defc1752a95ce before b18bda055c0d3e44fdf419e2739d92ea92a6f1d2; from 08e53fbdb85c0f6f45c0f7c1ea3defc1752a95ce before 0f7bf47f5a0cc26320aa4b14f4504d03a07f4b74; 3.16 (not affected: before 3.16; from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.118 up to 6.12.*; from 6.18.64 up to 6.18.*; from 7.3.5 up to 7.3.*; from 7.4-rc2 up to *)

## References

- <https://git.kernel.org/stable/c/4e16413f7bf306947c81b913330d54ed75646808>
- <https://git.kernel.org/stable/c/2aecdb2c490384618057535d461a4fcd19f64b7c>
- <https://git.kernel.org/stable/c/e8a75bd0e3c3270076cdf8d841ffe49c35516096>
- <https://git.kernel.org/stable/c/eb07306b576b6545323abb806e2f840d2de67dd4>
- <https://git.kernel.org/stable/c/ec81f97c6b13b839e5800cdade1e5b187b9b2738>
- <https://git.kernel.org/stable/c/42f2f4ee9d6e75b8b55b9108f6f5cf254425db64>
- <https://git.kernel.org/stable/c/b18bda055c0d3e44fdf419e2739d92ea92a6f1d2>
- <https://git.kernel.org/stable/c/0f7bf47f5a0cc26320aa4b14f4504d03a07f4b74>

## Sources

- CVE List: [CVE-2026-99684](https://www.cve.org/CVERecord?id=CVE-2026-99684), CVE Terms of Use, modified 2026-11-23
- NVD: [CVE-2026-99684](https://nvd.nist.gov/vuln/detail/CVE-2026-99684), Public domain, modified 2026-11-23

---

Page: https://cve.day/CVE-2026-99684 · Whole record: https://cve.day/CVE-2026-99684.json · Rebuilt by cve.day 2026-11-25T22:59:52.307Z
