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 9D4982E613B for ; Tue, 7 Oct 2025 15:25:33 +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=1759850733; cv=none; b=qc4TdaV0SmGf+Mpzng0/4TubZN7dyItgwHVgJiitEgSbi4czoy2kFZpL0b+11swxJm7ab4f6JQFTtBnFSQEvtZjUZALTl+GxLA+lp0djaHK4cnqEi8fUuMFsUbGA1U8ZWMEc3ss2Ew9Yps/LCP2qBMwhBSKk/VZDVB29zEUJucw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759850733; c=relaxed/simple; bh=g3ObflSaMxncydTr7fozxvcQQQuh74bczru26BjzbMU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oleVJj25o4ninbj1iEe2TvAWy25n9y26FFroFxAOp4N6ZJp510o66T+S8J9CBNPPFfjDJ5KqefA4Unt/BnPNLIGRBBs273f1y91K4x/EDxMYM/7a1DVgX5GmtkSM7LmD3nqb+mM65og9XOeRlfwPIgy/QgDZ5EaMAPINZ0S068U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=f/yacUvX; 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="f/yacUvX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 20C81C4CEF1; Tue, 7 Oct 2025 15:25:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759850733; bh=g3ObflSaMxncydTr7fozxvcQQQuh74bczru26BjzbMU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=f/yacUvXXP1us/6WgAVg2DuPAWg33BnAgo6reOtkkp3oBrRXcxGnh2Zlx6twQQsQt 2OF6v+HskE6ycI+UQPTJhDdI99d9AoK32gkOCre/lPcBgVmHOZ/Vt68FhfbHtrjKx7 8+a3JfnL8FHjtJ2+VKOceJUwKfSUL2hoCD8J2YTE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53679: wifi: mt7601u: fix an integer underflow Date: Tue, 7 Oct 2025 17:21:38 +0200 Message-ID: <2025100708-CVE-2023-53679-929a@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=5433; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=gbK/fSt3mRmg3Gd/sk70MrUoFvwPvwHomU9jwDdMnj8=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlP9Z+cL/QMnvDxeYZ/8o6zOT89LjxR/XSoZknG28npj 7/WyO7c3RHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATCbvIMD87Y02H7afJmYyW S2Mm3Ts1+ei7g98YFmzIv/fZ/Led1aPZjM87d7Y8V26+ww8A 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: wifi: mt7601u: fix an integer underflow Fix an integer underflow that leads to a null pointer dereference in 'mt7601u_rx_skb_from_seg()'. The variable 'dma_len' in the URB packet could be manipulated, which could trigger an integer underflow of 'seg_len' in 'mt7601u_rx_process_seg()'. This underflow subsequently causes the 'bad_frame' checks in 'mt7601u_rx_skb_from_seg()' to be bypassed, eventually leading to a dereference of the pointer 'p', which is a null pointer. Ensure that 'dma_len' is greater than 'min_seg_len'. Found by a modified version of syzkaller. KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f] CPU: 0 PID: 12 Comm: ksoftirqd/0 Tainted: G W O 5.14.0+ #139 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.12.1-0-ga5cab58e9a3f-prebuilt.qemu.org 04/01/2014 RIP: 0010:skb_add_rx_frag+0x143/0x370 Code: e2 07 83 c2 03 38 ca 7c 08 84 c9 0f 85 86 01 00 00 4c 8d 7d 08 44 89 68 08 48 b8 00 00 00 00 00 fc ff df 4c 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 cd 01 00 00 48 8b 45 08 a8 01 0f 85 3d 01 00 00 RSP: 0018:ffffc900000cfc90 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff888115520dc0 RCX: 0000000000000000 RDX: 0000000000000001 RSI: ffff8881118430c0 RDI: ffff8881118430f8 RBP: 0000000000000000 R08: 0000000000000e09 R09: 0000000000000010 R10: ffff888111843017 R11: ffffed1022308602 R12: 0000000000000000 R13: 0000000000000e09 R14: 0000000000000010 R15: 0000000000000008 FS: 0000000000000000(0000) GS:ffff88811a800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000004035af40 CR3: 00000001157f2000 CR4: 0000000000750ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 PKRU: 55555554 Call Trace: mt7601u_rx_tasklet+0xc73/0x1270 ? mt7601u_submit_rx_buf.isra.0+0x510/0x510 ? tasklet_action_common.isra.0+0x79/0x2f0 tasklet_action_common.isra.0+0x206/0x2f0 __do_softirq+0x1b5/0x880 ? tasklet_unlock+0x30/0x30 run_ksoftirqd+0x26/0x50 smpboot_thread_fn+0x34f/0x7d0 ? smpboot_register_percpu_thread+0x370/0x370 kthread+0x3a1/0x480 ? set_kthread_struct+0x120/0x120 ret_from_fork+0x1f/0x30 Modules linked in: 88XXau(O) 88x2bu(O) ---[ end trace 57f34f93b4da0f9b ]--- RIP: 0010:skb_add_rx_frag+0x143/0x370 Code: e2 07 83 c2 03 38 ca 7c 08 84 c9 0f 85 86 01 00 00 4c 8d 7d 08 44 89 68 08 48 b8 00 00 00 00 00 fc ff df 4c 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 cd 01 00 00 48 8b 45 08 a8 01 0f 85 3d 01 00 00 RSP: 0018:ffffc900000cfc90 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff888115520dc0 RCX: 0000000000000000 RDX: 0000000000000001 RSI: ffff8881118430c0 RDI: ffff8881118430f8 RBP: 0000000000000000 R08: 0000000000000e09 R09: 0000000000000010 R10: ffff888111843017 R11: ffffed1022308602 R12: 0000000000000000 R13: 0000000000000e09 R14: 0000000000000010 R15: 0000000000000008 FS: 0000000000000000(0000) GS:ffff88811a800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000004035af40 CR3: 00000001157f2000 CR4: 0000000000750ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 PKRU: 55555554 The Linux kernel CVE team has assigned CVE-2023-53679 to this issue. Affected and fixed versions =========================== Fixed in 5.4.235 with commit 67e4519afba215199b6dfa39ce5d7ea673ee4138 Fixed in 5.10.173 with commit 47dc1f425af57b71111d7b01ebd24e04e8d967ef Fixed in 5.15.99 with commit 1a1f43059afae5cc9409e0c3bc63bfc09bc8facb Fixed in 6.1.16 with commit 61d0163e2be7a439cf6f82e9ad7de563ecf41e7a Fixed in 6.2.3 with commit d0db59e2f718d1e2f1d2a2d8092168fdd2f3add0 Fixed in 6.3 with commit 803f3176c5df3b5582c27ea690f204abb60b19b9 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-53679 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/wireless/mediatek/mt7601u/dma.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/67e4519afba215199b6dfa39ce5d7ea673ee4138 https://git.kernel.org/stable/c/47dc1f425af57b71111d7b01ebd24e04e8d967ef https://git.kernel.org/stable/c/1a1f43059afae5cc9409e0c3bc63bfc09bc8facb https://git.kernel.org/stable/c/61d0163e2be7a439cf6f82e9ad7de563ecf41e7a https://git.kernel.org/stable/c/d0db59e2f718d1e2f1d2a2d8092168fdd2f3add0 https://git.kernel.org/stable/c/803f3176c5df3b5582c27ea690f204abb60b19b9