CVE-2024-56698: usb: dwc3: gadget: Fix looping of queued SG entries

Published Dec 28, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

usb: dwc3: gadget: Fix looping of queued SG entries

The dwc3request->numqueuedsgs is decremented on completion. If a partially completed request is handled, then the dwc3request->numqueuedsgs no longer reflects the total number of numqueuedsgs (it would be cleared).

Correctly check the number of request SG entries remained to be prepare and queued. Failure to do this may cause null pointer dereference when accessing non-existent SG entry.

Other sources

This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.

Launchpad

Affected Software

9 affected componentsFixes available
Linux Kernel
Linux Linux kernel>=4.18<5.10.231
Linux Linux kernel>=5.11<5.15.174
Linux Linux kernel>=5.16<6.1.120
Linux Linux kernel>=6.2<6.6.64
Linux Linux kernel>=6.7<6.11.11
Linux Linux kernel>=6.12<6.12.2
debian/linux<=5.10.223-1
5.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1
debian/linux-6.1
6.1.129-1~deb11u1

Event History

Dec 28, 2024
CVE Published
via MITRE·09:46 AM
Data Sourced
via MITRE·09:46 AM
Description
Data Sourced
via NVD·10:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Mar 28, 2025
Data Sourced
via Launchpad·01:05 AM
Description
May 11, 2025
Data Sourced
via Ubuntu·01:14 AM
RemedyDescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-56698?

CVE-2024-56698 has not publicly been assigned a specific severity rating but addresses an issue in the Linux kernel that could potentially lead to vulnerabilities in USB gadget operations.

2

Which versions of the Linux kernel are affected by CVE-2024-56698?

CVE-2024-56698 affects Linux kernel versions from 4.18 up to 6.12.2, with specific ranges outlined for each affected version.

3

How do I fix CVE-2024-56698?

To fix CVE-2024-56698, update your Linux kernel to at least version 6.1.123-1 or a newer version available in your distribution.

4

What is the nature of the vulnerability in CVE-2024-56698?

The vulnerability in CVE-2024-56698 is related to the improper handling of queued scatter-gather (SG) entries in the Linux kernel USB driver.

5

Has CVE-2024-56698 been resolved and how?

Yes, CVE-2024-56698 has been resolved through a fix that ensures correct decrementing of queued SG entry counts upon request completion.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203