CVE-2026-139450: erofs: fix xattrs handling when metadata compression is used
erofs: fix xattrs handling when metadata compression is used
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Compensating control
In erofs_bread(), reuse a cached folio only when folio->mapping == buf->mapping; otherwise drop the cached folio and re-read through the slow path.
Event History
Frequently Asked Questions
Which systems are affected in practice?
The issue affects Linux kernel systems using EROFS filesystems with metadata compression where xattrs are processed. The described failure involves shared xattrs using METABOX.
What is the observed impact of the flaw?
A cached folio can be reused after its buffer mapping has changed, causing erofs_bread() to read from the wrong address_space. This can result in shared xattrs being dropped when METABOX is used.
What does the fix change?
The fix requires the cached folio's mapping to match buf->mapping before reuse. If the mappings differ, the kernel discards the cached folio and re-reads the data through the slow path.