CVE-2022-49504 Details
Description
In the Linux kernel, the following vulnerability has been resolved: scsi: lpfc: Inhibit aborts if external loopback plug is inserted After running a short external loopback test, when the external loopback is removed and a normal cable inserted that is directly connected to a target device, the system oops in the llpfc_set_rrq_active() routine. When the loopback was inserted an FLOGI was transmit. As we're looped back, we receive the FLOGI request. The FLOGI is ABTS'd as we recognize the same wppn thus understand it's a loopback. However, as the ABTS sends address information the port is not set to (fffffe), the ABTS is dropped on the wire. A short 1 frame loopback test is run and completes before the ABTS times out. The looback is unplugged and the new cable plugged in, and the an FLOGI to the new device occurs and completes. Due to a mixup in ref counting the completion of the new FLOGI releases the fabric ndlp. Then the original ABTS completes and references the released ndlp generating the oops. Correct by no-op'ing the ABTS when in loopback mode (it will be dropped anyway). Added a flag to track the mode to recognize when it should be no-op'd.
A vulnerability in the Linux kernel's SCSI LPFC driver has been addressed, related to improper handling of external loopback tests. When an external loopback plug is used, the system correctly processes a FLOGI request by aborting it, recognizing the loopback. However, after removing the loopback and connecting to a target device, the system encounters a fault in the 'llpfc_set_rrq_active()' routine. This issue arises from a reference counting error: the completion of a new FLOGI request releases a fabric node, which is then incorrectly referenced by an original ABTS command that has not been properly updated, causing the system to 'oops'. The vulnerability has been corrected by adding a flag to track loopback mode and prevent the ABTS from being sent when it is active.
The vulnerability has been addressed in the Linux kernel by modifying the SCSI LPFC driver's loopback handling to prevent the ABTS command from being sent when a loopback is active.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/a1516930cb605caee3bc7b4f3b7994b88c0b8505 | kernel.org | Patch |
| https://git.kernel.org/stable/c/ead76d4c09b89f4c8d632648026a476a5a34fde8 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-noinfo | Insufficient Information to Classify Weakness | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | < 5.18.3 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Oct 21, 2025 | Initial Analysis | [email protected] |
| Feb 26, 2025 | New CVE Received | kernel.org |