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

CVE-2024-26747
MEDIUM 4.4

At a glance

Source
NVD
EPSS
EPSS 0.24 % · percentile 15 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

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.

Weaknesses (CWE)

  • CWE-476 — NULL Pointer Dereference

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 4.4CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:HCISA-ADP
CVSS 3.1MEDIUM 4.4CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:HNVD · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 5c54fcac9a9de559b444ac63ec3cd82f1d157a0b < e279bf8e51893e1fe160b3d8126ef2dd00f661e1 ; affected 5c54fcac9a9de559b444ac63ec3cd82f1d157a0b < ef982fc41055fcebb361a92288d3225783d12913 ; affected 5c54fcac9a9de559b444ac63ec3cd82f1d157a0b < 0158216805ca7e498d07de38840d2732166ae5fa ; affected 5c54fcac9a9de559b444ac63ec3cd82f1d157a0b < 4b45829440b1b208948b39cc71f77a37a2536734 ; affected 5c54fcac9a9de559b444ac63ec3cd82f1d157a0b < 01f82de440f2ab07c259b7573371e1c42e5565db ; affected 5c54fcac9a9de559b444ac63ec3cd82f1d157a0b < 1c9be13846c0b2abc2480602f8ef421360e1ad9e
Linux · Linuxaffected 4.19 ; unaffected 0 < 4.19 ; unaffected 5.10.211 ≤ 5.10.* ; unaffected 5.15.150 ≤ 5.15.* ; unaffected 6.1.80 ≤ 6.1.* ; unaffected 6.6.19 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD