← Back

CVE-2023-53515

nvd nist
Published: Oct 1, 2025Modified: Jun 17, 2026

JSON object

Loading...
7.8
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Exploitability: 1.8 / Impact: 5.9
Source: NVD

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 (20)

Products: Linux: Linux Kernel
1 product
Linux Kernel
Configuration A
20 vulnerable
Vulnerable SoftwareAffected Versions
Linux
From 4.15.1 to 4.19.293
From 4.20 to 5.4.255
From 5.11 to 5.15.128
From 5.16 to 6.1.47
From 5.5 to 5.10.192
From 6.2 to 6.4.12
Version 4.15
Version 4.15 rc3
Version 4.15 rc4
Version 4.15 rc5
Version 4.15 rc6
Version 4.15 rc7
Version 4.15 rc8
Version 4.15 rc9
Version 6.5 rc1
Version 6.5 rc2
Version 6.5 rc3
Version 6.5 rc4
Version 6.5 rc5
Version 6.5 rc6

References (7)

Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Patch

Timeline

No history available yet.