ipv6/sit: use DEV_STATS_INC() to avoid data-races
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ipv6/sit: use DEV_STATS_INC() to avoid data-races
syzbot/KCSAN reported that multiple cpus are updating dev->stats.tx_error concurrently.
This is because sit tunnels are NETIF_F_LLTX, meaning their ndo_start_xmit() is not protected by a spinlock.
While original KCSAN report was about tx path, rx path has the same issue.
From the CVE record · Linux
The Linux kernel’s IPv6 SIT tunnel code has data races when multiple CPUs update network device error statistics. The report identifies races in both transmit and receive paths but does not specify an attacker action or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with IPv6 SIT tunnels should check their versions; affected versions are not specified.