{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-46078","id":"CVE-2026-46078","title":"erofs: fix the out-of-bounds nameoff handling for trailing dirents","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 >= maxsize,\nmaxsize - nameoff can underfl","descriptionLong":"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","published":"2026-05-27T12:58:11.916Z","updated":"2026-10-28T02:31:02.001769326Z","reserved":"2026-05-13T15:03:33.096Z","status":"Undergoing Analysis","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H","rating":"high","source":"Linux"},"metrics":[{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H","rating":"high","source":"Linux"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H","rating":"high","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3aa8ec716e52c02360457fa018296629b4d0becf","lessThan":"a8ee527807f7d97e55ce2ef2906f7f34975eb1c7","status":"affected","versionType":"git"},{"version":"3aa8ec716e52c02360457fa018296629b4d0becf","lessThan":"aa16dca1b062355181ef215229eeac249d7c0d61","status":"affected","versionType":"git"},{"version":"3aa8ec716e52c02360457fa018296629b4d0becf","lessThan":"80a23c6d1aba35be8746d74ac14e6ba5ae46da21","status":"affected","versionType":"git"},{"version":"3aa8ec716e52c02360457fa018296629b4d0becf","lessThan":"222055e6b4063abd2d9e13c3d49bbd1724c50789","status":"affected","versionType":"git"},{"version":"3aa8ec716e52c02360457fa018296629b4d0becf","lessThan":"48b27a955d22391c7f30169fa7b6b2e1977f1ce4","status":"affected","versionType":"git"},{"version":"3aa8ec716e52c02360457fa018296629b4d0becf","lessThan":"8ebb951a284b7446e025afc7dc5e9516ef9a7214","status":"affected","versionType":"git"},{"version":"3aa8ec716e52c02360457fa018296629b4d0becf","lessThan":"1d55445226c75ddd4e78b09b3e7d99109b28c366","status":"affected","versionType":"git"},{"version":"3aa8ec716e52c02360457fa018296629b4d0becf","lessThan":"d18a3b5d337fa412a38e776e6b4b857a58836575","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.19","status":"affected"},{"version":"0","lessThan":"4.19","status":"unaffected","versionType":"semver"},{"version":"5.10.259","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.210","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.175","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.140","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.86","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.27","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.0.4","lessThanOrEqual":"7.0.*","status":"unaffected","versionType":"semver"},{"version":"7.1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-125"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/a8ee527807f7d97e55ce2ef2906f7f34975eb1c7","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/aa16dca1b062355181ef215229eeac249d7c0d61","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/80a23c6d1aba35be8746d74ac14e6ba5ae46da21","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/222055e6b4063abd2d9e13c3d49bbd1724c50789","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/48b27a955d22391c7f30169fa7b6b2e1977f1ce4","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/8ebb951a284b7446e025afc7dc5e9516ef9a7214","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/1d55445226c75ddd4e78b09b3e7d99109b28c366","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/d18a3b5d337fa412a38e776e6b4b857a58836575","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46078.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46078","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00132,"epssPercentile":0.02834,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-46078","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46078","ok":true,"note":"Undergoing Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-46078","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-46078","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}