CVE-2024-26747

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

MEDIUM
4.4
CVSS Score
Published: April 3, 2024 at 05:00 PM UTC
Updated: June 17, 2026 at 07:18 AM UTC
2 products affected across 2 vendorsLinux KernelDebian Linux

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM4.4
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 4.18.124.18.12 ≤ v < 4.194.19 ≤ v < 5.10.2114.19 ≤ v < 5.15.1504.19 ≤ v < 6.1.804.19 ≤ v < 6.6.194.19 ≤ v < 6.7.74.19 ≤ v < 6.85.11 ≤ v < 5.15.1505.16 ≤ v < 6.1.806.2 ≤ v < 6.6.196.7 ≤ v < 6.7.74.18.125c54fcac9a9de559b444ac63ec3cd82f1d157a0b6.8 rc16.8 rc26.8 rc36.8 rc46.8 rc57b169e33a3bc9040e06988b2bc15e83d2af80358
Vendor states this is fixed in 0158216805ca7e498d07de38840d2732166ae5fa (fixed)
Vendor states this is fixed in 01f82de440f2ab07c259b7573371e1c42e5565db (fixed)
Vendor states this is fixed in 1c9be13846c0b2abc2480602f8ef421360e1ad9e (fixed)
Vendor states this is fixed in 4b45829440b1b208948b39cc71f77a37a2536734 (fixed)
Vendor states this is fixed in e279bf8e51893e1fe160b3d8126ef2dd00f661e1 (fixed)
Vendor states this is fixed in ef982fc41055fcebb361a92288d3225783d12913 (fixed)
Vendor states this is fixed in 4.19 (unaffected)
Vendor states this is fixed in 5.10.211 (unaffected)
Vendor states this is fixed in 5.15.150 (unaffected)
Vendor states this is fixed in 6.1.80 (unaffected)
Vendor states this is fixed in 6.6.19 (unaffected)
Vendor states this is fixed in 6.7.7 (unaffected)
Vendor states this is fixed in 6.8 (unaffected)

References (7)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0158216805ca7e498d07de38840d2732166ae5fa
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/01f82de440f2ab07c259b7573371e1c42e5565db
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1c9be13846c0b2abc2480602f8ef421360e1ad9e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4b45829440b1b208948b39cc71f77a37a2536734
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e279bf8e51893e1fe160b3d8126ef2dd00f661e1
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ef982fc41055fcebb361a92288d3225783d12913
Mailing List
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

4.4MEDIUMCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
HIGH
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card