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 8F0B524EAB1 for ; Fri, 22 Aug 2025 16:01:36 +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=1755878497; cv=none; b=s2JTltxERPSIX+x5ldya7kcXMVxFgJjL5EOF5x9qxnoGiO68aSwmHRKgg4Y5Dgh48ZQIru5DX9kh2/m+pcGTwcY6HTntG8QYphOvq5wpPRNmvh/aQ8c0ZvHQkwvt0O18+RrvGopmz7Y/3EfWt5DReEFfMpW6SG03EmgYbY/kkzE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755878497; c=relaxed/simple; bh=SeZM1Tntmy/OFTxw6IyORYuoAkpoaWBNtSqqV8q+Ik0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=F9lswUedA5GensmryBPmI7hklz7QuquamwUwcIPC9xtwNOoQ9kZVO/fPreMxijUfAfwY9gBUGS7eR/9vtpKR3pK/ltEuBpy5SmoKebneKO/XWkqoWsXP6zEQRQkNg+GRhnTab8BNUmX/OTbmv93CdHg8K1V+pOEs3wUfxnGl3xc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qaUcHnUM; 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="qaUcHnUM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8FB7EC4CEED; Fri, 22 Aug 2025 16:01:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755878496; bh=SeZM1Tntmy/OFTxw6IyORYuoAkpoaWBNtSqqV8q+Ik0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=qaUcHnUMhWz/sf5wH6P3hu//b1WsaaEYui4RfcZBr7EbMo+kiYdJ2hC+m3cqBMJyC EazHMTtg3r3uIolE8O8V/1/OP3qr+F850OsPrN0/zMa9LwnSutvOnwuwL87b7QQM8G pXUrconz5c+xH9nni9jcvvYEWgkG+6HKlssyWUow= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38638: ipv6: add a retry logic in net6_rt_notify() Date: Fri, 22 Aug 2025 18:00:46 +0200 Message-ID: <2025082234-CVE-2025-38638-caad@gregkh> X-Mailer: git-send-email 2.50.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=3855; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mLkOxChMLvMXvrfpjToNfU12ErAvSdHq+vGbQM6V7eM=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkrpij1u3s4fWgX2arTkKcaE377y0VRhUnmn8sefVod8 PDY9revOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAimQoM80vzUt90/XD78ttK 7YjnD3On7x/XJDHMs/abr3Sse+9U5VVKN7aXKdsYfOFqBwA= 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: ipv6: add a retry logic in net6_rt_notify() inet6_rt_notify() can be called under RCU protection only. This means the route could be changed concurrently and rt6_fill_node() could return -EMSGSIZE. Re-size the skb when this happens and retry, removing one WARN_ON() that syzbot was able to trigger: WARNING: CPU: 3 PID: 6291 at net/ipv6/route.c:6342 inet6_rt_notify+0x475/0x4b0 net/ipv6/route.c:6342 Modules linked in: CPU: 3 UID: 0 PID: 6291 Comm: syz.0.77 Not tainted 6.16.0-rc7-syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:inet6_rt_notify+0x475/0x4b0 net/ipv6/route.c:6342 Code: fc ff ff e8 6d 52 ea f7 e9 47 fc ff ff 48 8b 7c 24 08 4c 89 04 24 e8 5a 52 ea f7 4c 8b 04 24 e9 94 fd ff ff e8 9c fe 84 f7 90 <0f> 0b 90 e9 bd fd ff ff e8 6e 52 ea f7 e9 bb fb ff ff 48 89 df e8 RSP: 0018:ffffc900035cf1d8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffffc900035cf540 RCX: ffffffff8a36e790 RDX: ffff88802f7e8000 RSI: ffffffff8a36e9d4 RDI: 0000000000000005 RBP: ffff88803c230f00 R08: 0000000000000005 R09: 00000000ffffffa6 R10: 00000000ffffffa6 R11: 0000000000000001 R12: 00000000ffffffa6 R13: 0000000000000900 R14: ffff888032ea4100 R15: 0000000000000000 FS: 00007fac7b89a6c0(0000) GS:ffff8880d6a20000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fac7b899f98 CR3: 0000000034b3f000 CR4: 0000000000352ef0 Call Trace: ip6_route_mpath_notify+0xde/0x280 net/ipv6/route.c:5356 ip6_route_multipath_add+0x1181/0x1bd0 net/ipv6/route.c:5536 inet6_rtm_newroute+0xe4/0x1a0 net/ipv6/route.c:5647 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:6944 netlink_rcv_skb+0x155/0x420 net/netlink/af_netlink.c:2552 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x58d/0x850 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x8d1/0xdd0 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:712 [inline] __sock_sendmsg net/socket.c:727 [inline] ____sys_sendmsg+0xa95/0xc70 net/socket.c:2566 ___sys_sendmsg+0x134/0x1d0 net/socket.c:2620 The Linux kernel CVE team has assigned CVE-2025-38638 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16 with commit 169fd62799e8acabbfb4760799be11138ced949c and fixed in 6.16.1 with commit 0bdca3439a22c70eb8f404acd61bf7aca5d731b0 Issue introduced in 6.16 with commit 169fd62799e8acabbfb4760799be11138ced949c and fixed in 6.17-rc1 with commit ea2f921db7a483a526058c5b5b8162edd88dabe5 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-38638 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/ipv6/route.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/0bdca3439a22c70eb8f404acd61bf7aca5d731b0 https://git.kernel.org/stable/c/ea2f921db7a483a526058c5b5b8162edd88dabe5