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 211C71F4FA6 for ; Mon, 21 Oct 2024 18:03:06 +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=1729533786; cv=none; b=SJDlpQTZlhLBO4mDP0KyJD4pcqzvAwDzaX/NaiwRN0WxqyspDgMT2DLkSAtsKt3j7YitBmRWmFjNkRM6GJe24Xu05sfo6Vwx9mOQm8ltyrNb8sgeRQlNSUfrxPSA5n0LEgGx3AwhQAk2KqAvhXj3ZRNu0Labl0JPdTYm1ooURzE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729533786; c=relaxed/simple; bh=ve6udEE4pX4gmPIFPhFE5dGlCa1nSSLAj+DNF2wo+Sw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=A13Gcasp42sh+lXBiuVjS1lxxQMHa7LsS8C2TzT08cj/7V8gVAsBtq3uXNZ6/tmPMzmRLv5nRgj3y0puIIXsMOdEhtbbUCskh3bgbzTZX1ksoYGUKuJwZbUch469rG5/I6WkdDlZkCmsxdRJMCwNrEdPdHKmhtStCQzNKBeZxmo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uXwZIQEK; 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="uXwZIQEK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9662DC4CEC7; Mon, 21 Oct 2024 18:03:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729533786; bh=ve6udEE4pX4gmPIFPhFE5dGlCa1nSSLAj+DNF2wo+Sw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=uXwZIQEKhL2scXp/lwMRr1HJQMhAR34+QBboyiSgyt09oiF2MCo3fE1VGHivctjOc VACMfTDpCTu1M3rXD8jrCaEY1LWwDgjU5FuMO/9PjGsltm6syVuP7Sjad/wsgwb+Tk 3z/wZ83zKW3iK19OWKUEvGtIgZcyqtT2syEt8zsw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-49891: scsi: lpfc: Validate hdwq pointers before dereferencing in reset/errata paths Date: Mon, 21 Oct 2024 20:01:39 +0200 Message-ID: <2024102118-CVE-2024-49891-931a@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=2117; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ve6udEE4pX4gmPIFPhFE5dGlCa1nSSLAj+DNF2wo+Sw=; b=owGbwMvMwCRo6H6F97bub03G02pJDOli095lZabLGBQGX73QZyx4/bmo4pJ245JSvdbMp2wPP ipPTBLuiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgInMtGOYZ/L6iMLbeesizN4F NSnw5pq6vQkxYJinK6qcmhwjmP2u315a53Gu7f/cvK0A 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: lpfc: Validate hdwq pointers before dereferencing in reset/errata paths When the HBA is undergoing a reset or is handling an errata event, NULL ptr dereference crashes may occur in routines such as lpfc_sli_flush_io_rings(), lpfc_dev_loss_tmo_callbk(), or lpfc_abort_handler(). Add NULL ptr checks before dereferencing hdwq pointers that may have been freed due to operations colliding with a reset or errata event handler. The Linux kernel CVE team has assigned CVE-2024-49891 to this issue. Affected and fixed versions =========================== Fixed in 6.10.14 with commit 99a801e2fca3 Fixed in 6.11.3 with commit fd665c8dbdb1 Fixed in 6.12-rc1 with commit 2be1d4f11944 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-49891 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/lpfc/lpfc_hbadisc.c drivers/scsi/lpfc/lpfc_scsi.c drivers/scsi/lpfc/lpfc_sli.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/99a801e2fca39a6f31e543fc3383058a8955896f https://git.kernel.org/stable/c/fd665c8dbdb19548965b0ae80c490de00e906366 https://git.kernel.org/stable/c/2be1d4f11944cd6283cb97268b3e17c4424945ca