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 D10D227FD45 for ; Wed, 18 Jun 2025 11:06:03 +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=1750244763; cv=none; b=TnRuWi5waaNzGCI2Skjv7IuwnxNvf0mUEnZqR74SAPxFbrJw0gjRLQcis640u14u97LeGacyI/zXJULrJGkpUD7c3piyTLcKyu0wIeOPOi5ViZ+G51guCn4PcufOwDPf7PbYsExzTC5aCmiqPeo0eJ++PWeA9sEtUFDL00ATs9g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244763; c=relaxed/simple; bh=/iXP5p6koGiqFpQc/fgRF8rMEChPcxYgeBUkRiExQ+w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XBwqzmf0kNsjtQOsrCl5n1D8/10bupti0AkRRyw7B7jwdPchvnUq1za96adDA0gCjLQNuCSWPXm6DAzqow1tA976nREOygHzE2zA4raBWMYNAKmQEjsyUUMekMaOMW6606iNHa+Xctfay6jtHdjLoOJKA8f/DUmmDfyMK84AAP4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RAR/Zl1l; 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="RAR/Zl1l" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 43068C4CEF1; Wed, 18 Jun 2025 11:06:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750244763; bh=/iXP5p6koGiqFpQc/fgRF8rMEChPcxYgeBUkRiExQ+w=; h=From:To:Cc:Subject:Date:Reply-to:From; b=RAR/Zl1loyr+E+FC8jWf/9h9lNrQbZqxn3zkOEkEo2ADUWfvxOKNba9ycW+dful22 MS8q6ibd6MSeXdfZxjiozUU8Ly2fDWoczjrCVTe1qZ7tmuRXEayDn7Q2IszFd2PzS3 gxqdotzqc98vPo1nXYMaM3uusSOm44Al8WTi8cj8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50027: scsi: lpfc: Fix possible memory leak when failing to issue CMF WQE Date: Wed, 18 Jun 2025 13:01:32 +0200 Message-ID: <2025061837-CVE-2022-50027-fb5c@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=1943; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7E7Bwa9pJPvz2ruuyETK7TJ7s9pzShaiTo8bDYRDvdE=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc0KPz7+01+PW5F0rJjpdEjifEH7v4fWG4z6/699GS nzL5lH/0BHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATefqLYX5NhdWhxE+zJFVf WKmGBtXsPZSzwoxhwfnWHzr7eNO6frYuO5fSd/Z52XdnJwA= 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: lpfc: Fix possible memory leak when failing to issue CMF WQE There is no corresponding free routine if lpfc_sli4_issue_wqe fails to issue the CMF WQE in lpfc_issue_cmf_sync_wqe. If ret_val is non-zero, then free the iocbq request structure. The Linux kernel CVE team has assigned CVE-2022-50027 to this issue. Affected and fixed versions =========================== Fixed in 5.15.63 with commit 9c8e2e607270a368834a0ef72aa82d970f89c596 Fixed in 5.19.4 with commit 4eb7a1beff03836d3df271cd23b790884e3facb9 Fixed in 6.0 with commit 2f67dc7970bce3529edce93a0a14234d88b3fcd5 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-2022-50027 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_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/9c8e2e607270a368834a0ef72aa82d970f89c596 https://git.kernel.org/stable/c/4eb7a1beff03836d3df271cd23b790884e3facb9 https://git.kernel.org/stable/c/2f67dc7970bce3529edce93a0a14234d88b3fcd5