CVE-2022-49160
scsi: qla2xxx: Fix crash during module load unload test
Check your servers for CVE-2022-49160
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-49160 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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]
Severity (CVSS)
CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- adjacent: the attacker has to be on the same local network or link
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.33%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 27.8% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 62e9dd177732843ae6c5b9d2ed61e7c9538fa276, before 9b7eb92dac240ab3bc83e188d83a3df834b41eb2 affected from 62e9dd177732843ae6c5b9d2ed61e7c9538fa276, before 213e57b42537f1a2e5395caa9d7189854133ed12 affected from 62e9dd177732843ae6c5b9d2ed61e7c9538fa276, before 67f744f73eba870ab96411d0310e831a4adc3713 affected from 62e9dd177732843ae6c5b9d2ed61e7c9538fa276, before 0972252450f90db56dd5415a20e2aec21a08d036
Other versions: unaffected
|
| Linux |
affected 5.9 unaffected before 5.9 unaffected from 5.15.54 up to and including 5.15.* unaffected from 5.16.19 up to and including 5.16.* unaffected from 5.17.2 up to and including 5.17.* unaffected 5.18 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-49160 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-49160
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2022-49160
trivy image --scanners vuln IMAGE | grep CVE-2022-49160
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/9b7eb92dac240ab3bc83e188d83a3df834b41eb2 git.kernel.org
- https://git.kernel.org/stable/c/213e57b42537f1a2e5395caa9d7189854133ed12 git.kernel.org
- https://git.kernel.org/stable/c/67f744f73eba870ab96411d0310e831a4adc3713 git.kernel.org
- https://git.kernel.org/stable/c/0972252450f90db56dd5415a20e2aec21a08d036 git.kernel.org
Source: the record CVE-2022-49160 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse