CVE-2024-26747

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

Medium · published April 3, 2024

CVSS v3.1
4.4
EPSS
0%
Percentile
14.0
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
4.4 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00238 · 14.0th percentile
Published
2024-04-03T17:00Z
EPSS history
Timeline
  • 03 APR 17:00Z
    usb: roles: fix NULL pointer issue when put module's reference
    cvelistv5