kcve.ai취약점 정보 · 내 자산 확인

CVE-2023-53515 virtio-mmio: don't break lifecycle of vm_dev

설명

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.

영향 받는 제품 제품 1개

  • Linux

    Linux

    해결 버전 있음

    영향 받는 버전

    • 4.15

    해결 버전

    • 4.15 미만
    • 4.19.293 이상
    • 5.4.255 이상
    • 5.10.192 이상
    • 5.15.128 이상
    • 6.1.47 이상
    • 6.4.12 이상

참고 자료 7건

‹ 목록

점검 지원 범위 문의

도입 문의