# CVE-2024-26747: usb: roles: fix NULL pointer issue when put module's reference

- Severity: Medium 4.4 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-04-03T17:00:34.066Z
- Modified: 2026-06-17T07:18:14.527Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 5c54fcac9a9de559b444ac63ec3cd82f1d157a0b before e279bf8e51893e1fe160b3d8126ef2dd00f661e1; from 5c54fcac9a9de559b444ac63ec3cd82f1d157a0b before ef982fc41055fcebb361a92288d3225783d12913; from 5c54fcac9a9de559b444ac63ec3cd82f1d157a0b before 0158216805ca7e498d07de38840d2732166ae5fa; from 5c54fcac9a9de559b444ac63ec3cd82f1d157a0b before 4b45829440b1b208948b39cc71f77a37a2536734; from 5c54fcac9a9de559b444ac63ec3cd82f1d157a0b before 01f82de440f2ab07c259b7573371e1c42e5565db; from 5c54fcac9a9de559b444ac63ec3cd82f1d157a0b before 1c9be13846c0b2abc2480602f8ef421360e1ad9e; 7b169e33a3bc9040e06988b2bc15e83d2af80358; from 4.18.12 before 4.19; 4.19 (not affected: before 4.19; from 5.10.211 up to 5.10.*; from 5.15.150 up to 5.15.*; from 6.1.80 up to 6.1.*; from 6.6.19 up to 6.6.*; from 6.7.7 up to 6.7.*; from 6.8 up to *)
- linux linux_kernel: from 4.19 before 5.10.211; from 5.11 before 5.15.150; from 5.16 before 6.1.80; from 6.2 before 6.6.19; from 6.7 before 6.7.7; 6.8
- debian debian_linux: 10.0

## References

- <https://git.kernel.org/stable/c/e279bf8e51893e1fe160b3d8126ef2dd00f661e1> (patch)
- <https://git.kernel.org/stable/c/ef982fc41055fcebb361a92288d3225783d12913> (patch)
- <https://git.kernel.org/stable/c/0158216805ca7e498d07de38840d2732166ae5fa> (patch)
- <https://git.kernel.org/stable/c/4b45829440b1b208948b39cc71f77a37a2536734> (patch)
- <https://git.kernel.org/stable/c/01f82de440f2ab07c259b7573371e1c42e5565db> (patch)
- <https://git.kernel.org/stable/c/1c9be13846c0b2abc2480602f8ef421360e1ad9e> (patch)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html> (mailing-list)

## Sources

- CVE List: [CVE-2024-26747](https://www.cve.org/CVERecord?id=CVE-2024-26747), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2024-26747](https://nvd.nist.gov/vuln/detail/CVE-2024-26747), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-26747 · Whole record: https://cve.day/CVE-2024-26747.json · Rebuilt by cve.day 2026-11-25T22:58:38.681Z
