Skip to content
Heist/ feed
Unrated

erofs: fix metabuf leak in inode xattr initialization

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: erofs: fix metabuf leak in inode xattr initialization commit bb88e8da0025 ("erofs: use meta buffers for xattr operations") converted xattr operations to use on-stack erofs_buf instances. erofs_init_inode_xattrs() uses such a metabuf while reading the inline xattr header and shared xattr id array. Some error paths after erofs_read_metabuf() leave through out_unlock without dropping the metabuf, so the folio reference can leak. Consolidate the cleanup at out_unlock. erofs_put_metabuf() is a no-op if no folio has been acquired, and this keeps all paths after taking EROFS_I_BL_XATTR_BIT covered by a single cleanup site.

Announced Source revision 1
Original source ↗

CVE-2026-64146

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-64146

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "bb88e8da00253bea0e7f0f4cdfd7910572d7799f",
        "lessThan": "3812cfe6cb0a5988df4fedcdaf9aab677b9cca61",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "bb88e8da00253bea0e7f0f4cdfd7910572d7799f",
        "lessThan": "e4a552e0b6413c1af2e140b5bc14bb849b411b57",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "bb88e8da00253bea0e7f0f4cdfd7910572d7799f",
        "lessThan": "fcb23bb31508b62e8a1b32adf6217820e90e29b0",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "bb88e8da00253bea0e7f0f4cdfd7910572d7799f",
        "lessThan": "492c73b21fefa36f3869cb2b188ffb7fe37b3a9b",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "bb88e8da00253bea0e7f0f4cdfd7910572d7799f",
        "lessThan": "79b09c54c6563df9846ca3094bcfd72082c3e1d7",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "fs/erofs/xattr.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "5.17"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "5.17",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.6.160",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.114",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.57",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.0.11",
        "versionType": "semver",
        "lessThanOrEqual": "7.0.*"
      },
      {
        "status": "unaffected",
        "version": "7.1",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "fs/erofs/xattr.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-64146

Source reference: /cveMetadata/cveId

Publisher severity

No explicit severity was provided.

Event
#46424 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement