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 DD7E01B86E9 for ; Tue, 21 Jan 2025 12:18:47 +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=1737461928; cv=none; b=IZB6+4jLhOrQA/OdzFT/E5dSI6fS96X52rBKS1FDk94KzGDgQV1JZ8u4/15HJsj9hiytnVunyb/J3Q8eK7V7+LsnLb44HOKSRzQvn9UHF8LOyuHZPHj4uVgc3c69KIlcGstcZYfLT60z2xKrkLSjK7vT2EYHKVEFhMpogTCiTEE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737461928; c=relaxed/simple; bh=q1NoOg3Sn0zoOfxb7kx/eOlTz7wBFP8LcY1CsMFu4Yo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eQ1/mV/qNK3YUOVBAdpCxQZIuTj/YPxr6bIgJSqZZQZ+UQA/oRoaLWcmls21hx6rqMD2Wa9kt7tzk/Rcoc674LnKwMSPahkWuJScVK1RF+qhFLBih7H111OvGRUjypKHmEjVfDW6K/sFejrmawphRGunkAp0dWfs02WG9XVWAog= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rBALx7YA; 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="rBALx7YA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 66C68C4CEDF; Tue, 21 Jan 2025 12:18:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1737461927; bh=q1NoOg3Sn0zoOfxb7kx/eOlTz7wBFP8LcY1CsMFu4Yo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=rBALx7YA1KEXLxy0AAMRbaS0ye3jTPV9/ElHooWKbZXkBXuQbYQnQzlJC0UHT/Ftr OV2wlDzqFq/3g+ksw5JpmxVPOQA/uddC96EciRE1GJKMkIJ5mpzIwKezLz854ScTyj GzxGU3JT8EpRawcyTKCO7mLXB03CasAdfPysEgno= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21659: netdev: prevent accessing NAPI instances from another namespace Date: Tue, 21 Jan 2025 13:18:38 +0100 Message-ID: <2025012133-CVE-2025-21659-1c41@gregkh> X-Mailer: git-send-email 2.48.1 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=2127; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=q1NoOg3Sn0zoOfxb7kx/eOlTz7wBFP8LcY1CsMFu4Yo=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn9E2b+cftk8OJD6pyJ80R3zMzUPiS8xriEj/XCPsXWk Dk7jXTndcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE5s1kmMPBYxFqJDXpd9M/ rR07bCukRN1l2Rnmh364/qtPs4ax8GDNsRnKKY7lpmeUAA== 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: netdev: prevent accessing NAPI instances from another namespace The NAPI IDs were not fully exposed to user space prior to the netlink API, so they were never namespaced. The netlink API must ensure that at the very least NAPI instance belongs to the same netns as the owner of the genl sock. napi_by_id() can become static now, but it needs to move because of dev_get_by_napi_id(). The Linux kernel CVE team has assigned CVE-2025-21659 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit 27f91aaf49b3a50e5a02ad5fa27b7c453d029a72 and fixed in 6.12.10 with commit b683ba0df11ff563cc237eb1b74d6adfa77226bf Issue introduced in 6.8 with commit 27f91aaf49b3a50e5a02ad5fa27b7c453d029a72 and fixed in 6.13 with commit d1cacd74776895f6435941f86a1130e58f6dd226 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-2025-21659 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/core/dev.c net/core/dev.h net/core/netdev-genl.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/b683ba0df11ff563cc237eb1b74d6adfa77226bf https://git.kernel.org/stable/c/d1cacd74776895f6435941f86a1130e58f6dd226