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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-12-05T01:20:28.318Z
- **Modified:** 2026-12-05T03:19:50.317Z

> **AI summary (AI-generated, claude-haiku-5-5):** A flaw in the Linux kernel EROFS filesystem can cause a page fault on a shared inode to fail because the real inode may be evicted while a memory mapping still references it.

## Who should check

- Anyone running Linux \>= 5ef3208e3be50aa08b4e7a2832f34e16d42c08b3, \< 6d522543220915cbe36948730d006c88d993fa45; \>= 5ef3208e3be50aa08b4e7a2832f34e16d42c08b3, \< 7259fb011c14977661b7a4680886b466a3089ea7
- Anyone running Linux 7.0

## Description

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 erofs\_real\_inode().

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 erofs\_real\_inode()
to avoid returning an uninitialized pointer.

## Affected and fixed versions

- Linux: \>= 5ef3208e3be50aa08b4e7a2832f34e16d42c08b3, \< 6d522543220915cbe36948730d006c88d993fa45; \>= 5ef3208e3be50aa08b4e7a2832f34e16d42c08b3, \< 7259fb011c14977661b7a4680886b466a3089ea7 (cvelist)
- Linux: 7.0 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 7259fb011c14977661b7a4680886b466a3089ea7 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-143402. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-143402.md
Affected: Linux >= 5ef3208e3be50aa08b4e7a2832f34e16d42c08b3, < 6d522543220915cbe36948730d006c88d993fa45; >= 5ef3208e3be50aa08b4e7a2832f34e16d42c08b3, < 7259fb011c14977661b7a4680886b466a3089ea7; Linux 7.0
Fixed in: Linux 6d522543220915cbe36948730d006c88d993fa45, Linux 7259fb011c14977661b7a4680886b466a3089ea7

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-143402 being exploited?

There is no confirmed exploitation: CVE-2026-143402 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-143402?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-143402?

Linux \>= 5ef3208e3be50aa08b4e7a2832f34e16d42c08b3, \< 6d522543220915cbe36948730d006c88d993fa45; \>= 5ef3208e3be50aa08b4e7a2832f34e16d42c08b3, \< 7259fb011c14977661b7a4680886b466a3089ea7; Linux 7.0.

### Is there a fix for CVE-2026-143402?

Yes. Fixed in Linux 6d522543220915cbe36948730d006c88d993fa45, Linux 7259fb011c14977661b7a4680886b466a3089ea7. Upgrade Linux to 7259fb011c14977661b7a4680886b466a3089ea7 or later.

### How do I check if I'm affected by CVE-2026-143402?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/6d522543220915cbe36948730d006c88d993fa45>
- other: <https://git.kernel.org/stable/c/7259fb011c14977661b7a4680886b466a3089ea7>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-143402>

HTML: <https://flawdb.com/CVE-2026-143402> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-143402>
