# CVE-2022-49701: scsi: ibmvfc: Allocate/free queue resource only during probe/remove

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.30% (percentile 16, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-02-26T02:24:21.358Z
- **Modified:** 2026-08-05T08:56:05.804Z

## Who should check

- Anyone running Linux \>= 3034ebe26389740bb6b4a463e05afb51dc93c336, \< 161ec2a0807ddd58bc0f24f3e1e7e3d4fef5297f; \>= 3034ebe26389740bb6b4a463e05afb51dc93c336, \< 9f23c499ca601b2a1e1d2e761d03964b739bca0e; \>= 3034ebe26389740bb6b4a463e05afb51dc93c336, \< 72ea7fe0db73d65c7d977208842d8ade9b823de9
- Anyone running Linux 5.12

## Description

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

scsi: ibmvfc: Allocate/free queue resource only during probe/remove

Currently, the sub-queues and event pool resources are allocated/freed for
every CRQ connection event such as reset and LPM. This exposes the driver
to a couple issues. First the inefficiency of freeing and reallocating
memory that can simply be resued after being sanitized. Further, a system
under memory pressue runs the risk of allocation failures that could result
in a crippled driver. Finally, there is a race window where command
submission/compeletion can try to pull/return elements from/to an event
pool that is being deleted or already has been deleted due to the lack of
host state around freeing/allocating resources. The following is an example
of list corruption following a live partition migration (LPM):

Oops: Exception in kernel mode, sig: 5 \[\#1\]
LE PAGE\_SIZE=64K MMU=Hash SMP NR\_CPUS=2048 NUMA pSeries
Modules linked in: vfat fat isofs cdrom ext4 mbcache jbd2 nft\_counter nft\_compat nf\_tables nfnetlink rpadlpar\_io rpaphp xsk\_diag nfsv3 nfs\_acl nfs lockd grace fscache netfs rfkill bonding tls sunrpc pseries\_rng drm drm\_panel\_orientation\_quirks xfs libcrc32c dm\_service\_time sd\_mod t10\_pi sg ibmvfc scsi\_transport\_fc ibmveth vmx\_crypto dm\_multipath dm\_mirror dm\_region\_hash dm\_log dm\_mod ipmi\_devintf ipmi\_msghandler fuse
CPU: 0 PID: 2108 Comm: ibmvfc\_0 Kdump: loaded Not tainted 5.14.0-70.9.1.el9\_0.ppc64le \#1
NIP: c0000000007c4bb0 LR: c0000000007c4bac CTR: 00000000005b9a10
REGS: c00000025c10b760 TRAP: 0700  Not tainted (5.14.0-70.9.1.el9\_0.ppc64le)
MSR: 800000000282b033 \<SF,VEC,VSX,EE,FP,ME,IR,DR,RI,LE\> CR: 2800028f XER: 0000000f
CFAR: c0000000001f55bc IRQMASK: 0
        GPR00: c0000000007c4bac c00000025c10ba00 c000000002a47c00 000000000000004e
        GPR04: c0000031e3006f88 c0000031e308bd00 c00000025c10b768 0000000000000027
        GPR08: 0000000000000000 c0000031e3009dc0 00000031e0eb0000 0000000000000000
        GPR12: c0000031e2ffffa8 c000000002dd0000 c000000000187108 c00000020fcee2c0
        GPR16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
        GPR20: 0000000000000000 0000000000000000 0000000000000000 c008000002f81300
        GPR24: 5deadbeef0000100 5deadbeef0000122 c000000263ba6910 c00000024cc88000
        GPR28: 000000000000003c c0000002430a0000 c0000002430ac300 000000000000c300
NIP \[c0000000007c4bb0\] \_\_list\_del\_entry\_valid+0x90/0x100
LR \[c0000000007c4bac\] \_\_list\_del\_entry\_valid+0x8c/0x100
Call Trace:
\[c00000025c10ba00\] \[c0000000007c4bac\] \_\_list\_del\_entry\_valid+0x8c/0x100 (unreliable)
\[c00000025c10ba60\] \[c008000002f42284\] ibmvfc\_free\_queue+0xec/0x210 \[ibmvfc\]
\[c00000025c10bb10\] \[c008000002f4246c\] ibmvfc\_deregister\_scsi\_channel+0xc4/0x160 \[ibmvfc\]
\[c00000025c10bba0\] \[c008000002f42580\] ibmvfc\_release\_sub\_crqs+0x78/0x130 \[ibmvfc\]
\[c00000025c10bc20\] \[c008000002f4f6cc\] ibmvfc\_do\_work+0x5c4/0xc70 \[ibmvfc\]
\[c00000025c10bce0\] \[c008000002f4fdec\] ibmvfc\_work+0x74/0x1e8 \[ibmvfc\]
\[c00000025c10bda0\] \[c0000000001872b8\] kthread+0x1b8/0x1c0
\[c00000025c10be10\] \[c00000000000cd64\] ret\_from\_kernel\_thread+0x5c/0x64
Instruction dump:
40820034 38600001 38210060 4e800020 7c0802a6 7c641b78 3c62fe7a 7d254b78
3863b590 f8010070 4ba309cd 60000000 \<0fe00000\> 7c0802a6 3c62fe7a 3863b640
---\[ end trace 11a2b65a92f8b66c \]---
ibmvfc 30000003: Send warning. Receive queue closed, will retry.

Add registration/deregistration helpers that are called instead during
connection resets to sanitize and reconfigure the queues.

## Affected and fixed versions

- Linux: \>= 3034ebe26389740bb6b4a463e05afb51dc93c336, \< 161ec2a0807ddd58bc0f24f3e1e7e3d4fef5297f; \>= 3034ebe26389740bb6b4a463e05afb51dc93c336, \< 9f23c499ca601b2a1e1d2e761d03964b739bca0e; \>= 3034ebe26389740bb6b4a463e05afb51dc93c336, \< 72ea7fe0db73d65c7d977208842d8ade9b823de9 (cvelist)
- Linux: 5.12 (cvelist)

## Mitigation

- Upgrade Linux to 72ea7fe0db73d65c7d977208842d8ade9b823de9 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-49701.md
Affected: Linux >= 3034ebe26389740bb6b4a463e05afb51dc93c336, < 161ec2a0807ddd58bc0f24f3e1e7e3d4fef5297f; >= 3034ebe26389740bb6b4a463e05afb51dc93c336, < 9f23c499ca601b2a1e1d2e761d03964b739bca0e; >= 3034ebe26389740bb6b4a463e05afb51dc93c336, < 72ea7fe0db73d65c7d977208842d8ade9b823de9; Linux 5.12
Fixed in: Linux 161ec2a0807ddd58bc0f24f3e1e7e3d4fef5297f, Linux 9f23c499ca601b2a1e1d2e761d03964b739bca0e, Linux 72ea7fe0db73d65c7d977208842d8ade9b823de9

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-49701 being exploited?

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 3034ebe26389740bb6b4a463e05afb51dc93c336, \< 161ec2a0807ddd58bc0f24f3e1e7e3d4fef5297f; \>= 3034ebe26389740bb6b4a463e05afb51dc93c336, \< 9f23c499ca601b2a1e1d2e761d03964b739bca0e; \>= 3034ebe26389740bb6b4a463e05afb51dc93c336, \< 72ea7fe0db73d65c7d977208842d8ade9b823de9; Linux 5.12.

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

Yes. Fixed in Linux 161ec2a0807ddd58bc0f24f3e1e7e3d4fef5297f, Linux 9f23c499ca601b2a1e1d2e761d03964b739bca0e, Linux 72ea7fe0db73d65c7d977208842d8ade9b823de9. Upgrade Linux to 72ea7fe0db73d65c7d977208842d8ade9b823de9 or later.

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

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/161ec2a0807ddd58bc0f24f3e1e7e3d4fef5297f>
- patch: <https://git.kernel.org/stable/c/9f23c499ca601b2a1e1d2e761d03964b739bca0e>
- patch: <https://git.kernel.org/stable/c/72ea7fe0db73d65c7d977208842d8ade9b823de9>

## 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-49701>

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