5.5
MEDIUM
CVE-2023-52855
Linux USB DWC2 Null Pointer Dereference
Description

In the Linux kernel, the following vulnerability has been resolved: usb: dwc2: fix possible NULL pointer dereference caused by driver concurrency In _dwc2_hcd_urb_enqueue(), "urb->hcpriv = NULL" is executed without holding the lock "hsotg->lock". In _dwc2_hcd_urb_dequeue(): spin_lock_irqsave(&hsotg->lock, flags); ... if (!urb->hcpriv) { dev_dbg(hsotg->dev, "## urb->hcpriv is NULL ##\n"); goto out; } rc = dwc2_hcd_urb_dequeue(hsotg, urb->hcpriv); // Use urb->hcpriv ... out: spin_unlock_irqrestore(&hsotg->lock, flags); When _dwc2_hcd_urb_enqueue() and _dwc2_hcd_urb_dequeue() are concurrently executed, the NULL check of "urb->hcpriv" can be executed before "urb->hcpriv = NULL". After urb->hcpriv is NULL, it can be used in the function call to dwc2_hcd_urb_dequeue(), which can cause a NULL pointer dereference. This possible bug is found by an experimental static analysis tool developed by myself. This tool analyzes the locking APIs to extract function pairs that can be concurrently executed, and then analyzes the instructions in the paired functions to identify possible concurrency bugs including data races and atomicity violations. The above possible bug is reported, when my tool analyzes the source code of Linux 6.5. To fix this possible bug, "urb->hcpriv = NULL" should be executed with holding the lock "hsotg->lock". After using this patch, my tool never reports the possible bug, with the kernelconfiguration allyesconfig for x86_64. Because I have no associated hardware, I cannot test the patch in runtime testing, and just verify it according to the code logic.

INFO

Published Date :

May 21, 2024, 4:15 p.m.

Last Modified :

April 2, 2025, 3:06 p.m.

Source :

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

Remotely Exploitable :

No

Impact Score :

3.6

Exploitability Score :

1.8
Affected Products

The following products are affected by CVE-2023-52855 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
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2023-52855.

