CVE-2024-26813: vfio/platform: Create persistent IRQ handlers

Published Apr 5, 2024
·
Updated

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

vfio/platform: Create persistent IRQ handlers

The vfio-platform SETIRQS ioctl currently allows loopback triggering of an interrupt before a signaling eventfd has been configured by the user, which thereby allows a NULL pointer dereference.

Rather than register the IRQ relative to a valid trigger, register all IRQs in a disabled state in the device open path. This allows mask operations on the IRQ to nest within the overall enable state governed by a valid eventfd signal. This decouples @masked, protected by the @locked spinlock from @trigger, protected via the @igate mutex.

In doing so, it's guaranteed that changes to @trigger cannot race the IRQ handlers because the IRQ handler is synchronously disabled before modifying the trigger, and loopback triggering of the IRQ via ioctl is safe due to serialization with trigger changes via igate.

For compatibility, requestirq() failures are maintained to be local to the SETIRQS ioctl rather than a fatal error in the open device path. This allows, for example, a userspace driver with polling mode support to continue to work regardless of moving the requestirq() call site. This necessarily blocks all SETIRQS access to the failed index.

Affected Software

8 affected componentsFixes available
Linux Linux kernel>=4.1<5.4.274
Linux Linux kernel>=5.5<5.10.215
Linux Linux kernel>=5.11<5.15.154
Linux Linux kernel>=5.16<6.1.84
Linux Linux kernel>=6.2<6.6.24
Linux Linux kernel>=6.7<6.7.12
Linux Linux kernel>=6.8<6.8.3
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1

Event History

Apr 5, 2024
CVE Published
via MITRE·08:24 AM
Data Sourced
via MITRE·08:24 AM
Description
Jun 8, 2024
Data Sourced
via Launchpad·12:59 AM
Description
May 6, 2025
Data Sourced
via Ubuntu·02:22 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-26813?

CVE-2024-26813 is classified as a medium severity vulnerability in the Linux kernel.

2

How do I fix CVE-2024-26813?

To resolve CVE-2024-26813, update the Linux kernel to version 5.10.223-1 or later, or to version 6.1.119-1 or later.

3

What software is affected by CVE-2024-26813?

CVE-2024-26813 affects multiple versions of the Linux kernel between versions 4.1 and 6.8.3.

4

What type of vulnerability is CVE-2024-26813?

CVE-2024-26813 is a vulnerability that involves improper handling of IRQ handlers in the vfio-platform feature of the Linux kernel.

5

Is CVE-2024-26813 exploitable remotely?

CVE-2024-26813 is not directly exploitable remotely as it requires local access to leverage the vulnerability.

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