Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 6B7DE314D1F for ; Wed, 24 Jun 2026 16:35:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782318953; cv=none; b=bRjTAHKvaqnd2/5FrEnCXrpDrXPiSEvp7i5/Sz3ok8YOuDf0KbT/OltkDhLcUNeA0ro+khh2uKNvelJ/Ar3lY5olJLNgVfVO2s31MNF9hxoaJajaDIzqq8wxgDtIR7y6CjtyP1/ODEgS+V7l//u2fr88BKdmdZUYiX62K76kXkM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782318953; c=relaxed/simple; bh=3esDKQMY+7lyffkpIs17l7JVgW2VNx6UzwHtNWUzTmY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eg/YGOsuc5J+Y5iir858LRml92QxIv41+EdO6kHuy2bRn2sU80Ieuf/hPqFbzE6tqhearKAUDSoL4er34v2lA8MpDdaIxbCFS+b3aFUR1i5AkEPdKngaMRKVe7G+5961Sx34k+Gc+BQPzZ0MJMeUt5YojW3EitHHO58YnSrMInY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zmjInbpA; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="zmjInbpA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B19B61F000E9; Wed, 24 Jun 2026 16:35:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782318952; bh=wFY2Z5z5YHv9s+oHd3dZ8SLOUjizKZN8xj3QukAeOQU=; h=From:To:Cc:Subject:Date:Reply-To; b=zmjInbpASoyGdIAjNE3at4UvBKOVEPOnaqFcUF0xTGhBdcjVgtrLNFjSSibPb0nn6 ILaLXnorGW7jgC0QGc8i0oL0HKSj+4OUhplTtHke1tu4rJBqJ42ggtgo8+7YWqT1yp DR56pkEtIfi1jjDZG1NqmX/rZsC1LVGVKZZC8wvU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-52999: netfilter: nfnetlink_osf: fix out-of-bounds read on option matching Date: Wed, 24 Jun 2026 17:30:23 +0100 Message-ID: <2026062446-CVE-2026-52999-7bf3@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=4341; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=NBMXXTAjla2wEBUhpQvIr7eDnvD2+EPPw9KFlqeAFhY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2rL+OKMmb/d+Y4tipu7Xl6cS0b9MWubx4cy4xf2qwX XQMz/bujlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIbX6GBSdcruTkxQsIv9EK 01cQ+3Hte2LkBoZ5VicvnjP/Y61R6tUcGvb1D/98ZtMoAA== 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: nfnetlink_osf: fix out-of-bounds read on option matching In nf_osf_match(), the nf_osf_hdr_ctx structure is initialized once and passed by reference to nf_osf_match_one() for each fingerprint checked. During TCP option parsing, nf_osf_match_one() advances the shared ctx->optp pointer. If a fingerprint perfectly matches, the function returns early without restoring ctx->optp to its initial state. If the user has configured NF_OSF_LOGLEVEL_ALL, the loop continues to the next fingerprint. However, because ctx->optp was not restored, the next call to nf_osf_match_one() starts parsing from the end of the options buffer. This causes subsequent matches to read garbage data and fail immediately, making it impossible to log more than one match or logging incorrect matches. Instead of using a shared ctx->optp pointer, pass the context as a constant pointer and use a local pointer (optp) for TCP option traversal. This makes nf_osf_match_one() strictly stateless from the caller's perspective, ensuring every fingerprint check starts at the correct option offset. The Linux kernel CVE team has assigned CVE-2026-52999 to this issue. Affected and fixed versions =========================== Issue introduced in 5.0 with commit 1a6a0951fc009f6d9fe8ebea2d2417d80d54097b and fixed in 5.10.258 with commit 0145548346c4a30981a870a8ca00eac46ba27e85 Issue introduced in 5.0 with commit 1a6a0951fc009f6d9fe8ebea2d2417d80d54097b and fixed in 5.15.209 with commit 1c136f2c44a5913646bac85303612fd0825197a0 Issue introduced in 5.0 with commit 1a6a0951fc009f6d9fe8ebea2d2417d80d54097b and fixed in 6.1.175 with commit 1e19a07291bb8682c14c39a64725a3ae54ab8ccc Issue introduced in 5.0 with commit 1a6a0951fc009f6d9fe8ebea2d2417d80d54097b and fixed in 6.6.141 with commit 32e50f92c7cf3f4eba29622179a5fcdc2aebab41 Issue introduced in 5.0 with commit 1a6a0951fc009f6d9fe8ebea2d2417d80d54097b and fixed in 6.12.91 with commit 70a3f31d25cf2ec9d4ddfa408120171ead955623 Issue introduced in 5.0 with commit 1a6a0951fc009f6d9fe8ebea2d2417d80d54097b and fixed in 6.18.33 with commit 21883587593d7c8bb519a79460a0b5bc5ffbdabd Issue introduced in 5.0 with commit 1a6a0951fc009f6d9fe8ebea2d2417d80d54097b and fixed in 7.0.10 with commit edb78a142d2e5948e63647c0646aa7e7886935f0 Issue introduced in 5.0 with commit 1a6a0951fc009f6d9fe8ebea2d2417d80d54097b and fixed in 7.1 with commit f5ca450087c3baf3651055e7a6de92600f827af3 Issue introduced in 4.19.26 with commit 0c1054e0e5fdef2369fb089e94def978bd209e1f Issue introduced in 4.20.13 with commit 8316b60582facd4068fb0916c4db2418c21b7174 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-52999 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/nfnetlink_osf.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/0145548346c4a30981a870a8ca00eac46ba27e85 https://git.kernel.org/stable/c/1c136f2c44a5913646bac85303612fd0825197a0 https://git.kernel.org/stable/c/1e19a07291bb8682c14c39a64725a3ae54ab8ccc https://git.kernel.org/stable/c/32e50f92c7cf3f4eba29622179a5fcdc2aebab41 https://git.kernel.org/stable/c/70a3f31d25cf2ec9d4ddfa408120171ead955623 https://git.kernel.org/stable/c/21883587593d7c8bb519a79460a0b5bc5ffbdabd https://git.kernel.org/stable/c/edb78a142d2e5948e63647c0646aa7e7886935f0 https://git.kernel.org/stable/c/f5ca450087c3baf3651055e7a6de92600f827af3