net: ethernet: ti: icssg: guard PA stat lookups
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 121c5f31c3fb70d4a23e8a084f5cb8b3ec63be8d, Kernel 27b9daba50609335db6ca81e4cccf50ded21ec76 and Kernel b3763f7e22ecaa7ad79bf44bf41816d488edbcf8.
In the Linux kernel, the following vulnerability has been resolved: net: ethernet: ti: icssg: guard PA stat lookups icssg_ndo_get_stats64() unconditionally calls emac_get_stat_by_name() with FW PA stat names regardless of whether the PA stats block is present on the hardware. emac_get_stat_by_name() already guards the PA stats lookup with `if (emac->prueth->pa_stats)`; when that pointer is NULL the lookup falls through to netdev_err() and returns -EINVAL. Because ndo_get_stats64 is polled regularly by the networking stack this produces thousands of log entries of the form: icssg-prueth icssg1-eth end0: Invalid stats FW_RX_ERROR A secondary consequence is that the int(-EINVAL) return value is implicitly widened to a near-ULLONG_MAX unsigned value when accumulated into the __u64 fields of rtnl_link_stats64, silently corrupting the rx_errors, rx_dropped and tx_dropped counters reported by `ip -s link`. Every other PA-aware code path in the driver is already guarded with the same `if (emac->prueth->pa_stats)` check. Apply the same guard here.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.16, >=0d15a26b247d25cd012134bf8825128fedb15cc9 <121c5f31c3fb70d4a23e8a084f5cb8b3ec63be8d, >=0d15a26b247d25cd012134bf8825128fedb15cc9 <27b9daba50609335db6ca81e4cccf50ded21ec76, >=0d15a26b247d25cd012134bf8825128fedb15cc9 <b3763f7e22ecaa7ad79bf44bf41816d488edbcf8 | 121c5f31c3fb70d4a23e8a084f5cb8b3ec63be8d, 27b9daba50609335db6ca81e4cccf50ded21ec76, b3763f7e22ecaa7ad79bf44bf41816d488edbcf8 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket