CVE-2026-52998
netfilter: nfnetlink_osf: fix potential NULL dereference in ttl check
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.
INFO
Published Date :
June 24, 2026, 5:17 p.m.
Last Modified :
July 15, 2026, 12:55 p.m.
Remotely Exploit :
Yes !
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | HIGH | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
Solution
- Review and apply kernel updates.
- Replace logic with a switch statement for TTL.
- Verify device pointer validity before access.
- Remove unnecessary interface loop.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-52998.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-52998 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-52998
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-52998 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-52998 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Jul. 15, 2026
Action Type Old Value New Value Added CWE CWE-476 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.141 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.12.91 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.13 up to (excluding) 6.18.33 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.19 up to (excluding) 7.0.10 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.175 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.209 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 2.6.31 up to (excluding) 5.10.258 Added Reference Type kernel.org: https://git.kernel.org/stable/c/5d05de2f0928d81309a815ecc76d1a3ad72cbc16 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/711987ba281fd806322a7cd244e98e2a81903114 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/79b90a96688e521771fa6ed3dc7864b76b8df293 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/83fc5dd63455a779ea2dd0f7ffee3c920919d80b Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/95be653a76793856ff8b2d8bd82c2943c23f5ca8 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/c996a90f3071cf43683e5423da31aadbe002b8b4 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/edc806f9122961f0d3819f7c69c14cccde31f277 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/f4de0777e4554a7de19c920accde6319dd530782 Types: Patch -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 28, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 24, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384', 'lessThan': 'f4de0777e4554a7de19c920accde6319dd530782', 'versionType': 'git'}, {'status': 'affected', 'version': '11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384', 'lessThan': 'c996a90f3071cf43683e5423da31aadbe002b8b4', 'versionType': 'git'}, {'status': 'affected', 'version': '11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384', 'lessThan': 'edc806f9122961f0d3819f7c69c14cccde31f277', 'versionType': 'git'}, {'status': 'affected', 'version': '11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384', 'lessThan': '5d05de2f0928d81309a815ecc76d1a3ad72cbc16', 'versionType': 'git'}, {'status': 'affected', 'version': '11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384', 'lessThan': '95be653a76793856ff8b2d8bd82c2943c23f5ca8', 'versionType': 'git'}, {'status': 'affected', 'version': '11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384', 'lessThan': '79b90a96688e521771fa6ed3dc7864b76b8df293', 'versionType': 'git'}, {'status': 'affected', 'version': '11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384', 'lessThan': '83fc5dd63455a779ea2dd0f7ffee3c920919d80b', 'versionType': 'git'}, {'status': 'affected', 'version': '11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384', 'lessThan': '711987ba281fd806322a7cd244e98e2a81903114', 'versionType': 'git'}], 'programFiles': ['net/netfilter/nfnetlink_osf.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '2.6.31'}, {'status': 'unaffected', 'version': '0', 'lessThan': '2.6.31', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '5.10.258', 'versionType': 'semver', 'lessThanOrEqual': '5.10.*'}, {'status': 'unaffected', 'version': '5.15.209', 'versionType': 'semver', 'lessThanOrEqual': '5.15.*'}, {'status': 'unaffected', 'version': '6.1.175', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.141', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.91', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.33', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.0.10', 'versionType': 'semver', 'lessThanOrEqual': '7.0.*'}, {'status': 'unaffected', 'version': '7.1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['net/netfilter/nfnetlink_osf.c'], 'defaultStatus': 'affected'}] Added 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. Added Reference https://git.kernel.org/stable/c/5d05de2f0928d81309a815ecc76d1a3ad72cbc16 Added Reference https://git.kernel.org/stable/c/711987ba281fd806322a7cd244e98e2a81903114 Added Reference https://git.kernel.org/stable/c/79b90a96688e521771fa6ed3dc7864b76b8df293 Added Reference https://git.kernel.org/stable/c/83fc5dd63455a779ea2dd0f7ffee3c920919d80b Added Reference https://git.kernel.org/stable/c/95be653a76793856ff8b2d8bd82c2943c23f5ca8 Added Reference https://git.kernel.org/stable/c/c996a90f3071cf43683e5423da31aadbe002b8b4 Added Reference https://git.kernel.org/stable/c/edc806f9122961f0d3819f7c69c14cccde31f277 Added Reference https://git.kernel.org/stable/c/f4de0777e4554a7de19c920accde6319dd530782