CVE-2023-52439

uio: Fix use-after-free in uio_open

Published Feb 20, 2024 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3840-1 linux security update
Debian DLA Debian DLA DLA-3841-1 linux-5.10 security update
Ubuntu USN Ubuntu USN USN-6688-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-6724-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-6724-2 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-6725-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-6725-2 Linux kernel (AWS) vulnerabilities
Ubuntu USN Ubuntu USN USN-6726-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-6726-2 Linux kernel (IoT) vulnerabilities
Ubuntu USN Ubuntu USN USN-6726-3 Linux kernel (Xilinx ZynqMP) vulnerabilities
Ubuntu USN Ubuntu USN USN-6777-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-6777-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-6777-3 Linux kernel (GCP) vulnerabilities
Ubuntu USN Ubuntu USN USN-6777-4 Linux kernel (HWE) vulnerabilities
History
Type Values Removed Values Added
CPEs cpe:/a:redhat:enterprise_linux:9
cpe:/o:redhat:enterprise_linux:9
cpe:/o:redhat:rhel_eus:8.8
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Redhat rhel Aus
Redhat rhel E4s
Redhat rhel Tus
CPEs cpe:/o:redhat:rhel_aus:8.6
cpe:/o:redhat:rhel_e4s:8.6
cpe:/o:redhat:rhel_tus:8.6
Vendors & Products Redhat rhel Aus
Redhat rhel E4s
Redhat rhel Tus
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Aug 5, 2026, 9:09 AM
Reserved
Feb 20, 2024, 12:30 PM
Status
Modified
Published
Feb 20, 2024, 9:15 PM
Modified
Aug 4, 2026, 10:18 AM
Severity
Moderate
Public date
Feb 20, 2024, 12:00 AM