# CVE-2022-49157: scsi: qla2xxx: Fix premature hw access after PCI error

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **Published:** 2025-02-26T01:55:20.807Z
- **Modified:** 2026-11-05T20:16:59.060Z

## Who should check

- Anyone running Linux \>= 858808019313f217d63ec4ad26686e6fb7b08c19, \< 5ef6319f9882699613d5182fbd7929b017e8c5ab; \>= 858808019313f217d63ec4ad26686e6fb7b08c19, \< d7994dff9071555a959a168f9184dd9abae68a6b; \>= 858808019313f217d63ec4ad26686e6fb7b08c19, \< 6c125fd5ad035777f7b471553f7ddda76e8e7136; \>= 858808019313f217d63ec4ad26686e6fb7b08c19, \< e35920ab7874d5e2faeb4f958a74bfa793f1ce5a
- Anyone running Linux 2.6.33

## Description

In the Linux kernel, the following vulnerability has been resolved:

scsi: qla2xxx: Fix premature hw access after PCI error

After a recoverable PCI error has been detected and recovered, qla driver
needs to check to see if the error condition still persist and/or wait
for the OS to give the resume signal.

Sep  8 22:26:03 localhost kernel: WARNING: CPU: 9 PID: 124606 at qla\_tmpl.c:440
qla27xx\_fwdt\_entry\_t266+0x55/0x60 \[qla2xxx\]
Sep  8 22:26:03 localhost kernel: RIP: 0010:qla27xx\_fwdt\_entry\_t266+0x55/0x60
\[qla2xxx\]
Sep  8 22:26:03 localhost kernel: Call Trace:
Sep  8 22:26:03 localhost kernel: ? qla27xx\_walk\_template+0xb1/0x1b0 \[qla2xxx\]
Sep  8 22:26:03 localhost kernel: ? qla27xx\_execute\_fwdt\_template+0x12a/0x160
\[qla2xxx\]
Sep  8 22:26:03 localhost kernel: ? qla27xx\_fwdump+0xa0/0x1c0 \[qla2xxx\]
Sep  8 22:26:03 localhost kernel: ? qla2xxx\_pci\_mmio\_enabled+0xfb/0x120
\[qla2xxx\]
Sep  8 22:26:03 localhost kernel: ? report\_mmio\_enabled+0x44/0x80
Sep  8 22:26:03 localhost kernel: ? report\_slot\_reset+0x80/0x80
Sep  8 22:26:03 localhost kernel: ? pci\_walk\_bus+0x70/0x90
Sep  8 22:26:03 localhost kernel: ? aer\_dev\_correctable\_show+0xc0/0xc0
Sep  8 22:26:03 localhost kernel: ? pcie\_do\_recovery+0x1bb/0x240
Sep  8 22:26:03 localhost kernel: ? aer\_recover\_work\_func+0xaa/0xd0
Sep  8 22:26:03 localhost kernel: ? process\_one\_work+0x1a7/0x360
..
Sep  8 22:26:03 localhost kernel: qla2xxx \[0000:42:00.2\]-8041:22: detected PCI
disconnect.
Sep  8 22:26:03 localhost kernel: qla2xxx \[0000:42:00.2\]-107ff:22:
qla27xx\_fwdt\_entry\_t262: dump ram MB failed. Area 5h start 198013h end 198013h
Sep  8 22:26:03 localhost kernel: qla2xxx \[0000:42:00.2\]-107ff:22: Unable to
capture FW dump
Sep  8 22:26:03 localhost kernel: qla2xxx \[0000:42:00.2\]-1015:22: cmd=0x0,
waited 5221 msecs
Sep  8 22:26:03 localhost kernel: qla2xxx \[0000:42:00.2\]-680d:22: mmio
enabled returning.
Sep  8 22:26:03 localhost kernel: qla2xxx \[0000:42:00.2\]-d04c:22: MBX
Command timeout for cmd 0, iocontrol=ffffffff jiffies=10140f2e5
mb\[0-3\]=\[0xffff 0xffff 0xffff 0xffff\]

## Affected and fixed versions

- Linux: \>= 858808019313f217d63ec4ad26686e6fb7b08c19, \< 5ef6319f9882699613d5182fbd7929b017e8c5ab; \>= 858808019313f217d63ec4ad26686e6fb7b08c19, \< d7994dff9071555a959a168f9184dd9abae68a6b; \>= 858808019313f217d63ec4ad26686e6fb7b08c19, \< 6c125fd5ad035777f7b471553f7ddda76e8e7136; \>= 858808019313f217d63ec4ad26686e6fb7b08c19, \< e35920ab7874d5e2faeb4f958a74bfa793f1ce5a (cvelist)
- Linux: 2.6.33 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-49157. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49157.md
Affected: Linux >= 858808019313f217d63ec4ad26686e6fb7b08c19, < 5ef6319f9882699613d5182fbd7929b017e8c5ab; >= 858808019313f217d63ec4ad26686e6fb7b08c19, < d7994dff9071555a959a168f9184dd9abae68a6b; >= 858808019313f217d63ec4ad26686e6fb7b08c19, < 6c125fd5ad035777f7b471553f7ddda76e8e7136; >= 858808019313f217d63ec4a…
Fixed in: Linux 5ef6319f9882699613d5182fbd7929b017e8c5ab, Linux 6c125fd5ad035777f7b471553f7ddda76e8e7136

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-49157 being exploited?

There is no confirmed exploitation: CVE-2022-49157 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-49157?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-49157?

Linux \>= 858808019313f217d63ec4ad26686e6fb7b08c19, \< 5ef6319f9882699613d5182fbd7929b017e8c5ab; \>= 858808019313f217d63ec4ad26686e6fb7b08c19, \< d7994dff9071555a959a168f9184dd9abae68a6b; \>= 858808019313f217d63ec4ad26686e6fb7b08c19, \< 6c125fd5ad035777f7b471553f7ddda76e8e7136; \>= 858808019313f217d63ec4ad26686e6fb7b08c19, \< e35920ab7874d5e2faeb4f958a74bfa793f1ce5a; Linux 2.6.33.

### Is there a fix for CVE-2022-49157?

Yes. Fixed in Linux 5ef6319f9882699613d5182fbd7929b017e8c5ab, Linux 6c125fd5ad035777f7b471553f7ddda76e8e7136. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-49157?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/5ef6319f9882699613d5182fbd7929b017e8c5ab>
- patch: <https://git.kernel.org/stable/c/d7994dff9071555a959a168f9184dd9abae68a6b>
- patch: <https://git.kernel.org/stable/c/6c125fd5ad035777f7b471553f7ddda76e8e7136>
- patch: <https://git.kernel.org/stable/c/e35920ab7874d5e2faeb4f958a74bfa793f1ce5a>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-49157>

HTML: <https://flawdb.com/CVE-2022-49157> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-49157>
