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 11B3528A1F3 for ; Wed, 18 Jun 2025 11:08:34 +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=1750244914; cv=none; b=hqdguFzUjKq5C16t2uLvOD1UR2YZJHOC7mO3e3+pn4I/CYJSOpebvrOZU6DyLhblZg2oClNKWWexfDaqO4DOohq0P5Avh+yBX3bjqYdw3HdbHpArdd2/2Mn2K0EVO5D9p4faJz/IYRxhql1E9eOE77SjKYMyaKtBqK7Jofuh7YA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244914; c=relaxed/simple; bh=ihqWuXAQqig45jpQ/AkVmk8eTeybe0GeRrBCsmN4YoM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KXmn4PtiYAIrREPQOCi1ox+aaxvVZuhKysesbf6/oR3x5U7iC4DiEwAOi/oPTW3FaTQohK6XBwDqS86/StBcF0ZYZpYeS5tOhte3zrh2DVxdXztA2S3qkqzStmmmkF6UFfh5vBCTWtRRmVeoGWjV3+Lo00h0K4HlN7aP479P11w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LnwIjst4; 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="LnwIjst4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 938CBC4CEE7; Wed, 18 Jun 2025 11:08:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750244913; bh=ihqWuXAQqig45jpQ/AkVmk8eTeybe0GeRrBCsmN4YoM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=LnwIjst4doJIn2UbNinY3OXVkBJ88x9fy8zJ8+FWGe8JK4Of8gxqLLJOzEqtDhF8f OozBmhutaDeKCXW4wxWM0kOY6KszuNg6PRCtO4AFJrrPBYmnlMUlSG6zp2u2yNH1xJ xg10RdCEEQ8C40m0GgFu+p+8odK6j1qHJ+L/rP4I= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50031: scsi: iscsi: Fix HW conn removal use after free Date: Wed, 18 Jun 2025 13:01:36 +0200 Message-ID: <2025061839-CVE-2022-50031-f2bc@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=1883; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=LDDhfmAZKlwIkPTZ7IXRJkVbWwF8lfm7IxQy3V7iwGM=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc8LvHfu/coL++6V88VxTt2RtevprdsxS/qdKbZNWZ b3gPrdlaUcsC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBMZMJfhgUdl8Q7w+7oX+r4 EFelesz94mwTk0cM82wLnG5lNS2ZsHvVs+aSi98ZvRzqggE= 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: iscsi: Fix HW conn removal use after free If qla4xxx doesn't remove the connection before the session, the iSCSI class tries to remove the connection for it. We were doing a iscsi_put_conn() in the iter function which is not needed and will result in a use after free because iscsi_remove_conn() will free the connection. The Linux kernel CVE team has assigned CVE-2022-50031 to this issue. Affected and fixed versions =========================== Fixed in 5.19.4 with commit 0483ffc02ebb953124c592485a5c48ac4ffae5fe Fixed in 6.0 with commit c577ab7ba5f3bf9062db8a58b6e89d4fe370447e 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-50031 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/scsi_transport_iscsi.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/0483ffc02ebb953124c592485a5c48ac4ffae5fe https://git.kernel.org/stable/c/c577ab7ba5f3bf9062db8a58b6e89d4fe370447e