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 04F9C3CD8A8 for ; Wed, 6 May 2026 07:42:51 +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=1778053372; cv=none; b=tlB/ucDyEROQL+HXWeg+9PyJp8YYQjaajUeND+2zi9gOCOPKOJrR2fEWInASZopzTIzU9ng8us03udjmC0FGHg51qjjfhRVa//3mE4DvLngzpT+MMl6/ONuYrCW9j3MRPa5UeMstDGGsqEKCcCknsCUE0tVTUhVmvRaqMklkfRc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778053372; c=relaxed/simple; bh=HgBJGAT/Itu8viG5MydN33ZmBBODid6I3+V/WBrXsIk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=C9AI5NJD1j2cjjV5rvyRDuNw+pAgxJiK0d/Ba1IbpiHqXvoF/WYJBEarDwtd1I2vK1y5bFveDS3U25L4IojZbevrJYYVT0NleicdM4jKlBT7vvhzjXvhaCaEiahzbAN+MwjoDcm6HvvsVxl0/opGYSOSU8d2mw2b0OtAF2DE8ls= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UdBxaHQ/; 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="UdBxaHQ/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50B7CC2BCB8; Wed, 6 May 2026 07:42:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778053371; bh=HgBJGAT/Itu8viG5MydN33ZmBBODid6I3+V/WBrXsIk=; h=From:To:Cc:Subject:Date:Reply-To:From; b=UdBxaHQ/r+MjKS5st2VRhB7pUhNhFu/ksqKLi6ncCwIymMlWm52KfHFMpD1t4kOV+ 0uvrJMsoxRraCbQaogDmqSFzRjITsBh2KJ/mZszHJqB2mmooDi192I6sxDiWQggNp/ Q6NxSKxj2/KT/94mJ93wLSfAxEPxPEiODnWsXEbg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43114: netfilter: nft_set_pipapo_avx2: don't return non-matching entry on expiry Date: Wed, 6 May 2026 09:41:48 +0200 Message-ID: <2026050626-CVE-2026-43114-5deb@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3660; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jTd5eRtupAux5n8Sq6xH+1cDefT2/8QRq9cIMOOOy7U=; b=owGbwMvMwCRo6H6F97bub03G02pJDJm/PixzmRJ97GqWJ/euTr2zybJbpzXFcNj4rrxjsZX5V O6c/0mbO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi/6IY5un8O7dD+VEq6+X3 urt5OD4/cvzzKYdhwZJfj8/+kDp399EFh677E4519v8VmgQA 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_avx2: don't return non-matching entry on expiry New test case fails unexpectedly when avx2 matching functions are used. The test first loads a ranomly generated pipapo set with 'ipv4 . port' key, i.e. nft -f foo. This works. Then, it reloads the set after a flush: (echo flush set t s; cat foo) | nft -f - This is expected to work, because its the same set after all and it was already loaded once. But with avx2, this fails: nft reports a clashing element. The reported clash is of following form: We successfully re-inserted a . b c . d Then we try to insert a . d avx2 finds the already existing a . d, which (due to 'flush set') is marked as invalid in the new generation. It skips the element and moves to next. Due to incorrect masking, the skip-step finds the next matching element *only considering the first field*, i.e. we return the already reinserted "a . b", even though the last field is different and the entry should not have been matched. No such error is reported for the generic c implementation (no avx2) or when the last field has to use the 'nft_pipapo_avx2_lookup_slow' fallback. Bisection points to 7711f4bb4b36 ("netfilter: nft_set_pipapo: fix range overlap detection") but that fix merely uncovers this bug. Before this commit, the wrong element is returned, but erronously reported as a full, identical duplicate. The root-cause is too early return in the avx2 match functions. When we process the last field, we should continue to process data until the entire input size has been consumed to make sure no stale bits remain in the map. The Linux kernel CVE team has assigned CVE-2026-43114 to this issue. Affected and fixed versions =========================== Fixed in 6.6.136 with commit fa4f1f52528c73989d820f32bfca06bec5afeece Fixed in 6.12.83 with commit 3d53f9aafd469ae1ea27051e00f5b96ca1b55d52 Fixed in 6.18.24 with commit 07de44424bb7f17ef9357e8535df96d9e97c40cb Fixed in 6.19.14 with commit 0abbc43f71d99baadeeba6fa3fe1c80b676f57ed Fixed in 7.0 with commit d3c0037ffe1273fa1961e779ff6906234d6cf53c 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-43114 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_avx2.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/fa4f1f52528c73989d820f32bfca06bec5afeece https://git.kernel.org/stable/c/3d53f9aafd469ae1ea27051e00f5b96ca1b55d52 https://git.kernel.org/stable/c/07de44424bb7f17ef9357e8535df96d9e97c40cb https://git.kernel.org/stable/c/0abbc43f71d99baadeeba6fa3fe1c80b676f57ed https://git.kernel.org/stable/c/d3c0037ffe1273fa1961e779ff6906234d6cf53c