CVE-2022-49118: scsi: hisi_sas: Free irq vectors in order for v3 HW

Published Feb 26, 2025
·
Updated

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

scsi: hisisas: 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 freeirq(), 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: freemsiirqs+0x118/0x13c pcidisablemsi+0xfc/0x120 pcifreeirqvectors+0x24/0x3c hisisasv3probe+0x360/0x9d0 [hisisasv3hw] localpciprobe+0x44/0xb0 workforcpufn+0x20/0x34 processonework+0x1d0/0x340 workerthread+0x2e0/0x460 kthread+0x180/0x190 retfromfork+0x10/0x20 ---[ end trace b88990335b610c11 ]---

So we use devmaddaction() to control the order in which we free the vectors.

Affected Software

5 affected components
Linux Kernel
Linux Linux kernel>=4.5<5.10.111
Linux Linux kernel>=5.11<5.15.34
Linux Linux kernel>=5.16<5.16.20
Linux Linux kernel>=5.17<5.17.3

Event History

Feb 26, 2025
CVE Published
via MITRE·01:55 AM
Data Sourced
via MITRE·01:55 AM
Description
Data Sourced
via NVD·07:00 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-49118?

CVE-2022-49118 has been classified with a severity rating that indicates it poses a potential risk to system stability and reliability.

2

How do I fix CVE-2022-49118?

To fix CVE-2022-49118, it is essential to update the Linux kernel to the latest patched version provided by your distribution.

3

What are the potential impacts of CVE-2022-49118?

The potential impacts of CVE-2022-49118 include system crashes or instability due to improper IRQ vector management in the hisi_sas driver.

4

Which systems are affected by CVE-2022-49118?

CVE-2022-49118 affects systems running specific versions of the Linux kernel that utilize the hisi_sas driver.

5

Is CVE-2022-49118 related to hardware interaction?

Yes, CVE-2022-49118 involves the interaction between the Linux kernel and hardware concerning the management of IRQ vectors in SCSI devices.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203