CVE-2026-143402: erofs: hold real inodes for shared files

Published Dec 5, 2026
·
Updated

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

erofs: hold real inodes for shared files

EROFS page cache sharing uses shared inodes. However, a mmaped VMA keeps the shared file even after the corresponding fd is closed, while currently the real inode is never held by any reference associated with the shared file.

As a result, the real inode could be evicted and removed from the shared inode's list while the page fault can still invoke on the shared inode's address space, which causes no candidate is successfully acquired by erofsrealinode().

Fix this by simply keeping the original inode in the shared backing file's private data.

Also replace confusing "realfile"/"rf" names with "sf" (sharedfile) to unify the terms as well as nullify realinode in erofsrealinode() to avoid returning an uninitialized pointer.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In EROFS, keep the original inode in the shared inode list while a page fault can still use it through a mmaped shared file, and nullify realinode in erofs_real_inode() to avoid returning an uninitialized pointer.

Event History

Dec 5, 2026
CVE Published
via MITRE·01:20 AM
Data Sourced
via MITRE·01:20 AM
Description

Frequently Asked Questions

1

What conditions are required to trigger this issue?

The system must use EROFS page-cache sharing, and a shared file must remain mapped in a VMA after its corresponding file descriptor has been closed. A later page fault on that mapping can reach the shared inode after the underlying real inode has been evicted.

2

Which systems are realistically exposed?

Systems using the Linux kernel with EROFS page-cache sharing are exposed to this lifecycle condition. The issue is relevant where applications mmap shared EROFS files and close the associated descriptors while retaining the mappings.

3

How can I tell whether a running workload may be affected?

Look for workloads that create mmap mappings of shared EROFS files, close the related file descriptors, and subsequently access pages in those mappings. The vulnerable path involves the real inode being evicted or removed from the shared inode list before a later page fault.

4

What does the fix change?

The fix stores and retains a reference to the original real inode in the shared backing file's private data. This keeps the real inode available while the shared file can still be used by an existing mapping.

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