CVE-2025-39951
published high CVSS 3.1 · 7.8um: virtio_uml: Fix use-after-free after put_device in probe
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux04e5b1fb01834a602acaae2276b67a783a8c6159 to < 14c231959a16ca41bfdcaede72483362a8c645d7 · 04e5b1fb01834a602acaae2276b67a783a8c6159 to < 5e94e44c9cb30d7a383d8ac227f24a8c9326b770 · 04e5b1fb01834a602acaae2276b67a783a8c6159 to < aaf900a83508c8cd5cdf765e7749f9076196ec7f · 04e5b1fb01834a602acaae2276b67a783a8c6159 to < 4f364023ddcfe83f7073b973a9cb98584b7f2a46 · 04e5b1fb01834a602acaae2276b67a783a8c6159 to < 00e98b5a69034b251bb36dc6e7123d7648e218e4 · 04e5b1fb01834a602acaae2276b67a783a8c6159 to < c2ff91255e0157b356cff115d8dc3eeb5162edf2 · 04e5b1fb01834a602acaae2276b67a783a8c6159 to < 7ebf70cf181651fe3f2e44e95e7e5073d594c9c0 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.5 (affected) · 0 to < 5.5 (unaffected · semver) · 5.10.245 through 5.10.* (unaffected · semver) · 5.15.194 through 5.15.* (unaffected · semver) · 6.1.154 through 6.1.* (unaffected · semver) · 6.6.108 through 6.6.* (unaffected · semver) · 6.12.49 through 6.12.* (unaffected · semver) · 6.16.9 through 6.16.* (unaffected · semver) · 6.17 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Debian | bookworm | linux | Advisory build | 6.1.158-1 | DSA-6053-1 |
| Ubuntu | focal | linux-aws-5.15 | Advisory build | 5.15.0-1100.107~20.04.2 | USN-8033-4 |
| Debian | bullseye | linux | Advisory build | 5.10.247-1 | DLA-4404-1 |
| Debian | bullseye | linux-6.1 | Advisory build | 6.1.158-1~deb11u1 | DLA-4379-1 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | focal | linux-aws-5.15-cloud-tools-5.15.0-1100 | Advisory build | 5.15.0-1100.107~20.04.2 | USN-8033-4 |
| Ubuntu | focal | linux-aws-5.15-headers-5.15.0-1100 | Advisory build | 5.15.0-1100.107~20.04.2 | USN-8033-4 |
| Ubuntu | focal | linux-aws-5.15-tools-5.15.0-1100 | Advisory build | 5.15.0-1100.107~20.04.2 | USN-8033-4 |
| Ubuntu | focal | linux-azure-5.15 | Advisory build | 5.15.0-1110.119~20.04.1 | USN-8243-1 |
| Ubuntu | focal | linux-azure-5.15-cloud-tools-5.15.0-1110 | Advisory build | 5.15.0-1110.119~20.04.1 | USN-8243-1 |
| Ubuntu | focal | linux-azure-5.15-headers-5.15.0-1110 | Advisory build | 5.15.0-1110.119~20.04.1 | USN-8243-1 |
| Ubuntu | focal | linux-azure-5.15-tools-5.15.0-1110 | Advisory build | 5.15.0-1110.119~20.04.1 | USN-8243-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1052-nvidia-tegra | Advisory build | 5.15.0-1052.52~20.04.2 | USN-8034-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1052-nvidia-tegra-rt | Advisory build | 5.15.0-1052.52~20.04.2 | USN-8034-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1094-ibm | Advisory build | 5.15.0-1094.97~20.04.1 | USN-8033-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1095-intel-iotg | Advisory build | 5.15.0-1095.101~20.04.1 | USN-8033-7 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1097-oracle | Advisory build | 5.15.0-1097.103~20.04.1 | USN-8033-5 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1100-aws | Advisory build | 5.15.0-1100.107~20.04.2 | USN-8033-4 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1100-gcp | Advisory build | 5.15.0-1100.109~20.04.1 | USN-8033-5 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1110-azure | Advisory build | 5.15.0-1110.119~20.04.1 | USN-8243-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-170-generic | Advisory build | 5.15.0-170.180~20.04.3 | USN-8033-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-170-generic-64k | Advisory build | 5.15.0-170.180~20.04.3 | USN-8033-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-170-generic-lpae | Advisory build | 5.15.0-170.180~20.04.3 | USN-8033-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-170-lowlatency | Advisory build | 5.15.0-170.180~20.04.1 | USN-8033-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-170-lowlatency-64k | Advisory build | 5.15.0-170.180~20.04.1 | USN-8033-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1095-intel-iotg | Advisory build | 5.15.0-1095.101~20.04.1 | USN-8033-7 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1100-aws | Advisory build | 5.15.0-1100.107~20.04.2 | USN-8033-4 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1110-azure | Advisory build | 5.15.0-1110.119~20.04.1 | USN-8243-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-170-generic | Advisory build | 5.15.0-170.180~20.04.3 | USN-8033-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-170-lowlatency | Advisory build | 5.15.0-170.180~20.04.1 | USN-8033-1 |
| Ubuntu | focal | linux-gcp-5.15 | Advisory build | 5.15.0-1100.109~20.04.1 | USN-8033-5 |
| Ubuntu | focal | linux-gcp-5.15-headers-5.15.0-1100 | Advisory build | 5.15.0-1100.109~20.04.1 | USN-8033-5 |
| Ubuntu | focal | linux-gcp-5.15-tools-5.15.0-1100 | Advisory build | 5.15.0-1100.109~20.04.1 | USN-8033-5 |
| Ubuntu | focal | linux-headers-5.15.0-1052-nvidia-tegra | Advisory build | 5.15.0-1052.52~20.04.2 | USN-8034-1 |
| Ubuntu | focal | linux-headers-5.15.0-1052-nvidia-tegra-rt | Advisory build | 5.15.0-1052.52~20.04.2 | USN-8034-1 |
| Ubuntu | focal | linux-headers-5.15.0-1094-ibm | Advisory build | 5.15.0-1094.97~20.04.1 | USN-8033-1 |
| Ubuntu | focal | linux-headers-5.15.0-1095-intel-iotg | Advisory build | 5.15.0-1095.101~20.04.1 | USN-8033-7 |
| Ubuntu | focal | linux-headers-5.15.0-1097-oracle | Advisory build | 5.15.0-1097.103~20.04.1 | USN-8033-5 |
| Ubuntu | focal | linux-headers-5.15.0-1100-aws | Advisory build | 5.15.0-1100.107~20.04.2 | USN-8033-4 |
| Ubuntu | focal | linux-headers-5.15.0-1100-gcp | Advisory build | 5.15.0-1100.109~20.04.1 | USN-8033-5 |
| Ubuntu | focal | linux-headers-5.15.0-1110-azure | Advisory build | 5.15.0-1110.119~20.04.1 | USN-8243-1 |
| Ubuntu | focal | linux-headers-5.15.0-170-generic | Advisory build | 5.15.0-170.180~20.04.3 | USN-8033-1 |
| Ubuntu | focal | linux-headers-5.15.0-170-generic-64k | Advisory build | 5.15.0-170.180~20.04.3 | USN-8033-1 |
| Ubuntu | focal | linux-headers-5.15.0-170-generic-lpae | Advisory build | 5.15.0-170.180~20.04.3 | USN-8033-1 |
| Ubuntu | focal | linux-headers-5.15.0-170-lowlatency | Advisory build | 5.15.0-170.180~20.04.1 | USN-8033-1 |
| Ubuntu | focal | linux-headers-5.15.0-170-lowlatency-64k | Advisory build | 5.15.0-170.180~20.04.1 | USN-8033-1 |
| Ubuntu | focal | linux-hwe-5.15 | Advisory build | 5.15.0-170.180~20.04.3 | USN-8033-1 |
| Ubuntu | focal | linux-hwe-5.15-cloud-tools-5.15.0-170 | Advisory build | 5.15.0-170.180~20.04.3 | USN-8033-1 |
| Ubuntu | focal | linux-hwe-5.15-headers-5.15.0-170 | Advisory build | 5.15.0-170.180~20.04.3 | USN-8033-1 |
| Ubuntu | focal | linux-hwe-5.15-tools-5.15.0-170 | Advisory build | 5.15.0-170.180~20.04.3 | USN-8033-1 |
| Ubuntu | focal | linux-ibm-5.15 | Advisory build | 5.15.0-1094.97~20.04.1 | USN-8033-1 |
| Ubuntu | focal | linux-ibm-5.15-headers-5.15.0-1094 | Advisory build | 5.15.0-1094.97~20.04.1 | USN-8033-1 |
| Ubuntu | focal | linux-ibm-5.15-source-5.15.0 | Advisory build | 5.15.0-1094.97~20.04.1 | USN-8033-1 |
| Ubuntu | focal | linux-ibm-5.15-tools-5.15.0-1094 | Advisory build | 5.15.0-1094.97~20.04.1 | USN-8033-1 |
| Ubuntu | focal | linux-image-5.15.0-170-generic | Advisory build | 5.15.0-170.180~20.04.3 | USN-8033-1 |
| Ubuntu | focal | linux-image-5.15.0-170-generic-lpae | Advisory build | 5.15.0-170.180~20.04.3 | USN-8033-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1052-nvidia-tegra | Advisory build | 5.15.0-1052.52~20.04.2 | USN-8034-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1052-nvidia-tegra-rt | Advisory build | 5.15.0-1052.52~20.04.2 | USN-8034-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1094-ibm | Advisory build | 5.15.0-1094.97~20.04.1 | USN-8033-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1095-intel-iotg | Advisory build | 5.15.0-1095.101~20.04.1 | USN-8033-7 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1097-oracle | Advisory build | 5.15.0-1097.103~20.04.1 | USN-8033-5 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1100-aws | Advisory build | 5.15.0-1100.107~20.04.2 | USN-8033-4 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1100-gcp | Advisory build | 5.15.0-1100.109~20.04.1 | USN-8033-5 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1110-azure | Advisory build | 5.15.0-1110.119~20.04.1 | USN-8243-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-170-generic | Advisory build | 5.15.0-170.180~20.04.3 | USN-8033-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-170-generic-64k | Advisory build | 5.15.0-170.180~20.04.3 | USN-8033-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-170-lowlatency | Advisory build | 5.15.0-170.180~20.04.1 | USN-8033-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-170-lowlatency-64k | Advisory build | 5.15.0-170.180~20.04.1 | USN-8033-1 |
| Ubuntu | focal | linux-intel-iotg-5.15 | Advisory build | 5.15.0-1095.101~20.04.1 | USN-8033-7 |
| Ubuntu | focal | linux-intel-iotg-5.15-cloud-tools-5.15.0-1095 | Advisory build | 5.15.0-1095.101~20.04.1 | USN-8033-7 |
| Ubuntu | focal | linux-intel-iotg-5.15-cloud-tools-common | Advisory build | 5.15.0-1095.101~20.04.1 | USN-8033-7 |
| Ubuntu | focal | linux-intel-iotg-5.15-headers-5.15.0-1095 | Advisory build | 5.15.0-1095.101~20.04.1 | USN-8033-7 |
| Ubuntu | focal | linux-intel-iotg-5.15-tools-5.15.0-1095 | Advisory build | 5.15.0-1095.101~20.04.1 | USN-8033-7 |
| Ubuntu | focal | linux-intel-iotg-5.15-tools-common | Advisory build | 5.15.0-1095.101~20.04.1 | USN-8033-7 |
| Ubuntu | focal | linux-intel-iotg-5.15-tools-host | Advisory build | 5.15.0-1095.101~20.04.1 | USN-8033-7 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15 | Advisory build | 5.15.0-170.180~20.04.1 | USN-8033-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-cloud-tools-5.15.0-170 | Advisory build | 5.15.0-170.180~20.04.1 | USN-8033-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-headers-5.15.0-170 | Advisory build | 5.15.0-170.180~20.04.1 | USN-8033-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-tools-5.15.0-170 | Advisory build | 5.15.0-170.180~20.04.1 | USN-8033-1 |
| Ubuntu | focal | linux-modules-5.15.0-1052-nvidia-tegra | Advisory build | 5.15.0-1052.52~20.04.2 | USN-8034-1 |
| Ubuntu | focal | linux-modules-5.15.0-1052-nvidia-tegra-rt | Advisory build | 5.15.0-1052.52~20.04.2 | USN-8034-1 |
| Ubuntu | focal | linux-modules-5.15.0-1094-ibm | Advisory build | 5.15.0-1094.97~20.04.1 | USN-8033-1 |
| Ubuntu | focal | linux-modules-5.15.0-1095-intel-iotg | Advisory build | 5.15.0-1095.101~20.04.1 | USN-8033-7 |
| Ubuntu | focal | linux-modules-5.15.0-1097-oracle | Advisory build | 5.15.0-1097.103~20.04.1 | USN-8033-5 |
| Ubuntu | focal | linux-modules-5.15.0-1100-aws | Advisory build | 5.15.0-1100.107~20.04.2 | USN-8033-4 |
| Ubuntu | focal | linux-modules-5.15.0-1100-gcp | Advisory build | 5.15.0-1100.109~20.04.1 | USN-8033-5 |
| Ubuntu | focal | linux-modules-5.15.0-1110-azure | Advisory build | 5.15.0-1110.119~20.04.1 | USN-8243-1 |
| Ubuntu | focal | linux-modules-5.15.0-170-generic | Advisory build | 5.15.0-170.180~20.04.3 | USN-8033-1 |
| Ubuntu | focal | linux-modules-5.15.0-170-generic-64k | Advisory build | 5.15.0-170.180~20.04.3 | USN-8033-1 |
| Ubuntu | focal | linux-modules-5.15.0-170-generic-lpae | Advisory build | 5.15.0-170.180~20.04.3 | USN-8033-1 |
| Ubuntu | focal | linux-modules-5.15.0-170-lowlatency | Advisory build | 5.15.0-170.180~20.04.1 | USN-8033-1 |
| Ubuntu | focal | linux-modules-5.15.0-170-lowlatency-64k | Advisory build | 5.15.0-170.180~20.04.1 | USN-8033-1 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1052-nvidia-tegra | Advisory build | 5.15.0-1052.52~20.04.2 | USN-8034-1 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1094-ibm | Advisory build | 5.15.0-1094.97~20.04.1 | USN-8033-1 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1095-intel-iotg | Advisory build | 5.15.0-1095.101~20.04.1 | USN-8033-7 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1097-oracle | Advisory build | 5.15.0-1097.103~20.04.1 | USN-8033-5 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1100-aws | Advisory build | 5.15.0-1100.107~20.04.2 | USN-8033-4 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1100-gcp | Advisory build | 5.15.0-1100.109~20.04.1 | USN-8033-5 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1110-azure | Advisory build | 5.15.0-1110.119~20.04.1 | USN-8243-1 |
| Ubuntu | focal | linux-modules-extra-5.15.0-170-generic | Advisory build | 5.15.0-170.180~20.04.3 | USN-8033-1 |
| Ubuntu | focal | linux-modules-involflt-5.15.0-1110-azure | Advisory build | 5.15.0-1110.119~20.04.1 | USN-8243-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerable code is a UML platform/virtio driver probe path reached through local device configuration (kernel command line, devicetree, mconsole, or sysfs driver bind), not through any remote protocol; the vhost-user peer is a local UNIX socket. No network-supplied data influences the failing call. AC:L - The `register_virtio_device()` failure can be produced deterministically via the OF path (`virtio_device_of_init()` returns -EINVAL when the parent node has more than one available child) and can also be induced by attacker-driven memory pressure on the `ida_alloc`/`dev_set_name`/`device_add` allocations; no condition outside the attacker's influence must hold. PR:L - A local unprivileged account on the UML instance suffices to drive the allocation-failure condition that makes the probe fail, and the resulting write-after-free happens with no further authorization check; no capability is validated in `virtio_uml_probe()` itself. UI:N - The faulty path executes automatically during driver probe/bind; nothing requires a victim to open a file, mount a filesystem, or otherwise interact. S:U - The corrupted memory and the vulnerable code are both in the kernel's own heap and security authority; there is no crossing of a VM, IOMMU, or sandbox boundary. C:H - The use-after-free leaves a freed `struct virtio_uml_device` (and a dangling `platform_set_drvdata` pointer) in play; an attacker who reclaims the slab slot with a chosen object gains a read primitive over kernel memory contents. I:H - The code performs an out-of-lifetime read-modify-write into the freed object, so heap grooming lets an attacker corrupt an unrelated reclaimed kernel structure, which is exploitable toward arbitrary write and control-flow hijack. A:H - Writing into freed slab memory corrupts allocator state and adjacent live objects, reliably producing kernel oops/panic (and KASAN slab-use-after-free splats) that take down the kernel instance.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 04e5b1fb01834a602acaae2276b67a783a8c6159 to < 14c231959a16ca41bfdcaede72483362a8c645d7 (affected · git)04e5b1fb01834a602acaae2276b67a783a8c6159 to < 5e94e44c9cb30d7a383d8ac227f24a8c9326b770 (affected · git)04e5b1fb01834a602acaae2276b67a783a8c6159 to < aaf900a83508c8cd5cdf765e7749f9076196ec7f (affected · git)04e5b1fb01834a602acaae2276b67a783a8c6159 to < 4f364023ddcfe83f7073b973a9cb98584b7f2a46 (affected · git)04e5b1fb01834a602acaae2276b67a783a8c6159 to < 00e98b5a69034b251bb36dc6e7123d7648e218e4 (affected · git)04e5b1fb01834a602acaae2276b67a783a8c6159 to < c2ff91255e0157b356cff115d8dc3eeb5162edf2 (affected · git)04e5b1fb01834a602acaae2276b67a783a8c6159 to < 7ebf70cf181651fe3f2e44e95e7e5073d594c9c0 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.5 (affected)0 to < 5.5 (unaffected · semver)5.10.245 through 5.10.* (unaffected · semver)5.15.194 through 5.15.* (unaffected · semver)6.1.154 through 6.1.* (unaffected · semver)6.6.108 through 6.6.* (unaffected · semver)6.12.49 through 6.12.* (unaffected · semver)6.16.9 through 6.16.* (unaffected · semver)6.17 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
7- https://git.kernel.org/stable/c/00e98b5a69034b251bb36dc6e7123d7648e218e4
- https://git.kernel.org/stable/c/14c231959a16ca41bfdcaede72483362a8c645d7
- https://git.kernel.org/stable/c/4f364023ddcfe83f7073b973a9cb98584b7f2a46
- https://git.kernel.org/stable/c/5e94e44c9cb30d7a383d8ac227f24a8c9326b770
- https://git.kernel.org/stable/c/7ebf70cf181651fe3f2e44e95e7e5073d594c9c0
- https://git.kernel.org/stable/c/aaf900a83508c8cd5cdf765e7749f9076196ec7f
- https://git.kernel.org/stable/c/c2ff91255e0157b356cff115d8dc3eeb5162edf2
Provider assertions
1Linux · cna
um: virtio_uml: Fix use-after-free after put_device in probe
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 4ddc5cadf73e08923c3c31e78402c504456200dba5976f02d32bbd9ffb536e5b
- Ingested
- 23 Sep 2026, 08:47:25 UTC
- Source record
- Official CVE record