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 BFD741581F9 for ; Wed, 16 Apr 2025 14:15:28 +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=1744812928; cv=none; b=Kj8iHMzsT4Du94u4NFlsqQT/mvwCWdMZbEVbKtNSFDOBxikccaFBwz/2Ezq6eDperVSBVw6YyKXn1uBdZPtcvqJnyJGY2sELUFYTSZwW3rGqTs7yhQUssbGRJasVxlkasLXpbsNvsU1rcwSyG6sbvgNbHXQIBDypUjlv7o75GFQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744812928; c=relaxed/simple; bh=8gpWvVtLyqFzCSoBi6Bz30gDqMx5g43zhStdCYKq48Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nNfCT4lNwQkEj5ZT1TcYHONkQgO0jtisPGvATK/yjnFiEUEQwVaZrhdvTQux2gLZmF0vEHIs5HO5jk4a7llNe8d+7XB53vrFIuDuUZjg7wXfkcPEFxywGo942r8jixa5YRP4Sc7TIXUfM1g+hO8LdEQUEBAhARvyty4sUrAKxH8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZgYts/vD; 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="ZgYts/vD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 481EAC4CEE2; Wed, 16 Apr 2025 14:15:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744812928; bh=8gpWvVtLyqFzCSoBi6Bz30gDqMx5g43zhStdCYKq48Q=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ZgYts/vDACTgqSltZKu9yBcBBRgRXqdVYZcnXz5U8zdceLC+z7yZ1Wri2A3cQAK7u S5x/M6ZXp3Xw3L4LB3P+crOMs9K6G9nKyEwsh0lAwrtY3PHpP/nnLf8mrmPJd8sXIq HpmMcHZUVx995BgMiefjKAAkOWra63aqPmHOmzTU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-22062: sctp: add mutual exclusion in proc_sctp_do_udp_port() Date: Wed, 16 Apr 2025 16:12:33 +0200 Message-ID: <2025041607-CVE-2025-22062-8912@gregkh> X-Mailer: git-send-email 2.49.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=3608; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=8gpWvVtLyqFzCSoBi6Bz30gDqMx5g43zhStdCYKq48Q=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn/d21PVLse92HzCgnfuT4r3/pWbjzVGnpsSXj0/Y18l lGZeiJcHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARgy6GBR1HHNf+k+BjdIk+ te6Bmd0zvl9vpwFFm+ptaiV+b45eJ8DyzOCYLvOxW70A 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: sctp: add mutual exclusion in proc_sctp_do_udp_port() We must serialize calls to sctp_udp_sock_stop() and sctp_udp_sock_start() or risk a crash as syzbot reported: Oops: general protection fault, probably for non-canonical address 0xdffffc000000000d: 0000 [#1] SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000068-0x000000000000006f] CPU: 1 UID: 0 PID: 6551 Comm: syz.1.44 Not tainted 6.14.0-syzkaller-g7f2ff7b62617 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:kernel_sock_shutdown+0x47/0x70 net/socket.c:3653 Call Trace: udp_tunnel_sock_release+0x68/0x80 net/ipv4/udp_tunnel_core.c:181 sctp_udp_sock_stop+0x71/0x160 net/sctp/protocol.c:930 proc_sctp_do_udp_port+0x264/0x450 net/sctp/sysctl.c:553 proc_sys_call_handler+0x3d0/0x5b0 fs/proc/proc_sysctl.c:601 iter_file_splice_write+0x91c/0x1150 fs/splice.c:738 do_splice_from fs/splice.c:935 [inline] direct_splice_actor+0x18f/0x6c0 fs/splice.c:1158 splice_direct_to_actor+0x342/0xa30 fs/splice.c:1102 do_splice_direct_actor fs/splice.c:1201 [inline] do_splice_direct+0x174/0x240 fs/splice.c:1227 do_sendfile+0xafd/0xe50 fs/read_write.c:1368 __do_sys_sendfile64 fs/read_write.c:1429 [inline] __se_sys_sendfile64 fs/read_write.c:1415 [inline] __x64_sys_sendfile64+0x1d8/0x220 fs/read_write.c:1415 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] The Linux kernel CVE team has assigned CVE-2025-22062 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit 046c052b475e7119b6a30e3483e2888fc606a2f8 and fixed in 6.12.23 with commit e5178bfc55b3a78000f0f8298e7ade88783ce581 Issue introduced in 5.11 with commit 046c052b475e7119b6a30e3483e2888fc606a2f8 and fixed in 6.13.11 with commit efb8cb487be8f4ba6aaef616011d702d6a083ed1 Issue introduced in 5.11 with commit 046c052b475e7119b6a30e3483e2888fc606a2f8 and fixed in 6.14.2 with commit d3d7675d77622f6ca1aae14c51f80027b36283f8 Issue introduced in 5.11 with commit 046c052b475e7119b6a30e3483e2888fc606a2f8 and fixed in 6.15-rc1 with commit 10206302af856791fbcc27a33ed3c3eb09b2793d 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-22062 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/sctp/sysctl.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/e5178bfc55b3a78000f0f8298e7ade88783ce581 https://git.kernel.org/stable/c/efb8cb487be8f4ba6aaef616011d702d6a083ed1 https://git.kernel.org/stable/c/d3d7675d77622f6ca1aae14c51f80027b36283f8 https://git.kernel.org/stable/c/10206302af856791fbcc27a33ed3c3eb09b2793d