# CVE-2025-39951: um: virtio_uml: Fix use-after-free after put_device in probe

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- 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.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2025-10-04T07:31:11.684Z
- Modified: 2026-10-19T21:10:00.160Z
- Weaknesses: CWE-416
- Assigned by: Linux

## Description

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

um: virtio_uml: Fix use-after-free after put_device in probe

When register_virtio_device() fails in virtio_uml_probe(),
the code sets vu_dev->registered = 1 even though
the device was not successfully registered.
This can lead to use-after-free or other issues.

(As written by CVE List.)

## Affected

- Linux Linux: from 04e5b1fb01834a602acaae2276b67a783a8c6159 before 14c231959a16ca41bfdcaede72483362a8c645d7; from 04e5b1fb01834a602acaae2276b67a783a8c6159 before 5e94e44c9cb30d7a383d8ac227f24a8c9326b770; from 04e5b1fb01834a602acaae2276b67a783a8c6159 before aaf900a83508c8cd5cdf765e7749f9076196ec7f; from 04e5b1fb01834a602acaae2276b67a783a8c6159 before 4f364023ddcfe83f7073b973a9cb98584b7f2a46; from 04e5b1fb01834a602acaae2276b67a783a8c6159 before 00e98b5a69034b251bb36dc6e7123d7648e218e4; from 04e5b1fb01834a602acaae2276b67a783a8c6159 before c2ff91255e0157b356cff115d8dc3eeb5162edf2; from 04e5b1fb01834a602acaae2276b67a783a8c6159 before 7ebf70cf181651fe3f2e44e95e7e5073d594c9c0; 5.5 (not affected: before 5.5; from 5.10.245 up to 5.10.*; from 5.15.194 up to 5.15.*; from 6.1.154 up to 6.1.*; from 6.6.108 up to 6.6.*; from 6.12.49 up to 6.12.*; from 6.16.9 up to 6.16.*; from 6.17 up to *)
- linux linux_kernel: from 5.5 before 5.10.245; from 5.11 before 5.15.194; from 5.16 before 6.1.154; from 6.2 before 6.6.108; from 6.7 before 6.12.49; from 6.13 before 6.16.9; 6.17

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/14c231959a16ca41bfdcaede72483362a8c645d7> (patch)
- <https://git.kernel.org/stable/c/5e94e44c9cb30d7a383d8ac227f24a8c9326b770> (patch)
- <https://git.kernel.org/stable/c/aaf900a83508c8cd5cdf765e7749f9076196ec7f> (patch)
- <https://git.kernel.org/stable/c/4f364023ddcfe83f7073b973a9cb98584b7f2a46> (patch)
- <https://git.kernel.org/stable/c/00e98b5a69034b251bb36dc6e7123d7648e218e4> (patch)
- <https://git.kernel.org/stable/c/c2ff91255e0157b356cff115d8dc3eeb5162edf2> (patch)
- <https://git.kernel.org/stable/c/7ebf70cf181651fe3f2e44e95e7e5073d594c9c0> (patch)

## Sources

- CVE List: [CVE-2025-39951](https://www.cve.org/CVERecord?id=CVE-2025-39951), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-39951](https://nvd.nist.gov/vuln/detail/CVE-2025-39951), Public domain, modified 2026-10-19

---

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