{
  "id": "CVE-2026-46078",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-46078",
  "published_at": "2026-05-27T12:58:11.916Z",
  "title": "erofs: fix the out-of-bounds nameoff handling for trailing dirents",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.1,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nerofs: fix the out-of-bounds nameoff handling for trailing dirents\n\nCurrently we already have boundary-checks for nameoffs, but the trailing\ndirents are special since the namelens are calculated with strnlen()\nwith unchecked nameoffs.\n\nIf a crafted EROFS has a trailing dirent with nameoff \u003e= maxsize,\nmaxsize - nameoff can underflow, causing strnlen() to read past the\ndirectory block.\n\nnameoff0 should also be verified to be a multiple of\n`sizeof(struct erofs_dirent)` as well [1].\n\n[1] https://sashiko.dev/#/patchset/20260416063511.3173774-1-hsiangkao%40linux.alibaba.com",
  "cwe": "CWE-125",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 3aa8ec716e52c02360457fa018296629b4d0becf, \u003c a8ee527807f7d97e55ce2ef2906f7f34975eb1c7",
          "\u003e= 3aa8ec716e52c02360457fa018296629b4d0becf, \u003c aa16dca1b062355181ef215229eeac249d7c0d61",
          "\u003e= 3aa8ec716e52c02360457fa018296629b4d0becf, \u003c 80a23c6d1aba35be8746d74ac14e6ba5ae46da21",
          "\u003e= 3aa8ec716e52c02360457fa018296629b4d0becf, \u003c 222055e6b4063abd2d9e13c3d49bbd1724c50789",
          "\u003e= 3aa8ec716e52c02360457fa018296629b4d0becf, \u003c 48b27a955d22391c7f30169fa7b6b2e1977f1ce4",
          "\u003e= 3aa8ec716e52c02360457fa018296629b4d0becf, \u003c 8ebb951a284b7446e025afc7dc5e9516ef9a7214",
          "\u003e= 3aa8ec716e52c02360457fa018296629b4d0becf, \u003c 1d55445226c75ddd4e78b09b3e7d99109b28c366",
          "\u003e= 3aa8ec716e52c02360457fa018296629b4d0becf, \u003c d18a3b5d337fa412a38e776e6b4b857a58836575"
        ],
        "fixed_in": [
          "a8ee527807f7d97e55ce2ef2906f7f34975eb1c7",
          "aa16dca1b062355181ef215229eeac249d7c0d61",
          "80a23c6d1aba35be8746d74ac14e6ba5ae46da21",
          "222055e6b4063abd2d9e13c3d49bbd1724c50789",
          "48b27a955d22391c7f30169fa7b6b2e1977f1ce4",
          "8ebb951a284b7446e025afc7dc5e9516ef9a7214",
          "1d55445226c75ddd4e78b09b3e7d99109b28c366",
          "d18a3b5d337fa412a38e776e6b4b857a58836575"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "4.19"
        ],
        "fixed_in": [
          "0",
          "5.10.259",
          "5.15.210",
          "6.1.175",
          "6.6.140",
          "6.12.86",
          "6.18.27",
          "7.0.4",
          "7.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to a8ee527807f7d97e55ce2ef2906f7f34975eb1c7 or aa16dca1b062355181ef215229eeac249d7c0d61 or 80a23c6d1aba35be8746d74ac14e6ba5ae46da21 or 222055e6b4063abd2d9e13c3d49bbd1724c50789 or 48b27a955d22391c7f30169fa7b6b2e1977f1ce4 or 8ebb951a284b7446e025afc7dc5e9516ef9a7214 or 1d55445226c75ddd4e78b09b3e7d99109b28c366 or d18a3b5d337fa412a38e776e6b4b857a58836575 or later.",
      "Upgrade Linux to 0 or 5.10.259 or 5.15.210 or 6.1.175 or 6.6.140 or 6.12.86 or 6.18.27 or 7.0.4 or 7.1 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
