CVE-2024-44960

usb: gadget: core: Check for unset descriptor

State
Published
Severity
Not scored
Published
Sep 4, 2024
Updated
Oct 15, 2026
Reserved
Aug 21, 2024

Read the record on cve.org

Description

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

usb: gadget: core: Check for unset descriptor

Make sure the descriptor has been set before looking at maxpacket. This fixes a null pointer panic in this case.

This may happen if the gadget doesn't properly set up the endpoint for the current speed, or the gadget descriptors are malformed and the descriptor for the speed/endpoint are not found.

No current gadget driver is known to have this problem, but this may cause a hard-to-find bug during development of new gadgets.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • d1c188d330ca33cc35d1590441ba276f31144299 to before ba15815dd24cc5ec0d23e2170dc58c7db1e03b4aAffected
  • 54f83b8c8ea9b22082a496deadf90447a326954e to before df8e734ae5e605348aa0ca2498aedb73e815f244Affected
  • 54f83b8c8ea9b22082a496deadf90447a326954e to before 7cc9ebcfe58be22f18056ad8bc6272d120bdcb3eAffected
  • 54f83b8c8ea9b22082a496deadf90447a326954e to before 50c5248b0ea8aae0529fdf28dac42a41312d3b62Affected
  • 54f83b8c8ea9b22082a496deadf90447a326954e to before a0362cd6e503278add954123957fd47990e8d9bfAffected
  • 54f83b8c8ea9b22082a496deadf90447a326954e to before 1a9df57d57452b104c46c918569143cf21d7ebf1Affected
  • 54f83b8c8ea9b22082a496deadf90447a326954e to before 716cba46f73a92645cf13eded8d257ed48afc2a4Affected
  • 54f83b8c8ea9b22082a496deadf90447a326954e to before 973a57891608a98e894db2887f278777f564de18Affected
  • d7e3f2fe01372eb914d0e451f0e7a46cbcb98f9eAffected
  • 85c9ece11264499890d0e9f0dee431ac1bda981cAffected
  • fc71e39a6c07440e6968227f3db1988f45d7a7b7Affected
  • 94f5de2eefae22c449e367c2dacafe869af73e3fAffected
  • 8212b44b7109bd30dbf7eb7f5ecbbc413757a7d7Affected
  • 4.19.82 to before 4.19.320Affected
  • 3.16.80 to before 3.17Affected
  • 4.4.199 to before 4.5Affected
  • 4.9.199 to before 4.10Affected
  • 4.14.152 to before 4.15Affected
  • 5.3.9 to before 5.4Affected
LinuxLinux
  • 5.4Affected
  • before 5.4Not affected
  • 4.19.320 through 4.19.*Not affected
  • 5.4.282 through 5.4.*Not affected
  • 5.10.224 through 5.10.*Not affected
  • 5.15.165 through 5.15.*Not affected
  • 6.1.105 through 6.1.*Not affected
  • 6.6.46 through 6.6.*Not affected
  • 6.10.5 through 6.10.*Not affected
  • 6.11 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.