usb: gadget: f_ncm: Use unsigned int for ndp_index

Summary

CVECVE-2026-74679
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-08-22 16:16:42 UTC
Updated2026-08-22 16:16:42 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_ncm: Use unsigned int for ndp_index The variable ndp_index is declared as a signed integer, but it stores the return value of get_ncm(), which is unsigned. A malicious host can supply a large offset that overflows the signed ndp_index, making it negative. Because ndp_index 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 (ntb_ptr + ndp_index). Fix this by changing ndp_index to unsigned int to ensure consistent unsigned comparisons throughout the function.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 370af734dfaf8336b496b386e194648e097e248a 9c8c6825a750fcd3efbe922847ca70ccd5a66857 git Not specified
CNA Linux Linux affected 370af734dfaf8336b496b386e194648e097e248a a1c0deeba4a46481543d6b09c665f758c54c3a1a git Not specified
CNA Linux Linux affected 370af734dfaf8336b496b386e194648e097e248a d13f650a3485b58c124b3cda45597e8002c9c833 git Not specified
CNA Linux Linux affected 370af734dfaf8336b496b386e194648e097e248a 11413d7ed42174b8f5d8d0b6a25d10dc88239b21 git Not specified
CNA Linux Linux affected 370af734dfaf8336b496b386e194648e097e248a 5b2b3a3229a3f4c493ffdee53aee2f173b6f13b3 git Not specified
CNA Linux Linux affected 370af734dfaf8336b496b386e194648e097e248a d328fdc607fa1bb668ad512e1c918a120f78f337 git Not specified
CNA Linux Linux affected 370af734dfaf8336b496b386e194648e097e248a fc9e54e22845c4da29588ca0986cb7c795b5a262 git Not specified
CNA Linux Linux affected 370af734dfaf8336b496b386e194648e097e248a 6b1c8a9403a26cb0fed7a648916c74dc236da591 git Not specified
CNA Linux Linux affected 3.17 Not specified
CNA Linux Linux unaffected 3.17 semver Not specified
CNA Linux Linux unaffected 5.10.265 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.216 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.183 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.152 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.104 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.45 6.18.* semver Not specified
CNA Linux Linux unaffected 7.1.9 7.1.* semver Not specified
CNA Linux Linux unaffected 7.2 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/d13f650a3485b58c124b3cda45597e8002c9c833 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/6b1c8a9403a26cb0fed7a648916c74dc236da591 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/d328fdc607fa1bb668ad512e1c918a120f78f337 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/5b2b3a3229a3f4c493ffdee53aee2f173b6f13b3 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/9c8c6825a750fcd3efbe922847ca70ccd5a66857 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/11413d7ed42174b8f5d8d0b6a25d10dc88239b21 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/a1c0deeba4a46481543d6b09c665f758c54c3a1a 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/fc9e54e22845c4da29588ca0986cb7c795b5a262 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report