CVE-2026-143200: erofs: reset buf->off in erofs_init_metabuf()
In the Linux kernel, the following vulnerability has been resolved:
erofs: reset buf->off in erofsinitmetabuf()
erofsinitmetabuf() sets buf->off only for the block device and keeps the old value when it switches to the metabox or the managed cache. erofsbread() adds buf->off to every offset, so the result depends on how the buffer was last initialized.
getxattr and listxattr init the same buffer twice, for the inline and the shared xattrs, with inmetabox taken from different places. On a block device mount with fsoffset=, if the inode is outside the metabox and COMPATSHAREDEAINMETABOX is set, the shared xattrs are read at their metabox offset plus fsoffset. The same image mounted file-backed returns the right values.
Reset buf->off on every init.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7 - Compensating control
In erofs_init_metabuf(), reset buf->off on every initialization.
Event History
Frequently Asked Questions
Which deployments are affected by the incorrect shared extended-attribute reads?
The described issue affects EROFS images mounted from a block device with fsoffset= when an inode is outside the metabox and the COMPAT_SHARED_EA_IN_METABOX feature is set. The same image mounted file-backed returns the correct values.
What observable behavior can indicate exposure?
getxattr and listxattr can read shared extended attributes using a metabox offset incorrectly increased by fsoffset. This can cause returned extended-attribute values or listings to differ from those obtained when mounting the same image file-backed.
What is the relevant mitigation if updates cannot be applied immediately?
Avoid the affected combination of a block-device EROFS mount using fsoffset= with images that use shared extended attributes in the metabox. Mounting the image file-backed avoids the incorrect offset behavior described.