# CVE-2022-49118: scsi: hisi\_sas: Free irq vectors in order for v3 HW

> 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 14, 2026-11-26)
- **Published:** 2025-02-26T01:55:00.169Z
- **Modified:** 2026-11-05T20:16:58.133Z

## Who should check

- Anyone running Linux \>= e16963f378faf82d307cad2796953f198497c614, \< 224903cc60d045576393c3b16907742f23e6c740; \>= e16963f378faf82d307cad2796953f198497c614, \< f05a0d8de2ea49af36821a20b0b501e20ced937e; \>= e16963f378faf82d307cad2796953f198497c614, \< 8b6eab9d683bae7f88dc894b8c851f866032301c; \>= e16963f378faf82d307cad2796953f198497c614, \< b4cc04fa8f1fc3816c8494d77abab3f72b9d2292; \>= e16963f378faf82d307cad2796953f198497c614, \< 554fb72ee34f4732c7f694f56c3c6e67790352a0
- Anyone running Linux 5.4

## Description

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

scsi: hisi\_sas: Free irq vectors in order for v3 HW

If the driver probe fails to request the channel IRQ or fatal IRQ, the
driver will free the IRQ vectors before freeing the IRQs in free\_irq(),
and this will cause a kernel BUG like this:

------------\[ cut here \]------------
kernel BUG at drivers/pci/msi.c:369!
Internal error: Oops - BUG: 0 \[\#1\] PREEMPT SMP
Call trace:
   free\_msi\_irqs+0x118/0x13c
   pci\_disable\_msi+0xfc/0x120
   pci\_free\_irq\_vectors+0x24/0x3c
   hisi\_sas\_v3\_probe+0x360/0x9d0 \[hisi\_sas\_v3\_hw\]
   local\_pci\_probe+0x44/0xb0
   work\_for\_cpu\_fn+0x20/0x34
   process\_one\_work+0x1d0/0x340
   worker\_thread+0x2e0/0x460
   kthread+0x180/0x190
   ret\_from\_fork+0x10/0x20
---\[ end trace b88990335b610c11 \]---

So we use devm\_add\_action() to control the order in which we free the
vectors.

## Affected and fixed versions

- Linux: \>= e16963f378faf82d307cad2796953f198497c614, \< 224903cc60d045576393c3b16907742f23e6c740; \>= e16963f378faf82d307cad2796953f198497c614, \< f05a0d8de2ea49af36821a20b0b501e20ced937e; \>= e16963f378faf82d307cad2796953f198497c614, \< 8b6eab9d683bae7f88dc894b8c851f866032301c; \>= e16963f378faf82d307cad2796953f198497c614, \< b4cc04fa8f1fc3816c8494d77abab3f72b9d2292; \>= e16963f378faf82d307cad2796953f198497c614, \< 554fb72ee34f4732c7f694f56c3c6e67790352a0 (cvelist)
- Linux: 5.4 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2022-49118.md
Affected: Linux >= e16963f378faf82d307cad2796953f198497c614, < 224903cc60d045576393c3b16907742f23e6c740; >= e16963f378faf82d307cad2796953f198497c614, < f05a0d8de2ea49af36821a20b0b501e20ced937e; >= e16963f378faf82d307cad2796953f198497c614, < 8b6eab9d683bae7f88dc894b8c851f866032301c; >= e16963f378faf82d307cad2…
Fixed in: Linux 224903cc60d045576393c3b16907742f23e6c740, Linux 8b6eab9d683bae7f88dc894b8c851f866032301c, Linux 554fb72ee34f4732c7f694f56c3c6e67790352a0

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

There is no confirmed exploitation: CVE-2022-49118 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-49118?

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

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

Linux \>= e16963f378faf82d307cad2796953f198497c614, \< 224903cc60d045576393c3b16907742f23e6c740; \>= e16963f378faf82d307cad2796953f198497c614, \< f05a0d8de2ea49af36821a20b0b501e20ced937e; \>= e16963f378faf82d307cad2796953f198497c614, \< 8b6eab9d683bae7f88dc894b8c851f866032301c; \>= e16963f378faf82d307cad2796953f198497c614, \< b4cc04fa8f1fc3816c8494d77abab3f72b9d2292; \>= e16963f378faf82d307cad2796953f198497c614, \< 554fb72ee34f4732c7f694f56c3c6e67790352a0; Linux 5.4.

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

Yes. Fixed in Linux 224903cc60d045576393c3b16907742f23e6c740, Linux 8b6eab9d683bae7f88dc894b8c851f866032301c, Linux 554fb72ee34f4732c7f694f56c3c6e67790352a0. Upgrade Linux to 554fb72ee34f4732c7f694f56c3c6e67790352a0 or later.

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

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/224903cc60d045576393c3b16907742f23e6c740>
- patch: <https://git.kernel.org/stable/c/f05a0d8de2ea49af36821a20b0b501e20ced937e>
- patch: <https://git.kernel.org/stable/c/8b6eab9d683bae7f88dc894b8c851f866032301c>
- patch: <https://git.kernel.org/stable/c/b4cc04fa8f1fc3816c8494d77abab3f72b9d2292>
- patch: <https://git.kernel.org/stable/c/554fb72ee34f4732c7f694f56c3c6e67790352a0>

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

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