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 1FCAF43ADE for ; Wed, 1 May 2024 05:22:38 +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=1714540958; cv=none; b=p/3DHuJjTfu2OigXMDv+zHt8P2X0buD8gupCwHwEoHtAOMklnMP2lhu/mdw/mw4Q0GCdzX3qRJftxiUxGiTCnz5gqNJMVFsl10uc1OFPvI1kNnNXCr8EBOcU0M4ksRB1IrFU9UKD+2jbpO3G0JFusWHYaLI7BXlsUePE1nz8uJE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714540958; c=relaxed/simple; bh=GXtF9tfQrjdfoI0sdsXpqL698WiPIKu3KTEAGDHR0AE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sr7iINeQr0s0VhX2suGN0lPG18QRwBAkGSiZRGAhksf3oDctKtrCnh0AZlNcATooIkO4CysvsCvFkxjn4tpWXTIKXja9ePMGcETsk6G0peuIHQkS5kbaVaBIzz3Ykk2jMSfl82OsosN1sLlBItRqXLfuBF/VO066Rm3Phm1dwpo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=n4efK4x1; 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="n4efK4x1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8CC85C113CC; Wed, 1 May 2024 05:22:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714540957; bh=GXtF9tfQrjdfoI0sdsXpqL698WiPIKu3KTEAGDHR0AE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=n4efK4x180TjTC5ti+aooU/uMORWuNi+Ne77lXszEAsTux6X62GcP/yByVJaUBsr4 hkUdxK1Erx02Y1DI+b0chzopDyCBzyYdCsMbqfV1KXomyDzhvxmvCJo2h7A5Pfcngd MLeNIgdxPBZFaOzlvFxH++fF3YxsDtLr5KkTO/Jw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26950: wireguard: netlink: access device through ctx instead of peer Date: Wed, 1 May 2024 07:21:40 +0200 Message-ID: <2024050127-CVE-2024-26950-4424@gregkh> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2906; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=GXtF9tfQrjdfoI0sdsXpqL698WiPIKu3KTEAGDHR0AE=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmGF8Ov2T2a6jRlzapra/+G7IvZ/5e548zWdK2WxPLPJ 5Q6MlNPdcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEnNczzK/iYUk4zrwoWKmv Y/nHeQKzX0/vCmVYcOHr9Jx9X7Z5RX669Uruk/qnXqmX0gA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: wireguard: netlink: access device through ctx instead of peer The previous commit fixed a bug that led to a NULL peer->device being dereferenced. It's actually easier and faster performance-wise to instead get the device from ctx->wg. This semantically makes more sense too, since ctx->wg->peer_allowedips.seq is compared with ctx->allowedips_seq, basing them both in ctx. This also acts as a defence in depth provision against freed peers. The Linux kernel CVE team has assigned CVE-2024-26950 to this issue. Affected and fixed versions =========================== Issue introduced in 5.6 with commit e7096c131e51 and fixed in 5.10.215 with commit 493aa6bdcffd Issue introduced in 5.6 with commit e7096c131e51 and fixed in 5.15.154 with commit 4be453271a88 Issue introduced in 5.6 with commit e7096c131e51 and fixed in 6.1.84 with commit 09c3fa70f651 Issue introduced in 5.6 with commit e7096c131e51 and fixed in 6.6.24 with commit c991567e6c63 Issue introduced in 5.6 with commit e7096c131e51 and fixed in 6.7.12 with commit 93bcc1752c69 Issue introduced in 5.6 with commit e7096c131e51 and fixed in 6.8.3 with commit d44bd323d8bb Issue introduced in 5.6 with commit e7096c131e51 and fixed in 6.9-rc1 with commit 71cbd32e3db8 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-2024-26950 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/net/wireguard/netlink.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/493aa6bdcffd90a4f82aa614fe4f4db0641b4068 https://git.kernel.org/stable/c/4be453271a882c8ebc28df3dbf9e4d95e6ac42f5 https://git.kernel.org/stable/c/09c3fa70f65175861ca948cb2f0f791e666c90e5 https://git.kernel.org/stable/c/c991567e6c638079304cc15dff28748e4a3c4a37 https://git.kernel.org/stable/c/93bcc1752c69bb309f4d8cfaf960ef1faeb34996 https://git.kernel.org/stable/c/d44bd323d8bb8031eef4bdc44547925998a11e47 https://git.kernel.org/stable/c/71cbd32e3db82ea4a74e3ef9aeeaa6971969c86f