netfilter: nfnetlink_osf: fix potential NULL dereference in ttl check (Linux Linux)

CVE-2026-52998
HIGH 7.5

At a glance

Source
NVD
EPSS
EPSS 0.58 % · percentile 48 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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.

Weaknesses (CWE)

  • CWE-476 — NULL Pointer Dereference

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HLinux
CVSS 3.1HIGH 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384 < f4de0777e4554a7de19c920accde6319dd530782 ; affected 11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384 < c996a90f3071cf43683e5423da31aadbe002b8b4 ; affected 11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384 < edc806f9122961f0d3819f7c69c14cccde31f277 ; affected 11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384 < 5d05de2f0928d81309a815ecc76d1a3ad72cbc16 ; affected 11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384 < 95be653a76793856ff8b2d8bd82c2943c23f5ca8 ; affected 11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384 < 79b90a96688e521771fa6ed3dc7864b76b8df293
Linux · Linuxaffected 2.6.31 ; unaffected 0 < 2.6.31 ; unaffected 5.10.258 ≤ 5.10.* ; unaffected 5.15.209 ≤ 5.15.* ; unaffected 6.1.175 ≤ 6.1.* ; unaffected 6.6.141 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD