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 6781F3F9C5 for ; Fri, 27 Dec 2024 13:55:51 +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=1735307751; cv=none; b=OvVNBxWjYVKBy58x8zoNSsduLt3D3FBVB4W+uKnPMj7Ih64wUPhLQaPUGyiSVQk+xawoJXvVUlIrV7o1q+cEEVrw3Kz4uGIfNJbBsJjEDENmKjT/tUGjaf4owvkErZzvZh4Fb23dhHQ8Tn7wvfU4xQua54ce/pIHgEVM9BFNpwM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735307751; c=relaxed/simple; bh=1t6NYh7VJQytuLwlEIljb/d0Nc1vph9gKtM4V5jQxMU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nql8cf+WtQ3uzQcEr911aoCxta8Q1Bzwr4H2kGoYt/rEpnR93OrRH/O6c5paP6VZYresNAtQW7Ud7omBFwhscfxC12mja/oTNSSr1q6uWTSUnfAQZePCFr4WDmsvQXVh4L+3yfUIKhUykRvALjcXYs7VpEw76X9VoYIfUHLZUiE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gUCy/ueV; 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="gUCy/ueV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C4C32C4CED0; Fri, 27 Dec 2024 13:55:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735307751; bh=1t6NYh7VJQytuLwlEIljb/d0Nc1vph9gKtM4V5jQxMU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=gUCy/ueVMq56zuXyvGkyq5oSkkKgOai6Dx2Ls8vr7RPBWw+hLdTs6fxWAd0F3aMEY qFW3ag7inyxAd1utb8+SSM/+AAcDLNr5y8FaMZihXMDFRNv4Gahlz1+TQRPVkLzX72 5O6wFgTjLjF3Mniy2cMQ4WM8AiUU1P1wiiDV5orY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-53226: RDMA/hns: Fix NULL pointer derefernce in hns_roce_map_mr_sg() Date: Fri, 27 Dec 2024 14:53:12 +0100 Message-ID: <2024122735-CVE-2024-53226-5c23@gregkh> X-Mailer: git-send-email 2.47.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=3180; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1t6NYh7VJQytuLwlEIljb/d0Nc1vph9gKtM4V5jQxMU=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl5G5WD9286JOZ3ez9fshuLZU/h1XtrNwVKLzlfO6Gnj COolHFxRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkJx/DPMu9X4MmN853S3xw 6Mde3s3ZfW3T7jMsmO4ScGLnwnqxFsazzz9MXLbK87CiLQA= 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: RDMA/hns: Fix NULL pointer derefernce in hns_roce_map_mr_sg() ib_map_mr_sg() allows ULPs to specify NULL as the sg_offset argument. The driver needs to check whether it is a NULL pointer before dereferencing it. The Linux kernel CVE team has assigned CVE-2024-53226 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10.224 with commit edc2dee07ab4ae2188b9780c453a64032162a5a0 and fixed in 5.10.231 with commit bd715e191d444992d6ed124f15856da5c1cae2de Issue introduced in 5.15.165 with commit 3c301b8a046b57e3de14c6fc669d81dcb71bb5b5 and fixed in 5.15.174 with commit 35f5b68f63aac61d30ce0b0c6beb09b8845a3e65 Issue introduced in 6.1.103 with commit 5a13652ac34be9b60feec89835763574825a8905 and fixed in 6.1.120 with commit 52617e76f4963644db71dc0a17e998654dc0c7f4 Issue introduced in 6.6.44 with commit 4d480e45cb7fffb9d9b49924469c1f458068080a and fixed in 6.6.64 with commit 6b0d7d6e6883d0ec70cd7b5a02c47c003d5defe7 Issue introduced in 6.11 with commit d387d4b54eb84208bd4ca13572e106851d0a0819 and fixed in 6.11.11 with commit 71becb0e9df78a8d43dfd0efcef18c830a0af477 Issue introduced in 6.11 with commit d387d4b54eb84208bd4ca13572e106851d0a0819 and fixed in 6.12.2 with commit 8c269bb2cc666ca580271e1a8136c63ac9162e1e Issue introduced in 6.11 with commit d387d4b54eb84208bd4ca13572e106851d0a0819 and fixed in 6.13-rc1 with commit 6b526d17eed850352d880b93b9bf20b93006bd92 Issue introduced in 6.10.3 with commit ecdf900a5a3372bc0208e0701a116f112eb6039c 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-53226 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/hw/hns/hns_roce_mr.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/bd715e191d444992d6ed124f15856da5c1cae2de https://git.kernel.org/stable/c/35f5b68f63aac61d30ce0b0c6beb09b8845a3e65 https://git.kernel.org/stable/c/52617e76f4963644db71dc0a17e998654dc0c7f4 https://git.kernel.org/stable/c/6b0d7d6e6883d0ec70cd7b5a02c47c003d5defe7 https://git.kernel.org/stable/c/71becb0e9df78a8d43dfd0efcef18c830a0af477 https://git.kernel.org/stable/c/8c269bb2cc666ca580271e1a8136c63ac9162e1e https://git.kernel.org/stable/c/6b526d17eed850352d880b93b9bf20b93006bd92