{"id":"CVE-2024-26747","summary":"usb: roles: fix NULL pointer issue when put module's reference","details":"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.","modified":"2026-04-02T10:05:46.912851Z","published":"2024-04-03T17:00:34.066Z","related":["SUSE-SU-2024:1490-1","SUSE-SU-2024:1643-1","SUSE-SU-2024:1646-1","SUSE-SU-2024:1659-1","SUSE-SU-2024:1663-1","SUSE-SU-2024:1870-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26747.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0158216805ca7e498d07de38840d2732166ae5fa"},{"type":"WEB","url":"https://git.kernel.org/stable/c/01f82de440f2ab07c259b7573371e1c42e5565db"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1c9be13846c0b2abc2480602f8ef421360e1ad9e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4b45829440b1b208948b39cc71f77a37a2536734"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e279bf8e51893e1fe160b3d8126ef2dd00f661e1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ef982fc41055fcebb361a92288d3225783d12913"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26747.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-26747"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"5c54fcac9a9de559b444ac63ec3cd82f1d157a0b"},{"fixed":"e279bf8e51893e1fe160b3d8126ef2dd00f661e1"},{"fixed":"ef982fc41055fcebb361a92288d3225783d12913"},{"fixed":"0158216805ca7e498d07de38840d2732166ae5fa"},{"fixed":"4b45829440b1b208948b39cc71f77a37a2536734"},{"fixed":"01f82de440f2ab07c259b7573371e1c42e5565db"},{"fixed":"1c9be13846c0b2abc2480602f8ef421360e1ad9e"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"7b169e33a3bc9040e06988b2bc15e83d2af80358"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26747.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H"}]}