From mboxrd@z Thu Jan 1 00:00:00 1970 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 2102E215F53 for ; Thu, 27 Mar 2025 14:58:52 +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=1743087534; cv=none; b=XAy9Psuhi4rGC6XKUVWJXzvcb8p1MlCp9cWD8WvCJ9unHFwhL16D1dK9OalcPToPyWCAkK9V0+/NfKpJo31qJZgX6rILQs2FI64xfDT1JRBi3A4b1VZgEfCmw/t1I0d1paTanQJJWyeX6wJmvqavrUb1zTKy9vgisCUNgfqnoNY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743087534; c=relaxed/simple; bh=/tp7HnrmwcBkTd6KGGIL00rcvReJXfh3lmRgRFuf7S4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tb4nZtZdL/lFeDw20l7e7EKhtmM2kd5tVUuMjlkb3T4ju3h3nF30odwKTH6Ku2AEcwO3CD5NGW/bqDBPio5y/S6otJyZZfuxpppnXdioKp//iqZSVafdXQitXHlfeBQYx3Cpvkxjr194oLRRiSPIBkOE9DSe4ESGklodN9lJ3NA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=EJsPHhlJ; 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="EJsPHhlJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 20E66C4CEDD; Thu, 27 Mar 2025 14:58:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743087532; bh=/tp7HnrmwcBkTd6KGGIL00rcvReJXfh3lmRgRFuf7S4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=EJsPHhlJDua44nMeC43vz4AQ+hGIDD274zXfSYxq5Gvg3v+Wb9z+3buWr4v0TmBYu M7y3Dn47zjtwklkeA9MeAa7Zfhepa5l0Y/5+bD8QMnk/P9c0SSOilQeWV8s0XkV++6 bkCHd8xDherXGGL9qtIJvVEopBl+1Q5Cy1pkNDG8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21885: RDMA/bnxt_re: Fix the page details for the srq created by kernel consumers Date: Thu, 27 Mar 2025 15:58:19 +0100 Message-ID: <2025032713-CVE-2025-21885-be9d@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=3426; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/tp7HnrmwcBkTd6KGGIL00rcvReJXfh3lmRgRFuf7S4=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlP01ttgwVFZgpoKh2O2Fb33Uctw95rbu2x6h9H+V0um H9VPVPWEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABO5ZcewYHPhwYXbc3mSd+z9 meUhf8DOQGv/U4YF7atlit7x22YKOsf3FioGeXrsn6AIAA== 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/bnxt_re: Fix the page details for the srq created by kernel consumers While using nvme target with use_srq on, below kernel panic is noticed. [ 549.698111] bnxt_en 0000:41:00.0 enp65s0np0: FEC autoneg off encoding: Clause 91 RS(544,514) [ 566.393619] Oops: divide error: 0000 [#1] PREEMPT SMP NOPTI .. [ 566.393799] [ 566.393807] ? __die_body+0x1a/0x60 [ 566.393823] ? die+0x38/0x60 [ 566.393835] ? do_trap+0xe4/0x110 [ 566.393847] ? bnxt_qplib_alloc_init_hwq+0x1d4/0x580 [bnxt_re] [ 566.393867] ? bnxt_qplib_alloc_init_hwq+0x1d4/0x580 [bnxt_re] [ 566.393881] ? do_error_trap+0x7c/0x120 [ 566.393890] ? bnxt_qplib_alloc_init_hwq+0x1d4/0x580 [bnxt_re] [ 566.393911] ? exc_divide_error+0x34/0x50 [ 566.393923] ? bnxt_qplib_alloc_init_hwq+0x1d4/0x580 [bnxt_re] [ 566.393939] ? asm_exc_divide_error+0x16/0x20 [ 566.393966] ? bnxt_qplib_alloc_init_hwq+0x1d4/0x580 [bnxt_re] [ 566.393997] bnxt_qplib_create_srq+0xc9/0x340 [bnxt_re] [ 566.394040] bnxt_re_create_srq+0x335/0x3b0 [bnxt_re] [ 566.394057] ? srso_return_thunk+0x5/0x5f [ 566.394068] ? __init_swait_queue_head+0x4a/0x60 [ 566.394090] ib_create_srq_user+0xa7/0x150 [ib_core] [ 566.394147] nvmet_rdma_queue_connect+0x7d0/0xbe0 [nvmet_rdma] [ 566.394174] ? lock_release+0x22c/0x3f0 [ 566.394187] ? srso_return_thunk+0x5/0x5f Page size and shift info is set only for the user space SRQs. Set page size and page shift for kernel space SRQs also. The Linux kernel CVE team has assigned CVE-2025-21885 to this issue. Affected and fixed versions =========================== Issue introduced in 5.7 with commit 0c4dcd602817502bb3dced7a834a13ef717d65a4 and fixed in 6.12.18 with commit 722c3db62bf60cd23acbdc8c4f445bfedae4498e Issue introduced in 5.7 with commit 0c4dcd602817502bb3dced7a834a13ef717d65a4 and fixed in 6.13.6 with commit 2cf8e6b52aecb8fbb71c41fe5add3212814031a2 Issue introduced in 5.7 with commit 0c4dcd602817502bb3dced7a834a13ef717d65a4 and fixed in 6.14 with commit b66535356a4834a234f99e16a97eb51f2c6c5a7d 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-21885 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/bnxt_re/ib_verbs.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/722c3db62bf60cd23acbdc8c4f445bfedae4498e https://git.kernel.org/stable/c/2cf8e6b52aecb8fbb71c41fe5add3212814031a2 https://git.kernel.org/stable/c/b66535356a4834a234f99e16a97eb51f2c6c5a7d