net: pfcp: allocate per-cpu tstats for PFCP netdevs
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 67e4b283de36d9eebf95acdea5d6674b6ef4b2f4, Kernel 24041543da8cd84eb5d8ae738c534372fff54820, Kernel 51a1d9836acc76a1bd16170b2f4b35f11036593f and 4 more.
In the Linux kernel, the following vulnerability has been resolved: net: pfcp: allocate per-cpu tstats for PFCP netdevs PFCP uses dev_get_tstats64() as its ndo_get_stats64 callback, but pfcp_link_setup() does not request NETDEV_PCPU_STAT_TSTATS. The net core therefore leaves dev->tstats NULL for PFCP devices. Creating a PFCP rtnetlink device can immediately ask the new netdev for stats while building the RTM_NEWLINK notification. That reaches dev_get_tstats64() and dereferences the NULL dev->tstats pointer. Set pcpu_stat_type to NETDEV_PCPU_STAT_TSTATS during PFCP link setup so the net core allocates the storage expected by dev_get_tstats64().
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=76c8764ef36a5d37ea2e551bda28ac7f028383ba <67e4b283de36d9eebf95acdea5d6674b6ef4b2f4, >=76c8764ef36a5d37ea2e551bda28ac7f028383ba <24041543da8cd84eb5d8ae738c534372fff54820, >=76c8764ef36a5d37ea2e551bda28ac7f028383ba <51a1d9836acc76a1bd16170b2f4b35f11036593f, >=76c8764ef36a5d37ea2e551bda28ac7f028383ba <56b4ad500fd1282ef04db3c4beae5b54ab093a53, =6.10 | 67e4b283de36d9eebf95acdea5d6674b6ef4b2f4, 24041543da8cd84eb5d8ae738c534372fff54820, 51a1d9836acc76a1bd16170b2f4b35f11036593f, 56b4ad500fd1282ef04db3c4beae5b54ab093a53 |
| linux-kernel: Kernel | >=6.13.0 <6.18.40, >=6.19.0 <7.1.5, >=6.10.0 <6.12.97 | 6.18.40, 7.1.5, 6.12.97 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket