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 48AE12D46A9 for ; Tue, 30 Dec 2025 12:24:35 +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=1767097475; cv=none; b=e2XpG9cX3czyqvlVZIsaG/mnV4UgWJqEyMsLMnxH6QhYxKVaDZMG6eFse22gsaM9KupGENoU+CkPoq9FFN0uBKaKcnDWX3WPP9SfOarOM357fL/WGoqGTvs/FrJEKvGqPdDg2w2mq647G+yynK50D3QdtDo8EjQg6StiOPEFV7U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767097475; c=relaxed/simple; bh=i1vPfjO4h6ACN5gOazN8p2ALYPQPfhCSRrnDJhhYkIc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nIYLqbxQfe52K2e7feUtTUMVqv2xYY+rDjqa1GB///DusOYHDvCowoX0OwI9unnj1jNhazxgJ6yq4D7XiFNE4sochEddDnHXmqY4rIh8YxnoZokGam0mL5wGboI9IWRCEqInjK7/UpyuhWt1sROJtbiE27GlBdICwFF+pRHxchc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qb/O4tZa; 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="qb/O4tZa" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6FD8C4CEFB; Tue, 30 Dec 2025 12:24:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767097475; bh=i1vPfjO4h6ACN5gOazN8p2ALYPQPfhCSRrnDJhhYkIc=; h=From:To:Cc:Subject:Date:Reply-To:From; b=qb/O4tZaMaNh4CcKxCkarUAXYIznW2LhaOn48YBMXtoHZUtUk+WN6P3ja1ptKWlNi JEY7+bu8EtSARzKOq3SHtxFkml3MlDRnu829Ea936sJGcNZlnt8K6q6JyKBVg5KVyh R2gCvAcXcdBmx3o2BOFTvgjmjjBhJd4DryctVE7o= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54289: scsi: qedf: Fix NULL dereference in error handling Date: Tue, 30 Dec 2025 13:23:42 +0100 Message-ID: <2025123028-CVE-2023-54289-5309@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3283; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=h9R/QHyx28Ep7xh+l8xLkjOrTdooYi1KBcVpreBAc5g=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBRxyfP5yk2cHhKfGlvjb/g8l551tHZs+fP1Ml+MrR6 fVuxY7WHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR3VwM89ONklz6qnQOeviv 3te1v+yHp2YxJ8M8O9l4LeunL0tEFUQ3ePkZsgmH/D4GAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: scsi: qedf: Fix NULL dereference in error handling Smatch reported: drivers/scsi/qedf/qedf_main.c:3056 qedf_alloc_global_queues() warn: missing unwind goto? At this point in the function, nothing has been allocated so we can return directly. In particular the "qedf->global_queues" have not been allocated so calling qedf_free_global_queues() will lead to a NULL dereference when we check if (!gl[i]) and "gl" is NULL. The Linux kernel CVE team has assigned CVE-2023-54289 to this issue. Affected and fixed versions =========================== Issue introduced in 4.11 with commit 61d8658b4a435eac729966cc94cdda077a8df5cd and fixed in 5.4.251 with commit 961c8370c5f7e80a267680476e1bcff34bffe71a Issue introduced in 4.11 with commit 61d8658b4a435eac729966cc94cdda077a8df5cd and fixed in 5.10.188 with commit ac64019e4d4b08c23edb117e0b2590985e33de1d Issue introduced in 4.11 with commit 61d8658b4a435eac729966cc94cdda077a8df5cd and fixed in 5.15.121 with commit b1de5105d29b145b727b797e2d5de071ab3a7ca1 Issue introduced in 4.11 with commit 61d8658b4a435eac729966cc94cdda077a8df5cd and fixed in 6.1.39 with commit c316bde418af4c2a9df51149ed01d1bd8ca5bebf Issue introduced in 4.11 with commit 61d8658b4a435eac729966cc94cdda077a8df5cd and fixed in 6.3.13 with commit 08c001c1e9444a3046c79a99aa93ac48073b18cc Issue introduced in 4.11 with commit 61d8658b4a435eac729966cc94cdda077a8df5cd and fixed in 6.4.4 with commit 271c9b2eb60149afbeab28cb39e52f73bde9900c Issue introduced in 4.11 with commit 61d8658b4a435eac729966cc94cdda077a8df5cd and fixed in 6.5 with commit f025312b089474a54e4859f3453771314d9e3d4f 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-2023-54289 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/qedf/qedf_main.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/961c8370c5f7e80a267680476e1bcff34bffe71a https://git.kernel.org/stable/c/ac64019e4d4b08c23edb117e0b2590985e33de1d https://git.kernel.org/stable/c/b1de5105d29b145b727b797e2d5de071ab3a7ca1 https://git.kernel.org/stable/c/c316bde418af4c2a9df51149ed01d1bd8ca5bebf https://git.kernel.org/stable/c/08c001c1e9444a3046c79a99aa93ac48073b18cc https://git.kernel.org/stable/c/271c9b2eb60149afbeab28cb39e52f73bde9900c https://git.kernel.org/stable/c/f025312b089474a54e4859f3453771314d9e3d4f