REDHAT-BUG-2507193: Medium severity Linux Kernel vulnerability

Published Jul 25, 2026
·
Updated

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

iio: event: Fix event FIFO reset race

iioeventgetfd() creates the event file descriptor with anoninodegetfd(), which allocates a new fd, creates the anonymous file and installs it in the process fd table before returning to the caller.

The IIO code resets the event FIFO after anoninodegetfd() has returned, but before IIOGETEVENTFDIOCTL has copied the fd number to userspace. But since fd tables are shared between threads, another thread can guess the newly allocated fd number and issue a read() on it as soon as the fd has been installed.

This means the kfifotouser() in iioeventchrdevread() can run in parallel with the kfiforesetout() in iioeventgetfd().

The kfifo documentation says that kfiforesetout() is only safe when it is called from the reader thread and there is only one concurrent reader. Otherwise it is dangerous and must be handled in the same way as kfiforeset().

If that happens, kfifotouser() can advance the FIFO out index based on state from before the reset, after the reset has already moved the out index to the current in index. That can leave the FIFO with an out index past the in index. A later read() can then see an underflowed FIFO length and copy more data than the event FIFO buffer contains. This can result in an out-of-bounds read and leak adjacent kernel memory to userspace.

Move the FIFO reset before anoninodegetfd(). At that point the event fd is marked busy, but the new fd has not been installed yet, so userspace cannot access it while the FIFO is reset.

Affected Software

1 affected component
Linux Kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Linux kernel iio event FIFO to a version that resolves this vulnerability.

    Patch iio: event: Fix event FIFO reset race

Event History

Jul 25, 2026
Data Sourced
via Red Hat·10:09 AM
DescriptionSeverityAffected Software

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