CVE-2026-74606: eventfs: Fix use-after-free in eventfs_remove_rec()

Published Aug 22, 2026
·
Updated

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

eventfs: Fix use-after-free in eventfsremoverec()

eventfsremoverec() recursively removes the child at the current loop position. After the recursive call returns, listforeachentry() advances by reading list.next from the removed child.

If freeei() drops the final reference, releaseei() reuses the list/rcu union to queue an SRCU callback. The child may be freed before that read. The eventfsmutex serializes list updates, but it does not keep the removed child alive or prevent the SRCU callback from running.

Use listforeachentrysafe() to save the next sibling before recursively removing the current child.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    In eventfs_remove_rec(), replace list_for_each_entry() with list_for_each_entry_safe() so the next sibling is stored before the recursive removal; this prevents reading list.next from the removed child (fix use-after-free).

    Linux kernel (eventfs) list_for_each_entry() -> list_for_each_entry_safe() = Use list_for_each_entry_safe() to save the next sibling before recursively removing children

Event History

Aug 22, 2026
CVE Published
via MITRE·03:31 PM
Data Sourced
via MITRE·03:31 PM
Description
Data Sourced
via NVD·04:16 PM
Description

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