{"id":"CVE-2026-99395","published":"2026-11-19T14:23:33Z","modified":"2026-11-23T08:02:18Z","title":"xfs: bound inode fork length against the fork size during log recovery","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0021,"percentile":0.11009,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/738959d93ca51be0d9d3d15f9b5b84ac4d39fe8a","tags":[]},{"url":"https://git.kernel.org/stable/c/f9827d457addf4a7fb089124fff01f10de83d557","tags":[]},{"url":"https://git.kernel.org/stable/c/287bb7a11fe1053d78172f874e16873d4b20d6e5","tags":[]},{"url":"https://git.kernel.org/stable/c/af559d87fdd921b90c86125f78d8b97d754432dd","tags":[]},{"url":"https://git.kernel.org/stable/c/f2cc5001ffcc1d8e5e16607ce4b6920ea30c2cfe","tags":[]},{"url":"https://git.kernel.org/stable/c/e2768e65a5f2f942c831e3df3b06ad7332d423e6","tags":[]},{"url":"https://git.kernel.org/stable/c/9232301894a06e664d8de2da97175cf98419bd16","tags":[]}],"priority":{"score":7.7,"factors":[{"name":"EPSS percentile","points":2.2},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 658fa68b6f34f73c7e4023489accd34c1db91cb1, < 738959d93ca51be0d9d3d15f9b5b84ac4d39fe8a",">= 658fa68b6f34f73c7e4023489accd34c1db91cb1, < f9827d457addf4a7fb089124fff01f10de83d557",">= 658fa68b6f34f73c7e4023489accd34c1db91cb1, < 287bb7a11fe1053d78172f874e16873d4b20d6e5",">= 658fa68b6f34f73c7e4023489accd34c1db91cb1, < af559d87fdd921b90c86125f78d8b97d754432dd",">= 658fa68b6f34f73c7e4023489accd34c1db91cb1, < f2cc5001ffcc1d8e5e16607ce4b6920ea30c2cfe",">= 658fa68b6f34f73c7e4023489accd34c1db91cb1, < e2768e65a5f2f942c831e3df3b06ad7332d423e6",">= 658fa68b6f34f73c7e4023489accd34c1db91cb1, < 9232301894a06e664d8de2da97175cf98419bd16"]},{"vendor":"Linux","product":"Linux","versions":["5.8"]}],"euvd":{"id":"EUVD-2026-130053","exploited":false,"provenance":"source"}}