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 C0E442D600 for ; Tue, 2 Apr 2024 07:02:25 +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=1712041345; cv=none; b=PVcgG++BsliBrSPhprYrEfMlUMhAQE6hWSx2BOU2b6CGYE0MzxBB/uNuJqrG6XtZfg1USK51U9ax9wCT9q+JZQ11cxIZMq7rUnIcQ4KrovK0XINIoJjLI1xeQSPa6yFQX1EKNrQZp5DUWVuYlnENTK6RPEFji+fZO5BNYzOz4gA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712041345; c=relaxed/simple; bh=Cn72Jvfz72eKGyA8V5PzNZf9NkUrI5vlObDU1YTI2D8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mX5b/dzOdU2Swy853hidrDs59/y8SjKaBQExHHN64TViR7TpNUnf4ZPaClUgdkG+8+A4XyhH0aPNM+GAa/6QTfxfOgo5zJGoYH/t3j/g57RWGuHHTWOlh0n0QDQpJgx1/GQnvlmnBnN2rG+dyxBg+6OfE2WzhvJYDTLRtnH74CY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=y/ZpVfDM; 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="y/ZpVfDM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3D8C8C43390; Tue, 2 Apr 2024 07:02:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712041345; bh=Cn72Jvfz72eKGyA8V5PzNZf9NkUrI5vlObDU1YTI2D8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=y/ZpVfDMmB4E4AmHyY4ti3GdGJi5iLJBu4yEMFfkLrMVwxpPA8mQ5yuMKQXhjHmtc TOCoESUy8qFU5cVWrBUQZztKJJwVJ1a/bbkneEkj2e0+J+do3502Wvgo4LERdfhRJP G4I+ftMT2zwT5feFR6QBJdQ9QIrG0giU4hzCLzVc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26675: ppp_async: limit MRU to 64K Date: Tue, 2 Apr 2024 09:01:52 +0200 Message-ID: <2024040252-CVE-2024-26675-5b19@gregkh> X-Mailer: git-send-email 2.44.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=5369; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Cn72Jvfz72eKGyA8V5PzNZf9NkUrI5vlObDU1YTI2D8=; b=owGbwMvMwCRo6H6F97bub03G02pJDGncaxNy+RwEtQPVLtrJ6D/aJx0QkZHkIbFiYfs2M+eSz k+GrOwdsSwMgkwMsmKKLF+28RzdX3FI0cvQ9jTMHFYmkCEMXJwCMJGMZQwL5lp5nuRyCvKv6BG0 5nc+e5n3vY4IwzyzK2kmAk5ZmrteO5omvmdJ13jXdBsA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: ppp_async: limit MRU to 64K syzbot triggered a warning [1] in __alloc_pages(): WARN_ON_ONCE_GFP(order > MAX_PAGE_ORDER, gfp) Willem fixed a similar issue in commit c0a2a1b0d631 ("ppp: limit MRU to 64K") Adopt the same sanity check for ppp_async_ioctl(PPPIOCSMRU) [1]: WARNING: CPU: 1 PID: 11 at mm/page_alloc.c:4543 __alloc_pages+0x308/0x698 mm/page_alloc.c:4543 Modules linked in: CPU: 1 PID: 11 Comm: kworker/u4:0 Not tainted 6.8.0-rc2-syzkaller-g41bccc98fb79 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Workqueue: events_unbound flush_to_ldisc pstate: 204000c5 (nzCv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __alloc_pages+0x308/0x698 mm/page_alloc.c:4543 lr : __alloc_pages+0xc8/0x698 mm/page_alloc.c:4537 sp : ffff800093967580 x29: ffff800093967660 x28: ffff8000939675a0 x27: dfff800000000000 x26: ffff70001272ceb4 x25: 0000000000000000 x24: ffff8000939675c0 x23: 0000000000000000 x22: 0000000000060820 x21: 1ffff0001272ceb8 x20: ffff8000939675e0 x19: 0000000000000010 x18: ffff800093967120 x17: ffff800083bded5c x16: ffff80008ac97500 x15: 0000000000000005 x14: 1ffff0001272cebc x13: 0000000000000000 x12: 0000000000000000 x11: ffff70001272cec1 x10: 1ffff0001272cec0 x9 : 0000000000000001 x8 : ffff800091c91000 x7 : 0000000000000000 x6 : 000000000000003f x5 : 00000000ffffffff x4 : 0000000000000000 x3 : 0000000000000020 x2 : 0000000000000008 x1 : 0000000000000000 x0 : ffff8000939675e0 Call trace: __alloc_pages+0x308/0x698 mm/page_alloc.c:4543 __alloc_pages_node include/linux/gfp.h:238 [inline] alloc_pages_node include/linux/gfp.h:261 [inline] __kmalloc_large_node+0xbc/0x1fc mm/slub.c:3926 __do_kmalloc_node mm/slub.c:3969 [inline] __kmalloc_node_track_caller+0x418/0x620 mm/slub.c:4001 kmalloc_reserve+0x17c/0x23c net/core/skbuff.c:590 __alloc_skb+0x1c8/0x3d8 net/core/skbuff.c:651 __netdev_alloc_skb+0xb8/0x3e8 net/core/skbuff.c:715 netdev_alloc_skb include/linux/skbuff.h:3235 [inline] dev_alloc_skb include/linux/skbuff.h:3248 [inline] ppp_async_input drivers/net/ppp/ppp_async.c:863 [inline] ppp_asynctty_receive+0x588/0x186c drivers/net/ppp/ppp_async.c:341 tty_ldisc_receive_buf+0x12c/0x15c drivers/tty/tty_buffer.c:390 tty_port_default_receive_buf+0x74/0xac drivers/tty/tty_port.c:37 receive_buf drivers/tty/tty_buffer.c:444 [inline] flush_to_ldisc+0x284/0x6e4 drivers/tty/tty_buffer.c:494 process_one_work+0x694/0x1204 kernel/workqueue.c:2633 process_scheduled_works kernel/workqueue.c:2706 [inline] worker_thread+0x938/0xef4 kernel/workqueue.c:2787 kthread+0x288/0x310 kernel/kthread.c:388 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860 The Linux kernel CVE team has assigned CVE-2024-26675 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.12 with commit 1da177e4c3f4 and fixed in 4.19.307 with commit 4fdb14ba89fa Issue introduced in 2.6.12 with commit 1da177e4c3f4 and fixed in 5.4.269 with commit 56fae81633cc Issue introduced in 2.6.12 with commit 1da177e4c3f4 and fixed in 5.10.210 with commit b06e067e93fa Issue introduced in 2.6.12 with commit 1da177e4c3f4 and fixed in 5.15.149 with commit 58fbe665b097 Issue introduced in 2.6.12 with commit 1da177e4c3f4 and fixed in 6.1.78 with commit 4e2c4846b250 Issue introduced in 2.6.12 with commit 1da177e4c3f4 and fixed in 6.6.17 with commit 7e5ef4967076 Issue introduced in 2.6.12 with commit 1da177e4c3f4 and fixed in 6.7.5 with commit 210d938f963d Issue introduced in 2.6.12 with commit 1da177e4c3f4 and fixed in 6.8 with commit cb88cb53badb 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-2024-26675 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/ppp/ppp_async.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/4fdb14ba89faff6e6969a4dffdc8e54235d6e5ed https://git.kernel.org/stable/c/56fae81633ccee307cfcb032f706bf1863a56982 https://git.kernel.org/stable/c/b06e067e93fa4b98acfd3a9f38a398ab91bbc58b https://git.kernel.org/stable/c/58fbe665b097bf7b3144da7e7b91fb27aa8d0ae3 https://git.kernel.org/stable/c/4e2c4846b2507f6dfc9bea72b7567c2693a82a16 https://git.kernel.org/stable/c/7e5ef49670766c9742ffcd9cead7cdb018268719 https://git.kernel.org/stable/c/210d938f963dddc543b07e66a79b7d8d4bd00bd8 https://git.kernel.org/stable/c/cb88cb53badb8aeb3955ad6ce80b07b598e310b8