CVE-2026-143200: erofs: reset buf->off in erofs_init_metabuf()

Published Dec 3, 2026
·
Updated

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

2 affected componentsFixes available
Linux Linux kernel
linux/kernel>=6.17.0<7.3.7
7.3.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.7
  2. Compensating control

    In erofs_init_metabuf(), reset buf->off on every initialization.

Event History

Dec 3, 2026
CVE Published
via MITRE·09:20 AM
Data Sourced
via MITRE·09:20 AM
Description
Data Sourced
via OSV·09:20 AM
DescriptionAffected Software
Data Sourced
via NVD·10:17 AM
Description

Frequently Asked Questions

1

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.

2

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.

3

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.

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