Bug 1222625 (CVE-2024-27437) - VUL-0: CVE-2024-27437: kernel: vfio/pci: Disable auto-enable of exclusive INTx IRQ
Summary: VUL-0: CVE-2024-27437: kernel: vfio/pci: Disable auto-enable of exclusive INT...
Status: NEW
Alias: CVE-2024-27437
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Karasulli
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/400469/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-27437:4.4:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-10 12:32 UTC by SMASH SMASH
Modified: 2024-05-03 16:48 UTC (History)
4 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---
mhocko: needinfo? (mbrugger)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SMASH SMASH 2024-04-10 12:32:53 UTC
In the Linux kernel, the following vulnerability has been resolved:

vfio/pci: Disable auto-enable of exclusive INTx IRQ

Currently for devices requiring masking at the irqchip for INTx, ie.
devices without DisINTx support, the IRQ is enabled in request_irq()
and subsequently disabled as necessary to align with the masked status
flag.  This presents a window where the interrupt could fire between
these events, resulting in the IRQ incrementing the disable depth twice.
This would be unrecoverable for a user since the masked flag prevents
nested enables through vfio.

Instead, invert the logic using IRQF_NO_AUTOEN such that exclusive INTx
is never auto-enabled, then unmask as required.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-27437
https://www.cve.org/CVERecord?id=CVE-2024-27437
https://git.kernel.org/stable/c/139dfcc4d723ab13469881200c7d80f49d776060
https://git.kernel.org/stable/c/2a4a666c45107206605b7b5bc20545f8aabc4fa2
https://git.kernel.org/stable/c/3b3491ad0f80d913e7d255941d4470f4a4d9bfda
https://git.kernel.org/stable/c/bf0bc84a20e6109ab07d5dc072067bd01eb931ec
https://git.kernel.org/stable/c/fe9a7082684eb059b925c535682e68c34d487d43
https://bugzilla.redhat.com/show_bug.cgi?id=2273657
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2024/CVE-2024-27437.mbox