{"id":"CVE-2026-139450","state":"PUBLISHED","title":"erofs: fix xattrs handling when metadata compression is used","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nerofs: fix xattrs handling when metadata compression is used\n\nerofs_bread() reuses a cached folio on page index match without\nchecking folio->mapping.\n\nxattr.c calls erofs_init_metabuf() twice on the same buffer without\nerofs_put_metabuf(); the two in_metabox sources differ, so buf->mapping\ncan switch while buf->page still belongs to the old address_space.\nThe next erofs_bread() then reads the wrong mapping, dropping shared\nxattrs with METABOX.\n\nWe require folio->mapping == buf->mapping in the reuse check; otherwise\ndrop the cached folio and re-read via the slow path.","publishedAt":"2026-11-30T13:34:52.090Z","updatedAt":"2026-11-30T13:34:52.090Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"414091322c6363c9283aeb177101e4d7a3819ccd","status":"affected","lessThan":"b2edc050fc202119dca082b987b257cb7277e1c1","versionType":"git"},{"version":"414091322c6363c9283aeb177101e4d7a3819ccd","status":"affected","lessThan":"92bc0e5851fb7d575765b5100b0bab6b57357c75","versionType":"git"},{"version":"414091322c6363c9283aeb177101e4d7a3819ccd","status":"affected","lessThan":"6b722cefbf83558af07586ca94cdb4b370d5a82d","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":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","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/b2edc050fc202119dca082b987b257cb7277e1c1","https://git.kernel.org/stable/c/92bc0e5851fb7d575765b5100b0bab6b57357c75","https://git.kernel.org/stable/c/6b722cefbf83558af07586ca94cdb4b370d5a82d"],"weaknesses":[],"ingestedAt":"2026-11-30T13:50:04.417Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139450.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139450","state":"PUBLISHED","datePublished":"2026-11-30T13:34:52.090Z","dateUpdated":"2026-11-30T13:34:52.090Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.934Z"},"containers":{"cna":{"title":"erofs: fix xattrs handling when metadata compression is used","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nerofs: fix xattrs handling when metadata compression is used\n\nerofs_bread() reuses a cached folio on page index match without\nchecking folio->mapping.\n\nxattr.c calls erofs_init_metabuf() twice on the same buffer without\nerofs_put_metabuf(); the two in_metabox sources differ, so buf->mapping\ncan switch while buf->page still belongs to the old address_space.\nThe next erofs_bread() then reads the wrong mapping, dropping shared\nxattrs with METABOX.\n\nWe require folio->mapping == buf->mapping in the reuse check; otherwise\ndrop the cached folio and re-read via the slow path."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"414091322c6363c9283aeb177101e4d7a3819ccd","status":"affected","lessThan":"b2edc050fc202119dca082b987b257cb7277e1c1","versionType":"git"},{"version":"414091322c6363c9283aeb177101e4d7a3819ccd","status":"affected","lessThan":"92bc0e5851fb7d575765b5100b0bab6b57357c75","versionType":"git"},{"version":"414091322c6363c9283aeb177101e4d7a3819ccd","status":"affected","lessThan":"6b722cefbf83558af07586ca94cdb4b370d5a82d","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":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","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/b2edc050fc202119dca082b987b257cb7277e1c1"},{"url":"https://git.kernel.org/stable/c/92bc0e5851fb7d575765b5100b0bab6b57357c75"},{"url":"https://git.kernel.org/stable/c/6b722cefbf83558af07586ca94cdb4b370d5a82d"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:34:52.090Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}