CVE-2023-52439
Vulnerability Summary
Timeline
Description
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.
CVSS Metrics
- v3.1•HIGH•Score: 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Trends
Current EPSS score: 0.30%• Percentile: 23%
Techniques & Countermeasures
- CWE-415•Double Free
The product calls free() twice on the same memory address.
Affected Systems
- debian•linux
< 5.10.209-1 | < 6.1.76-1 | < 6.6.13-1 | < 6.6.13-1
- ubuntu•linux
< 4.15.0-225.237 | < 5.4.0-176.196 | < 5.15.0-102.112
- ubuntu•linux-allwinner-5.19
all
- ubuntu•linux-aws
< 4.15.0-1168.181 | < 5.4.0-1122.132 | < 5.15.0-1057.63
- ubuntu•linux-aws-5.0
all
- ubuntu•linux-aws-5.11
all
- ubuntu•linux-aws-5.13
all
- ubuntu•linux-aws-5.15
< 5.15.0-1057.63~20.04.1
- ubuntu•linux-aws-5.19
all
- ubuntu•linux-aws-5.3
all
- ubuntu•linux-aws-5.4
< 5.4.0-1122.132~18.04.1
- ubuntu•linux-aws-5.8
all
- ubuntu•linux-aws-6.2
all
- ubuntu•linux-aws-6.5
all
- ubuntu•linux-aws-fips
< 4.15.0-2107.113 | < 5.4.0-1122.132+fips1 | all | < 5.15.0-1057.63+fips1
- ubuntu•linux-aws-hwe
< 4.15.0-1168.181~16.04.1
- ubuntu•linux-azure
< 4.15.0-1177.192~14.04.1 | < 4.15.0-1177.192~16.04.1 | all | < 5.4.0-1127.134 | < 5.15.0-1060.69
- ubuntu•linux-azure-4.15
< 4.15.0-1177.192
- ubuntu•linux-azure-5.11
all
- ubuntu•linux-azure-5.13
all
- ubuntu•linux-azure-5.15
< 5.15.0-1060.69~20.04.1
- ubuntu•linux-azure-5.19
all
- ubuntu•linux-azure-5.3
all
- ubuntu•linux-azure-5.4
< 5.4.0-1127.134~18.04.1
- ubuntu•linux-azure-5.8
all
- ubuntu•linux-azure-6.2
all
- ubuntu•linux-azure-6.5
all
- ubuntu•linux-azure-edge
all
- ubuntu•linux-azure-fde
all | < 5.15.0-1060.69.1 | all
- ubuntu•linux-azure-fde-5.19
all
- ubuntu•linux-azure-fde-6.2
all
- ubuntu•linux-azure-fde-6.8
all
- ubuntu•linux-azure-fips
< 4.15.0-2086.92 | < 5.4.0-1127.134+fips1 | all | < 5.15.0-1060.69+fips1
- ubuntu•linux-bluefield
all | < 5.4.0-1082.89 | < 5.15.0-1040.42
- ubuntu•linux-fips
< 4.15.0-1123.134 | all | < 5.4.0-1096.106 | < 5.15.0-102.112+fips1
- ubuntu•linux-gcp
< 4.15.0-1162.179~16.04.1 | all | < 5.4.0-1126.135 | < 5.15.0-1055.63
- ubuntu•linux-gcp-4.15
< 4.15.0-1162.179
- ubuntu•linux-gcp-5.11
all
- ubuntu•linux-gcp-5.13
all
- ubuntu•linux-gcp-5.15
< 5.15.0-1055.63~20.04.1
- ubuntu•linux-gcp-5.19
all
- ubuntu•linux-gcp-5.3
all
- ubuntu•linux-gcp-5.4
< 5.4.0-1126.135~18.04.1
- ubuntu•linux-gcp-5.8
all
- ubuntu•linux-gcp-6.2
all
- ubuntu•linux-gcp-6.5
all
- ubuntu•linux-gcp-fips
< 4.15.0-2070.75 | < 5.4.0-1126.135+fips1 | all | < 5.15.0-1055.63+fips2
- ubuntu•linux-gke
all | < 5.15.0-1054.59
- ubuntu•linux-gke-4.15
all
- ubuntu•linux-gke-5.15
all
Showing first 50 affected entries in server-rendered view.
References (27)
- https://git.kernel.org/stable/c/3174e0f7de1ba392dc191625da83df02d695b60c
- https://git.kernel.org/stable/c/e93da893d52d82d57fc0db2ca566024e0f26ff50
- https://git.kernel.org/stable/c/5e0be1229ae199ebb90b33102f74a0f22d152570
- https://git.kernel.org/stable/c/5cf604ee538ed0c467abe3b4cda5308a6398f0f7
- https://git.kernel.org/stable/c/17a8519cb359c3b483fb5c7367efa9a8a508bdea
- https://git.kernel.org/stable/c/35f102607054faafe78d2a6994b18d5d9d6e92ad
- https://git.kernel.org/stable/c/913205930da6213305616ac539447702eaa85e41
- https://git.kernel.org/stable/c/0c9ae0b8605078eafc3bea053cc78791e97ba2e2
- https://lists.debian.org/debian-lts-announce/2024/06/msg00016.html
- https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html
- https://security.netapp.com/advisory/ntap-20241227-0006/
- https://ubuntu.com/security/CVE-2023-52439
- https://git.kernel.org/linus/0c9ae0b8605078eafc3bea053cc78791e97ba2e2
- https://ubuntu.com/security/notices/USN-6688-1
- https://ubuntu.com/security/notices/USN-6724-1
- https://ubuntu.com/security/notices/USN-6725-1
- https://ubuntu.com/security/notices/USN-6726-1
- https://www.cve.org/CVERecord?id=CVE-2023-52439
- https://ubuntu.com/security/notices/USN-6724-2
- https://ubuntu.com/security/notices/USN-6725-2
- https://ubuntu.com/security/notices/USN-6726-2
- https://ubuntu.com/security/notices/USN-6726-3
- https://ubuntu.com/security/notices/USN-6777-1
- https://ubuntu.com/security/notices/USN-6777-2
- https://ubuntu.com/security/notices/USN-6777-3
- https://ubuntu.com/security/notices/USN-6777-4
- https://security-tracker.debian.org/tracker/CVE-2023-52439