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 878C31E0DE8 for ; Thu, 7 Nov 2024 09:36:50 +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=1730972210; cv=none; b=Ob4GN5HHLbALZqH1x2WjNRp72z+5pMcbtav2HSrVMes/HGi7IRCUCY+hY2Y7ycXlR3QCHS0O5fcHIu85QIk8eeUobXeJtiXZuDr7eb0Pv+xYSLGJzvRmoF3znHYOstewe1KCxdTdwYgfNsGU/z+VLCQ4fMn5Skm/ChOzcRnUQ7E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730972210; c=relaxed/simple; bh=Jv10497ZZkUhcIIZszJ8uaBE/ELHwRMyFVuqxHl1Cwo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nZPFNHQByXpMxQth6InpezvhY1cTLFANXKRRJUiNTV3L6xIREwrZqgN5lL1N/XcTEHHh6mjbSG1AcA5ft7DLLvgWiD0z0nBqf5BzF9n9gm7FDCunQoqxa4hYJ+2QMfLVcNe1jWIQO9beVMdwFzAgKBXaJ6PjI4ojv2Axk5vLYhE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xheC6APq; 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="xheC6APq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5C8EEC4CED2; Thu, 7 Nov 2024 09:36:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1730972210; bh=Jv10497ZZkUhcIIZszJ8uaBE/ELHwRMyFVuqxHl1Cwo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=xheC6APqELHJu3LcR7/RZYVBBaiJDQJ+4b1lF4yurz0UQHTDcsHCVGr3n3gE75l5f qsUMJcH4bIkfZlHXrUq32Z0IUrt/OxAAPgCyg5LPRKITik7OnoSZl7HcnSJG9KLYtG AeQ41baCKgD5Bl6+CkQ26jLseJWdSHG2tzBhJuDI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50158: RDMA/bnxt_re: Fix out of bound check Date: Thu, 7 Nov 2024 10:34:58 +0100 Message-ID: <2024110746-CVE-2024-50158-96bf@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=2153; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Jv10497ZZkUhcIIZszJ8uaBE/ELHwRMyFVuqxHl1Cwo=; b=owGbwMvMwCRo6H6F97bub03G02pJDOk6ndvW5mf3RteZm5ZOCw4SkxOa9yu65YPM1zdM3Xdur V8x9RZnRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkLifD/Nj2tMXHIjleySut cxOSez9X1iVXnWHBlbcasZeOHjpsmuJrar72faPOjhmXAQ== 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 out of bound check Driver exports pacing stats only on GenP5 and P7 adapters. But while parsing the pacing stats, driver has a check for "rdev->dbr_pacing". This caused a trace when KASAN is enabled. BUG: KASAN: slab-out-of-bounds in bnxt_re_get_hw_stats+0x2b6a/0x2e00 [bnxt_re] Write of size 8 at addr ffff8885942a6340 by task modprobe/4809 The Linux kernel CVE team has assigned CVE-2024-50158 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit 8b6573ff3420 and fixed in 6.6.59 with commit 05c5fcc1869a Issue introduced in 6.6 with commit 8b6573ff3420 and fixed in 6.11.6 with commit c11b9b03ea52 Issue introduced in 6.6 with commit 8b6573ff3420 and fixed in 6.12-rc4 with commit a9e6e7443922 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-50158 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/hw_counters.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/05c5fcc1869a08e36a29691699b6534e5a00a82b https://git.kernel.org/stable/c/c11b9b03ea5252898f91f3388c248f0dc47bda52 https://git.kernel.org/stable/c/a9e6e7443922ac0a48243c35d03834c96926bff1