{"id":"CVE-2024-56698","aliases":["CVE-2024-56698"],"related":[],"kind":"vulnerability","state":"published","title":"usb: dwc3: gadget: Fix looping of queued SG entries","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: dwc3: gadget: Fix looping of queued SG entries\n\nThe dwc3_request->num_queued_sgs is decremented on completion. If a\npartially completed request is handled, then the\ndwc3_request->num_queued_sgs no longer reflects the total number of\nnum_queued_sgs (it would be cleared).\n\nCorrectly check the number of request SG entries remained to be prepare\nand queued. Failure to do this may cause null pointer dereference when\naccessing non-existent SG entry.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: dwc3: gadget: Fix looping of queued SG entries\n\nThe dwc3_request->num_queued_sgs is decremented on completion. If a\npartially completed request is handled, then the\ndwc3_request->num_queued_sgs no longer reflects the total number of\nnum_queued_sgs (it would be cleared).\n\nCorrectly check the number of request SG entries remained to be prepare\nand queued. Failure to do this may cause null pointer dereference when\naccessing non-existent SG entry.","source":"cvelist"},{"lang":"es","text":"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-&gt;num_queued_sgs se reduce al completarse. Si se gestiona una solicitud parcialmente completada, entonces el dwc3_request-&gt;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.","source":"nvd"}],"published":"2024-12-28T09:46:21.363Z","modified":"2026-06-17T08:12:46.373Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"c96e6725db9d6a04ac1bee881e3034b636d9f71c","fixed":"8ceb21d76426bbe7072cc3e43281e70c0d664cc7","status":"affected"},{"type":"git","introduced":"c96e6725db9d6a04ac1bee881e3034b636d9f71c","fixed":"0247da93bf62d33304b7bf97850ebf2a86e06d28","status":"affected"},{"type":"git","introduced":"c96e6725db9d6a04ac1bee881e3034b636d9f71c","fixed":"c9e72352a10ae89a430449f7bfeb043e75c255d9","status":"affected"},{"type":"git","introduced":"c96e6725db9d6a04ac1bee881e3034b636d9f71c","fixed":"1534f6f69393aac773465d80d31801b554352627","status":"affected"},{"type":"git","introduced":"c96e6725db9d6a04ac1bee881e3034b636d9f71c","fixed":"b7c3d0b59213ebeedff63d128728ce0b3d7a51ec","status":"affected"},{"type":"git","introduced":"c96e6725db9d6a04ac1bee881e3034b636d9f71c","fixed":"70777a23a54e359cfdfafc625a57cd56434f3859","status":"affected"},{"type":"git","introduced":"c96e6725db9d6a04ac1bee881e3034b636d9f71c","fixed":"b7fc65f5141c24785dc8c19249ca4efcf71b3524","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.18","status":"unaffected"},{"type":"semver","introduced":"5.10.231","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.174","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.120","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.64","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.11.11","lastAffected":"6.11.*","status":"unaffected"},{"type":"semver","introduced":"6.12.2","lastAffected":"6.12.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.13","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.18","fixed":"5.10.231"},{"status":"affected","introduced":"5.11","fixed":"5.15.174"},{"status":"affected","introduced":"5.16","fixed":"6.1.120"},{"status":"affected","introduced":"6.2","fixed":"6.6.64"},{"status":"affected","introduced":"6.7","fixed":"6.11.11"},{"status":"affected","introduced":"6.12","fixed":"6.12.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/8ceb21d76426bbe7072cc3e43281e70c0d664cc7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0247da93bf62d33304b7bf97850ebf2a86e06d28","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c9e72352a10ae89a430449f7bfeb043e75c255d9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1534f6f69393aac773465d80d31801b554352627","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b7c3d0b59213ebeedff63d128728ce0b3d7a51ec","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/70777a23a54e359cfdfafc625a57cd56434f3859","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b7fc65f5141c24785dc8c19249ca4efcf71b3524","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-01T19:58:57.794Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-56698","url":"https://www.cve.org/CVERecord?id=CVE-2024-56698","licence":"CVE Terms of Use","modified":"2026-05-11T20:57:31.346Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-56698","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56698","licence":"Public domain","modified":"2026-06-17T08:12:46.373Z"}],"updatedAt":"2026-11-25T22:58:50.537Z","epss":{"score":0.00214,"percentile":0.12517,"date":"2026-12-01T12:00:22.000Z"}}