{"schema_version":"1.9.0","id":"CVE-2024-56698","published":"2024-12-28T09:46:21.363Z","modified":"2026-08-12T03:51:47.947474323Z","related":["SUSE-SU-2025:0289-1","SUSE-SU-2025:0428-1","SUSE-SU-2025:0499-1","SUSE-SU-2025:0556-1","SUSE-SU-2025:0557-1","SUSE-SU-2025:0577-1","SUSE-SU-2025:0577-2","SUSE-SU-2025:20165-1","SUSE-SU-2025:20166-1","SUSE-SU-2025:20248-1","SUSE-SU-2025:20249-1","USN-7276-1","USN-7277-1"],"summary":"usb: dwc3: gadget: Fix looping of queued SG entries","details":"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.","affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"c96e6725db9d6a04ac1bee881e3034b636d9f71c"},{"fixed":"8ceb21d76426bbe7072cc3e43281e70c0d664cc7"},{"fixed":"0247da93bf62d33304b7bf97850ebf2a86e06d28"},{"fixed":"c9e72352a10ae89a430449f7bfeb043e75c255d9"},{"fixed":"1534f6f69393aac773465d80d31801b554352627"},{"fixed":"b7c3d0b59213ebeedff63d128728ce0b3d7a51ec"},{"fixed":"70777a23a54e359cfdfafc625a57cd56434f3859"},{"fixed":"b7fc65f5141c24785dc8c19249ca4efcf71b3524"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56698.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.18.0"},{"fixed":"5.10.231"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.174"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.120"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.64"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.11.11"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.12.0"},{"fixed":"6.12.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56698.json"}}],"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0247da93bf62d33304b7bf97850ebf2a86e06d28"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1534f6f69393aac773465d80d31801b554352627"},{"type":"WEB","url":"https://git.kernel.org/stable/c/70777a23a54e359cfdfafc625a57cd56434f3859"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8ceb21d76426bbe7072cc3e43281e70c0d664cc7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b7c3d0b59213ebeedff63d128728ce0b3d7a51ec"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b7fc65f5141c24785dc8c19249ca4efcf71b3524"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c9e72352a10ae89a430449f7bfeb043e75c255d9"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56698.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56698"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56698.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}