CVE-2026-74679: usb: gadget: f_ncm: Use unsigned int for ndp_index

Published Aug 22, 2026
·
Updated

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

usb: gadget: fncm: Use unsigned int for ndpindex

The variable ndpindex is declared as a signed integer, but it stores the return value of getncm(), which is unsigned.

A malicious host can supply a large offset that overflows the signed ndpindex, making it negative. Because ndpindex is compared against unsigned bounds, this negative value bypasses sanity checks and leads to an out-of-bounds read when calculating the address of the NDP block (ntbptr + ndpindex).

Fix this by changing ndpindex to unsigned int to ensure consistent unsigned comparisons throughout the function.

Affected Software

1 affected component
Linux Kernel

Event History

Aug 22, 2026
CVE Published
via MITRE·03:32 PM
Data Sourced
via MITRE·03:32 PM
Description
Data Sourced
via NVD·04:16 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203