netfilter: nfnetlink_osf: fix potential NULL dereference in ttl check

Summary

CVECVE-2026-52998
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-06-24 17:17:10 UTC
Updated2026-06-24 17:17:10 UTC
DescriptionIn 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.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384 f4de0777e4554a7de19c920accde6319dd530782 git Not specified
CNA Linux Linux affected 11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384 c996a90f3071cf43683e5423da31aadbe002b8b4 git Not specified
CNA Linux Linux affected 11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384 edc806f9122961f0d3819f7c69c14cccde31f277 git Not specified
CNA Linux Linux affected 11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384 5d05de2f0928d81309a815ecc76d1a3ad72cbc16 git Not specified
CNA Linux Linux affected 11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384 95be653a76793856ff8b2d8bd82c2943c23f5ca8 git Not specified
CNA Linux Linux affected 11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384 79b90a96688e521771fa6ed3dc7864b76b8df293 git Not specified
CNA Linux Linux affected 11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384 83fc5dd63455a779ea2dd0f7ffee3c920919d80b git Not specified
CNA Linux Linux affected 11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384 711987ba281fd806322a7cd244e98e2a81903114 git Not specified
CNA Linux Linux affected 2.6.31 Not specified
CNA Linux Linux unaffected 2.6.31 semver Not specified
CNA Linux Linux unaffected 5.10.258 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.209 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.175 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.141 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.91 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.33 6.18.* semver Not specified
CNA Linux Linux unaffected 7.0.10 7.0.* semver Not specified
CNA Linux Linux unaffected 7.1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/83fc5dd63455a779ea2dd0f7ffee3c920919d80b 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/711987ba281fd806322a7cd244e98e2a81903114 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/c996a90f3071cf43683e5423da31aadbe002b8b4 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/f4de0777e4554a7de19c920accde6319dd530782 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/5d05de2f0928d81309a815ecc76d1a3ad72cbc16 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/95be653a76793856ff8b2d8bd82c2943c23f5ca8 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/edc806f9122961f0d3819f7c69c14cccde31f277 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/79b90a96688e521771fa6ed3dc7864b76b8df293 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report