Linux
net: mvpp2: sync RX data at the hardware packet offset
In the Linux kernel, the following vulnerability has been resolved: net: mvpp2: sync RX data at the hardware packet offset mvpp2 programs the RX queue packet offset, so hardware writes received data at dma_addr + MVPP2_SKB_HEADROOM. The current CPU sync starts at dma_addr and only covers rx_bytes + MVPP2_MH_SIZE bytes, which syncs the unused headroom and misses the same number of bytes at the packet tail. On non-coherent DMA systems this can leave the CPU reading stale cache contents for the end of the received frame. Use dma_sync_single_range_for_cpu() with MVPP2_SKB_HEADROOM as the range offset so the sync covers the Marvell header and packet data actually written by hardware.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= e1921168bbd4810de4197446e52f652cd0dd9541, < 60412bdd1b2576659eac23a23d2d9ff96228a643
- >= e1921168bbd4810de4197446e52f652cd0dd9541, < 19f8bc139e9b149d1e5bf75ae761d1bb8dd3e7d8
- >= e1921168bbd4810de4197446e52f652cd0dd9541, < a3ad9b5767c89531fc7dae951b51b0933dcf7051
- >= e1921168bbd4810de4197446e52f652cd0dd9541, < bede0f481b9137d73d1cf64309cbe4b94818a5d6
- >= e1921168bbd4810de4197446e52f652cd0dd9541, < 23548007b3c66d628fc7d6b80d1e23be04ea10d9
- >= e1921168bbd4810de4197446e52f652cd0dd9541, < a13199fa224e9f776f4005d5037df03aa9ea8f37
- >= e1921168bbd4810de4197446e52f652cd0dd9541, < e302206ad84a407a7e5f3f6fe767ff5efaace689
- >= e1921168bbd4810de4197446e52f652cd0dd9541, < 180235600934bef6add3be637c296d6cf3272e67
Fixed in 60412bdd1b2576659eac23a23d2d9ff96228a643, 19f8bc139e9b149d1e5bf75ae761d1bb8dd3e7d8, a3ad9b5767c89531fc7dae951b51b0933dcf7051, bede0f481b9137d73d1cf64309cbe4b94818a5d6, 23548007b3c66d628fc7d6b80d1e23be04ea10d9, a13199fa224e9f776f4005d5037df03aa9ea8f37, e302206ad84a407a7e5f3f6fe767ff5efaace689, 180235600934bef6add3be637c296d6cf3272e67
- 5.5
Fixed in 0, 5.10.259, 5.15.210, 6.1.176, 6.6.143, 6.12.94, 6.18.36, 7.0.13, 7.1
Mitigation
Upgrade Linux to 60412bdd1b2576659eac23a23d2d9ff96228a643 or 19f8bc139e9b149d1e5bf75ae761d1bb8dd3e7d8 or a3ad9b5767c89531fc7dae951b51b0933dcf7051 or bede0f481b9137d73d1cf64309cbe4b94818a5d6 or 23548007b3c66d628fc7d6b80d1e23be04ea10d9 or a13199fa224e9f776f4005d5037df03aa9ea8f37 or e302206ad84a407a7e5f3f6fe767ff5efaace689 or 180235600934bef6add3be637c296d6cf3272e67 or later.
Upgrade Linux to 0 or 5.10.259 or 5.15.210 or 6.1.176 or 6.6.143 or 6.12.94 or 6.18.36 or 7.0.13 or 7.1 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.