Article View: linux.kernel.netdev
Article #9631Re: [PATCH net v4] cipso: fix optlen corruption in cipso_v4_delopt()
From: patchwork-bot+netdevbpf
Date: Mon, 02 Nov 2026 13:00
Date: Mon, 02 Nov 2026 13:00
27 lines
8801 bytes
8801 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Dave Miller <davem@davem-thinkpadp1gen8.ibmlond.csb>:
On Thu, 29 Oct 2026 11:39:42 +0800 you wrote:
> cipso_v4_delopt() recomputes the option length by walking the option
> buffer after the CIPSO option has been moved out. The walk then reads
> the stale bytes at the tail of the buffer as option data, and a crafted
> setsockopt(IP_OPTIONS) buffer can make it treat one of them as an option
> length, increasing opt->opt.optlen beyond the valid option data.
>
> The corrupted length stays on the socket and is later used as the copy
> length by getsockopt(IP_OPTIONS) and by the udp/raw/ping sendmsg paths,
> where it exceeds the size of the buffers they copy into.
>
> [...]
Here is the summary with links:
- [net,v4] cipso: fix optlen corruption in cipso_v4_delopt()
https://git.kernel.org/netdev/net/c/1f1f8e8c5176
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179362440455.4016458.9024394156701425815.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-354679-linux-kernel-netdev=dewy.ruReferences:
<20261029033942.3644-1-q.h.hack.winter@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-354679-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v4] cipso: fix optlen corruption in cipso_v4_delopt() Date: Mon, 02 Nov 2026 13:00:04 +0000 Organization: Usenet Network Message-ID: <179362440455.4016458.9024394156701425815.git-patchwork-notify@kernel.org> References: <20261029033942.3644-1-q.h.hack.winter@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2926435"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:CdPBctOMxdBf99vDRAnCMDAUBkw= sha256:O86phkr8dy5wMVh726jYepvgMfsUi82OgUZKmKVXqm0= sha1:I3p29lQ/FHmqVKImC/7uh3I1z8s= sha256:KlA1nkvIgAgxX9DCiFgrnsXtdl6p4OzxtulQgTmSFIc= 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 027B51124FE; Mon, 2 Nov 2026 16:04:24 +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 4pCG8FmvDC5B; Mon, 2 Nov 2026 16:04:20 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-354679-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 43F281124CC; Mon, 2 Nov 2026 16:04:11 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 445E627F5B; Mon, 2 Nov 2026 13:00:13 +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=1793624412; b=v78layUJwIfaUGqxhxPzaf80eVQTZXFf1T9X6CqJK7Y6UdkxXxkOlItBXbxLVrIPFyzp fNzy+ptz+g/uGpjay9EU+7xwZMHPO1JWz1vSwKe1FFdmr57CPTsUbQXEs6Fg1Lj5fV9IY 5loM9c5ravZExK/XuvzbyUzjzc+H7D5OUmlND/U6o7vWCMF0TavDUFAQU+IOazf5bIotP BvMaoxefxWpsFSXBYXqfVe1bbP8lom4QVlFNzSII2dot+fQcHgfs2t/6OGsW7yVFq22Go doX8iX9nDXMu7l+zczfdslZ18/eRZTKfhMufb7CMm7ecvT2CVQGroDA9Jq0C0EDJv5A== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793624412; 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=frhE3W4qDnG3cVd/hHd/v/tb70IxCaC+5G9n7Npi2B0=; b=FeIgRtKvxUgYYGScyfA7ippPzMZVNLsCIVES6YoFMyIo0qWkgndzRDw0x+H+vxR2Gjk+ IqbcXHUOANTEnA5sng8rnx3Y3F3w41yZv9rg+YkxBgyKXAp8HgatnNYWFjDR8HPlMJi4z MmkWalTK9Io8kZEpxz5T50wYytPCVfIRx5blgM8fMjvZ/NCKY4c71kd3OapUxfdeXNzuy yUa0otzaq208rhBU+X7mmqT0t6whK86g3YA/DCLzDYN9LNB9z9OKW6y0cvvIuK92MDn75 9BuwVgck+kC5y+FU1ghjiZ5W/0NPAZS5kmWwry77J8dVxsipHnczQcnW5FZzoo5PimA== 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=YMhM3rQN; 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 87736606A335; Mon, 2 Nov 2026 13:00:12 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=YMhM3rQN 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=1793624406; b=JB5GZdiunZ9hvrse+zZfkVnltZugMsqijx1JiiB0jnjIivgrMON/UKjBXO0tuLK9+YoP OR6zZkodt67yL1y2Zg8pudGcDxiUqgnAEUTxY1v2QN79OQgV841WYfvLGYxGt0rBaI9zR gMSqyoJUUNEx5WeXqi5dL7hGURUT/LXNP7JFGBU7hR/GwO/FJAWDLOYcDe+J4XIBlp2KE N1HVexGVdmlR/dZRWmqo3UCHWWE2Yu/Ce3YiaZqtzrsD27j+qiplpvnnEGrHKESYwuoy+ m0hRydFsrYGKNF34TBhAPfFy2ytzKQlFgVNxWUZ5bd7Wn0a+fG2h0poX54CsDNZ6jgQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793624406; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=frhE3W4qDnG3cVd/hHd/v/tb70IxCaC+5G9n7Npi2B0=; b=I4kyZdvqALue0jo7dO7pLW6F9A9qaV4VpISoe2BYwmz3IEglleXIcRnV8RPumShP9FYG 5Z15+MARgKldFwUmEfre1oVW5Y7+f0CRqbb3c/grZbHvje74soAkO5cagkJkNlZL/8xvG mNBvMOFqREB/h3/GJy7HbEUy7kFvUFafoFmCK0HaBkCCa3yWby517WMkuQxCPL8rMQfRn 0a9qngg1hN+clo6QE9H5Mm0AYqvZAjY06wwZLA00HmnUchPLooFVSTIPu8i3zYV2n96sL ZFC5wcMsO1r1Bx5TZz6GnMYiGKKyTGW4Lo4LxKBBruhTGyBeeMptOU6keDM8+LWKzDg== 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=YMhM3rQN; 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 67475606A326; Mon, 2 Nov 2026 13:00:06 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1142B1F00A17; Mon, 2 Nov 2026 13:00:06 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793624406; bh=frhE3W4qDnG3cVd/hHd/v/tb70IxCaC+5G9n7Npi2B0=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=YMhM3rQNhLJib3fwaHBjiYulk7/r2by2R19mDpQiPPiMTXW8M1EAcTX7DO8sYmYop zX0NULhNQQjrYFsMcLHNnJk2Snw5Wklow5AuXkD2KPbZ5VF/baUtzSkPdvQ7usomox wNSmjEBNFOnM/ffhfs14yQyGP4P6J5Mewr26vdYvFLxpmfJp53+ZZC5g5aDZbAJZd8 wHBn+x6zgxNmZpFQcgZ5ukW4266tFjbLhsmVN0Kf5zvV0AuXfjq6ZkiwP4LIGrF1td ltb4f9+sYyziY2eQ1wksg431h8kwIv4f6yWLmyJEnK9G3//2dS3PBNOLjEORMiA+bB REFs/rXNm2zTA== 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 02F9D380821F; Mon, 2 Nov 2026 13:00: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: <20261029033942.3644-1-q.h.hack.winter@gmail.com> X-Cc: netdev@vger.kernel.org, paul@paul-moore.com, linux-security-module@vger.kernel.org, omniameasunt@proton.me