CVE-2024-26715
usb: dwc3: gadget: Fix NULL pointer dereference in dwc3_gadget_suspend
Check your servers for CVE-2024-26715
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-26715 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.26%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 18.6% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 3 Apr 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 9772b47a4c2916d645c551228b6085ea24acbe5d, before 88936ceab6b426f1312327e9ef849c215c6007a7 affected from 9772b47a4c2916d645c551228b6085ea24acbe5d, before 57e2e42ccd3cd6183228269715ed032f44536751 affected from 9772b47a4c2916d645c551228b6085ea24acbe5d, before c7ebd8149ee519d27232e6e4940e9c02071b568b affected from 9772b47a4c2916d645c551228b6085ea24acbe5d, before 36695d5eeeefe5a64b47d0336e7c8fc144e78182 affected from 9772b47a4c2916d645c551228b6085ea24acbe5d, before 61a348857e869432e6a920ad8ea9132e8d44c316 affected 8cca5c85393a7a490d4d7942c24d73d29cc77b3e affected df2ca3271569367352835f981618e284fdc4ca94 affected from 3.16.81, before 3.17 affected from 4.4.178, before 4.5
Other versions: unaffected
|
| Linux |
affected 4.6 unaffected before 4.6 unaffected from 5.15.149 up to and including 5.15.* unaffected from 6.1.79 up to and including 6.1.* unaffected from 6.6.18 up to and including 6.6.* unaffected from 6.7.6 up to and including 6.7.* unaffected 6.8 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-26715 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-26715
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-26715
trivy image --scanners vuln IMAGE | grep CVE-2024-26715
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/88936ceab6b426f1312327e9ef849c215c6007a7 git.kernel.org
- https://git.kernel.org/stable/c/57e2e42ccd3cd6183228269715ed032f44536751 git.kernel.org
- https://git.kernel.org/stable/c/c7ebd8149ee519d27232e6e4940e9c02071b568b git.kernel.org
- https://git.kernel.org/stable/c/36695d5eeeefe5a64b47d0336e7c8fc144e78182 git.kernel.org
- https://git.kernel.org/stable/c/61a348857e869432e6a920ad8ea9132e8d44c316 git.kernel.org
Source: the record CVE-2024-26715 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse