Linux
ip_tunnel: adapt iptunnel_xmit_stats() to NETDEV_PCPU_STAT_DSTATS
In the Linux kernel, the following vulnerability has been resolved: ip_tunnel: adapt iptunnel_xmit_stats() to NETDEV_PCPU_STAT_DSTATS Blamed commits forgot that vxlan/geneve use udp_tunnel[6]_xmit_skb() which call iptunnel_xmit_stats(). iptunnel_xmit_stats() was assuming tunnels were only using NETDEV_PCPU_STAT_TSTATS. @syncp offset in pcpu_sw_netstats and pcpu_dstats is different. 32bit kernels would either have corruptions or freezes if the syncp sequence was overwritten. This patch also moves pcpu_stat_type closer to dev->{t,d}stats to avoid a potential cache line miss since iptunnel_xmit_stats() needs to read it.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1db9041e91ac574f1cecc0e98e69ac35832e8088, < 127c5e6e2d6fa8185314537c08204ec3515eae99
- >= cb1c1f3b7ef908408064734fb6bdaf5811b8b84c, < e40e2d11ced8119d3e4469ebe91264bc1cf71530
- >= be226352e8dc77d3313c096b2d8e7f69bf6980fc, < 5d562153b4719234227f99c2fb529f98a6a44d15
- >= be226352e8dc77d3313c096b2d8e7f69bf6980fc, < 0d087d00161f562d5047cc4009bb0c6a19daf9f1
- >= be226352e8dc77d3313c096b2d8e7f69bf6980fc, < 8431c602f551549f082bbfa67f3003f2d8e3e132
- >= 6.6.153, < 6.6.160
Fixed in 127c5e6e2d6fa8185314537c08204ec3515eae99, e40e2d11ced8119d3e4469ebe91264bc1cf71530, 5d562153b4719234227f99c2fb529f98a6a44d15, 0d087d00161f562d5047cc4009bb0c6a19daf9f1, 8431c602f551549f082bbfa67f3003f2d8e3e132, 6.6.160
- 6.14
Fixed in 0, 6.6.160, 6.18.50, 6.19.10, 7.0
Mitigation
Upgrade Linux to 127c5e6e2d6fa8185314537c08204ec3515eae99 or e40e2d11ced8119d3e4469ebe91264bc1cf71530 or 5d562153b4719234227f99c2fb529f98a6a44d15 or 0d087d00161f562d5047cc4009bb0c6a19daf9f1 or 8431c602f551549f082bbfa67f3003f2d8e3e132 or 6.6.160 or later.
Upgrade Linux to 0 or 6.6.160 or 6.18.50 or 6.19.10 or 7.0 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.