All of lore.kernel.org
 help / color / mirror / Atom feed
* CVE-2022-50031: scsi: iscsi: Fix HW conn removal use after free
@ 2025-06-18 11:01 Greg Kroah-Hartman
  2025-07-03 14:16 ` Li Lingfeng
  0 siblings, 1 reply; 5+ messages in thread
From: Greg Kroah-Hartman @ 2025-06-18 11:01 UTC (permalink / raw)
  To: linux-cve-announce; +Cc: Greg Kroah-Hartman

From: Greg Kroah-Hartman <gregkh@kernel.org>

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-08-11 15:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-18 11:01 CVE-2022-50031: scsi: iscsi: Fix HW conn removal use after free Greg Kroah-Hartman
2025-07-03 14:16 ` Li Lingfeng
2025-07-03 14:33   ` Greg Kroah-Hartman
2025-08-07  1:35     ` Li Lingfeng
2025-08-11 15:21       ` Greg Kroah-Hartman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.