5.5
MEDIUM CVSS 3.1
CVE-2024-26715
"DWC3 Gadget: NULL Pointer Dereference in dwc3_gadget_suspend"
Description

In the Linux kernel, the following vulnerability has been resolved: usb: dwc3: gadget: Fix NULL pointer dereference in dwc3_gadget_suspend In current scenario if Plug-out and Plug-In performed continuously there could be a chance while checking for dwc->gadget_driver in dwc3_gadget_suspend, a NULL pointer dereference may occur. Call Stack: CPU1: CPU2: gadget_unbind_driver dwc3_suspend_common dwc3_gadget_stop dwc3_gadget_suspend dwc3_disconnect_gadget CPU1 basically clears the variable and CPU2 checks the variable. Consider CPU1 is running and right before gadget_driver is cleared and in parallel CPU2 executes dwc3_gadget_suspend where it finds dwc->gadget_driver which is not NULL and resumes execution and then CPU1 completes execution. CPU2 executes dwc3_disconnect_gadget where it checks dwc->gadget_driver is already NULL because of which the NULL pointer deference occur.

INFO

Published Date :

April 3, 2024, 3:15 p.m.

Last Modified :

Jan. 7, 2025, 8:25 p.m.

Remotely Exploit :

No

Source :

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

The following products are affected by CVE-2024-26715 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
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 MEDIUM [email protected]
Solution
This vulnerability requires updating the Linux kernel to resolve a NULL pointer dereference.
  • Update the Linux kernel to a patched version.
  • Reboot the system after the kernel update.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-26715 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-2024-26715 weaknesses.

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

The following table lists the changes that have been made to the CVE-2024-26715 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]

    Jan. 07, 2025

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
    Added CWE NIST CWE-476
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 3.16.81 up to (excluding) 3.17 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.4.178 up to (excluding) 4.5 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.6 up to (excluding) 5.15.149 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.79 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.18 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.7.6 *cpe:2.3:o:linux:linux_kernel:6.8:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.8:rc2:*:*:*:*:*:*
    Changed Reference Type https://git.kernel.org/stable/c/36695d5eeeefe5a64b47d0336e7c8fc144e78182 No Types Assigned https://git.kernel.org/stable/c/36695d5eeeefe5a64b47d0336e7c8fc144e78182 Patch
    Changed Reference Type https://git.kernel.org/stable/c/36695d5eeeefe5a64b47d0336e7c8fc144e78182 No Types Assigned https://git.kernel.org/stable/c/36695d5eeeefe5a64b47d0336e7c8fc144e78182 Patch
    Changed Reference Type https://git.kernel.org/stable/c/57e2e42ccd3cd6183228269715ed032f44536751 No Types Assigned https://git.kernel.org/stable/c/57e2e42ccd3cd6183228269715ed032f44536751 Patch
    Changed Reference Type https://git.kernel.org/stable/c/57e2e42ccd3cd6183228269715ed032f44536751 No Types Assigned https://git.kernel.org/stable/c/57e2e42ccd3cd6183228269715ed032f44536751 Patch
    Changed Reference Type https://git.kernel.org/stable/c/61a348857e869432e6a920ad8ea9132e8d44c316 No Types Assigned https://git.kernel.org/stable/c/61a348857e869432e6a920ad8ea9132e8d44c316 Patch
    Changed Reference Type https://git.kernel.org/stable/c/61a348857e869432e6a920ad8ea9132e8d44c316 No Types Assigned https://git.kernel.org/stable/c/61a348857e869432e6a920ad8ea9132e8d44c316 Patch
    Changed Reference Type https://git.kernel.org/stable/c/88936ceab6b426f1312327e9ef849c215c6007a7 No Types Assigned https://git.kernel.org/stable/c/88936ceab6b426f1312327e9ef849c215c6007a7 Patch
    Changed Reference Type https://git.kernel.org/stable/c/88936ceab6b426f1312327e9ef849c215c6007a7 No Types Assigned https://git.kernel.org/stable/c/88936ceab6b426f1312327e9ef849c215c6007a7 Patch
    Changed Reference Type https://git.kernel.org/stable/c/c7ebd8149ee519d27232e6e4940e9c02071b568b No Types Assigned https://git.kernel.org/stable/c/c7ebd8149ee519d27232e6e4940e9c02071b568b Patch
    Changed Reference Type https://git.kernel.org/stable/c/c7ebd8149ee519d27232e6e4940e9c02071b568b No Types Assigned https://git.kernel.org/stable/c/c7ebd8149ee519d27232e6e4940e9c02071b568b 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/36695d5eeeefe5a64b47d0336e7c8fc144e78182
    Added Reference https://git.kernel.org/stable/c/57e2e42ccd3cd6183228269715ed032f44536751
    Added Reference https://git.kernel.org/stable/c/61a348857e869432e6a920ad8ea9132e8d44c316
    Added Reference https://git.kernel.org/stable/c/88936ceab6b426f1312327e9ef849c215c6007a7
    Added Reference https://git.kernel.org/stable/c/c7ebd8149ee519d27232e6e4940e9c02071b568b
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 29, 2024

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

    May. 14, 2024

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

    Apr. 03, 2024

    Action Type Old Value New Value
    Added Description In the Linux kernel, the following vulnerability has been resolved: usb: dwc3: gadget: Fix NULL pointer dereference in dwc3_gadget_suspend In current scenario if Plug-out and Plug-In performed continuously there could be a chance while checking for dwc->gadget_driver in dwc3_gadget_suspend, a NULL pointer dereference may occur. Call Stack: CPU1: CPU2: gadget_unbind_driver dwc3_suspend_common dwc3_gadget_stop dwc3_gadget_suspend dwc3_disconnect_gadget CPU1 basically clears the variable and CPU2 checks the variable. Consider CPU1 is running and right before gadget_driver is cleared and in parallel CPU2 executes dwc3_gadget_suspend where it finds dwc->gadget_driver which is not NULL and resumes execution and then CPU1 completes execution. CPU2 executes dwc3_disconnect_gadget where it checks dwc->gadget_driver is already NULL because of which the NULL pointer deference occur.
    Added Reference kernel.org https://git.kernel.org/stable/c/88936ceab6b426f1312327e9ef849c215c6007a7 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/57e2e42ccd3cd6183228269715ed032f44536751 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/c7ebd8149ee519d27232e6e4940e9c02071b568b [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/36695d5eeeefe5a64b47d0336e7c8fc144e78182 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/61a348857e869432e6a920ad8ea9132e8d44c316 [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.
Vulnerability Scoring Details
Base CVSS Score: 5.5
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact