net: atl1c: drop oversized RX frames instead of panicking
NIST has received this entry but not started reviewing it.
In the Linux kernel, the following vulnerability has been resolved: net: atl1c: drop oversized RX frames instead of panicking atl1c sizes its receive buffers from the netdev MTU plus a fixed set of L2 overheads, which comes to 1522 bytes at the default MTU. A link partner that sends a longer frame - in practice a MikroTik CCR2004-1G-2XS-PCIe, whose RouterOS side defaults to l2mtu 1600 while the host stays at MTU 1500 - makes the length reported by the RX return descriptor exceed what the hardware wrote, and skb_put() then either includes bytes that were never received or trips skb_over_panic and takes the host down. Compare the descriptor length against buffer_info->length, the length the hardware was given, rather than against skb_tailroom(): the skb carries 64 bytes of slack for the DMA erratum, so tailroom is larger than the DMA buffer and a frame in between would pass the check and still be delivered with a tail the device never wrote. The same test rejects frames shorter than ETH_HLEN + ETH_FCS_LEN; before this change a reported length below ETH_FCS_LEN underflowed in skb_put(). The frame is dropped with kfree_skb_reason(SKB_DROP_REASON_PKT_TOO_BIG) so drop_monitor and the kfree_skb tracepoint see it, and counted through dev_core_stats_rx_dropped_inc(), which survives atl1c_get_stats() overwriting the hardware counters on every read. It also counts as work: atl1c_clean_rfd() has already recycled the RFD, and the refill at the end of the poll only runs when work_done is non-zero, so sustained oversized traffic would otherwise drain the ring and stop RX. Tested on a MikroTik CCR2004-1G-2XS-PCIe (4x AR8151) in a Proxmox VE host, with atl1c built from a DKMS tree carrying this change: the l2mtu-1600 traffic that panics the stock driver is dropped and counted with the patch applied, and received normally once the host MTU is raised to match. This complements commit 36c2009d90f2 ("net: atl1c: fix soft lockup on out-of-range tpd_cons read"), which fixed the TX side of the same "host dies while the card resets" problem.
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable, 2 products in all. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| Linux Linux | Software | from 43250ddd75a35d1f7926d989a10fefd30c37eaa7, before 2f29680c3f82a50e91b97b3f2eeb72ecd08116bd; from 43250ddd75a35d1f7926d989a10fefd30c37eaa7, before 388e78041d938d87f7fc50921d24e99f1b066a73; from 43250ddd75a35d1f7926d989a10fefd30c37eaa7, before ad02846336d31ee30fd499a6c34b06036522b27a; from 43250ddd75a35d1f7926d989a10fefd30c37eaa7, before be8ef80bbdb914ac0064f8e00400d3959ec80397; from 43250ddd75a35d1f7926d989a10fefd30c37eaa7, before 11c873d6e6a497b5ee3699c63b57b49a882aa580; from 43250ddd75a35d1f7926d989a10fefd30c37eaa7, before 655463ba1de62e7f4893cabfc89fe70d0e33f55d; and 2 more | 2f29680c3f82a50e91b97b3f2eeb72ecd08116bd; 388e78041d938d87f7fc50921d24e99f1b066a73; ad02846336d31ee30fd499a6c34b06036522b27a; be8ef80bbdb914ac0064f8e00400d3959ec80397 |
| Linux Linux | Software | 2.6.29 | not recorded |
The 7.1 severity score (high) from the company that reported it, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | Nearby network | The attacker has to be on the same local network (office Wi-Fi or the same hosting network). |
| How hard it is | Low | Easy to carry out. No special conditions have to line up. |
| Login needed | None | The attacker does not need an account or password. |
| Someone has to act | None | Nobody has to click or open anything. It can happen on its own. |
| Reaches beyond the program | Unchanged | The damage stays inside the vulnerable program. |
| Data exposed | Low | The attacker can read some data, but not everything. |
| Data changed | None | Nothing can be changed. |
| Service disrupted | High | The attacker can take the service down completely. |
| Ease of attack | 2.8 | A score for how easy it is to use the flaw. Higher is easier. |
| Damage | 4.2 | A score for how bad the harm is if it works. Higher is worse. |
NIST lists 8 sources for this flaw, none tagged as a vendor patch.