Bug 1222803 (CVE-2024-26810) - VUL-0: CVE-2024-26810: kernel: vfio/pci: Lock external INTx masking ops
Summary: VUL-0: CVE-2024-26810: kernel: vfio/pci: Lock external INTx masking ops
Status: NEW
Alias: CVE-2024-26810
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/400465/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-26810:4.4:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-15 09:06 UTC by SMASH SMASH
Modified: 2024-04-19 12:45 UTC (History)
2 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

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

vfio/pci: Lock external INTx masking ops

Mask operations through config space changes to DisINTx may race INTx
configuration changes via ioctl.  Create wrappers that add locking for
paths outside of the core interrupt code.

In particular, irq_type is updated holding igate, therefore testing
is_intx() requires holding igate.  For example clearing DisINTx from
config space can otherwise race changes of the interrupt configuration.

This aligns interfaces which may trigger the INTx eventfd into two
camps, one side serialized by igate and the other only enabled while
INTx is configured.  A subsequent patch introduces synchronization for
the latter flows.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-26810
https://www.cve.org/CVERecord?id=CVE-2024-26810
https://git.kernel.org/stable/c/03505e3344b0576fd619416793a31eae9c5b73bf
https://git.kernel.org/stable/c/04a4a017b9ffd7b0f427b8c376688d14cb614651
https://git.kernel.org/stable/c/3fe0ac10bd117df847c93408a9d428a453cd60e5
https://git.kernel.org/stable/c/6fe478d855b20ac1eb5da724afe16af5a2aaaa40
https://git.kernel.org/stable/c/810cd4bb53456d0503cc4e7934e063835152c1b7
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2024/CVE-2024-26810.mbox
https://bugzilla.redhat.com/show_bug.cgi?id=2273654
https://git.kernel.org/stable/c/ec73e079729258a05452356cf6d098bf1504d5a6
https://git.kernel.org/stable/c/1e71b6449d55179170efc8dee8664510bb813b42
https://git.kernel.org/stable/c/3dd9be6cb55e0f47544e7cdda486413f7134e3b3
Comment 1 Oscar Salvador 2024-04-19 11:14:17 UTC
@Takashi: Can you please check?

./scripts/check-kernel-fix CVE-2024-26810
810cd4bb5345 ("vfio/pci: Lock external INTx masking ops") merged v6.9-rc1~90^2~5
Fixes: 89e1f7d4c66d ("vfio: Add PCI device driver") merged v3.6-rc1~25^2
Security fix for CVE-2024-26810 bsc#1222803 with CVSS 4.4
..............................
ACTION NEEDED!
SLE15-SP6: MANUAL: backport 810cd4bb53456d0503cc4e7934e063835152c1b7 (Fixes 89e1f7d4c66d)
SLE15-SP5: MANUAL: backport 810cd4bb53456d0503cc4e7934e063835152c1b7 (Fixes 89e1f7d4c66d)
SLE12-SP5: MANUAL: backport 810cd4bb53456d0503cc4e7934e063835152c1b7 (Fixes 89e1f7d4c66d)
SLE12-SP3-TD: MANUAL: backport 810cd4bb53456d0503cc4e7934e063835152c1b7 (Fixes 89e1f7d4c66d)
Comment 2 Takashi Iwai 2024-04-19 11:16:38 UTC
I suppose it's rather for Virtualization team.

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