5.5medium
usb: dwc3: gadget: Fix looping of queued SG entries
- Severity
- 5.5medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.21% (higher than 12% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: usb: dwc3: gadget: Fix looping of queued SG entries The dwc3_request->num_queued_sgs is decremented on completion. If a partially completed request is handled, then the dwc3_request->num_queued_sgs no longer reflects the total number of num_queued_sgs (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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from c96e6725db9d6a04ac1bee881e3034b636d9f71c before 8ceb21d76426bbe7072cc3e43281e70c0d664cc7, from c96e6725db9d6a04ac1bee881e3034b636d9f71c before 0247da93bf62d33304b7bf97850ebf2a86e06d28, from c96e6725db9d6a04ac1bee881e3034b636d9f71c before c9e72352a10ae89a430449f7bfeb043e75c255d9, from c96e6725db9d6a04ac1bee881e3034b636d9f71c before 1534f6f69393aac773465d80d31801b554352627, from c96e6725db9d6a04ac1bee881e3034b636d9f71c before b7c3d0b59213ebeedff63d128728ce0b3d7a51ec, from c96e6725db9d6a04ac1bee881e3034b636d9f71c before 70777a23a54e359cfdfafc625a57cd56434f3859, from c96e6725db9d6a04ac1bee881e3034b636d9f71c before b7fc65f5141c24785dc8c19249ca4efcf71b3524, 4.18 Not affected: before 4.18, from 5.10.231 up to 5.10.*, from 5.15.174 up to 5.15.*, from 6.1.120 up to 6.1.*, from 6.6.64 up to 6.6.*, from 6.11.11 up to 6.11.* | CVE List |
| linux linux_kernel | from 4.18 before 5.10.231, from 5.11 before 5.15.174, from 5.16 before 6.1.120, from 6.2 before 6.6.64, from 6.7 before 6.11.11, from 6.12 before 6.12.2 | NVD |
All scores
| CISA-ADP | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: usb: dwc3: gadget: Fix looping of queued SG entries The dwc3_request->num_queued_sgs is decremented on completion. If a partially completed request is handled, then the dwc3_request->num_queued_sgs no longer reflects the total number of num_queued_sgs (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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: usb: dwc3: gadget: Se corrige el bucle de entradas SG en cola. El dwc3_request->num_queued_sgs se reduce al completarse. Si se gestiona una solicitud parcialmente completada, entonces el dwc3_request->num_queued_sgs ya no refleja el número total de num_queued_sgs (se borraría). Verifique correctamente el número de entradas SG de solicitud que quedan por preparar y poner en cola. Si no lo hace, puede causar una desreferencia de puntero nulo al acceder a una entrada SG inexistente.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-56698 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2024-56698 changed 2026-06-17 | Public domain |