{"id":"CVE-2026-99395","aliases":[],"title":"xfs: bound inode fork length against the fork size during log recovery","originalDescription":"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.","severity":{"cvss":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","label":"high"},"exploitation":{"kev":null,"epss":{"score":0.0021,"percentile":0.11841},"exploitDb":null},"affected":[{"ecosystem":"Linux","name":"Kernel","range":">=5.8.0, <6.12.117","fixed":"6.12.117"},{"ecosystem":"Linux","name":"Kernel","range":">=6.13.0, <6.18.61","fixed":"6.18.61"},{"ecosystem":"Linux","name":"Kernel","range":">=6.19.0, <7.3.2","fixed":"7.3.2"},{"ecosystem":"vendor","name":"Linux","range":">=658fa68b6f34f73c7e4023489accd34c1db91cb1, <287bb7a11fe1053d78172f874e16873d4b20d6e5","fixed":"287bb7a11fe1053d78172f874e16873d4b20d6e5"},{"ecosystem":"vendor","name":"Linux","range":">=658fa68b6f34f73c7e4023489accd34c1db91cb1, <738959d93ca51be0d9d3d15f9b5b84ac4d39fe8a","fixed":"738959d93ca51be0d9d3d15f9b5b84ac4d39fe8a"},{"ecosystem":"vendor","name":"Linux","range":">=658fa68b6f34f73c7e4023489accd34c1db91cb1, <9232301894a06e664d8de2da97175cf98419bd16","fixed":"9232301894a06e664d8de2da97175cf98419bd16"},{"ecosystem":"vendor","name":"Linux","range":">=658fa68b6f34f73c7e4023489accd34c1db91cb1, <af559d87fdd921b90c86125f78d8b97d754432dd","fixed":"af559d87fdd921b90c86125f78d8b97d754432dd"},{"ecosystem":"vendor","name":"Linux","range":">=658fa68b6f34f73c7e4023489accd34c1db91cb1, <e2768e65a5f2f942c831e3df3b06ad7332d423e6","fixed":"e2768e65a5f2f942c831e3df3b06ad7332d423e6"},{"ecosystem":"vendor","name":"Linux","range":">=658fa68b6f34f73c7e4023489accd34c1db91cb1, <f2cc5001ffcc1d8e5e16607ce4b6920ea30c2cfe","fixed":"f2cc5001ffcc1d8e5e16607ce4b6920ea30c2cfe"},{"ecosystem":"vendor","name":"Linux","range":">=658fa68b6f34f73c7e4023489accd34c1db91cb1, <f9827d457addf4a7fb089124fff01f10de83d557","fixed":"f9827d457addf4a7fb089124fff01f10de83d557"}],"references":[{"url":"https://git.kernel.org/stable/c/af559d87fdd921b90c86125f78d8b97d754432dd","type":"other"},{"url":"https://git.kernel.org/stable/c/f2cc5001ffcc1d8e5e16607ce4b6920ea30c2cfe","type":"other"},{"url":"https://git.kernel.org/stable/c/e2768e65a5f2f942c831e3df3b06ad7332d423e6","type":"other"},{"url":"https://git.kernel.org/stable/c/9232301894a06e664d8de2da97175cf98419bd16","type":"other"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99395.json","type":"advisory"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99395","type":"advisory"},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","type":"package"},{"url":"https://git.kernel.org/stable/c/738959d93ca51be0d9d3d15f9b5b84ac4d39fe8a","type":"other"},{"url":"https://git.kernel.org/stable/c/f9827d457addf4a7fb089124fff01f10de83d557","type":"other"},{"url":"https://git.kernel.org/stable/c/287bb7a11fe1053d78172f874e16873d4b20d6e5","type":"other"}],"sources":[{"name":"nvd","at":"2026-11-23T08:46:27.108Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99395","license":"NVD terms of use","firstSeenAt":"2026-11-19T15:43:47.949Z"},{"name":"osv","at":"2026-11-20T21:22:51.651Z","url":"https://osv.dev/vulnerability/CVE-2026-99395","license":"CC-BY 4.0","firstSeenAt":"2026-11-20T21:22:51.578Z"},{"name":"cvelistV5","at":"2026-11-23T21:30:53.093Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99395","license":"CVE Terms of Use","firstSeenAt":"2026-11-19T15:00:35.299Z"}],"firstSeenAt":"2026-11-19T15:00:35.299Z","publishedAt":"2026-11-19T14:23:33.347Z","modifiedAt":"2026-11-23T08:17:43.807Z"}