7.8
HIGH
CVE-2023-52439
Apache Linux Kernel Use-After-Free and Double Free
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.

INFO

Published Date :

Feb. 20, 2024, 9:15 p.m.

Last Modified :

June 27, 2024, 12:15 p.m.

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67

Remotely Exploitable :

No

Impact Score :

5.9

Exploitability Score :

1.8
Affected Products

The following products are affected by CVE-2023-52439 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2023-52439 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2023-52439 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jun. 27, 2024

    Action Type Old Value New Value
    Added Reference kernel.org https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html [No types assigned]
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jun. 25, 2024

    Action Type Old Value New Value
    Added Reference kernel.org https://lists.debian.org/debian-lts-announce/2024/06/msg00016.html [No types assigned]
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 28, 2024

    Action Type Old Value New Value
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 14, 2024

    Action Type Old Value New Value
  • Initial Analysis by [email protected]

    Mar. 15, 2024

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type https://git.kernel.org/stable/c/0c9ae0b8605078eafc3bea053cc78791e97ba2e2 No Types Assigned https://git.kernel.org/stable/c/0c9ae0b8605078eafc3bea053cc78791e97ba2e2 Patch
    Changed Reference Type https://git.kernel.org/stable/c/17a8519cb359c3b483fb5c7367efa9a8a508bdea No Types Assigned https://git.kernel.org/stable/c/17a8519cb359c3b483fb5c7367efa9a8a508bdea Patch
    Changed Reference Type https://git.kernel.org/stable/c/3174e0f7de1ba392dc191625da83df02d695b60c No Types Assigned https://git.kernel.org/stable/c/3174e0f7de1ba392dc191625da83df02d695b60c Patch
    Changed Reference Type https://git.kernel.org/stable/c/35f102607054faafe78d2a6994b18d5d9d6e92ad No Types Assigned https://git.kernel.org/stable/c/35f102607054faafe78d2a6994b18d5d9d6e92ad Patch
    Changed Reference Type https://git.kernel.org/stable/c/5cf604ee538ed0c467abe3b4cda5308a6398f0f7 No Types Assigned https://git.kernel.org/stable/c/5cf604ee538ed0c467abe3b4cda5308a6398f0f7 Patch
    Changed Reference Type https://git.kernel.org/stable/c/5e0be1229ae199ebb90b33102f74a0f22d152570 No Types Assigned https://git.kernel.org/stable/c/5e0be1229ae199ebb90b33102f74a0f22d152570 Patch
    Changed Reference Type https://git.kernel.org/stable/c/913205930da6213305616ac539447702eaa85e41 No Types Assigned https://git.kernel.org/stable/c/913205930da6213305616ac539447702eaa85e41 Patch
    Changed Reference Type https://git.kernel.org/stable/c/e93da893d52d82d57fc0db2ca566024e0f26ff50 No Types Assigned https://git.kernel.org/stable/c/e93da893d52d82d57fc0db2ca566024e0f26ff50 Patch
    Added CWE NIST CWE-415
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:4.18:-:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:4.18:rc5:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:4.18:rc6:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:4.18:rc7:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:4.18:rc8:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (excluding) 4.18.0 up to (excluding) 4.19.306 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.20.0 up to (excluding) 5.4.268 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.5.0 up to (excluding) 5.10.209 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11.0 up to (excluding) 5.15.148 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16.0 up to (excluding) 6.1.74 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2.0 up to (excluding) 6.6.13 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7.0 up to (excluding) 6.7.1
  • CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Feb. 20, 2024

    Action Type Old Value New Value
    Added 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.
    Added Reference Linux https://git.kernel.org/stable/c/3174e0f7de1ba392dc191625da83df02d695b60c [No types assigned]
    Added Reference Linux https://git.kernel.org/stable/c/e93da893d52d82d57fc0db2ca566024e0f26ff50 [No types assigned]
    Added Reference Linux https://git.kernel.org/stable/c/5e0be1229ae199ebb90b33102f74a0f22d152570 [No types assigned]
    Added Reference Linux https://git.kernel.org/stable/c/5cf604ee538ed0c467abe3b4cda5308a6398f0f7 [No types assigned]
    Added Reference Linux https://git.kernel.org/stable/c/17a8519cb359c3b483fb5c7367efa9a8a508bdea [No types assigned]
    Added Reference Linux https://git.kernel.org/stable/c/35f102607054faafe78d2a6994b18d5d9d6e92ad [No types assigned]
    Added Reference Linux https://git.kernel.org/stable/c/913205930da6213305616ac539447702eaa85e41 [No types assigned]
    Added Reference Linux https://git.kernel.org/stable/c/0c9ae0b8605078eafc3bea053cc78791e97ba2e2 [No types assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2023-52439 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2023-52439 weaknesses.

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability