From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795154383; b=qOpNkoiLsY3qaYDVLgVNvG8tl589EEocHZO74gICg8ViFROpsqrie1dPsH5An6BK2+s9 oLZXZC5+dfTSzQdJsu2BpHhuJ7BpcSP176eZVert+CehzbpKUbwsCxzKK9fk+ulxdszNO +a0TOpWGO9/eZlvf06S1iRZ/wXxNhdaUI0CFvu8CbaRmywY5hrbURszz+56T4XoH86LjI /NMEPbKAdyMnj9mBsdsSAvPgsq9zF2zGKQa5ZQ0zCBI5LnKvZ+aZL3zr6PQl7pPgOsvQn vDptJgvwhmhbTmC/sp5tZCDQ4NyV/3bCiT5zVOyL9WKDT1TAGtV+Zj0YmBKrPXlGzyw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154383; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=JIclgtoaNjPA9XxXJv28X+KfAA4pVNR3liZo6VUM4go=; b=5P5gh7drQ7DZ30l3NftCMmtkiIVjY49zmD4Z5OdER33YVfGph5YIj5Y7s58w0Kvkdg83 8WqRaF+NVThQqylmr2etAwI9M0u2KTRNs6uME1h0MQlJ94wDWYObLOovvtC/eqXt3tCVw S6u1aot9v8pM8UwViAITaRA7xPflcm2gbvWLgHGZmwhTq/4YMpeEIJ+O0wHt+5L/wXF8y OXKH33FHrxRcFkO3Mn7XdOUK/sMQqDAkQpw8wv01ugRkG96SCzWRgUkxmbsLhhcBzqTRx eYMLwx5vlMH4KLYyfv0l8dhefAuGy+qo8TO1n5bagrjod4K/Ib16OmnC+6lvutE3f8Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b="TkMAGj1/"; arc=none smtp.remote-ip=100.103.45.18 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 7D32F606A504 for ; Fri, 20 Nov 2026 05:59:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=TkMAGj1/ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78C011F000C6; Fri, 20 Nov 2026 05:59:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154383; bh=JIclgtoaNjPA9XxXJv28X+KfAA4pVNR3liZo6VUM4go=; h=From:To:Cc:Subject:Date:Reply-To; b=TkMAGj1/y9pyhYbS0rnbCzlzs2SSngeDyLPvXYprcDFd67VHF0LgMdoKJDwgEHbq8 Z0raqYBT7lq9Xslla7jL703qJyHvl0QXWKvHN8zCZrvC8OVofSd7l7py2jVlR2YRuO VIxdKdlJxfipuUXi8TfFzbEyKII8GFZOzi1FS3Wg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99725: cipso: fix optlen corruption in cipso_v4_delopt() Date: Fri, 20 Nov 2026 06:51:51 +0100 Message-ID: <2026112011-CVE-2026-99725-dbfb@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2916; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=CWn+VnY9BFie01Y+HqKWxZBHjxwh/660wErc8gV93/A=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/70/2mpWgc9Xc0pw3PlPne3V11sGdHY+fZTL2nfy4/ bPQ1DfVHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRLz8Y5pdI7NLvcinfyCL+ e1qhwQ4Tg1dr3jHMlc0XnqQfnr+kYMaH6IkS57bY/2gQAgA= 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: cipso: fix optlen corruption in cipso_v4_delopt() 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. Compute the new length from the intact options before the move and subtract the CIPSO length, and fill the padding with IPOPT_END. The Linux kernel CVE team has assigned CVE-2026-99725 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.28 with commit 014ab19a69c325f52d7bae54ceeda73d6307ae0c and fixed in 6.12.118 with commit 699141380f7f249b7ee594198d9bea6bcd4862ea Issue introduced in 2.6.28 with commit 014ab19a69c325f52d7bae54ceeda73d6307ae0c and fixed in 6.18.64 with commit 4077bd2bcebf43922f84aa87f6839153212df509 Issue introduced in 2.6.28 with commit 014ab19a69c325f52d7bae54ceeda73d6307ae0c and fixed in 7.3.5 with commit 0d9a6f9778ccd4401ded4ec9faf750b7b4a14ce7 Issue introduced in 2.6.28 with commit 014ab19a69c325f52d7bae54ceeda73d6307ae0c and fixed in 7.4-rc2 with commit 1f1f8e8c5176234fa31858cd25f2e9b88aac0a45 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-99725 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: net/ipv4/cipso_ipv4.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/699141380f7f249b7ee594198d9bea6bcd4862ea https://git.kernel.org/stable/c/4077bd2bcebf43922f84aa87f6839153212df509 https://git.kernel.org/stable/c/0d9a6f9778ccd4401ded4ec9faf750b7b4a14ce7 https://git.kernel.org/stable/c/1f1f8e8c5176234fa31858cd25f2e9b88aac0a45