{"id":"CVE-2026-139450","aliases":["CVE-2026-139450"],"related":[],"kind":"vulnerability","state":"published","title":"erofs: fix xattrs handling when metadata compression is used","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-30T13:34:52.090Z","modified":"2026-11-30T14:19:15.957Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"414091322c6363c9283aeb177101e4d7a3819ccd","fixed":"b2edc050fc202119dca082b987b257cb7277e1c1","status":"affected"},{"type":"git","introduced":"414091322c6363c9283aeb177101e4d7a3819ccd","fixed":"92bc0e5851fb7d575765b5100b0bab6b57357c75","status":"affected"},{"type":"git","introduced":"414091322c6363c9283aeb177101e4d7a3819ccd","fixed":"6b722cefbf83558af07586ca94cdb4b370d5a82d","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.17","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/b2edc050fc202119dca082b987b257cb7277e1c1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/92bc0e5851fb7d575765b5100b0bab6b57357c75","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6b722cefbf83558af07586ca94cdb4b370d5a82d","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139450","url":"https://www.cve.org/CVERecord?id=CVE-2026-139450","licence":"CVE Terms of Use","modified":"2026-11-30T13:34:52.090Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139450","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139450","licence":"Public domain","modified":"2026-11-30T14:19:15.957Z"}],"updatedAt":"2026-11-30T14:33:36.088Z","epss":{"score":0.00206,"percentile":0.11346,"date":"2026-12-01T12:00:22.000Z"}}