hwrng: virtio - prevent use-after-free after a failed restore (Linux Linux)

CVE-2026-99684
Not available

At a glance

Source
NVD
EPSS
EPSS 0.18 % · percentile 8 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
Affected products
Linux · Linux
NVD status
Received

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.

References

European references

CERT-FR advisories

Affected products

ProductAffected versions
Linux · Linux
affected : ≥ 08e53fbdb85c0f6f45c0f7c1ea3defc1752a95ce < 4e16413f7bf306947c81b913330d54ed75646808
affected : ≥ 08e53fbdb85c0f6f45c0f7c1ea3defc1752a95ce < 2aecdb2c490384618057535d461a4fcd19f64b7c
affected : ≥ 08e53fbdb85c0f6f45c0f7c1ea3defc1752a95ce < e8a75bd0e3c3270076cdf8d841ffe49c35516096
affected : ≥ 08e53fbdb85c0f6f45c0f7c1ea3defc1752a95ce < eb07306b576b6545323abb806e2f840d2de67dd4
affected : ≥ 08e53fbdb85c0f6f45c0f7c1ea3defc1752a95ce < ec81f97c6b13b839e5800cdade1e5b187b9b2738
affected : ≥ 08e53fbdb85c0f6f45c0f7c1ea3defc1752a95ce < 42f2f4ee9d6e75b8b55b9108f6f5cf254425db64
affected : ≥ 08e53fbdb85c0f6f45c0f7c1ea3defc1752a95ce < b18bda055c0d3e44fdf419e2739d92ea92a6f1d2
affected : ≥ 08e53fbdb85c0f6f45c0f7c1ea3defc1752a95ce < 0f7bf47f5a0cc26320aa4b14f4504d03a07f4b74
Other versions : unaffected
Linux · Linux
affected : 3.16
unaffected : ≥ 0 < 3.16
unaffected : ≥ 5.10.275 ≤ 5.10.*
unaffected : ≥ 5.15.226 ≤ 5.15.*
unaffected : ≥ 6.1.193 ≤ 6.1.*
unaffected : ≥ 6.6.163 ≤ 6.6.*
unaffected : ≥ 6.12.118 ≤ 6.12.*
unaffected : ≥ 6.18.64 ≤ 6.18.*
unaffected : ≥ 7.3.5 ≤ 7.3.*
unaffected : ≥ 7.4-rc2 ≤ *
Other versions : affected

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD