Skip to content
Heist/ feed
High

erofs: fix the out-of-bounds nameoff handling for trailing dirents

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: erofs: fix the out-of-bounds nameoff handling for trailing dirents Currently we already have boundary-checks for nameoffs, but the trailing dirents are special since the namelens are calculated with strnlen() with unchecked nameoffs. If a crafted EROFS has a trailing dirent with nameoff >= maxsize, maxsize - nameoff can underflow, causing strnlen() to read past the directory block. nameoff0 should also be verified to be a multiple of `sizeof(struct erofs_dirent)` as well [1]. [1] https://sashiko.dev/#/patchset/20260416063511.3173774-1-hsiangkao%40linux.alibaba.com

Announced Source revision 1
Original source ↗

CVE-2026-46078

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-46078

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": "3aa8ec716e52c02360457fa018296629b4d0becf",
        "lessThan": "a8ee527807f7d97e55ce2ef2906f7f34975eb1c7",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "3aa8ec716e52c02360457fa018296629b4d0becf",
        "lessThan": "aa16dca1b062355181ef215229eeac249d7c0d61",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "3aa8ec716e52c02360457fa018296629b4d0becf",
        "lessThan": "80a23c6d1aba35be8746d74ac14e6ba5ae46da21",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "3aa8ec716e52c02360457fa018296629b4d0becf",
        "lessThan": "222055e6b4063abd2d9e13c3d49bbd1724c50789",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "3aa8ec716e52c02360457fa018296629b4d0becf",
        "lessThan": "48b27a955d22391c7f30169fa7b6b2e1977f1ce4",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "3aa8ec716e52c02360457fa018296629b4d0becf",
        "lessThan": "8ebb951a284b7446e025afc7dc5e9516ef9a7214",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "3aa8ec716e52c02360457fa018296629b4d0becf",
        "lessThan": "1d55445226c75ddd4e78b09b3e7d99109b28c366",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "3aa8ec716e52c02360457fa018296629b4d0becf",
        "lessThan": "d18a3b5d337fa412a38e776e6b4b857a58836575",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "fs/erofs/dir.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "4.19"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "4.19",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "5.10.259",
        "versionType": "semver",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "5.15.210",
        "versionType": "semver",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.175",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.140",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.86",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.27",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.0.4",
        "versionType": "semver",
        "lessThanOrEqual": "7.0.*"
      },
      {
        "status": "unaffected",
        "version": "7.1",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "fs/erofs/dir.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-46078

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

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