{"id":"CVE-2024-26747","aliases":["CVE-2024-26747"],"related":[],"kind":"vulnerability","state":"published","title":"usb: roles: fix NULL pointer issue when put module's reference","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: roles: fix NULL pointer issue when put module's reference\n\nIn current design, usb role class driver will get usb_role_switch parent's\nmodule reference after the user get usb_role_switch device and put the\nreference after the user put the usb_role_switch device. However, the\nparent device of usb_role_switch may be removed before the user put the\nusb_role_switch. If so, then, NULL pointer issue will be met when the user\nput the parent module's reference.\n\nThis will save the module pointer in structure of usb_role_switch. Then,\nwe don't need to find module by iterating long relations.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: roles: fix NULL pointer issue when put module's reference\n\nIn current design, usb role class driver will get usb_role_switch parent's\nmodule reference after the user get usb_role_switch device and put the\nreference after the user put the usb_role_switch device. However, the\nparent device of usb_role_switch may be removed before the user put the\nusb_role_switch. If so, then, NULL pointer issue will be met when the user\nput the parent module's reference.\n\nThis will save the module pointer in structure of usb_role_switch. Then,\nwe don't need to find module by iterating long relations.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: usb: roles: soluciona el problema del puntero NULL al colocar la referencia del módulo. En el diseño actual, el controlador de clase de rol usb obtendrá la referencia del módulo principal usb_role_switch después de que el usuario obtenga el dispositivo usb_role_switch y coloque la referencia después del El usuario puso el dispositivo usb_role_switch. Sin embargo, el dispositivo principal de usb_role_switch se puede eliminar antes de que el usuario coloque usb_role_switch. Si es así, entonces, el problema del puntero NULL se solucionará cuando el usuario coloque la referencia del módulo principal. Esto guardará el puntero del módulo en la estructura de usb_role_switch. Entonces, no necesitamos encontrar el módulo iterando relaciones largas.","source":"nvd"}],"published":"2024-04-03T17:00:34.066Z","modified":"2026-06-17T07:18:14.527Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H","score":4.4,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H","score":4.4,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"5c54fcac9a9de559b444ac63ec3cd82f1d157a0b","fixed":"e279bf8e51893e1fe160b3d8126ef2dd00f661e1","status":"affected"},{"type":"git","introduced":"5c54fcac9a9de559b444ac63ec3cd82f1d157a0b","fixed":"ef982fc41055fcebb361a92288d3225783d12913","status":"affected"},{"type":"git","introduced":"5c54fcac9a9de559b444ac63ec3cd82f1d157a0b","fixed":"0158216805ca7e498d07de38840d2732166ae5fa","status":"affected"},{"type":"git","introduced":"5c54fcac9a9de559b444ac63ec3cd82f1d157a0b","fixed":"4b45829440b1b208948b39cc71f77a37a2536734","status":"affected"},{"type":"git","introduced":"5c54fcac9a9de559b444ac63ec3cd82f1d157a0b","fixed":"01f82de440f2ab07c259b7573371e1c42e5565db","status":"affected"},{"type":"git","introduced":"5c54fcac9a9de559b444ac63ec3cd82f1d157a0b","fixed":"1c9be13846c0b2abc2480602f8ef421360e1ad9e","status":"affected"},{"type":"git","version":"7b169e33a3bc9040e06988b2bc15e83d2af80358","status":"affected"},{"type":"semver","introduced":"4.18.12","fixed":"4.19","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.19","status":"unaffected"},{"type":"semver","introduced":"5.10.211","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.150","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.80","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.19","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.7.7","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":"4.19","fixed":"5.10.211"},{"status":"affected","introduced":"5.11","fixed":"5.15.150"},{"status":"affected","introduced":"5.16","fixed":"6.1.80"},{"status":"affected","introduced":"6.2","fixed":"6.6.19"},{"status":"affected","introduced":"6.7","fixed":"6.7.7"},{"status":"affected","version":"6.8"},{"status":"affected","version":"6.8"},{"status":"affected","version":"6.8"},{"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"},{"ranges":[{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/e279bf8e51893e1fe160b3d8126ef2dd00f661e1","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ef982fc41055fcebb361a92288d3225783d12913","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0158216805ca7e498d07de38840d2732166ae5fa","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4b45829440b1b208948b39cc71f77a37a2536734","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/01f82de440f2ab07c259b7573371e1c42e5565db","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1c9be13846c0b2abc2480602f8ef421360e1ad9e","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html","tags":["mailing-list","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-05-07T19:59:47.248Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-26747","url":"https://www.cve.org/CVERecord?id=CVE-2024-26747","licence":"CVE Terms of Use","modified":"2026-05-23T15:37:31.595Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-26747","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-26747","licence":"Public domain","modified":"2026-06-17T07:18:14.527Z"}],"updatedAt":"2026-11-25T22:58:38.681Z","epss":{"score":0.00238,"percentile":0.15877,"date":"2026-12-01T12:00:22.000Z"}}