{"id":"CVE-2026-99684","summary":"hwrng: virtio - prevent use-after-free after a failed restore","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nhwrng: virtio - prevent use-after-free after a failed restore\n\nremove_common() frees the driver data during freeze, but does not clear\nvdev-\u003epriv, which points to freed memory. If probe_common() then fails\nduring restore, a later remove or freeze can dereference the dangling\npointer.\n\nClear vdev-\u003epriv on the probe_common() error cleanup path and before\nfreeing the driver data in remove_common(). Also reset the device and\nreturn early from remove_common() if vdev-\u003epriv is already NULL for a\nsafe teardown after a failed restore.","modified":"2026-11-23T10:02:27.091807810Z","published":"2026-11-20T05:50:30.317Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99684.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0f7bf47f5a0cc26320aa4b14f4504d03a07f4b74"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2aecdb2c490384618057535d461a4fcd19f64b7c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/42f2f4ee9d6e75b8b55b9108f6f5cf254425db64"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4e16413f7bf306947c81b913330d54ed75646808"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b18bda055c0d3e44fdf419e2739d92ea92a6f1d2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e8a75bd0e3c3270076cdf8d841ffe49c35516096"},{"type":"WEB","url":"https://git.kernel.org/stable/c/eb07306b576b6545323abb806e2f840d2de67dd4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ec81f97c6b13b839e5800cdade1e5b187b9b2738"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99684.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99684"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"08e53fbdb85c0f6f45c0f7c1ea3defc1752a95ce"},{"fixed":"4e16413f7bf306947c81b913330d54ed75646808"},{"fixed":"2aecdb2c490384618057535d461a4fcd19f64b7c"},{"fixed":"e8a75bd0e3c3270076cdf8d841ffe49c35516096"},{"fixed":"eb07306b576b6545323abb806e2f840d2de67dd4"},{"fixed":"ec81f97c6b13b839e5800cdade1e5b187b9b2738"},{"fixed":"42f2f4ee9d6e75b8b55b9108f6f5cf254425db64"},{"fixed":"b18bda055c0d3e44fdf419e2739d92ea92a6f1d2"},{"fixed":"0f7bf47f5a0cc26320aa4b14f4504d03a07f4b74"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-99684.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.16.0"},{"fixed":"5.10.275"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.118"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.64"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-99684.json"}}],"schema_version":"1.9.2"}