{"id":"CVE-2026-143200","state":"PUBLISHED","title":"erofs: reset buf->off in erofs_init_metabuf()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nerofs: reset buf->off in erofs_init_metabuf()\n\nerofs_init_metabuf() sets buf->off only for the block device and keeps\nthe old value when it switches to the metabox or the managed cache.\nerofs_bread() adds buf->off to every offset, so the result depends on\nhow the buffer was last initialized.\n\ngetxattr and listxattr init the same buffer twice, for the inline and\nthe shared xattrs, with in_metabox taken from different places.  On a\nblock device mount with fsoffset=, if the inode is outside the metabox\nand COMPAT_SHARED_EA_IN_METABOX is set, the shared xattrs are read at\ntheir metabox offset plus fsoffset.  The same image mounted file-backed\nreturns the right values.\n\nReset buf->off on every init.","publishedAt":"2026-12-03T09:20:25.647Z","updatedAt":"2026-12-03T09:20:25.647Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"414091322c6363c9283aeb177101e4d7a3819ccd","status":"affected","lessThan":"fb69f73f5897a95bde6a0a67c7c99ed5a5e2303b","versionType":"git"},{"version":"414091322c6363c9283aeb177101e4d7a3819ccd","status":"affected","lessThan":"8b4ddd28ec5bdec14cefc57f8bf792cb4764d724","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/erofs/data.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.17","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/erofs/data.c"]}],"references":["https://git.kernel.org/stable/c/fb69f73f5897a95bde6a0a67c7c99ed5a5e2303b","https://git.kernel.org/stable/c/8b4ddd28ec5bdec14cefc57f8bf792cb4764d724"],"weaknesses":[],"ingestedAt":"2026-12-03T09:40:06.136Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143200.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143200","state":"PUBLISHED","datePublished":"2026-12-03T09:20:25.647Z","dateUpdated":"2026-12-03T09:20:25.647Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.359Z"},"containers":{"cna":{"title":"erofs: reset buf->off in erofs_init_metabuf()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nerofs: reset buf->off in erofs_init_metabuf()\n\nerofs_init_metabuf() sets buf->off only for the block device and keeps\nthe old value when it switches to the metabox or the managed cache.\nerofs_bread() adds buf->off to every offset, so the result depends on\nhow the buffer was last initialized.\n\ngetxattr and listxattr init the same buffer twice, for the inline and\nthe shared xattrs, with in_metabox taken from different places.  On a\nblock device mount with fsoffset=, if the inode is outside the metabox\nand COMPAT_SHARED_EA_IN_METABOX is set, the shared xattrs are read at\ntheir metabox offset plus fsoffset.  The same image mounted file-backed\nreturns the right values.\n\nReset buf->off on every init."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"414091322c6363c9283aeb177101e4d7a3819ccd","status":"affected","lessThan":"fb69f73f5897a95bde6a0a67c7c99ed5a5e2303b","versionType":"git"},{"version":"414091322c6363c9283aeb177101e4d7a3819ccd","status":"affected","lessThan":"8b4ddd28ec5bdec14cefc57f8bf792cb4764d724","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/erofs/data.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.17","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/erofs/data.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/fb69f73f5897a95bde6a0a67c7c99ed5a5e2303b"},{"url":"https://git.kernel.org/stable/c/8b4ddd28ec5bdec14cefc57f8bf792cb4764d724"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:20:25.647Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"7.4-rc3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}