From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 231453F0A86 for ; Fri, 8 May 2026 14:26:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778250385; cv=none; b=JN68amuKblOQ4TlGCJ59IyK1JlKFOvw5YWsGs7fa1nFcJoOnNxmi6RtZROKf2AJgnhGJiPklsyIWHpl+uRWvMH2bwq3xpFy0n8HVYSM6tH5Gf0tSrPdLst8CBW9y5QuXgaQ6idVJ+oXlX2o8BjxtCCSM0sK9lFjFqjeXEMk7dFM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778250385; c=relaxed/simple; bh=jphQE9BiJkkWfXoDxD0xxRW/z260OJERAIXpkrDqua4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GFLErDC73VjjbwRNJE7I/m5Gq2a4UO+GZs8UwAqkqF6H1pqxG5zwzVmGg/mAjwPxuZKyawJLD1aOFop9kHC0bcwIfgW2u5QBMGQX6682XsyFGsXfIEmv6RrqYlv90fHb97c5bPh9MaCvgl+phzHplFo+WKCAa/XH4n5zOEMaOcE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yH7N2H6B; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="yH7N2H6B" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 10419C2BCB0; Fri, 8 May 2026 14:26:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778250384; bh=jphQE9BiJkkWfXoDxD0xxRW/z260OJERAIXpkrDqua4=; h=From:To:Cc:Subject:Date:Reply-To:From; b=yH7N2H6BQELkj/R3vq1J7IRpjX1fQBKgerDq4B7QrbK6As1Tr38P8l8B/JvA9r40o yZx2oKIQe7rWvGhxTfZ/FE85E+DNIdoE0dYt5svh3asc07A2oOcUOycHpCIxYxYHCB XyMehxZ5uSR5reYckOQOlKR3WKswLWn9OEkcRfT4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43422: usb: legacy: ncm: Fix NPE in gncm_bind Date: Fri, 8 May 2026 16:22:31 +0200 Message-ID: <2026050847-CVE-2026-43422-6042@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2374; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=QldNk61qlULs2zf9ckL+riy5Xo0MHwQLU+VgqHeiJlE=; b=owGbwMvMwCRo6H6F97bub03G02pJDJl/P1avMJz/bdqb+3Un/kdFOOp4P+jdzcUUvo3PjffRh hIBR61LHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRD9kMC9apfOf7vuy2lMXN 97rnBE6tilg6oZxhQdcWvVi+zEnP2nN8zn/buOuZ8Ru7UgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: usb: legacy: ncm: Fix NPE in gncm_bind Commit 56a512a9b410 ("usb: gadget: f_ncm: align net_device lifecycle with bind/unbind") deferred the allocation of the net_device. This change leads to a NULL pointer dereference in the legacy NCM driver as it attempts to access the net_device before it's fully instantiated. Store the provided qmult, host_addr, and dev_addr into the struct ncm_opts->net_opts during gncm_bind(). These values will be properly applied to the net_device when it is allocated and configured later in the binding process by the NCM function driver. The Linux kernel CVE team has assigned CVE-2026-43422 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18.17 with commit b62076e780a2121903ecf9ffdfb89c64647cb7da and fixed in 6.18.19 with commit be5738d19bed244ede84da45bc45395bcb1d99e0 Issue introduced in 6.19.7 with commit 188338c1827842f898761a939669cf345bdf07e2 and fixed in 6.19.9 with commit b23e86a3a15803c3dcb24701285f73e65099fdf9 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-43422 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/usb/gadget/legacy/ncm.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/be5738d19bed244ede84da45bc45395bcb1d99e0 https://git.kernel.org/stable/c/b23e86a3a15803c3dcb24701285f73e65099fdf9 https://git.kernel.org/stable/c/fde0634ad9856b3943a2d1a8cc8de174a63ac840