Linux
netfilter: nfnetlink_osf: fix potential NULL dereference in ttl check
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384, < f4de0777e4554a7de19c920accde6319dd530782
- >= 11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384, < c996a90f3071cf43683e5423da31aadbe002b8b4
- >= 11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384, < edc806f9122961f0d3819f7c69c14cccde31f277
- >= 11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384, < 5d05de2f0928d81309a815ecc76d1a3ad72cbc16
- >= 11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384, < 95be653a76793856ff8b2d8bd82c2943c23f5ca8
- >= 11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384, < 79b90a96688e521771fa6ed3dc7864b76b8df293
- >= 11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384, < 83fc5dd63455a779ea2dd0f7ffee3c920919d80b
- >= 11eeef41d5f63c7d2f7fdfcc733eb7fb137cc384, < 711987ba281fd806322a7cd244e98e2a81903114
Fixed in f4de0777e4554a7de19c920accde6319dd530782, c996a90f3071cf43683e5423da31aadbe002b8b4, edc806f9122961f0d3819f7c69c14cccde31f277, 5d05de2f0928d81309a815ecc76d1a3ad72cbc16, 95be653a76793856ff8b2d8bd82c2943c23f5ca8, 79b90a96688e521771fa6ed3dc7864b76b8df293, 83fc5dd63455a779ea2dd0f7ffee3c920919d80b, 711987ba281fd806322a7cd244e98e2a81903114
- 2.6.31
Fixed in 0, 5.10.258, 5.15.209, 6.1.175, 6.6.141, 6.12.91, 6.18.33, 7.0.10, 7.1
Mitigation
Upgrade Linux to f4de0777e4554a7de19c920accde6319dd530782 or c996a90f3071cf43683e5423da31aadbe002b8b4 or edc806f9122961f0d3819f7c69c14cccde31f277 or 5d05de2f0928d81309a815ecc76d1a3ad72cbc16 or 95be653a76793856ff8b2d8bd82c2943c23f5ca8 or 79b90a96688e521771fa6ed3dc7864b76b8df293 or 83fc5dd63455a779ea2dd0f7ffee3c920919d80b or 711987ba281fd806322a7cd244e98e2a81903114 or later.
Upgrade Linux to 0 or 5.10.258 or 5.15.209 or 6.1.175 or 6.6.141 or 6.12.91 or 6.18.33 or 7.0.10 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.