CVE-2023-53322 scsi: qla2xxx: Wait for io return on terminate rport
A use-after-free flaw in the qla2xxx SCSI driver can cause a system crash when terminating remote ports, requiring a kernel patch.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-53322?
CVE-2023-53322 is a high-severity use after free vulnerability in Linux kernel, published on 16 Sep 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
scsi: qla2xxx: Wait for io return on terminate rport
System crash due to use after free. Current code allows terminate_rport_io to exit before making sure all IOs has returned. For FCP-2 device, IO's can hang on in HW because driver has not tear down the session in FW at first sign of cable pull. When dev_loss_tmo timer pops, terminate_rport_io is called and upper layer is about to free various resources. Terminate_rport_io trigger qla to do the final cleanup, but the cleanup might not be fast enough where it leave qla still holding on to the same resource.
Wait for IO's to return to upper layer before resources are freed.
Weakness: CWE-416
Which versions are affected by CVE-2023-53322?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2023-53322?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2023-53322 being exploited?
There is no known exploitation of CVE-2023-53322 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2023-53322, DEBIAN-CVE-2023-53322, GHSA-422f-2r32-f82h, UBUNTU-CVE-2023-53322.