All of lore.kernel.org
 help / color / mirror / Atom feed
* CVE-2026-99744: net: atl1c: drop oversized RX frames instead of panicking
@ 2026-11-20  5:52 Greg Kroah-Hartman
  0 siblings, 0 replies; only message in thread
From: Greg Kroah-Hartman @ 2026-11-20  5:52 UTC (permalink / raw)
  To: linux-cve-announce; +Cc: Greg Kroah-Hartman

From: Greg Kroah-Hartman <gregkh@kernel.org>

Description
===========

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.

The Linux kernel CVE team has assigned CVE-2026-99744 to this issue.


Affected and fixed versions
===========================

	Issue introduced in 2.6.29 with commit 43250ddd75a35d1f7926d989a10fefd30c37eaa7 and fixed in 6.12.118 with commit 11c873d6e6a497b5ee3699c63b57b49a882aa580
	Issue introduced in 2.6.29 with commit 43250ddd75a35d1f7926d989a10fefd30c37eaa7 and fixed in 6.18.64 with commit 655463ba1de62e7f4893cabfc89fe70d0e33f55d
	Issue introduced in 2.6.29 with commit 43250ddd75a35d1f7926d989a10fefd30c37eaa7 and fixed in 7.3.5 with commit 18ca06b36c4da8b46859dcd1c9aec557d05bc23a
	Issue introduced in 2.6.29 with commit 43250ddd75a35d1f7926d989a10fefd30c37eaa7 and fixed in 7.4-rc2 with commit c4ba1716853de5178a9df785844ebb5e397a80e6

Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to
older supported kernel versions.  The official CVE entry at
	https://cve.org/CVERecord/?id=CVE-2026-99744
will be updated if fixes are backported, please check that for the most
up to date information about this issue.


Affected files
==============

The file(s) affected by this issue are:
	drivers/net/ethernet/atheros/atl1c/atl1c_main.c


Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes.  Individual
changes are never tested alone, but rather are part of a larger kernel
release.  Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all.  If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
	https://git.kernel.org/stable/c/11c873d6e6a497b5ee3699c63b57b49a882aa580
	https://git.kernel.org/stable/c/655463ba1de62e7f4893cabfc89fe70d0e33f55d
	https://git.kernel.org/stable/c/18ca06b36c4da8b46859dcd1c9aec557d05bc23a
	https://git.kernel.org/stable/c/c4ba1716853de5178a9df785844ebb5e397a80e6

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-20  6:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-20  5:52 CVE-2026-99744: net: atl1c: drop oversized RX frames instead of panicking Greg Kroah-Hartman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.