usb: gadget: f_ncm: Use unsigned int for ndp_index (Linux Linux)

CVE-2026-74679
Not available

At a glance

Source
NVD
EPSS
EPSS 0.18 % · percentile 8 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Received

Description

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.

References

European references

CERT-FR advisories

Affected products

ProductVersions
Linux · Linuxaffected 370af734dfaf8336b496b386e194648e097e248a < 9c8c6825a750fcd3efbe922847ca70ccd5a66857 ; affected 370af734dfaf8336b496b386e194648e097e248a < a1c0deeba4a46481543d6b09c665f758c54c3a1a ; affected 370af734dfaf8336b496b386e194648e097e248a < d13f650a3485b58c124b3cda45597e8002c9c833 ; affected 370af734dfaf8336b496b386e194648e097e248a < 11413d7ed42174b8f5d8d0b6a25d10dc88239b21 ; affected 370af734dfaf8336b496b386e194648e097e248a < 5b2b3a3229a3f4c493ffdee53aee2f173b6f13b3 ; affected 370af734dfaf8336b496b386e194648e097e248a < d328fdc607fa1bb668ad512e1c918a120f78f337
Linux · Linuxaffected 3.17 ; unaffected 0 < 3.17 ; unaffected 5.10.265 ≤ 5.10.* ; unaffected 5.15.216 ≤ 5.15.* ; unaffected 6.1.183 ≤ 6.1.* ; unaffected 6.6.152 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD