CVE-2024-26747

MediumCVSS 4.4/10Last modified Jun 17, 2026

Description

In the Linux kernel, the following vulnerability has been resolved:

usb: roles: fix NULL pointer issue when put module's reference

In current design, usb role class driver will get usb_role_switch parent's module reference after the user get usb_role_switch device and put the reference after the user put the usb_role_switch device. However, the parent device of usb_role_switch may be removed before the user put the usb_role_switch. If so, then, NULL pointer issue will be met when the user put the parent module's reference.

This will save the module pointer in structure of usb_role_switch. Then, we don't need to find module by iterating long relations.

Metrics

CVSS 3.1 4.4/10CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H

Weakness enumeration

Affected software

VendorProductVersions
LinuxLinux>= 5c54fcac9a9de559b444ac63ec3cd82f1d157a0b, < e279bf8e51893e1fe160b3d8126ef2dd00f661e1; >= 5c54fcac9a9de559b444ac63ec3cd82f1d157a0b, < ef982fc41055fcebb361a92288d3225783d12913; >= 5c54fcac9a9de559b444ac63ec3cd82f1d157a0b, < 0158216805ca7e498d07de38840d2732166ae5fa; >= 5c54fcac9a9de559b444ac63ec3cd82f1d157a0b, < 4b45829440b1b208948b39cc71f77a37a2536734; >= 5c54fcac9a9de559b444ac63ec3cd82f1d157a0b, < 01f82de440f2ab07c259b7573371e1c42e5565db; >= 5c54fcac9a9de559b444ac63ec3cd82f1d157a0b, < 1c9be13846c0b2abc2480602f8ef421360e1ad9e; 7b169e33a3bc9040e06988b2bc15e83d2af80358; >= 4.18.12, < 4.19
LinuxLinux4.19

References

Timeline

Published
Apr 3, 2024
Last modified
Jun 17, 2026
NVD status
Analyzed

Related CVEs from 2024

CVE-2024-267487.8In the Linux kernel, the following vulnerability has been resolved: usb: cdns3: fix memory double free when handle zero packet 829 if (reCVE-2024-267497.8In the Linux kernel, the following vulnerability has been resolved: usb: cdns3: fixed memory use after free at cdns3_gadget_ep_disable() CVE-2024-26756.5A vulnerability, which was classified as critical, has been found in Campcodes Online Job Finder System 1.0. This issue affects some unknownCVE-2024-267505.5In the Linux kernel, the following vulnerability has been resolved: af_unix: Drop oob_skb ref before purging queue in GC. syzbot reported CVE-2024-267515.5In the Linux kernel, the following vulnerability has been resolved: ARM: ep93xx: Add terminator to gpiod_lookup_table Without the terminatCVE-2024-267525.5In the Linux kernel, the following vulnerability has been resolved: l2tp: pass correct message length to ip6_append_data l2tp_ip6_sendmsg CVE-2024-267537.8In the Linux kernel, the following vulnerability has been resolved: crypto: virtio/akcipher - Fix stack overflow on memcpy sizeof(struct vCVE-2024-267547.8In the Linux kernel, the following vulnerability has been resolved: gtp: fix use-after-free and null-ptr-deref in gtp_genl_dump_pdp() The CVE-2024-267555.3In the Linux kernel, the following vulnerability has been resolved: md: Don't suspend the array for interrupted reshape md_start_sync() wiCVE-2024-267565.5In the Linux kernel, the following vulnerability has been resolved: md: Don't register sync_thread for reshape directly Currently, if reshCVE-2024-267575.5In the Linux kernel, the following vulnerability has been resolved: md: Don't ignore read-only array in md_check_recovery() Usually if theCVE-2024-267585.5In the Linux kernel, the following vulnerability has been resolved: md: Don't ignore suspended array in md_check_recovery() mddev_suspend(
CVE-2024-26747: Medium severity, CVSS 4.4 | Vulnix