URL Resource
https://git.kernel.org/stable/c/14c9ec34e8118fbffd7f5431814d767726323e72 Patch
https://git.kernel.org/stable/c/3e851a77a13ce944d703721793f49ee82622986d Patch
https://git.kernel.org/stable/c/64c47749fc7507ed732e155c958253968c1d275e Patch
https://git.kernel.org/stable/c/6b21a22728852d020a6658d39cd7bb7e14b07790 Patch
https://git.kernel.org/stable/c/a7bee9598afb38004841a41dd8fe68c1faff4e90 Patch
https://git.kernel.org/stable/c/bdb3dd4096302d6b87441fdc528439f171b04be6 Patch
https://git.kernel.org/stable/c/ef307bc6ef04e8c1ea843231db58e3afaafa9fa6 Patch
https://git.kernel.org/stable/c/fcaafb574fc88a52dce817f039f7ff2f9da38001 Patch
https://git.kernel.org/stable/c/fed492aa6493a91a77ebd51da6fb939c98d94a0d Patch
https://git.kernel.org/stable/c/14c9ec34e8118fbffd7f5431814d767726323e72 Patch
https://git.kernel.org/stable/c/3e851a77a13ce944d703721793f49ee82622986d Patch
https://git.kernel.org/stable/c/64c47749fc7507ed732e155c958253968c1d275e Patch
https://git.kernel.org/stable/c/6b21a22728852d020a6658d39cd7bb7e14b07790 Patch
https://git.kernel.org/stable/c/a7bee9598afb38004841a41dd8fe68c1faff4e90 Patch
https://git.kernel.org/stable/c/bdb3dd4096302d6b87441fdc528439f171b04be6 Patch
https://git.kernel.org/stable/c/ef307bc6ef04e8c1ea843231db58e3afaafa9fa6 Patch
https://git.kernel.org/stable/c/fcaafb574fc88a52dce817f039f7ff2f9da38001 Patch
https://git.kernel.org/stable/c/fed492aa6493a91a77ebd51da6fb939c98d94a0d Patch

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-52855 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2023-52855 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.

  • Initial Analysis by [email protected]

    Apr. 02, 2025

    Action Type Old Value New Value
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.6 up to (excluding) 6.6.2 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.5.12 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.63 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.139 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.5 up to (excluding) 5.10.201 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.20 up to (excluding) 5.4.261 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.2 up to (excluding) 4.14.330 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.15 up to (excluding) 4.19.299
    Added Reference Type CVE: https://git.kernel.org/stable/c/14c9ec34e8118fbffd7f5431814d767726323e72 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/14c9ec34e8118fbffd7f5431814d767726323e72 Types: Patch
    Added Reference Type CVE: https://git.kernel.org/stable/c/3e851a77a13ce944d703721793f49ee82622986d Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/3e851a77a13ce944d703721793f49ee82622986d Types: Patch
    Added Reference Type CVE: https://git.kernel.org/stable/c/64c47749fc7507ed732e155c958253968c1d275e Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/64c47749fc7507ed732e155c958253968c1d275e Types: Patch
    Added Reference Type CVE: https://git.kernel.org/stable/c/6b21a22728852d020a6658d39cd7bb7e14b07790 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/6b21a22728852d020a6658d39cd7bb7e14b07790 Types: Patch
    Added Reference Type CVE: https://git.kernel.org/stable/c/a7bee9598afb38004841a41dd8fe68c1faff4e90 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/a7bee9598afb38004841a41dd8fe68c1faff4e90 Types: Patch
    Added Reference Type CVE: https://git.kernel.org/stable/c/bdb3dd4096302d6b87441fdc528439f171b04be6 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/bdb3dd4096302d6b87441fdc528439f171b04be6 Types: Patch
    Added Reference Type CVE: https://git.kernel.org/stable/c/ef307bc6ef04e8c1ea843231db58e3afaafa9fa6 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/ef307bc6ef04e8c1ea843231db58e3afaafa9fa6 Types: Patch
    Added Reference Type CVE: https://git.kernel.org/stable/c/fcaafb574fc88a52dce817f039f7ff2f9da38001 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/fcaafb574fc88a52dce817f039f7ff2f9da38001 Types: Patch
    Added Reference Type CVE: https://git.kernel.org/stable/c/fed492aa6493a91a77ebd51da6fb939c98d94a0d Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/fed492aa6493a91a77ebd51da6fb939c98d94a0d Types: Patch
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://git.kernel.org/stable/c/14c9ec34e8118fbffd7f5431814d767726323e72
    Added Reference https://git.kernel.org/stable/c/3e851a77a13ce944d703721793f49ee82622986d
    Added Reference https://git.kernel.org/stable/c/64c47749fc7507ed732e155c958253968c1d275e
    Added Reference https://git.kernel.org/stable/c/6b21a22728852d020a6658d39cd7bb7e14b07790
    Added Reference https://git.kernel.org/stable/c/a7bee9598afb38004841a41dd8fe68c1faff4e90
    Added Reference https://git.kernel.org/stable/c/bdb3dd4096302d6b87441fdc528439f171b04be6
    Added Reference https://git.kernel.org/stable/c/ef307bc6ef04e8c1ea843231db58e3afaafa9fa6
    Added Reference https://git.kernel.org/stable/c/fcaafb574fc88a52dce817f039f7ff2f9da38001
    Added Reference https://git.kernel.org/stable/c/fed492aa6493a91a77ebd51da6fb939c98d94a0d
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Nov. 05, 2024

    Action Type Old Value New Value
    Added CWE CISA-ADP CWE-476
    Added CVSS V3.1 CISA-ADP AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 29, 2024

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

    May. 21, 2024

    Action Type Old Value New Value
    Added Description In the Linux kernel, the following vulnerability has been resolved: usb: dwc2: fix possible NULL pointer dereference caused by driver concurrency In _dwc2_hcd_urb_enqueue(), "urb->hcpriv = NULL" is executed without holding the lock "hsotg->lock". In _dwc2_hcd_urb_dequeue(): spin_lock_irqsave(&hsotg->lock, flags); ... if (!urb->hcpriv) { dev_dbg(hsotg->dev, "## urb->hcpriv is NULL ##\n"); goto out; } rc = dwc2_hcd_urb_dequeue(hsotg, urb->hcpriv); // Use urb->hcpriv ... out: spin_unlock_irqrestore(&hsotg->lock, flags); When _dwc2_hcd_urb_enqueue() and _dwc2_hcd_urb_dequeue() are concurrently executed, the NULL check of "urb->hcpriv" can be executed before "urb->hcpriv = NULL". After urb->hcpriv is NULL, it can be used in the function call to dwc2_hcd_urb_dequeue(), which can cause a NULL pointer dereference. This possible bug is found by an experimental static analysis tool developed by myself. This tool analyzes the locking APIs to extract function pairs that can be concurrently executed, and then analyzes the instructions in the paired functions to identify possible concurrency bugs including data races and atomicity violations. The above possible bug is reported, when my tool analyzes the source code of Linux 6.5. To fix this possible bug, "urb->hcpriv = NULL" should be executed with holding the lock "hsotg->lock". After using this patch, my tool never reports the possible bug, with the kernelconfiguration allyesconfig for x86_64. Because I have no associated hardware, I cannot test the patch in runtime testing, and just verify it according to the code logic.
    Added Reference kernel.org https://git.kernel.org/stable/c/14c9ec34e8118fbffd7f5431814d767726323e72 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/fed492aa6493a91a77ebd51da6fb939c98d94a0d [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/64c47749fc7507ed732e155c958253968c1d275e [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/bdb3dd4096302d6b87441fdc528439f171b04be6 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/fcaafb574fc88a52dce817f039f7ff2f9da38001 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/6b21a22728852d020a6658d39cd7bb7e14b07790 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/3e851a77a13ce944d703721793f49ee82622986d [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/a7bee9598afb38004841a41dd8fe68c1faff4e90 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/ef307bc6ef04e8c1ea843231db58e3afaafa9fa6 [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-52855 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-52855 weaknesses.

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability
© cvefeed.io
Latest DB Update: Jul. 15, 2025 18:49