{"id":"CVE-2024-26715","aliases":["CVE-2024-26715"],"related":[],"kind":"vulnerability","state":"published","title":"usb: dwc3: gadget: Fix NULL pointer dereference in dwc3_gadget_suspend","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: dwc3: gadget: Fix NULL pointer dereference in dwc3_gadget_suspend\n\nIn current scenario if Plug-out and Plug-In performed continuously\nthere could be a chance while checking for dwc->gadget_driver in\ndwc3_gadget_suspend, a NULL pointer dereference may occur.\n\nCall Stack:\n\n\tCPU1:                           CPU2:\n\tgadget_unbind_driver            dwc3_suspend_common\n\tdwc3_gadget_stop                dwc3_gadget_suspend\n                                        dwc3_disconnect_gadget\n\nCPU1 basically clears the variable and CPU2 checks the variable.\nConsider CPU1 is running and right before gadget_driver is cleared\nand in parallel CPU2 executes dwc3_gadget_suspend where it finds\ndwc->gadget_driver which is not NULL and resumes execution and then\nCPU1 completes execution. CPU2 executes dwc3_disconnect_gadget where\nit checks dwc->gadget_driver is already NULL because of which the\nNULL pointer deference occur.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: dwc3: gadget: Fix NULL pointer dereference in dwc3_gadget_suspend\n\nIn current scenario if Plug-out and Plug-In performed continuously\nthere could be a chance while checking for dwc->gadget_driver in\ndwc3_gadget_suspend, a NULL pointer dereference may occur.\n\nCall Stack:\n\n\tCPU1:                           CPU2:\n\tgadget_unbind_driver            dwc3_suspend_common\n\tdwc3_gadget_stop                dwc3_gadget_suspend\n                                        dwc3_disconnect_gadget\n\nCPU1 basically clears the variable and CPU2 checks the variable.\nConsider CPU1 is running and right before gadget_driver is cleared\nand in parallel CPU2 executes dwc3_gadget_suspend where it finds\ndwc->gadget_driver which is not NULL and resumes execution and then\nCPU1 completes execution. CPU2 executes dwc3_disconnect_gadget where\nit checks dwc->gadget_driver is already NULL because of which the\nNULL pointer deference occur.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se resolvió la siguiente vulnerabilidad: usb: dwc3: gadget: corrige la desreferencia del puntero NULL en dwc3_gadget_suspend En el escenario actual, si el Plug-out y el Plug-In se ejecutan continuamente, podría haber una posibilidad al verificar dwc-&gt;gadget_driver en dwc3_gadget_suspend, puede ocurrir una desreferencia del puntero NULL. Pila de llamadas: CPU1: CPU2: gadget_unbind_driver dwc3_suspend_common dwc3_gadget_stop dwc3_gadget_suspend dwc3_disconnect_gadget CPU1 básicamente borra la variable y CPU2 verifica la variable. Considere que CPU1 se está ejecutando y justo antes de que se borre gadget_driver y en paralelo CPU2 ejecuta dwc3_gadget_suspend donde encuentra dwc-&gt;gadget_driver que no es NULL y reanuda la ejecución y luego CPU1 completa la ejecución. CPU2 ejecuta dwc3_disconnect_gadget donde verifica que dwc-&gt;gadget_driver ya sea NULL debido a lo cual se produce la deferencia del puntero NULL.","source":"nvd"}],"published":"2024-04-03T14:55:16.395Z","modified":"2026-06-17T07:18:09.833Z","severity":{"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"},"severities":[{"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":"9772b47a4c2916d645c551228b6085ea24acbe5d","fixed":"88936ceab6b426f1312327e9ef849c215c6007a7","status":"affected"},{"type":"git","introduced":"9772b47a4c2916d645c551228b6085ea24acbe5d","fixed":"57e2e42ccd3cd6183228269715ed032f44536751","status":"affected"},{"type":"git","introduced":"9772b47a4c2916d645c551228b6085ea24acbe5d","fixed":"c7ebd8149ee519d27232e6e4940e9c02071b568b","status":"affected"},{"type":"git","introduced":"9772b47a4c2916d645c551228b6085ea24acbe5d","fixed":"36695d5eeeefe5a64b47d0336e7c8fc144e78182","status":"affected"},{"type":"git","introduced":"9772b47a4c2916d645c551228b6085ea24acbe5d","fixed":"61a348857e869432e6a920ad8ea9132e8d44c316","status":"affected"},{"type":"git","version":"8cca5c85393a7a490d4d7942c24d73d29cc77b3e","status":"affected"},{"type":"git","version":"df2ca3271569367352835f981618e284fdc4ca94","status":"affected"},{"type":"semver","introduced":"3.16.81","fixed":"3.17","status":"affected"},{"type":"semver","introduced":"4.4.178","fixed":"4.5","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.6","status":"unaffected"},{"type":"semver","introduced":"5.15.149","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.79","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.18","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.7.6","lastAffected":"6.7.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.8","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":"3.16.81","fixed":"3.17"},{"status":"affected","introduced":"4.4.178","fixed":"4.5"},{"status":"affected","introduced":"4.6","fixed":"5.15.149"},{"status":"affected","introduced":"5.16","fixed":"6.1.79"},{"status":"affected","introduced":"6.2","fixed":"6.6.18"},{"status":"affected","introduced":"6.7","fixed":"6.7.6"},{"status":"affected","version":"6.8"},{"status":"affected","version":"6.8"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/88936ceab6b426f1312327e9ef849c215c6007a7","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/57e2e42ccd3cd6183228269715ed032f44536751","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c7ebd8149ee519d27232e6e4940e9c02071b568b","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/36695d5eeeefe5a64b47d0336e7c8fc144e78182","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/61a348857e869432e6a920ad8ea9132e8d44c316","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-04-03T17:49:51.140Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-26715","url":"https://www.cve.org/CVERecord?id=CVE-2024-26715","licence":"CVE Terms of Use","modified":"2026-05-23T15:37:13.226Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-26715","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-26715","licence":"Public domain","modified":"2026-06-17T07:18:09.833Z"}],"updatedAt":"2026-11-25T22:58:38.536Z","epss":{"score":0.00258,"percentile":0.18622,"date":"2026-12-01T12:00:22.000Z"}}