{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-99395","id":"CVE-2026-99395","title":"Linux kernel buffer overflow in XFS inode log recovery","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfs: bound inode fork length against the fork size during log recovery\n\nxlog_recover_inode_commit_pass2() copies an inode log item's data/attr\nfork region into the inode buffer using the on-log region length without\nbounding it against the fork capacity, e.g.:\n\n\tlen = item->ri_buf[2].iov_len;\n\tmemcpy(XFS_DFORK_DPTR(dip), src, len","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfs: bound inode fork length against the fork size during log recovery\n\nxlog_recover_inode_commit_pass2() copies an inode log item's data/attr\nfork region into the inode buffer using the on-log region length without\nbounding it against the fork capacity, e.g.:\n\n\tlen = item->ri_buf[2].iov_len;\n\tmemcpy(XFS_DFORK_DPTR(dip), src, len);\n\nThe only guard is an ASSERT, which is a no-op on production kernels\n(CONFIG_XFS_DEBUG off), and xfs_dinode_verify() runs only after the copy.\nA crafted image with a dirty log can therefore drive a heap out-of-bounds\nwrite at mount time. The XFS_ILOG_DBROOT sibling already passes\nXFS_DFORK_DSIZE as a bound; the DDATA/DEXT and ADATA/AEXT memcpy paths\ndid not.\n\nBound each logged fork region against the destination fork size before\ncopying it, and reject the log item with -EFSCORRUPTED when it does not\nfit. Because the recovered inode is only verified after the fork data has\nbeen copied in, the checks are done up front, before any memcpy into the\non-disk inode.","published":"2026-11-19T14:23:33.347Z","updated":"2026-11-19T17:00:42.637671007Z","reserved":"2026-09-25T10:25:14.412Z","status":"Received","rejected":false,"assigner":"Linux","metric":null,"metrics":[],"rating":"unrated","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"658fa68b6f34f73c7e4023489accd34c1db91cb1","lessThan":"af559d87fdd921b90c86125f78d8b97d754432dd","status":"affected","versionType":"git"},{"version":"658fa68b6f34f73c7e4023489accd34c1db91cb1","lessThan":"f2cc5001ffcc1d8e5e16607ce4b6920ea30c2cfe","status":"affected","versionType":"git"},{"version":"658fa68b6f34f73c7e4023489accd34c1db91cb1","lessThan":"e2768e65a5f2f942c831e3df3b06ad7332d423e6","status":"affected","versionType":"git"},{"version":"658fa68b6f34f73c7e4023489accd34c1db91cb1","lessThan":"9232301894a06e664d8de2da97175cf98419bd16","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.8","status":"affected"},{"version":"0","lessThan":"5.8","status":"unaffected","versionType":"semver"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.61","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.2","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/af559d87fdd921b90c86125f78d8b97d754432dd","tags":["web"]},{"url":"https://git.kernel.org/stable/c/f2cc5001ffcc1d8e5e16607ce4b6920ea30c2cfe","tags":["web"]},{"url":"https://git.kernel.org/stable/c/e2768e65a5f2f942c831e3df3b06ad7332d423e6","tags":["web"]},{"url":"https://git.kernel.org/stable/c/9232301894a06e664d8de2da97175cf98419bd16","tags":["web"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99395.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99395","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":null,"epssPercentile":null,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-99395","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99395","ok":true,"note":"Received"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-99395","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-99395","ok":false,"note":"no score yet"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}