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 25776BA2D for ; Sat, 17 Aug 2024 09:11:25 +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=1723885886; cv=none; b=Xl8FFDtdKDUhH3GFkRbJG5+RZ1q8TrawGxDC11c8pWVK8riZ/EVcTgQ12CYw1GVWn4PKPLr8/WpzdKHeAy6teDas+0rjYkaI/5Nzx2AxdLhmJaC0pQ2QiWafYcF2g09VyiACwXic6wfd6Xi4Jgqf8gtJomCHb6PYJn8x0Ys/kk4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723885886; c=relaxed/simple; bh=OWPBslJ49Q89rBfg+NMrr4d52vzDPzjj9iUS11UhlT0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lVwMjTtS3ol85sCH/DT39czWjU4X93n6Xl7hPlpuJDt6dNwe6qOltSb+3xXb/5Uj5dyKzhoMWPhEAC6ONt/HKE667JYbVN285Ze00ZiSS1g6vgTeup5vM67wFI1VV1saADAWTBkJlj1q10zeXGeTfk7FB+CtwgqxlcfEFPC30gQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=AtXuaUy7; 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="AtXuaUy7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4477BC116B1; Sat, 17 Aug 2024 09:11:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723885885; bh=OWPBslJ49Q89rBfg+NMrr4d52vzDPzjj9iUS11UhlT0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=AtXuaUy7Su7xaUhll83uONF3UrMOFlr6B3tPZXAWyS5ocH1zw4a98iKHHMV0WEUQ8 bS5kstvQpQQfR/dutsgRxBtOImst3N+28/1bkWDDwPJ2r+46atlY88I+CNS2MeDSYp cXCoPJJ7p2z8SF1riaYXclLTuQnxzZYqnws9DgCA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42286: scsi: qla2xxx: validate nvme_local_port correctly Date: Sat, 17 Aug 2024 11:09:51 +0200 Message-ID: <2024081744-CVE-2024-42286-e856@gregkh> X-Mailer: git-send-email 2.46.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=3042; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=OWPBslJ49Q89rBfg+NMrr4d52vzDPzjj9iUS11UhlT0=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkHMm54ubldKbj86eatl595zU8VLJpi7Gv6fcr509q8L Qo27s91O2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAixa8YFhw7uOHprZQH2qx5 tuVG+syNUh8n1DPMU4psz753ZYGzOs/PM3NuJcdP52N+BgA= 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: scsi: qla2xxx: validate nvme_local_port correctly The driver load failed with error message, qla2xxx [0000:04:00.0]-ffff:0: register_localport failed: ret=ffffffef and with a kernel crash, BUG: unable to handle kernel NULL pointer dereference at 0000000000000070 Workqueue: events_unbound qla_register_fcport_fn [qla2xxx] RIP: 0010:nvme_fc_register_remoteport+0x16/0x430 [nvme_fc] RSP: 0018:ffffaaa040eb3d98 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff9dfb46b78c00 RCX: 0000000000000000 RDX: ffff9dfb46b78da8 RSI: ffffaaa040eb3e08 RDI: 0000000000000000 RBP: ffff9dfb612a0a58 R08: ffffffffaf1d6270 R09: 3a34303a30303030 R10: 34303a303030305b R11: 2078787832616c71 R12: ffff9dfb46b78dd4 R13: ffff9dfb46b78c24 R14: ffff9dfb41525300 R15: ffff9dfb46b78da8 FS: 0000000000000000(0000) GS:ffff9dfc67c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000070 CR3: 000000018da10004 CR4: 00000000000206f0 Call Trace: qla_nvme_register_remote+0xeb/0x1f0 [qla2xxx] ? qla2x00_dfs_create_rport+0x231/0x270 [qla2xxx] qla2x00_update_fcport+0x2a1/0x3c0 [qla2xxx] qla_register_fcport_fn+0x54/0xc0 [qla2xxx] Exit the qla_nvme_register_remote() function when qla_nvme_register_hba() fails and correctly validate nvme_local_port. The Linux kernel CVE team has assigned CVE-2024-42286 to this issue. Affected and fixed versions =========================== Fixed in 6.1.103 with commit 7cec2c3bfe84 Fixed in 6.6.44 with commit f6be298cc104 Fixed in 6.10.3 with commit 3eac973eb5cb Fixed in 6.11-rc1 with commit eb1d4ce26095 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-42286 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/scsi/qla2xxx/qla_nvme.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/7cec2c3bfe84539c415f5e16f989228eba1d2f1e https://git.kernel.org/stable/c/f6be298cc1042f24d521197af29c7c4eb95af4d5 https://git.kernel.org/stable/c/3eac973eb5cb2b874b3918f924798afc5affd46b https://git.kernel.org/stable/c/eb1d4ce2609584eeb7694866f34d4b213caa3af9