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 2488416C850 for ; Thu, 27 Feb 2025 02:08:56 +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=1740622136; cv=none; b=PvdfRwePAkkxyhvh4VkCDPprrl/kURXIPVn87dzptqttzpBMkhpFJbx/JLzYQQ6szUFAEJ2kn4wQgqCiWy2cntHoJOB5GvR5/UfhMJb+qcMEOsNXekpMRFzn96c5s6VtWKSxNdLqofjK0aFNex8ToiO0ftXVCf3cdAKq3InfaUA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740622136; c=relaxed/simple; bh=FoJAUxxXam1aduJ21+wZAX0x/owSNm9EfLRLApRa1ZQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=clOof+eGwfLDAjw3o62Mj5L92J/iE+9BBxXIyYJINnUDsCI03koSAuHIbdpg/8xMNEDN9hTZ9uktodacf2twLjKpQA71uDv+TvOsOpEUZ9RrnuTJM0ElVVCnxH1xNM7gStczlMExvLNaWpB9fhdkhZbtzwVrYEq2qYzDpJ3yXXo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FCRr2xl+; 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="FCRr2xl+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ECA7CC4CED6; Thu, 27 Feb 2025 02:08:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740622136; bh=FoJAUxxXam1aduJ21+wZAX0x/owSNm9EfLRLApRa1ZQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=FCRr2xl+XJ2pvgn3kqkAGkLLGMrOhFBnb6bjWxq3rz3aDuespzc+2za45Xbn+dT+C pTSMpvh9nRwuXf2t43rRlPPneOJ27lp9GUVEWdmqPcbDSqzy8KAzx36ay3gTHlgkOD +HU7RbtanjSpWg4pV9e8a46VhKIhGeILxZU9+/1I= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21719: ipmr: do not call mr_mfc_uses_dev() for unres entries Date: Wed, 26 Feb 2025 18:06:14 -0800 Message-ID: <2025022646-CVE-2025-21719-dbee@gregkh> X-Mailer: git-send-email 2.48.1 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=4095; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=FoJAUxxXam1aduJ21+wZAX0x/owSNm9EfLRLApRa1ZQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7T1Qfz+STemHrI/XoyMvi7GP3SgriMq0WPTqk++zKd H0mY0nzjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhI4TeGuULXFuncs0l7rCfA V/5O/VLny+dnJBkW9OZUVEll3O08V1TwKURP4LK52ts9AA== 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: ipmr: do not call mr_mfc_uses_dev() for unres entries syzbot found that calling mr_mfc_uses_dev() for unres entries would crash [1], because c->mfc_un.res.minvif / c->mfc_un.res.maxvif alias to "struct sk_buff_head unresolved", which contain two pointers. This code never worked, lets remove it. [1] Unable to handle kernel paging request at virtual address ffff5fff2d536613 KASAN: maybe wild-memory-access in range [0xfffefff96a9b3098-0xfffefff96a9b309f] Modules linked in: CPU: 1 UID: 0 PID: 7321 Comm: syz.0.16 Not tainted 6.13.0-rc7-syzkaller-g1950a0af2d55 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : mr_mfc_uses_dev net/ipv4/ipmr_base.c:290 [inline] pc : mr_table_dump+0x5a4/0x8b0 net/ipv4/ipmr_base.c:334 lr : mr_mfc_uses_dev net/ipv4/ipmr_base.c:289 [inline] lr : mr_table_dump+0x694/0x8b0 net/ipv4/ipmr_base.c:334 Call trace: mr_mfc_uses_dev net/ipv4/ipmr_base.c:290 [inline] (P) mr_table_dump+0x5a4/0x8b0 net/ipv4/ipmr_base.c:334 (P) mr_rtm_dumproute+0x254/0x454 net/ipv4/ipmr_base.c:382 ipmr_rtm_dumproute+0x248/0x4b4 net/ipv4/ipmr.c:2648 rtnl_dump_all+0x2e4/0x4e8 net/core/rtnetlink.c:4327 rtnl_dumpit+0x98/0x1d0 net/core/rtnetlink.c:6791 netlink_dump+0x4f0/0xbc0 net/netlink/af_netlink.c:2317 netlink_recvmsg+0x56c/0xe64 net/netlink/af_netlink.c:1973 sock_recvmsg_nosec net/socket.c:1033 [inline] sock_recvmsg net/socket.c:1055 [inline] sock_read_iter+0x2d8/0x40c net/socket.c:1125 new_sync_read fs/read_write.c:484 [inline] vfs_read+0x740/0x970 fs/read_write.c:565 ksys_read+0x15c/0x26c fs/read_write.c:708 The Linux kernel CVE team has assigned CVE-2025-21719 to this issue. Affected and fixed versions =========================== Issue introduced in 4.20 with commit cb167893f41e21e6bd283d78e53489289dc0592d and fixed in 6.1.129 with commit 57177c5f47a8da852f8d76cf6945cf803f8bb9e5 Issue introduced in 4.20 with commit cb167893f41e21e6bd283d78e53489289dc0592d and fixed in 6.6.76 with commit b379b3162ff55a70464c6a934ae9bf0497478a62 Issue introduced in 4.20 with commit cb167893f41e21e6bd283d78e53489289dc0592d and fixed in 6.12.13 with commit a099834a51ccf9bbba3de86a251b3433539abfde Issue introduced in 4.20 with commit cb167893f41e21e6bd283d78e53489289dc0592d and fixed in 6.13.2 with commit 26bb7d991f04eeef47dfad23e533834995c26f7a Issue introduced in 4.20 with commit cb167893f41e21e6bd283d78e53489289dc0592d and fixed in 6.14-rc1 with commit 15a901361ec3fb1c393f91880e1cbf24ec0a88bd 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-2025-21719 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: net/ipv4/ipmr_base.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/57177c5f47a8da852f8d76cf6945cf803f8bb9e5 https://git.kernel.org/stable/c/b379b3162ff55a70464c6a934ae9bf0497478a62 https://git.kernel.org/stable/c/a099834a51ccf9bbba3de86a251b3433539abfde https://git.kernel.org/stable/c/26bb7d991f04eeef47dfad23e533834995c26f7a https://git.kernel.org/stable/c/15a901361ec3fb1c393f91880e1cbf24ec0a88bd