Bug 1222810 (CVE-2024-26814)

Summary: VUL-0: CVE-2024-26814: kernel: vfio/fsl-mc: Block calling interrupt handler without trigger
Product: [Novell Products] SUSE Security Incidents Reporter: SMASH SMASH <smash_bz>
Component: IncidentsAssignee: Dario Faggioli <dfaggioli>
Status: NEW --- QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P3 - Medium CC: abergmann, dfaggioli, osalvador
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/400468/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-26814:4.4:(AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H)
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description SMASH SMASH 2024-04-15 09:15:49 UTC
In the Linux kernel, the following vulnerability has been resolved:

vfio/fsl-mc: Block calling interrupt handler without trigger

The eventfd_ctx trigger pointer of the vfio_fsl_mc_irq object is
initially NULL and may become NULL if the user sets the trigger
eventfd to -1.  The interrupt handler itself is guaranteed that
trigger is always valid between request_irq() and free_irq(), but
the loopback testing mechanisms to invoke the handler function
need to test the trigger.  The triggering and setting ioctl paths
both make use of igate and are therefore mutually exclusive.

The vfio-fsl-mc driver does not make use of irqfds, nor does it
support any sort of masking operations, therefore unlike vfio-pci
and vfio-platform, the flow can remain essentially unchanged.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-26814
https://www.cve.org/CVERecord?id=CVE-2024-26814
https://git.kernel.org/stable/c/083e750c9f5f4c3bf61161330fb84d7c8e8bb417
https://git.kernel.org/stable/c/6ec0d88166dac43f29e96801c0927d514f17add9
https://git.kernel.org/stable/c/7447d911af699a15f8d050dfcb7c680a86f87012
https://git.kernel.org/stable/c/de87511fb0404d23b6da5f4660383b6ed095e28d
https://git.kernel.org/stable/c/ee0bd4ad780dfbb60355b99f25063357ab488267
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2024/CVE-2024-26814.mbox
https://bugzilla.redhat.com/show_bug.cgi?id=2273646
https://git.kernel.org/stable/c/250219c6a556f8c69c5910fca05a59037e24147d
https://git.kernel.org/stable/c/a563fc18583ca4f42e2fdd0c70c7c618288e7ede
Comment 1 Oscar Salvador 2024-04-19 11:15:04 UTC
@Takashi: Can you please check

./scripts/check-kernel-fix CVE-2024-26814
7447d911af69 ("vfio/fsl-mc: Block calling interrupt handler without trigger") merged v6.9-rc1~90^2
Fixes: cc0ee20bd969 ("vfio/fsl-mc: trigger an interrupt via eventfd") merged v5.10-rc1~53^2~5^2~2
Security fix for CVE-2024-26814 bsc#1222810 with CVSS 4.4
..............................
ACTION NEEDED!
SLE15-SP6: MANUAL: backport 7447d911af699a15f8d050dfcb7c680a86f87012 (Fixes cc0ee20bd969)
SLE15-SP5: MANUAL: backport 7447d911af699a15f8d050dfcb7c680a86f87012 (Fixes cc0ee20bd969
Comment 2 Takashi Iwai 2024-04-19 12:44:41 UTC
I suppose it's rather for Virtualization team.

I can backport it if it's urgent, though.