CVE-2023-53515

virtio-mmio: don't break lifecycle of vm_dev

HIGH
7.8
CVSS Score
Published: October 1, 2025 at 11:46 AM UTC
Updated: June 17, 2026 at 06:45 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%

Description

In the Linux kernel, the following vulnerability has been resolved: virtio-mmio: don't break lifecycle of vm_dev vm_dev has a separate lifecycle because it has a 'struct device' embedded. Thus, having a release callback for it is correct. Allocating the vm_dev struct with devres totally breaks this protection, though. Instead of waiting for the vm_dev release callback, the memory is freed when the platform_device is removed. Resulting in a use-after-free when finally the callback is to be called. To easily see the problem, compile the kernel with CONFIG_DEBUG_KOBJECT_RELEASE and unbind with sysfs. The fix is easy, don't use devres in this case. Found during my research about object lifetime problems.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.15 ≤ v < 4.19.2934.15 ≤ v < 5.10.1924.15 ≤ v < 5.15.1284.15 ≤ v < 5.4.2554.15 ≤ v < 6.1.474.15 ≤ v < 6.4.124.15 ≤ v < 6.54.15.1 ≤ v < 4.19.2934.20 ≤ v < 5.4.2555.11 ≤ v < 5.15.1285.16 ≤ v < 6.1.475.5 ≤ v < 5.10.1926.2 ≤ v < 6.4.124.154.15 rc34.15 rc44.15 rc54.15 rc64.15 rc74.15 rc84.15 rc96.5 rc16.5 rc26.5 rc36.5 rc46.5 rc56.5 rc67eb781b1bbb7136fe78fb8c28c1c223c61fa32b5
Vendor states this is fixed in 2dcb368fe5a8eee498ca75c93a18ce2f3b0d6a8e (fixed)
Vendor states this is fixed in 3ff54d904fafabd0912796785e53cce4e69ca123 (fixed)
Vendor states this is fixed in 55c91fedd03d7b9cf0c5199b2eb12b9b8e95281a (fixed)
Vendor states this is fixed in 5b7d5c2dd664eb8b9a06ecbc06e28d39359c422e (fixed)
Vendor states this is fixed in 97a2d55ead76358245b446efd87818e919196d7a (fixed)
Vendor states this is fixed in af5818c35173e096085c6ae2e3aac605d3d15e41 (fixed)
Vendor states this is fixed in b788ad3b2468512339c05f23692e36860264e674 (fixed)
Vendor states this is fixed in 4.15 (unaffected)
Vendor states this is fixed in 4.19.293 (unaffected)
Vendor states this is fixed in 5.10.192 (unaffected)
Vendor states this is fixed in 5.15.128 (unaffected)
Vendor states this is fixed in 5.4.255 (unaffected)
Vendor states this is fixed in 6.1.47 (unaffected)
Vendor states this is fixed in 6.4.12 (unaffected)
Vendor states this is fixed in 6.5 (unaffected)

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card