# CVE-2022-49160: scsi: qla2xxx: Fix crash during module load unload test

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

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: High; Privileges required: None; 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.35% (percentile 21, 2026-11-26)
- **CWE:** CWE-763
- **Published:** 2025-02-26T01:55:22.562Z
- **Modified:** 2026-08-05T08:54:08.041Z

## Who should check

- Anyone running Linux \>= 62e9dd177732843ae6c5b9d2ed61e7c9538fa276, \< 9b7eb92dac240ab3bc83e188d83a3df834b41eb2; \>= 62e9dd177732843ae6c5b9d2ed61e7c9538fa276, \< 213e57b42537f1a2e5395caa9d7189854133ed12; \>= 62e9dd177732843ae6c5b9d2ed61e7c9538fa276, \< 67f744f73eba870ab96411d0310e831a4adc3713; \>= 62e9dd177732843ae6c5b9d2ed61e7c9538fa276, \< 0972252450f90db56dd5415a20e2aec21a08d036
- Anyone running Linux 5.9

## Description

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

scsi: qla2xxx: Fix crash during module load unload test

During purex packet handling the driver was incorrectly freeing a
pre-allocated structure. Fix this by skipping that entry.

System crashed with the following stack during a module unload test.

Call Trace:
	sbitmap\_init\_node+0x7f/0x1e0
	sbitmap\_queue\_init\_node+0x24/0x150
	blk\_mq\_init\_bitmaps+0x3d/0xa0
	blk\_mq\_init\_tags+0x68/0x90
	blk\_mq\_alloc\_map\_and\_rqs+0x44/0x120
	blk\_mq\_alloc\_set\_map\_and\_rqs+0x63/0x150
	blk\_mq\_alloc\_tag\_set+0x11b/0x230
	scsi\_add\_host\_with\_dma.cold+0x3f/0x245
	qla2x00\_probe\_one+0xd5a/0x1b80 \[qla2xxx\]

Call Trace with slub\_debug and debug kernel:
	kasan\_report\_invalid\_free+0x50/0x80
	\_\_kasan\_slab\_free+0x137/0x150
	slab\_free\_freelist\_hook+0xc6/0x190
	kfree+0xe8/0x2e0
	qla2x00\_free\_device+0x3bb/0x5d0 \[qla2xxx\]
	qla2x00\_remove\_one+0x668/0xcf0 \[qla2xxx\]

## Affected and fixed versions

- Linux: \>= 62e9dd177732843ae6c5b9d2ed61e7c9538fa276, \< 9b7eb92dac240ab3bc83e188d83a3df834b41eb2; \>= 62e9dd177732843ae6c5b9d2ed61e7c9538fa276, \< 213e57b42537f1a2e5395caa9d7189854133ed12; \>= 62e9dd177732843ae6c5b9d2ed61e7c9538fa276, \< 67f744f73eba870ab96411d0310e831a4adc3713; \>= 62e9dd177732843ae6c5b9d2ed61e7c9538fa276, \< 0972252450f90db56dd5415a20e2aec21a08d036 (cvelist)
- Linux: 5.9 (cvelist)

## Mitigation

- Upgrade Linux to 0972252450f90db56dd5415a20e2aec21a08d036 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-49160. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49160.md
Affected: Linux >= 62e9dd177732843ae6c5b9d2ed61e7c9538fa276, < 9b7eb92dac240ab3bc83e188d83a3df834b41eb2; >= 62e9dd177732843ae6c5b9d2ed61e7c9538fa276, < 213e57b42537f1a2e5395caa9d7189854133ed12; >= 62e9dd177732843ae6c5b9d2ed61e7c9538fa276, < 67f744f73eba870ab96411d0310e831a4adc3713; >= 62e9dd177732843ae6c5b9d…
Fixed in: Linux 9b7eb92dac240ab3bc83e188d83a3df834b41eb2, Linux 213e57b42537f1a2e5395caa9d7189854133ed12, Linux 67f744f73eba870ab96411d0310e831a4adc3713, Linux 0972252450f90db56dd5415a20e2aec21a08d036

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

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

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

High: CVSS 7.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

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

Linux \>= 62e9dd177732843ae6c5b9d2ed61e7c9538fa276, \< 9b7eb92dac240ab3bc83e188d83a3df834b41eb2; \>= 62e9dd177732843ae6c5b9d2ed61e7c9538fa276, \< 213e57b42537f1a2e5395caa9d7189854133ed12; \>= 62e9dd177732843ae6c5b9d2ed61e7c9538fa276, \< 67f744f73eba870ab96411d0310e831a4adc3713; \>= 62e9dd177732843ae6c5b9d2ed61e7c9538fa276, \< 0972252450f90db56dd5415a20e2aec21a08d036; Linux 5.9.

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

Yes. Fixed in Linux 9b7eb92dac240ab3bc83e188d83a3df834b41eb2, Linux 213e57b42537f1a2e5395caa9d7189854133ed12, Linux 67f744f73eba870ab96411d0310e831a4adc3713, Linux 0972252450f90db56dd5415a20e2aec21a08d036. Upgrade Linux to 0972252450f90db56dd5415a20e2aec21a08d036 or later.

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

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/9b7eb92dac240ab3bc83e188d83a3df834b41eb2>
- patch: <https://git.kernel.org/stable/c/213e57b42537f1a2e5395caa9d7189854133ed12>
- patch: <https://git.kernel.org/stable/c/67f744f73eba870ab96411d0310e831a4adc3713>
- patch: <https://git.kernel.org/stable/c/0972252450f90db56dd5415a20e2aec21a08d036>

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

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