Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DD0212797AE for ; Sat, 4 Oct 2025 15:54:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759593254; cv=none; b=NCAy1QOljoLfDTzyO1Xpw9+aA5QMQgQv3wNY0fvJQwCyMgsX1TbJwZXl0nDo6p9ATqsEr4Lgy5VTmPl84EtoMIKx3nZxZbd07M8u9leGl3E8mBd+NGby6sM5sBokpwIpm5Ofsg5mqV+y9NsuCs+hnIDyJraNbDsUjAtp/rmQCEw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759593254; c=relaxed/simple; bh=LOmQ34v/2dBYgvfmPpQfXlLDjHioy+WCZLjUbTWj8CM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YHdBMP6KUaSfYG2DRR4U3AjowF/EJS2dB3SYiReBt03faRnwBs5yB9sEGgKQI3YK5LJPzNQbFg/KC6S2+TLeB93k3oMgeoP3/l2BJnwKPS0JfF5GBQUVszbeGuL2d4cPYWC6sCQdOEC9IN2qYHSn7JF0YWs1rZDh9AuayXyXPrs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=EU0+axza; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="EU0+axza" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 657E8C4CEF1; Sat, 4 Oct 2025 15:54:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759593254; bh=LOmQ34v/2dBYgvfmPpQfXlLDjHioy+WCZLjUbTWj8CM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=EU0+axza+Yd111BY9FfXc9rJnluZP5Kjm9T7uC86lGO4OoWNLaFqwtKFQjodpnj3k +ZYzJEVS4HNEqmWPmTR4im4FETnb4ShECkJANS3UPyCVFJYnYB22OytSafT2Mhz64K Sk8dmRDlY1rfrXLxRior/28hq2WuOWMR5THBL7NI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53601: bonding: do not assume skb mac_header is set Date: Sat, 4 Oct 2025 17:51:55 +0200 Message-ID: <2025100430-CVE-2023-53601-aabe@gregkh> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=6053; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=RqMsLrTtKPOaF+xqQbIbJuJZan0jS9BHmH1ED8weaxQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkPnZqm1f7mVjtSLnPjabBuaaaevCzbzhbv6nnGzPc9/ TMYxbU7YlkYBJkYZMUUWb5s4zm6v+KQopeh7WmYOaxMIEMYuDgFYCL9Cxjml2rsiU2d5GdoWlO2 M2q356o2n9uxDAvWfJZ4cGvLb9bjZVN3X5p27cTZA9npAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: bonding: do not assume skb mac_header is set Drivers must not assume in their ndo_start_xmit() that skbs have their mac_header set. skb->data is all what is needed. bonding seems to be one of the last offender as caught by syzbot: WARNING: CPU: 1 PID: 12155 at include/linux/skbuff.h:2907 skb_mac_offset include/linux/skbuff.h:2913 [inline] WARNING: CPU: 1 PID: 12155 at include/linux/skbuff.h:2907 bond_xmit_hash drivers/net/bonding/bond_main.c:4170 [inline] WARNING: CPU: 1 PID: 12155 at include/linux/skbuff.h:2907 bond_xmit_3ad_xor_slave_get drivers/net/bonding/bond_main.c:5149 [inline] WARNING: CPU: 1 PID: 12155 at include/linux/skbuff.h:2907 bond_3ad_xor_xmit drivers/net/bonding/bond_main.c:5186 [inline] WARNING: CPU: 1 PID: 12155 at include/linux/skbuff.h:2907 __bond_start_xmit drivers/net/bonding/bond_main.c:5442 [inline] WARNING: CPU: 1 PID: 12155 at include/linux/skbuff.h:2907 bond_start_xmit+0x14ab/0x19d0 drivers/net/bonding/bond_main.c:5470 Modules linked in: CPU: 1 PID: 12155 Comm: syz-executor.3 Not tainted 6.1.30-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 RIP: 0010:skb_mac_header include/linux/skbuff.h:2907 [inline] RIP: 0010:skb_mac_offset include/linux/skbuff.h:2913 [inline] RIP: 0010:bond_xmit_hash drivers/net/bonding/bond_main.c:4170 [inline] RIP: 0010:bond_xmit_3ad_xor_slave_get drivers/net/bonding/bond_main.c:5149 [inline] RIP: 0010:bond_3ad_xor_xmit drivers/net/bonding/bond_main.c:5186 [inline] RIP: 0010:__bond_start_xmit drivers/net/bonding/bond_main.c:5442 [inline] RIP: 0010:bond_start_xmit+0x14ab/0x19d0 drivers/net/bonding/bond_main.c:5470 Code: 8b 7c 24 30 e8 76 dd 1a 01 48 85 c0 74 0d 48 89 c3 e8 29 67 2e fe e9 15 ef ff ff e8 1f 67 2e fe e9 10 ef ff ff e8 15 67 2e fe <0f> 0b e9 45 f8 ff ff e8 09 67 2e fe e9 dc fa ff ff e8 ff 66 2e fe RSP: 0018:ffffc90002fff6e0 EFLAGS: 00010283 RAX: ffffffff835874db RBX: 000000000000ffff RCX: 0000000000040000 RDX: ffffc90004dcf000 RSI: 00000000000000b5 RDI: 00000000000000b6 RBP: ffffc90002fff8b8 R08: ffffffff83586d16 R09: ffffffff83586584 R10: 0000000000000007 R11: ffff8881599fc780 R12: ffff88811b6a7b7e R13: 1ffff110236d4f6f R14: ffff88811b6a7ac0 R15: 1ffff110236d4f76 FS: 00007f2e9eb47700(0000) GS:ffff8881f6b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2e421000 CR3: 000000010e6d4000 CR4: 00000000003526e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: [] netdev_start_xmit include/linux/netdevice.h:4925 [inline] [] __dev_direct_xmit+0x4ef/0x850 net/core/dev.c:4380 [] dev_direct_xmit include/linux/netdevice.h:3043 [inline] [] packet_direct_xmit+0x18b/0x300 net/packet/af_packet.c:284 [] packet_snd net/packet/af_packet.c:3112 [inline] [] packet_sendmsg+0x4a22/0x64d0 net/packet/af_packet.c:3143 [] sock_sendmsg_nosec net/socket.c:716 [inline] [] sock_sendmsg net/socket.c:736 [inline] [] __sys_sendto+0x472/0x5f0 net/socket.c:2139 [] __do_sys_sendto net/socket.c:2151 [inline] [] __se_sys_sendto net/socket.c:2147 [inline] [] __x64_sys_sendto+0xe5/0x100 net/socket.c:2147 [] do_syscall_x64 arch/x86/entry/common.c:50 [inline] [] do_syscall_64+0x2f/0x50 arch/x86/entry/common.c:80 [] entry_SYSCALL_64_after_hwframe+0x63/0xcd The Linux kernel CVE team has assigned CVE-2023-53601 to this issue. Affected and fixed versions =========================== Issue introduced in 5.12 with commit 7b8fc0103bb51d1d3e1fb5fd67958612e709f883 and fixed in 5.15.121 with commit 029d892b05fc5e42a1b1c0665f62cb3e4b23e6dc Issue introduced in 5.12 with commit 7b8fc0103bb51d1d3e1fb5fd67958612e709f883 and fixed in 6.1.39 with commit 37b6143376a578265add04f35161b257eeb84a5e Issue introduced in 5.12 with commit 7b8fc0103bb51d1d3e1fb5fd67958612e709f883 and fixed in 6.3.13 with commit c96cc3d9acaca53d9a81c884c23f1224b61c829b Issue introduced in 5.12 with commit 7b8fc0103bb51d1d3e1fb5fd67958612e709f883 and fixed in 6.4.4 with commit bc16fc63592c419357dd4c4d82d50762102a60ef Issue introduced in 5.12 with commit 7b8fc0103bb51d1d3e1fb5fd67958612e709f883 and fixed in 6.5 with commit 6a940abdef3162e5723f1495b8a49859d1708f79 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-2023-53601 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/bonding/bond_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/029d892b05fc5e42a1b1c0665f62cb3e4b23e6dc https://git.kernel.org/stable/c/37b6143376a578265add04f35161b257eeb84a5e https://git.kernel.org/stable/c/c96cc3d9acaca53d9a81c884c23f1224b61c829b https://git.kernel.org/stable/c/bc16fc63592c419357dd4c4d82d50762102a60ef https://git.kernel.org/stable/c/6a940abdef3162e5723f1495b8a49859d1708f79