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 5E7581F8EEC for ; Mon, 21 Oct 2024 20:13:10 +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=1729541590; cv=none; b=gbncJ5MwV+bLic8lyvyNlmn8X84tIRO26jJqFmWnT4rK5RkPlU1v17Gva9UiYbYWUxWkJh5wKLaOuDmPiMMkYHI0KHsYru4e7z5iV6dJuxmr/hsQ89ViTmdaLKmFcICrFzg6jxDm6NcGGrxQzlUH65ht8XZFw85a778gvnXEAuk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729541590; c=relaxed/simple; bh=IhZb2r3i1lMLILL79EY0/EM4O8cmbwTPmol3/qp5/nM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jjdQs8R3EN223UmWZkWfTpssphLujLhhEB+9aVlxJBu+8IVHwM3qhSLI68ybwJT5CyY570QMVMLopdaYSqnVdyqBvajbnY7tBzWytacEAnZkKJwBbR4XtCVKE0NQtkYBDEA8Z7BPfEVmXKO0nts2Ks9sJmMNut9q8zxNS0ml3/E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Js7KIDXq; 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="Js7KIDXq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D569EC4CEC3; Mon, 21 Oct 2024 20:13:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729541590; bh=IhZb2r3i1lMLILL79EY0/EM4O8cmbwTPmol3/qp5/nM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Js7KIDXqw5v5tm/jbSz5PCOjvsPOdPBR4re/xTxqFUYw8rgiqlDp+4kG9ac0qCz41 MgaiiLZToPXil0jJkmZLggSFLe87IkmMZ2TaFwv7xiD7OlURWLMl6dBJdEFUdOMryM YQIvtJadREwF3+PAdqVYwrybde7WLlC0FHB0+kFM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49013: sctp: fix memory leak in sctp_stream_outq_migrate() Date: Mon, 21 Oct 2024 22:06:45 +0200 Message-ID: <2024102152-CVE-2022-49013-dd61@gregkh> X-Mailer: git-send-email 2.47.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=3384; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=IhZb2r3i1lMLILL79EY0/EM4O8cmbwTPmol3/qp5/nM=; b=kA0DAAIRMUfUDdst+ykByyZiAGcWtCDIJbhSx3C8yb2lBQnLFFbea2yP2bnSxWefkjVz2CixE 4hdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmcWtCAACgkQMUfUDdst+ykPnACcDuor E50RkVII3J/F1T5wVLUqhQQAoK9SV1ZaMLiJPPuS0juf/ms8gQ/8 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: fix memory leak in sctp_stream_outq_migrate() When sctp_stream_outq_migrate() is called to release stream out resources, the memory pointed to by prio_head in stream out is not released. The memory leak information is as follows: unreferenced object 0xffff88801fe79f80 (size 64): comm "sctp_repo", pid 7957, jiffies 4294951704 (age 36.480s) hex dump (first 32 bytes): 80 9f e7 1f 80 88 ff ff 80 9f e7 1f 80 88 ff ff ................ 90 9f e7 1f 80 88 ff ff 90 9f e7 1f 80 88 ff ff ................ backtrace: [] kmalloc_trace+0x26/0x60 [] sctp_sched_prio_set+0x4cc/0x770 [] sctp_stream_init_ext+0xd2/0x1b0 [] sctp_sendmsg_to_asoc+0x1614/0x1a30 [] sctp_sendmsg+0xda1/0x1ef0 [] inet_sendmsg+0x9d/0xe0 [] sock_sendmsg+0xd3/0x120 [] __sys_sendto+0x23a/0x340 [] __x64_sys_sendto+0xe1/0x1b0 [] do_syscall_64+0x39/0xb0 [] entry_SYSCALL_64_after_hwframe+0x63/0xcd The Linux kernel CVE team has assigned CVE-2022-49013 to this issue. Affected and fixed versions =========================== Issue introduced in 4.15 with commit 637784ade221 and fixed in 5.4.226 with commit a7555681e50b Issue introduced in 4.15 with commit 637784ade221 and fixed in 5.10.158 with commit 176ee6c673cc Issue introduced in 4.15 with commit 637784ade221 and fixed in 5.15.82 with commit 0dfb9a566327 Issue introduced in 4.15 with commit 637784ade221 and fixed in 6.0.12 with commit fa20f8827125 Issue introduced in 4.15 with commit 637784ade221 and fixed in 6.1 with commit 9ed7bfc79542 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-2022-49013 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: include/net/sctp/stream_sched.h net/sctp/stream.c net/sctp/stream_sched.c net/sctp/stream_sched_prio.c net/sctp/stream_sched_rr.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/a7555681e50bdebed2c40ff7404ee73c2e932993 https://git.kernel.org/stable/c/176ee6c673ccd118e9392fd2dbb165423bdb99ca https://git.kernel.org/stable/c/0dfb9a566327182387c90100ea54d8426cee8c67 https://git.kernel.org/stable/c/fa20f88271259d42ebe66f0a8c4c20199e888c99 https://git.kernel.org/stable/c/9ed7bfc79542119ac0a9e1ce8a2a5285e43433e9