net: ethernet: cortina: Carry over frag counter
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in Kernel ebd8ec2b309e3a447851b456ccaf8fb39f3661e7, Kernel 46806096f35b8d3dfa2f321ddd77f597edcdb85f, Kernel 7123cf481e21b54eb6adc4cb0d8dc2876aeaee41 and 12 more.
In the Linux kernel, the following vulnerability has been resolved: net: ethernet: cortina: Carry over frag counter The gmac_rx() NAPI poll function assembles packets in an SKB from a ring buffer. If the ring buffer gets completely emptied during a poll cycle, we exit gmac_rx(), but the packet is not yet completely assembled in the SKB, yet the fragment counter frag_nr is reset to zero on the next invocation. Solve this by making the RX fragment counter a part of the port struct, and carry it over between invocations. Reset the fragment counter only right after calling napi_gro_frags(), on error (after calling napi_free_frags()) or if stopping the port. Reset it in some place where not strictly necessary just to emphasize what is going on. This was found by Sashiko during normal patch review.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=4d5ae32f5e1e13f7f36d6439ec3257993b9f5b88 <ebd8ec2b309e3a447851b456ccaf8fb39f3661e7, >=4d5ae32f5e1e13f7f36d6439ec3257993b9f5b88 <46806096f35b8d3dfa2f321ddd77f597edcdb85f, >=4d5ae32f5e1e13f7f36d6439ec3257993b9f5b88 <7123cf481e21b54eb6adc4cb0d8dc2876aeaee41, >=4d5ae32f5e1e13f7f36d6439ec3257993b9f5b88 <75105fcf73f1ce7d9f769aaefec6e6d6645d5ac0, >=4d5ae32f5e1e13f7f36d6439ec3257993b9f5b88 <78cf08b3be47c28f07008a76c932bad7cdffa9d8, >=4d5ae32f5e1e13f7f36d6439ec3257993b9f5b88 <7af1fabdee744b7995fe01b30b77dfc397657cb5, >=4d5ae32f5e1e13f7f36d6439ec3257993b9f5b88 <c373b34877afea61c89e0dd2e38948c624249b9b, >=4d5ae32f5e1e13f7f36d6439ec3257993b9f5b88 <df31e3b64455293df1ea89c7da7d5c9bfbcdd253, =4.16 | ebd8ec2b309e3a447851b456ccaf8fb39f3661e7, 46806096f35b8d3dfa2f321ddd77f597edcdb85f, 7123cf481e21b54eb6adc4cb0d8dc2876aeaee41, 75105fcf73f1ce7d9f769aaefec6e6d6645d5ac0, 78cf08b3be47c28f07008a76c932bad7cdffa9d8, 7af1fabdee744b7995fe01b30b77dfc397657cb5, c373b34877afea61c89e0dd2e38948c624249b9b, df31e3b64455293df1ea89c7da7d5c9bfbcdd253 |
| linux-kernel: Kernel | >=5.11.0 <5.15.209, >=5.16.0 <6.1.175, >=6.13.0 <6.18.34, >=6.19.0 <7.0.11, >=6.2.0 <6.6.142, >=6.7.0 <6.12.92, >=4.16.0 <5.10.258 | 5.15.209, 6.1.175, 6.18.34, 7.0.11, 6.6.142, 6.12.92, 5.10.258 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket