{"id":"CVE-2026-46078","aliases":["CVE-2026-46078"],"related":[],"kind":"vulnerability","state":"published","title":"erofs: fix the out-of-bounds nameoff handling for trailing dirents","summary":"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 >= 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","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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 >= 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","source":"cvelist"}],"published":"2026-05-27T12:58:11.916Z","modified":"2026-10-19T20:18:28.757Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"type":"git","introduced":"3aa8ec716e52c02360457fa018296629b4d0becf","fixed":"a8ee527807f7d97e55ce2ef2906f7f34975eb1c7","status":"affected"},{"type":"git","introduced":"3aa8ec716e52c02360457fa018296629b4d0becf","fixed":"aa16dca1b062355181ef215229eeac249d7c0d61","status":"affected"},{"type":"git","introduced":"3aa8ec716e52c02360457fa018296629b4d0becf","fixed":"80a23c6d1aba35be8746d74ac14e6ba5ae46da21","status":"affected"},{"type":"git","introduced":"3aa8ec716e52c02360457fa018296629b4d0becf","fixed":"222055e6b4063abd2d9e13c3d49bbd1724c50789","status":"affected"},{"type":"git","introduced":"3aa8ec716e52c02360457fa018296629b4d0becf","fixed":"48b27a955d22391c7f30169fa7b6b2e1977f1ce4","status":"affected"},{"type":"git","introduced":"3aa8ec716e52c02360457fa018296629b4d0becf","fixed":"8ebb951a284b7446e025afc7dc5e9516ef9a7214","status":"affected"},{"type":"git","introduced":"3aa8ec716e52c02360457fa018296629b4d0becf","fixed":"1d55445226c75ddd4e78b09b3e7d99109b28c366","status":"affected"},{"type":"git","introduced":"3aa8ec716e52c02360457fa018296629b4d0becf","fixed":"d18a3b5d337fa412a38e776e6b4b857a58836575","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.19","status":"unaffected"},{"type":"semver","introduced":"5.10.259","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.210","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.175","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.140","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.86","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.27","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.0.4","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.19","fixed":"5.10.259"},{"status":"affected","introduced":"5.11","fixed":"5.15.210"},{"status":"affected","introduced":"5.16","fixed":"6.1.175"},{"status":"affected","introduced":"6.2","fixed":"6.6.140"},{"status":"affected","introduced":"6.7","fixed":"6.12.86"},{"status":"affected","introduced":"6.13","fixed":"6.18.27"},{"status":"affected","introduced":"6.19","fixed":"7.0.4"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/a8ee527807f7d97e55ce2ef2906f7f34975eb1c7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/aa16dca1b062355181ef215229eeac249d7c0d61","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/80a23c6d1aba35be8746d74ac14e6ba5ae46da21","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/222055e6b4063abd2d9e13c3d49bbd1724c50789","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/48b27a955d22391c7f30169fa7b6b2e1977f1ce4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8ebb951a284b7446e025afc7dc5e9516ef9a7214","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1d55445226c75ddd4e78b09b3e7d99109b28c366","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d18a3b5d337fa412a38e776e6b4b857a58836575","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-10-16T15:19:29.931Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-46078","url":"https://www.cve.org/CVERecord?id=CVE-2026-46078","licence":"CVE Terms of Use","modified":"2026-10-19T19:26:43.106Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-46078","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46078","licence":"Public domain","modified":"2026-10-19T20:18:28.757Z"}],"updatedAt":"2026-11-25T22:59:22.572Z","epss":{"score":0.00132,"percentile":0.02952,"date":"2026-12-01T12:00:22.000Z"}}