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 22B393168EB for ; Wed, 24 Jun 2026 16:35:49 +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=1782318950; cv=none; b=kDW6QfPp2ry5848I8se/11rRPHgSYAH6eswecVV0o9+RGtImBygD5UqAH+++fWLpeOOXOTsMGUTqD05V5JEbncnQuOm0ESr8hX+JFiXxCpGSdvIpTeN9NJE0kgrXF5yeDlLOMfHKuT3aZz8j5Ql0evtwNyZQWQgAIDdm8mbwu8k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782318950; c=relaxed/simple; bh=OyxXXjGtm7elgy77/kAhc8Rx+WdklV4ppO/8vBeAAW8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BxWVjL7Es+nsebcTXS78jowNZmJAsOkZl12bFr/TBa9PJVSkltFksLOxBczfzGbm3HCLQUXalJSIxv9n4PCpkoJgj1PVVE2uLoi9Lgx/eW+yMjm4QhUf0ASCKxcTsD9HL5e9gdPrY/B4KAONprDv6l5Q4TweARJ2JQgh9RgkZdk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sc8/4gQ5; 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="sc8/4gQ5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 68B251F000E9; Wed, 24 Jun 2026 16:35:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782318949; bh=t7T5xVBJxydwyqsGcWDP+3zxvHbNYZAWaBpowyRQVEw=; h=From:To:Cc:Subject:Date:Reply-To; b=sc8/4gQ5KuHWvUSv8maUdLcF7c/xjhbQ0NM8Wv7g27WHYwYCcDfVR2Ks0xAU+XjN9 HNq1Jsebcz3+HsVHktOxzGgkM9JXn5dITXOWUM31zoexWE0RDGR6uPREPd/n0Zqcjh 5blQxe4kyQOuXcLVpeGkZznTXR9TXe3z/3hTQ8mE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-52998: netfilter: nfnetlink_osf: fix potential NULL dereference in ttl check Date: Wed, 24 Jun 2026 17:30:22 +0100 Message-ID: <2026062446-CVE-2026-52998-38ee@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=3849; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=21R9ZhocUuGxa5VziSsKEQlGDWP98WzEE/2Pk27e5OU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2rL9uW89/qSS3xtvHV938HVPlvWc7J938cFl57+fV9 rlrpq3b2xHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATsT7JMD+wfNHTjv7rm2Ye WWpwoXIn09rpjGsZ5kdWV3a3yXate2uZ9oY1Vf79z+jZHAA= 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 potential NULL dereference in ttl check The nf_osf_ttl() function accessed skb->dev to perform a local interface address lookup without verifying that the device pointer was valid. Additionally, the implementation utilized an in_dev_for_each_ifa_rcu loop to match the packet source address against local interface addresses. It assumed that packets from the same subnet should not see a decrement on the initial TTL. A packet might appear it is from the same subnet but it actually isn't especially in modern environments with containers and virtual switching. Remove the device dereference and interface loop. Replace the logic with a switch statement that evaluates the TTL according to the ttl_check. The Linux kernel CVE team has assigned CVE-2026-52998 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.31 with commit 11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384 and fixed in 5.10.258 with commit f4de0777e4554a7de19c920accde6319dd530782 Issue introduced in 2.6.31 with commit 11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384 and fixed in 5.15.209 with commit c996a90f3071cf43683e5423da31aadbe002b8b4 Issue introduced in 2.6.31 with commit 11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384 and fixed in 6.1.175 with commit edc806f9122961f0d3819f7c69c14cccde31f277 Issue introduced in 2.6.31 with commit 11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384 and fixed in 6.6.141 with commit 5d05de2f0928d81309a815ecc76d1a3ad72cbc16 Issue introduced in 2.6.31 with commit 11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384 and fixed in 6.12.91 with commit 95be653a76793856ff8b2d8bd82c2943c23f5ca8 Issue introduced in 2.6.31 with commit 11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384 and fixed in 6.18.33 with commit 79b90a96688e521771fa6ed3dc7864b76b8df293 Issue introduced in 2.6.31 with commit 11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384 and fixed in 7.0.10 with commit 83fc5dd63455a779ea2dd0f7ffee3c920919d80b Issue introduced in 2.6.31 with commit 11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384 and fixed in 7.1 with commit 711987ba281fd806322a7cd244e98e2a81903114 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-52998 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/f4de0777e4554a7de19c920accde6319dd530782 https://git.kernel.org/stable/c/c996a90f3071cf43683e5423da31aadbe002b8b4 https://git.kernel.org/stable/c/edc806f9122961f0d3819f7c69c14cccde31f277 https://git.kernel.org/stable/c/5d05de2f0928d81309a815ecc76d1a3ad72cbc16 https://git.kernel.org/stable/c/95be653a76793856ff8b2d8bd82c2943c23f5ca8 https://git.kernel.org/stable/c/79b90a96688e521771fa6ed3dc7864b76b8df293 https://git.kernel.org/stable/c/83fc5dd63455a779ea2dd0f7ffee3c920919d80b https://git.kernel.org/stable/c/711987ba281fd806322a7cd244e98e2a81903114