Article View: linux.kernel.netdev
Article #17837Re: [PATCH net v3] net: usb: cdc_ncm: fix out-of-bounds read of chained NDP32 offset
From: patchwork-bot+netdevbpf
Date: Tue, 17 Nov 2026 12:20
Date: Tue, 17 Nov 2026 12:20
27 lines
8906 bytes
8906 bytes
Hello:
This patch was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@redhat.com>:
On Thu, 12 Nov 2026 08:22:09 +0000 you wrote:
> The NDP offset read from dwNextNdpIndex on the 32-bit NTB (NDP32)
> path is not checked for a negative value before use. A
> device-supplied dwNextNdpIndex in the 0xFFFFFFF0-0xFFFFFFFF range
> sign-converts to a small negative int. cdc_ncm_rx_verify_ndp32()'s
> existing bounds check then double-wraps: promoting the negative int
> to size_t first produces a huge value, and adding
> sizeof(struct usb_cdc_ncm_ndp32) to that wraps it back down to a
> small value that passes the "> skb_in->len" check, causing an
> out-of-bounds read of up to 16 bytes before the skb's data buffer.
>
> [...]
Here is the summary with links:
- [net,v3] net: usb: cdc_ncm: fix out-of-bounds read of chained NDP32 offset
https://git.kernel.org/netdev/net-next/c/c1824744b3b6
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179491800478.546052.18043881095735155809.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365230-linux-kernel-netdev=dewy.ruReferences:
<20261112082022.995351-1-rc4d5a@protonmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365230-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v3] net: usb: cdc_ncm: fix out-of-bounds read of chained NDP32 offset Date: Tue, 17 Nov 2026 12:20:04 +0000 Organization: Usenet Network Message-ID: <179491800478.546052.18043881095735155809.git-patchwork-notify@kernel.org> References: <20261112082022.995351-1-rc4d5a@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2324993"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:2sR/RoolFL1whPP8dmap0MU84wg= sha256:/c8aHCqkVWsZQSdqlREDeNdtjRsgZy7Nty7O/7lrON0= sha1:E0ZZRaf2BPAbUtyd2iU+6eqL5EY= sha256:pUd+UuR2h9X2+CWqw8z19EOty8RqOoP9v1c9jQhvv5o= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 408D0114F47; Tue, 17 Nov 2026 15:20:25 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5DngvPiY0Dcr; Tue, 17 Nov 2026 15:20:21 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-365230-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id 5DC6C114EA4; Tue, 17 Nov 2026 15:20:12 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sin.lore.kernel.org (Postfix) with ESMTP id AE14626C97; Tue, 17 Nov 2026 12:20:08 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794918007; b=jUT/kd5x+3C0XF9B2QWUMfFCH/nsO5HoLYuRI6Q3O2wTyGyqDvCijSiwcg52LKymJ3RD BnVAKM7tB6ceH7Bd6ihFbmd35pgpN8FzS5/535cKPC9wynAkALV97vcC0H4oeNPRSaAfY gZtq2NEea8ZNgf23YNpst8MrTLXNQwPfJvV5eyW0Fmvs7trAIasSkBjqC1dvh5AxfJYf/ WBnkIJ9W9un9vbNmrPALLUmgru1It33LZu0rRlXs5PkSU3Nmo35+QrbDTe5Wk4QuKUZjZ YRGatGJeT7GJIa/7OW56YxNTvB5XeRGi7GegMHb2SAodXpmrc4Oqi7KodHQQfE3s81g== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794918007; h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=dIC6GQqXVKLou+U/WOVLQXBv5bHNyz9EKKHU7Lxe6T0=; b=u14mShovduiDhbuhDntUVSg0OkvFQ0Ed8FECPAiwx+oR6hTvZ6ST83KZTjp3eecREtXs OJBS1oqhdMqIqgEv3aACic9cjd4F7RdNUO4+kxZUh7KRzN54wEz46iJzrdvwyBCD9dsbl YImzN3JEgVTv+6x/8lA92ObfiO1Ts0Uy6aXSfUeAVaSxvxJJTIDCXpS2QL2cR7yLwUigy /ogoMyiA/MYdTDpq7s/7Klc1/S0yxr/HTIGVyw5t7FW79xDizuX2wNbXwY9OOU5BMYXz8 t5JkPROLVoqrziGc0FF8Wjhpq8Xps0uaUCqWNitSIFyMhPsuWS3kgbGcOu7QhUtTxGg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=MYeD63pM; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8DEBF606A881; Tue, 17 Nov 2026 12:20:07 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=MYeD63pM X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794918006; b=BjABsHzs6axZKYnoLxt6L5Ou9pApz+4z3es6UmzLijsFN6bHVfa4p/f8ODJZ45J+gHHZ B2njRN2jahWuqTLUx6qBiTPbByhKCZbfXdeRd/zbsCaKZmFA0Oe+ALjxqwBcsvQTylI3Y gbivp1VSe1NQbqp7g+XlfvRwQ9PVyJ5Qrkb4yNvsapIaRAo17GbKiv6+eilVyKBOuJpDU X/pqTGudNC6Pg5thNK/o9WZOQMgYDH1IKQGIUYeDYs+rR7prJodSjrZ7ounsSef2gIj2G ufL6+lUDIr4rFVvFTagv/TuLPiX1cspeBYxJEb7rZcnww6sjqRPZNeko5JKkHZVuwGA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794918006; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=dIC6GQqXVKLou+U/WOVLQXBv5bHNyz9EKKHU7Lxe6T0=; b=4l3Pq5QoZ4Pv6LmTKwOAsf3Z/bvSlmBh7NaQxt9nlOBCcG3+RbL51+/51Xg69Lg+1Wiu y4sGw0bj8D2vzA3JthdMe2Ig73g1qOCw9ltdeGenj39/bsmzXW/RoEzNRMFRW0Xx4lHFl eL0f3nZAsb1Jl0ek4X/RDxrrsrXFf+ymMyHFwh58P3k+PtmNFzftJXb65L59yT4gQhlF5 RUz/sijrPiQsPA5rtpSImODRfpBP1TDq+Bh1MJV8hlU5fJuROM2BeCGzMpRFhunRK/8YK Zbfb9wm+S3OHP0x0dU6jE4GAsVnjxwwu/w+gxXf26rU8i/AJUr9aM3RFGRxXHqVVNlw== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=MYeD63pM; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 86182606A886; Tue, 17 Nov 2026 12:20:06 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 441D61F000C5; Tue, 17 Nov 2026 12:20:06 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794918006; bh=dIC6GQqXVKLou+U/WOVLQXBv5bHNyz9EKKHU7Lxe6T0=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=MYeD63pMBd9xh5S7aUc0BYCmO1CGmHRYmkr+CjTke6T+UFMvMoQIvTwF6hgjKY9PU 3prV+CK2pJOXfPuR++Ajya073aGgFgPO5KfY79rx3cvoCL0fGID4yBd5zpEOREt3F5 M+lf/ttsLytRAAzmkMLercG9R/wplUepwHUzkedklMvEBVUHRfTyynIF7TuJLJz0TW oMGY8JN+epKpHpE0JRqXM12ZujS6VyLObtN7+zyOEpovNcm45pkihMVzNcmyCDCr2o F0N8C/iY6aRW7kZhLbiBB5cr9qb1OKzop4Io9E0rci0i+kWlSeuCGXIF5hhIQcpO+s LH1NaOXj3zbQg== X-Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 3A47D3926663; Tue, 17 Nov 2026 12:20:06 +0000 (UTC) X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <20261112082022.995351-1-rc4d5a@protonmail.com> X-Cc: oliver@neukum.org, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, linux-usb@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org