cbcvebase.
CVE-2023-52439
published 2024-02-20

CVE-2023-52439: In the Linux kernel, the following vulnerability has been resolved: uio: Fix use-after-free in uio_open core-1 core-2 uio_unregister_device uio_open idev =…

PriorityP338high7.8CVSS 3.1
AVLACLPRLUINSUCHIHAH
EPSS
0.30%
22.2th percentile
In the Linux kernel, the following vulnerability has been resolved: uio: Fix use-after-free in uio_open core-1 core-2 uio_unregister_device uio_open idev = idr_find() device_unregister(&idev->dev) put_device(&idev->dev) uio_device_release get_device(&idev->dev) kfree(idev) uio_free_minor(minor) uio_release put_device(&idev->dev) kfree(idev) In the core-1 uio_unregister_device(), the device_unregister will kfree idev when the idev->dev kobject ref is 1. But after core-1 device_unregister, put_device and before doing kfree, the core-2 may get_device. Then: 1. After core-1 kfree idev, the core-2 will do use-after-free for idev. 2. When core-2 do uio_release and put_device, the idev will be double freed. To address this issue, we can get idev atomic & inc idev reference with minor_lock.

Affected

27 ranges· showing 25
VendorProductVersion rangeFixed in
debianlinux< linux 6.1.76-1 (bookworm)linux 6.1.76-1 (bookworm)
linuxlinux
linuxlinux
linuxlinux>= 4.14.100 < 4.154.15
linuxlinux>= 57c5f4df0a5a0ee83df799991251e2ee93a5e4e9 < 3174e0f7de1ba392dc191625da83df02d695b60c3174e0f7de1ba392dc191625da83df02d695b60c
linuxlinux>= 57c5f4df0a5a0ee83df799991251e2ee93a5e4e9 < e93da893d52d82d57fc0db2ca566024e0f26ff50e93da893d52d82d57fc0db2ca566024e0f26ff50
linuxlinux>= 57c5f4df0a5a0ee83df799991251e2ee93a5e4e9 < 5e0be1229ae199ebb90b33102f74a0f22d1525705e0be1229ae199ebb90b33102f74a0f22d152570
linuxlinux>= 57c5f4df0a5a0ee83df799991251e2ee93a5e4e9 < 5cf604ee538ed0c467abe3b4cda5308a6398f0f75cf604ee538ed0c467abe3b4cda5308a6398f0f7
linuxlinux>= 57c5f4df0a5a0ee83df799991251e2ee93a5e4e9 < 17a8519cb359c3b483fb5c7367efa9a8a508bdea17a8519cb359c3b483fb5c7367efa9a8a508bdea
linuxlinux>= 57c5f4df0a5a0ee83df799991251e2ee93a5e4e9 < 35f102607054faafe78d2a6994b18d5d9d6e92ad35f102607054faafe78d2a6994b18d5d9d6e92ad
linuxlinux>= 57c5f4df0a5a0ee83df799991251e2ee93a5e4e9 < 913205930da6213305616ac539447702eaa85e41913205930da6213305616ac539447702eaa85e41
linuxlinux>= 57c5f4df0a5a0ee83df799991251e2ee93a5e4e9 < 0c9ae0b8605078eafc3bea053cc78791e97ba2e20c9ae0b8605078eafc3bea053cc78791e97ba2e2
linuxlinux_kernel< 4.19.3064.19.306
linuxlinux_kernel
linuxlinux_kernel>= 0 < 5.10.209-15.10.209-1
linuxlinux_kernel>= 0 < 6.1.76-16.1.76-1
linuxlinux_kernel>= 0 < 6.6.13-16.6.13-1
linuxlinux_kernel>= 0 < 6.6.13-16.6.13-1
linuxlinux_kernel>= 0 < 5.4.0-176.1965.4.0-176.196
linuxlinux_kernel>= 0 < 5.15.0-102.1125.15.0-102.112
linuxlinux_kernel>= 0 < 4.15.0-225.2374.15.0-225.237
linuxlinux_kernel>= 4.20.0 < 5.4.2685.4.268
linuxlinux_kernel>= 5.11.0 < 5.15.1485.15.148
linuxlinux_kernel>= 5.16.0 < 6.1.746.1.74
linuxlinux_kernel>= 5.5.0 < 5.10.2095.10.209

CVSS provenance

nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
osv8.1HIGH
vendor_debian7.8HIGH
vendor_redhat7.8HIGH
vendor_ubuntu7.5HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.