Bug 2521394 (CVE-2026-74679) - CVE-2026-74679 kernel: usb: gadget: f_ncm: Use unsigned int for ndp_index
Summary: CVE-2026-74679 kernel: usb: gadget: f_ncm: Use unsigned int for ndp_index
Keywords:
Status: NEW
Alias: CVE-2026-74679
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-08-22 15:43 UTC by OSIDB Bzimport
Modified: 2026-08-24 10:32 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-08-22 15:43:23 UTC
In 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.

Comment 1 Mauro Matteo Cascella 2026-08-24 10:28:25 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2026082231-CVE-2026-74679-7444@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.