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 501502459A0 for ; Wed, 15 Jan 2025 13:10:39 +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=1736946639; cv=none; b=hgTPeHtqNYShoR0sM8N59mECI4ziJy0RtYKAu5KUpO/eqN7pKyof1GPBNY5MskUtiMpK/x3O0MqAw1/5hL0om860hYqGzHFMR5k2fGMM8+Pu92Xrw101a8yRzWZKuimEulcgq35WkTuGK19eLVzwK4qca86q3NCnyqfe4opCTDg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736946639; c=relaxed/simple; bh=zI1j9XMFg4mBwqQJmcjIipCTZysdFE+1qTkJ30vcVSw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uYc5ffcwVTgrg9DTR/FsZiC9OWKuqAG/RTnkBvzWBSOp/xQJ+9/k1cyQovveS2kdAfgSdvS++KwQpbWqf20m1BLKypKkGFUqr+js5JQYSw3Hsbe0kJBxc5pf2sPzQtdx0sUfei0rbfmmdMz96fFe/FIdNk/A4zuIXNU67b6J2lI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XGy5xMBI; 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="XGy5xMBI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83EF1C4CEDF; Wed, 15 Jan 2025 13:10:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1736946639; bh=zI1j9XMFg4mBwqQJmcjIipCTZysdFE+1qTkJ30vcVSw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=XGy5xMBIYtn1+1L2zJHtf48+JzPQ3rtAq+IxjfJAex4FRVf8TDo8gylFwLarQiDPr mKkKBtY6mmEEvavBRzmdol+ubt02tC1bg6s6lV43PIxC65SlrLgmmXvjJwtufE1W6G hyV4HyKX4zvUzN8kXMX7XNXI9pNinY3D27WyPBk4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-36476: RDMA/rtrs: Ensure 'ib_sge list' is accessible Date: Wed, 15 Jan 2025 14:10:32 +0100 Message-ID: <2025011531-CVE-2024-36476-b2a1@gregkh> X-Mailer: git-send-email 2.48.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=3766; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zI1j9XMFg4mBwqQJmcjIipCTZysdFE+1qTkJ30vcVSw=; b=owGbwMvMwCRo6H6F97bub03G02pJDOntm08wdPa2S7qXhOw+ozy/5ba5c8RkHYP/bQZ3ptW9m ravdp9xRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWwIF6cATCTxIcOCc6rHbkee3jBHwKEs 5UXU/0+p57jyGRY0Ml0/eI/5R81jU82ACeu36p+NPbgbAA== 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/rtrs: Ensure 'ib_sge list' is accessible Move the declaration of the 'ib_sge list' variable outside the 'always_invalidate' block to ensure it remains accessible for use throughout the function. Previously, 'ib_sge list' was declared within the 'always_invalidate' block, limiting its accessibility, then caused a 'BUG: kernel NULL pointer dereference'[1]. ? __die_body.cold+0x19/0x27 ? page_fault_oops+0x15a/0x2d0 ? search_module_extables+0x19/0x60 ? search_bpf_extables+0x5f/0x80 ? exc_page_fault+0x7e/0x180 ? asm_exc_page_fault+0x26/0x30 ? memcpy_orig+0xd5/0x140 rxe_mr_copy+0x1c3/0x200 [rdma_rxe] ? rxe_pool_get_index+0x4b/0x80 [rdma_rxe] copy_data+0xa5/0x230 [rdma_rxe] rxe_requester+0xd9b/0xf70 [rdma_rxe] ? finish_task_switch.isra.0+0x99/0x2e0 rxe_sender+0x13/0x40 [rdma_rxe] do_task+0x68/0x1e0 [rdma_rxe] process_one_work+0x177/0x330 worker_thread+0x252/0x390 ? __pfx_worker_thread+0x10/0x10 This change ensures the variable is available for subsequent operations that require it. [1] https://lore.kernel.org/linux-rdma/6a1f3e8f-deb0-49f9-bc69-a9b03ecfcda7@fujitsu.com/ The Linux kernel CVE team has assigned CVE-2024-36476 to this issue. Affected and fixed versions =========================== Issue introduced in 5.8 with commit 9cb837480424e78ed585376f944088246685aec3 and fixed in 5.10.233 with commit 7eaa71f56a6f7ab87957213472dc6d4055862722 Issue introduced in 5.8 with commit 9cb837480424e78ed585376f944088246685aec3 and fixed in 5.15.176 with commit 143378075904e78b3b2a810099bcc3b3d82d762f Issue introduced in 5.8 with commit 9cb837480424e78ed585376f944088246685aec3 and fixed in 6.1.124 with commit 32e1e748a85bd52b20b3857d80fd166d22fa455a Issue introduced in 5.8 with commit 9cb837480424e78ed585376f944088246685aec3 and fixed in 6.6.70 with commit b238f61cc394d5fef27b26d7d9aa383ebfddabb0 Issue introduced in 5.8 with commit 9cb837480424e78ed585376f944088246685aec3 and fixed in 6.12.9 with commit 6ffb5c1885195ae5211a12b4acd2d51843ca41b0 Issue introduced in 5.8 with commit 9cb837480424e78ed585376f944088246685aec3 and fixed in 6.13-rc6 with commit fb514b31395946022f13a08e06a435f53cf9e8b3 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-36476 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/ulp/rtrs/rtrs-srv.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/7eaa71f56a6f7ab87957213472dc6d4055862722 https://git.kernel.org/stable/c/143378075904e78b3b2a810099bcc3b3d82d762f https://git.kernel.org/stable/c/32e1e748a85bd52b20b3857d80fd166d22fa455a https://git.kernel.org/stable/c/b238f61cc394d5fef27b26d7d9aa383ebfddabb0 https://git.kernel.org/stable/c/6ffb5c1885195ae5211a12b4acd2d51843ca41b0 https://git.kernel.org/stable/c/fb514b31395946022f13a08e06a435f53cf9e8b3