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 3EB47156CA for ; Tue, 23 Sep 2025 06:01:08 +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=1758607269; cv=none; b=KGhulh8XryYUxEAZGHH+jUq+q5/g3sOEv0wgI3rBrO/WVUkzcGZ8UsM2JX+Kbc6VeXutfDQN5w402+ap7NkS7d0SstcbfuOCSDQMFMJlZbLsXPa3KVx5TLcZ5BrfNHu1/W1sIN70oL02/Z2x94tEVu13JW68BRpWWYLYKtWH/8c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758607269; c=relaxed/simple; bh=MZwyU+E89AM0WmXfsAhudtIQBF3I0k08hsUHYGgcUdY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=u8/HuJJm8zpOoiR8kjF2t2XyhWTR3cHtpwi/XgPUxQ6XRobZgkdrqFpifxk+vZiyNadOKzFrMkgCCiSNFKOXD+uK+douaX2zY7M1DbNr1e1Fkfb9XGF0/bQWZeGuMuDPQC4HFJ67+O1A97OO0ZwroRE/eA+SJ/PF1ldVqAK2bs0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yXcud8tn; 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="yXcud8tn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F707C4CEF5; Tue, 23 Sep 2025 06:01:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758607268; bh=MZwyU+E89AM0WmXfsAhudtIQBF3I0k08hsUHYGgcUdY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=yXcud8tneutTpsnkC6s2YTB4l28yHqd1vJn012xz4D2i9xO4LuTCne3a1GeW14pFJ Cc9TxGyhje5BHnOEr8SvzGy4TUHr+rtdIFzdwBJuBxvNqcY9hB5nZGBVhTMcBv1KiN YUpQcLBeZF6uURy5hG+EPywnQypEPw06vswowNN0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39867: netfilter: nft_set_pipapo: fix null deref for empty set Date: Tue, 23 Sep 2025 08:00:58 +0200 Message-ID: <2025092357-CVE-2025-39867-51e2@gregkh> X-Mailer: git-send-email 2.51.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=2020; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6lUsgthd5o7PFkjrvnq8YCeIT7rZbrGWbwyWt4L8aww=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmXzGfGnn8bpfYmw+PvqvbnfPmuM5NUU2QX55/5khGsd GRbME96RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzE2ZFhnnXSfl/3N8u+J7jb q/P8DmMVuf52JcOC08sOtgpc23ti4sHAv2ZvFaIPzFYpAQA= 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: netfilter: nft_set_pipapo: fix null deref for empty set Blamed commit broke the check for a null scratch map: - if (unlikely(!m || !*raw_cpu_ptr(m->scratch))) + if (unlikely(!raw_cpu_ptr(m->scratch))) This should have been "if (!*raw_ ...)". Use the pattern of the avx2 version which is more readable. This can only be reproduced if avx2 support isn't available. The Linux kernel CVE team has assigned CVE-2025-39867 to this issue. Affected and fixed versions =========================== Issue introduced in 6.17-rc1 with commit d8d871a35ca9ee4881d34995444ed1cb826d01db and fixed in 6.17-rc2 with commit 30c1d25b9870d551be42535067d5481668b5e6f3 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-39867 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/netfilter/nft_set_pipapo.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/44b2be6d5994ddf07ecc86c01d3279bfa13e9ef6 https://git.kernel.org/stable/c/51a321b480d1e753667f6aea497312461563f9fe https://git.kernel.org/stable/c/30c1d25b9870d551be42535067d5481668b5e6f3