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 1BAE878C6E for ; Wed, 22 May 2024 06:24:12 +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=1716359052; cv=none; b=uI9Z4BBVm0hAhDLdhLRjJQAMbpgETTNlrxDvw0ljM3RO+XlEoDjXD+sb2TJOBFOn+OsnZ/t/PRd4rFvZYF5fYxlEWiSuAmHYuB55T2+Prx+sad7GPl6yAWgAZ4GtKkcRRpyqx/E5F2hjwH42qW/jUWE+fSJbHRpBfuPM+4qCrwY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716359052; c=relaxed/simple; bh=xcGOPUk9gUpJp1/ghlgy1M4tKoJICVx8RxqMaMr7IpM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UemN7dL8mKzeD7R5jbEVFvF+/kyxdn/2s2EPo4teMF5T18fWpoayqIpUhMcaGqkjNpiLUFXUFQ5YTnWw7ts7NDVv9pEZCNYF/kAmiBGD5cXJJhrpcgEruLYQXUvXUImtIIga8ySI1t8K4yZGpb5yvpx5QYIAzPI/13pIsUTs4r4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CaGho4sx; 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="CaGho4sx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 962BBC2BD11; Wed, 22 May 2024 06:24:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716359052; bh=xcGOPUk9gUpJp1/ghlgy1M4tKoJICVx8RxqMaMr7IpM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=CaGho4sxUWBJr0AtZYSr84coeL79I3pxO/xe/vhp2hCSU+TadJ/NhFsFfrWgFPgok QE9q6//E+3MhmFql/6udfqzi0DI3uCyMP0C1GebPQvIW2X1v3Q3vOGgBPxFabPaJcz W44doaFg+toek69T652r2zcrshq66C6WGrYj+PsQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47473: scsi: qla2xxx: Fix a memory leak in an error path of qla2x00_process_els() Date: Wed, 22 May 2024 08:23:39 +0200 Message-ID: <2024052229-CVE-2021-47473-c883@gregkh> X-Mailer: git-send-email 2.45.1 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=2275; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=xcGOPUk9gUpJp1/ghlgy1M4tKoJICVx8RxqMaMr7IpM=; b=owGbwMvMwCRo6H6F97bub03G02pJDGm+/YlffFrXc7VMWmv3tkVt+heOy5o7//su4Wg5tPnF2 emPbFt1O2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiPEsYFmxwu/NrW/Thpfk+ +yXiQ7pMLmz608CwoOWucJytzLk3vNmqIq3sX97Ne1+0CQA= 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: Fix a memory leak in an error path of qla2x00_process_els() Commit 8c0eb596baa5 ("[SCSI] qla2xxx: Fix a memory leak in an error path of qla2x00_process_els()"), intended to change: bsg_job->request->msgcode == FC_BSG_HST_ELS_NOLOGIN bsg_job->request->msgcode != FC_BSG_RPT_ELS but changed it to: bsg_job->request->msgcode == FC_BSG_RPT_ELS instead. Change the == to a != to avoid leaking the fcport structure or freeing unallocated memory. The Linux kernel CVE team has assigned CVE-2021-47473 to this issue. Affected and fixed versions =========================== Issue introduced in 3.11 with commit 8c0eb596baa5 and fixed in 5.10.76 with commit 96f0aebf29be Issue introduced in 3.11 with commit 8c0eb596baa5 and fixed in 5.14.15 with commit a7fbb56e6c94 Issue introduced in 3.11 with commit 8c0eb596baa5 and fixed in 5.15 with commit 7fb223d0ad80 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-2021-47473 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_bsg.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/96f0aebf29be25254fa585af43924e34aa21fd9a https://git.kernel.org/stable/c/a7fbb56e6c941d9f59437b96412a348e66388d3e https://git.kernel.org/stable/c/7fb223d0ad801f633c78cbe42b1d1b55f5d163ad