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

- Severity: High 7.5 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 21% of CVEs (2026-11-30)
- Published: 2025-02-26T01:55:22.562Z
- Modified: 2026-08-05T08:54:08.041Z
- Weaknesses: CWE-763
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 62e9dd177732843ae6c5b9d2ed61e7c9538fa276 before 9b7eb92dac240ab3bc83e188d83a3df834b41eb2; from 62e9dd177732843ae6c5b9d2ed61e7c9538fa276 before 213e57b42537f1a2e5395caa9d7189854133ed12; from 62e9dd177732843ae6c5b9d2ed61e7c9538fa276 before 67f744f73eba870ab96411d0310e831a4adc3713; from 62e9dd177732843ae6c5b9d2ed61e7c9538fa276 before 0972252450f90db56dd5415a20e2aec21a08d036; 5.9 (not affected: before 5.9; from 5.15.54 up to 5.15.*; from 5.16.19 up to 5.16.*; from 5.17.2 up to 5.17.*; from 5.18 up to *)
- linux linux_kernel: from 5.9 before 5.15.54; from 5.16 before 5.16.19; from 5.17 before 5.17.2

## Every score

- Linux: CVSS:3.1 7.5 High `CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <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> (patch)

## Sources

- CVE List: [CVE-2022-49160](https://www.cve.org/CVERecord?id=CVE-2022-49160), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2022-49160](https://nvd.nist.gov/vuln/detail/CVE-2022-49160), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2022-49160 · Whole record: https://cve.day/CVE-2022-49160.json · Rebuilt by cve.day 2026-11-25T22:58:20.236Z
