# CVE-2023-52439: uio: Fix use-after-free in uio\_open

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 25, 2026-12-05)
- **CWE:** CWE-415
- **Published:** 2024-02-20T18:34:49.323Z
- **Modified:** 2026-08-05T09:09:56.653Z

## Who should check

- Anyone running Linux \>= 57c5f4df0a5a0ee83df799991251e2ee93a5e4e9, \< 3174e0f7de1ba392dc191625da83df02d695b60c; \>= 57c5f4df0a5a0ee83df799991251e2ee93a5e4e9, \< e93da893d52d82d57fc0db2ca566024e0f26ff50; \>= 57c5f4df0a5a0ee83df799991251e2ee93a5e4e9, \< 5e0be1229ae199ebb90b33102f74a0f22d152570; \>= 57c5f4df0a5a0ee83df799991251e2ee93a5e4e9, \< 5cf604ee538ed0c467abe3b4cda5308a6398f0f7; \>= 57c5f4df0a5a0ee83df799991251e2ee93a5e4e9, \< 17a8519cb359c3b483fb5c7367efa9a8a508bdea; \>= 57c5f4df0a5a0ee83df799991251e2ee93a5e4e9, \< 35f102607054faafe78d2a6994b18d5d9d6e92ad; \>= 57c5f4df0a5a0ee83df799991251e2ee93a5e4e9, \< 913205930da6213305616ac539447702eaa85e41; \>= 57c5f4df0a5a0ee83df799991251e2ee93a5e4e9, \< 0c9ae0b8605078eafc3bea053cc78791e97ba2e2; 13af019c87f2d90e663742cb1a819834048842ae; \>= 4.14.100, \< 4.15
- Anyone running Linux 4.18

## 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.

## Affected and fixed versions

- Linux: \>= 57c5f4df0a5a0ee83df799991251e2ee93a5e4e9, \< 3174e0f7de1ba392dc191625da83df02d695b60c; \>= 57c5f4df0a5a0ee83df799991251e2ee93a5e4e9, \< e93da893d52d82d57fc0db2ca566024e0f26ff50; \>= 57c5f4df0a5a0ee83df799991251e2ee93a5e4e9, \< 5e0be1229ae199ebb90b33102f74a0f22d152570; \>= 57c5f4df0a5a0ee83df799991251e2ee93a5e4e9, \< 5cf604ee538ed0c467abe3b4cda5308a6398f0f7; \>= 57c5f4df0a5a0ee83df799991251e2ee93a5e4e9, \< 17a8519cb359c3b483fb5c7367efa9a8a508bdea; \>= 57c5f4df0a5a0ee83df799991251e2ee93a5e4e9, \< 35f102607054faafe78d2a6994b18d5d9d6e92ad; \>= 57c5f4df0a5a0ee83df799991251e2ee93a5e4e9, \< 913205930da6213305616ac539447702eaa85e41; \>= 57c5f4df0a5a0ee83df799991251e2ee93a5e4e9, \< 0c9ae0b8605078eafc3bea053cc78791e97ba2e2; 13af019c87f2d90e663742cb1a819834048842ae; \>= 4.14.100, \< 4.15 (cvelist)
- Linux: 4.18 (cvelist)

## Mitigation

- Upgrade Linux to 4.15 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-52439. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-52439.md
Affected: Linux >= 57c5f4df0a5a0ee83df799991251e2ee93a5e4e9, < 3174e0f7de1ba392dc191625da83df02d695b60c; >= 57c5f4df0a5a0ee83df799991251e2ee93a5e4e9, < e93da893d52d82d57fc0db2ca566024e0f26ff50; >= 57c5f4df0a5a0ee83df799991251e2ee93a5e4e9, < 5e0be1229ae199ebb90b33102f74a0f22d152570; >= 57c5f4df0a5a0ee83df7999…
Fixed in: Linux 3174e0f7de1ba392dc191625da83df02d695b60c, Linux 5e0be1229ae199ebb90b33102f74a0f22d152570, Linux 5cf604ee538ed0c467abe3b4cda5308a6398f0f7, Linux 17a8519cb359c3b483fb5c7367efa9a8a508bdea, Linux 35f102607054faafe78d2a6994b18d5d9d6e92ad, Linux 913205930da6213305616ac539447702eaa85e41, Linux 0c9ae…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-52439 being exploited?

There is no confirmed exploitation: CVE-2023-52439 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-12-05).

### How serious is CVE-2023-52439?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-52439?

Linux \>= 57c5f4df0a5a0ee83df799991251e2ee93a5e4e9, \< 3174e0f7de1ba392dc191625da83df02d695b60c; \>= 57c5f4df0a5a0ee83df799991251e2ee93a5e4e9, \< e93da893d52d82d57fc0db2ca566024e0f26ff50; \>= 57c5f4df0a5a0ee83df799991251e2ee93a5e4e9, \< 5e0be1229ae199ebb90b33102f74a0f22d152570; \>= 57c5f4df0a5a0ee83df799991251e2ee93a5e4e9, \< 5cf604ee538ed0c467abe3b4cda5308a6398f0f7; \>= 57c5f4df0a5a0ee83df799991251e2ee93a5e4e9, \< 17a8519cb359c3b483fb5c7367efa9a8a508bdea; \>= 57c5f4df0a5a0ee83df799991251e2ee93a5e4e9, \< 35f102607054faafe78d2a6994b18d5d9d6e92ad; \>= 57c5f4df0a5a0ee83df799991251e2ee93a5e4e9, \< 913205930da6213305616ac539447702eaa85e41; \>= 57c5f4df0a5a0ee83df799991251e2ee93a5e4e9, \< 0c9ae0b8605078eafc3bea053cc78791e97ba2e2; 13af019c87f2d90e663742cb1a819834048842ae; \>= 4.14.100, \< 4.15; Linux 4.18.

### Is there a fix for CVE-2023-52439?

Yes. Fixed in Linux 3174e0f7de1ba392dc191625da83df02d695b60c, Linux 5e0be1229ae199ebb90b33102f74a0f22d152570, Linux 5cf604ee538ed0c467abe3b4cda5308a6398f0f7, Linux 17a8519cb359c3b483fb5c7367efa9a8a508bdea, Linux 35f102607054faafe78d2a6994b18d5d9d6e92ad, Linux 913205930da6213305616ac539447702eaa85e41, Linux 0c9ae0b8605078eafc3bea053cc78791e97ba2e2, Linux 4.15. Upgrade Linux to 4.15 or later.

### How do I check if I'm affected by CVE-2023-52439?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/3174e0f7de1ba392dc191625da83df02d695b60c>
- patch: <https://git.kernel.org/stable/c/e93da893d52d82d57fc0db2ca566024e0f26ff50>
- patch: <https://git.kernel.org/stable/c/5e0be1229ae199ebb90b33102f74a0f22d152570>
- patch: <https://git.kernel.org/stable/c/5cf604ee538ed0c467abe3b4cda5308a6398f0f7>
- patch: <https://git.kernel.org/stable/c/17a8519cb359c3b483fb5c7367efa9a8a508bdea>
- patch: <https://git.kernel.org/stable/c/35f102607054faafe78d2a6994b18d5d9d6e92ad>
- patch: <https://git.kernel.org/stable/c/913205930da6213305616ac539447702eaa85e41>
- patch: <https://git.kernel.org/stable/c/0c9ae0b8605078eafc3bea053cc78791e97ba2e2>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00016.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>
- other: <https://security.netapp.com/advisory/ntap-20241227-0006/>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-52439>

HTML: <https://flawdb.com/CVE-2023-52439> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-52439>
