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.
Published: 2026-08-22
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Information Disclosure via Out-of-Bounds Read
Action: Immediate Patch
AI Analysis

Impact

The Linux kernel contains a flaw in the f_ncm gadget driver where the variable ndp_index is signed but receives an unsigned value from get_ncm(). A host that sends a large offset can cause the signed integer to wrap into a negative value. The driver then compares this negative value against unsigned bounds, bypassing sanity checks and computing an address that falls outside the valid NDP block. This results in an out-of-bounds read that can expose kernel memory contents to the host.

Affected Systems

This vulnerability affects the Linux kernel on systems that enable the USB Network Control Model gadget driver (f_ncm). The exact kernel versions are not listed in the advisory, so any kernel that has the unpatched f_ncm code is potentially impacted.

Risk and Exploitability

The flaw can be exploited by a malicious USB host that sends crafted NCM requests, providing a large offset that triggers the signed overflow. The attack requires physical or logical access to the USB device and the ability to send controlled NCM packets. The EPSS score is <1%, indicating a low probability of exploitation, while the CVSS score of 5.5 indicates a moderate severity and potential impact. The vulnerability is not currently listed in the CISA KEV catalog, and the out‑of‑bounds read bypasses sanity checks to expose kernel memory contents, making it a serious information‑disclosure risk for vulnerable hosts.

Generated by OpenCVE AI on August 24, 2026 at 13:37 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply a kernel update that patches the f_ncm driver to use an unsigned type for ndp_index
  • If a patch cannot be applied immediately, disable the f_ncm gadget driver or disconnect the USB device that exposes the NCM interface
  • Continuously monitor USB traffic for anomalous NCM requests and restrict access to the USB gadget interface to trusted hosts

Generated by OpenCVE AI on August 24, 2026 at 13:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4777-1 linux security update
Debian DSA Debian DSA DSA-6466-1 linux security update
History

Mon, 24 Aug 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-125
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Sat, 22 Aug 2026 18:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-190

Sat, 22 Aug 2026 15:45:00 +0000

Type Values Removed Values Added
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.
Title usb: gadget: f_ncm: Use unsigned int for ndp_index
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-22T15:32:47.499Z

Reserved: 2026-08-15T05:44:03.925Z

Link: CVE-2026-74679

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-22T16:16:42.090

Modified: 2026-08-22T16:16:42.090

Link: CVE-2026-74679

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-22T00:00:00Z

Links: CVE-2026-74679 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-24T13:45:04Z

Weaknesses