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 62A091922F7 for ; Tue, 30 Jul 2024 07:52:23 +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=1722325943; cv=none; b=PiYwpsZbK2hHRT0Qd0ghnMV4Xzhj/tkWi4hsUnf2ilOxramiC8ck6vmtUpIUrftR5yP7zu/YgGH/+pzyapkEebiGlAWxwUb1zBYMazKcR0/aIo+W6gcXKnqdyD8yBSf3YRFcjBs1kOZkLUdiRnzKjeMPFz1WKAdG9eI0NT50fHI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722325943; c=relaxed/simple; bh=N+GtChR8j6dESWJz6hN92EV1sYyOUMCSkIMTh/caOB4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=g+89cRVVsvudqjRRONuA6jj5J5Z1U5/EW3vSdU1PWjsvRhEF/JYIz8yEJRdRdu/0tLzPJLQyHAYuKowTXg13IDdww6rmTSaGa5+bFDEey058RVjsJf369kAAVKyx8IsagGTnCchyHNhefblxLKLCbVPuqjXaZLXIB/lH/+XpUjQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nMNjjDD3; 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="nMNjjDD3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C64DAC32782; Tue, 30 Jul 2024 07:52:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722325943; bh=N+GtChR8j6dESWJz6hN92EV1sYyOUMCSkIMTh/caOB4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=nMNjjDD3k5Ubx+R2S524bYbzYTcP7tkpnJ6Aei5naUds4QEnMT0YLbB4xRsyWv8nN 60f2Os5sCvw4kjQ4RCg4QkcISEsn1vttnhWouw0Lxbo0A85vV8FlNCBnc+F+ViNOGt 2Qteri4iwu/R/dSE0IWxIJTz+P+dmVvacTxXpsYE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42145: IB/core: Implement a limit on UMAD receive List Date: Tue, 30 Jul 2024 09:48:03 +0200 Message-ID: <2024073032-CVE-2024-42145-5c7b@gregkh> X-Mailer: git-send-email 2.45.2 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=3083; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=N+GtChR8j6dESWJz6hN92EV1sYyOUMCSkIMTh/caOB4=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkrZk3ZcoHp1SOOXeeC45f+vCMR//x+nI3B+4uh7bWVI RObVyn4dMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEku4wLFh/Y+eq2PwzNTwl vV2csjf3uj7tjmFY0P+dMeKclRv3ep2DRzl+HJvI++WzLgA= 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: IB/core: Implement a limit on UMAD receive List The existing behavior of ib_umad, which maintains received MAD packets in an unbounded list, poses a risk of uncontrolled growth. As user-space applications extract packets from this list, the rate of extraction may not match the rate of incoming packets, leading to potential list overflow. To address this, we introduce a limit to the size of the list. After considering typical scenarios, such as OpenSM processing, which can handle approximately 100k packets per second, and the 1-second retry timeout for most packets, we set the list size limit to 200k. Packets received beyond this limit are dropped, assuming they are likely timed out by the time they are handled by user-space. Notably, packets queued on the receive list due to reasons like timed-out sends are preserved even when the list is full. The Linux kernel CVE team has assigned CVE-2024-42145 to this issue. Affected and fixed versions =========================== Fixed in 4.19.318 with commit 1288cf1cceb0 Fixed in 5.4.280 with commit b4913702419d Fixed in 5.10.222 with commit 62349fbf86b5 Fixed in 5.15.163 with commit d73cb8862e4d Fixed in 6.1.98 with commit 63d202d948bb Fixed in 6.6.39 with commit b8c5f635997f Fixed in 6.9.9 with commit a6627fba793c Fixed in 6.10 with commit ca0b44e20a6f 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-42145 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/infiniband/core/user_mad.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/1288cf1cceb0e6df276e182f5412370fb4169bcb https://git.kernel.org/stable/c/b4913702419d064ec4c4bbf7270643c95cc89a1b https://git.kernel.org/stable/c/62349fbf86b5e13b02721bdadf98c29afd1e7b5f https://git.kernel.org/stable/c/d73cb8862e4d6760ccc94d3b57b9ef6271400607 https://git.kernel.org/stable/c/63d202d948bb6d3a28cd8e8b96b160fa53e18baa https://git.kernel.org/stable/c/b8c5f635997f49c625178d1a0cb32a80ed33abe6 https://git.kernel.org/stable/c/a6627fba793cc75b7365d9504a0095fb2902dda4 https://git.kernel.org/stable/c/ca0b44e20a6f3032224599f02e7c8fb49525c894