net: mvpp2: refill RX buffers before XDP or skb use
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in Kernel 5.9, Kernel 02e1b5c4d3b4c658b72c145427cded1bba613fc1, Kernel 580f92f27cb8724bcc4be98ee89890eab524a2ae and 12 more.
In the Linux kernel, the following vulnerability has been resolved: net: mvpp2: refill RX buffers before XDP or skb use The RX error path returns the current descriptor buffer to the hardware BM pool. That is only valid while the driver still owns the buffer. mvpp2_rx_refill() can fail after the current buffer has been handed to XDP or attached to an skb. In those cases mvpp2_run_xdp() may have recycled, redirected, or queued the page for XDP_TX, and an skb free also retires the data buffer. Returning such a buffer to BM lets hardware DMA into memory that is no longer owned by the RX ring. Refill the BM pool before handing the current buffer to XDP or to the skb. If the allocation fails there, drop the packet and return the still-owned current buffer to BM, preserving the pool depth. Once the refill succeeds, later local drops retire/free the current buffer instead of returning it to BM.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=5.8.2 <5.9, >=07dd0a7aae7f72af7cec18909581c2bb570edddc <02e1b5c4d3b4c658b72c145427cded1bba613fc1, >=07dd0a7aae7f72af7cec18909581c2bb570edddc <580f92f27cb8724bcc4be98ee89890eab524a2ae, >=07dd0a7aae7f72af7cec18909581c2bb570edddc <5e8e2a9624df72fca7c736b2966b2cbf6c9c3ff6, >=07dd0a7aae7f72af7cec18909581c2bb570edddc <8a2126c5afe89f8ceeb60a3afb9f075b736194cd, >=07dd0a7aae7f72af7cec18909581c2bb570edddc <a03cdcedb2cbcc42551dc3e4746929e93c5352d5, >=07dd0a7aae7f72af7cec18909581c2bb570edddc <a88b3293b556f4d8fba11db9a8061a6b0d3b69e6, >=07dd0a7aae7f72af7cec18909581c2bb570edddc <d0c8c4fbd22d260fe28530260656c5fb3c20ce84, >=5.7.15 <5.8, =5.9, =95a936364f2685e9e040c6b179b553604d96de22, =fba2cf348d9eb50b2049a73cc09313dab6d293f1 | 5.9, 02e1b5c4d3b4c658b72c145427cded1bba613fc1, 580f92f27cb8724bcc4be98ee89890eab524a2ae, 5e8e2a9624df72fca7c736b2966b2cbf6c9c3ff6, 8a2126c5afe89f8ceeb60a3afb9f075b736194cd, a03cdcedb2cbcc42551dc3e4746929e93c5352d5, a88b3293b556f4d8fba11db9a8061a6b0d3b69e6, d0c8c4fbd22d260fe28530260656c5fb3c20ce84, 5.8 |
| linux-kernel: Kernel | >=5.7.15 <5.8, >=5.8.2 <5.9, >=5.9.0 <5.15.210, >=6.13.0 <6.18.36, >=6.19.0 <7.0.13, >=6.2.0 <6.6.143, >=6.7.0 <6.12.94, >=5.16.0 <6.1.176 | 5.8, 5.9, 5.15.210, 6.18.36, 7.0.13, 6.6.143, 6.12.94, 6.1.176 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket