Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2026-143200

erofs: reset buf->off in erofs_init_metabuf()

Description

In the Linux kernel, the following vulnerability has been resolved: erofs: reset buf->off in erofs_init_metabuf() erofs_init_metabuf() sets buf->off only for the block device and keeps the old value when it switches to the metabox or the managed cache. erofs_bread() 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 in_metabox taken from different places. On a block device mount with fsoffset=, if the inode is outside the metabox and COMPAT_SHARED_EA_IN_METABOX 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 products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 414091322c6363c9283aeb177101e4d7a3819ccd to < fb69f73f5897a95bde6a0a67c7c99ed5a5e2303baffected
  • 414091322c6363c9283aeb177101e4d7a3819ccd to < 8b4ddd28ec5bdec14cefc57f8bf792cb4764d724affected

Linux Linux

Default version status: affected

  • 6.17affected
  • 0 to < 6.17unaffected
  • 7.3.7 to ≤ 7.3.*unaffected
  • 7.4-rc3 to ≤ *unaffected

References