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.
Published: 2026-06-24
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The nf_osf_ttl() function performs a lookup of the local interface address using skb->dev without first checking that the device pointer is valid. If the device pointer is NULL the kernel will dereference a null pointer, causing a kernel panic and a loss of system availability. The flaw also relies on an in_dev_for that incorrectly assumes packets from the same subnet should not lower the initial TTL, which could allow crafted packets to trigger the null dereference in modern containerised or virtualised environments. Accordingly, an attacker could send a packet that causes the system to crash, leading to a denial‑of‑service condition. This is consistent with a NULL Pointer Dereference.

Affected Systems

All Linux kernel distributions that include the nfnetlink_osf subsystem before the patch referenced in the supplied commit logs are vulnerable. No specific version range is listed, so any kernel build containing the legacy nf_osf_ttl() implementation is at risk. Administrators should identify the exact kernel version in use and expect that kernels compiled from sources prior to the recent updates are affected.

Risk and Exploitability

The EPSS score is not available and the vulnerability is not listed in the CISA KEV catalog, but the nature of the bug – a kernel null dereference triggered by a network packet – suggests a high potential impact if an attacker can deliver a crafted packet. The CVSS score is not provided; however, the exploit appears feasible from a remote network endpoint due to the function’s placement in the netfilter stack. An attacker with sufficient packet crafting capabilities could exploit this flaw to cause a crash without requiring local privileges, making the risk significant for exposed services or public servers.

Generated by OpenCVE AI on June 24, 2026 at 19:40 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply a Linux kernel update that contains the nfnetlink_osf patch
  • If immediate updating is not possible, disable the nfnetlink_osf subsystem or block traffic that can reach the offending code path via firewall rules
  • Consider temporarily restricting or monitoring nffilter traffic to mitigate potential instability until a kernel update can be applied

Generated by OpenCVE AI on June 24, 2026 at 19:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 24 Jun 2026 20:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-476

Wed, 24 Jun 2026 17:15:00 +0000

Type Values Removed Values 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.
Title netfilter: nfnetlink_osf: fix potential NULL dereference in ttl check
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-06-24T16:29:10.874Z

Reserved: 2026-06-09T07:44:35.377Z

Link: CVE-2026-52998

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-24T22:30:15Z

Weaknesses