{"api_version":"1","generated_at":"2026-11-24T00:27:43+00:00","cve":"CVE-2026-99395","urls":{"html":"https://cve.report/CVE-2026-99395","api":"https://cve.report/api/cve/CVE-2026-99395.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99395","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99395"},"summary":{"title":"xfs: bound inode fork length against the fork size during 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);\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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-19 15:17:51","updated_at":"2026-11-23 08:17:43"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","data":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/738959d93ca51be0d9d3d15f9b5b84ac4d39fe8a","name":"https://git.kernel.org/stable/c/738959d93ca51be0d9d3d15f9b5b84ac4d39fe8a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/287bb7a11fe1053d78172f874e16873d4b20d6e5","name":"https://git.kernel.org/stable/c/287bb7a11fe1053d78172f874e16873d4b20d6e5","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/f2cc5001ffcc1d8e5e16607ce4b6920ea30c2cfe","name":"https://git.kernel.org/stable/c/f2cc5001ffcc1d8e5e16607ce4b6920ea30c2cfe","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/af559d87fdd921b90c86125f78d8b97d754432dd","name":"https://git.kernel.org/stable/c/af559d87fdd921b90c86125f78d8b97d754432dd","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/f9827d457addf4a7fb089124fff01f10de83d557","name":"https://git.kernel.org/stable/c/f9827d457addf4a7fb089124fff01f10de83d557","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/e2768e65a5f2f942c831e3df3b06ad7332d423e6","name":"https://git.kernel.org/stable/c/e2768e65a5f2f942c831e3df3b06ad7332d423e6","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/9232301894a06e664d8de2da97175cf98419bd16","name":"https://git.kernel.org/stable/c/9232301894a06e664d8de2da97175cf98419bd16","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99395","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99395","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 658fa68b6f34f73c7e4023489accd34c1db91cb1 738959d93ca51be0d9d3d15f9b5b84ac4d39fe8a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 658fa68b6f34f73c7e4023489accd34c1db91cb1 f9827d457addf4a7fb089124fff01f10de83d557 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 658fa68b6f34f73c7e4023489accd34c1db91cb1 287bb7a11fe1053d78172f874e16873d4b20d6e5 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 658fa68b6f34f73c7e4023489accd34c1db91cb1 af559d87fdd921b90c86125f78d8b97d754432dd git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 658fa68b6f34f73c7e4023489accd34c1db91cb1 f2cc5001ffcc1d8e5e16607ce4b6920ea30c2cfe git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 658fa68b6f34f73c7e4023489accd34c1db91cb1 e2768e65a5f2f942c831e3df3b06ad7332d423e6 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 658fa68b6f34f73c7e4023489accd34c1db91cb1 9232301894a06e664d8de2da97175cf98419bd16 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.8","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.8 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.117 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.61 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.2 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"99395","cve":"CVE-2026-99395","epss":"0.002100000","percentile":"0.111390000","score_date":"2026-11-23","updated_at":"2026-11-24 00:07:46"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/xfs/xfs_inode_item_recover.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"738959d93ca51be0d9d3d15f9b5b84ac4d39fe8a","status":"affected","version":"658fa68b6f34f73c7e4023489accd34c1db91cb1","versionType":"git"},{"lessThan":"f9827d457addf4a7fb089124fff01f10de83d557","status":"affected","version":"658fa68b6f34f73c7e4023489accd34c1db91cb1","versionType":"git"},{"lessThan":"287bb7a11fe1053d78172f874e16873d4b20d6e5","status":"affected","version":"658fa68b6f34f73c7e4023489accd34c1db91cb1","versionType":"git"},{"lessThan":"af559d87fdd921b90c86125f78d8b97d754432dd","status":"affected","version":"658fa68b6f34f73c7e4023489accd34c1db91cb1","versionType":"git"},{"lessThan":"f2cc5001ffcc1d8e5e16607ce4b6920ea30c2cfe","status":"affected","version":"658fa68b6f34f73c7e4023489accd34c1db91cb1","versionType":"git"},{"lessThan":"e2768e65a5f2f942c831e3df3b06ad7332d423e6","status":"affected","version":"658fa68b6f34f73c7e4023489accd34c1db91cb1","versionType":"git"},{"lessThan":"9232301894a06e664d8de2da97175cf98419bd16","status":"affected","version":"658fa68b6f34f73c7e4023489accd34c1db91cb1","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/xfs/xfs_inode_item_recover.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.8"},{"lessThan":"5.8","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.117","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.61","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.2","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"5.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"5.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"5.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.117","versionStartIncluding":"5.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.61","versionStartIncluding":"5.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.2","versionStartIncluding":"5.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"5.8","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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."}],"metrics":[{"cvssV3_1":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"scenarios":[{"lang":"en","value":"AV:L - The overflowing bytes are the on-disk log fork region: xlog_recover_add_to_trans records oh_len as ri_buf[].iov_len, and xlog_recover_inode_commit_pass2 copies that length into the inode buffer from xlog_recover pass 2, reached by xfs_log_mount in xfs_fs_fill_super. The log record is image data, not a protocol message.\nAC:L - The attacker sets a dirty log (tail_blk != head_blk), ilf_fields to XFS_ILOG_DDATA, XFS_ILOG_DEXT, XFS_ILOG_ADATA, or XFS_ILOG_AEXT, and an oh_len larger than XFS_DFORK_DSIZE or XFS_DFORK_ASIZE. xlog_recover then hits the memcpy on a normal mount; no race, media fault, or norecovery mount option is involved.\nPR:N - Supplying the image requires no credential. The mount and fsopen paths reach recovery only after mount_capable(), which demands init-namespace CAP_SYS_ADMIN because xfs_fs_type does not set FS_USERNS_MOUNT; that capability is used by the user who performs the mount.\nUI:R - xlog_recover_inode_commit_pass2 is called only from xfs_log_mount during xfs_mountfs in xfs_fs_fill_super. File operations on an already-mounted filesystem cannot inject the oversized log oh_len, so a user has to mount the supplied image.\nS:U - The write corrupts the host kernel's inode buffer from xfs_buf_alloc_backing_mem and memory adjacent to it. Impact stays in that kernel; XFS is not mountable from a user namespace, and the bug is not a guest-to-host or IOMMU crossing.\nC:H - The memcpy copies attacker-chosen fork bytes for an attacker-chosen iov_len with no production check against XFS_DFORK_DSIZE. A v5 image with a 1024-byte block and ilf_len of one block uses a 1024-byte kmalloc from xfs_buf_alloc_kmem, so a multi-kilobyte oh_len is a controlled heap overflow that can be leveraged to disclose adjacent memory.\nI:H - The DDATA/DEXT memcpy uses ri_buf iov_len with no comparison to XFS_DFORK_DSIZE; the nearby ASSERT only requires len == xlog_calc_iovec_len(ilf_dsize), and ilf_dsize is a uint16 the image sets. The ADATA/AEXT path's len <= XFS_DFORK_ASIZE check was an ASSERT, absent unless CONFIG_XFS_DEBUG is on.\nA:H - The memcpy runs before xfs_dinode_verify. Writing past the inode buffer corrupts neighboring kernel allocations and oopses or panics the host; returning -EFSCORRUPTED from recovery does not undo the overflow."}]}],"providerMetadata":{"dateUpdated":"2026-11-23T08:02:18.415Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/738959d93ca51be0d9d3d15f9b5b84ac4d39fe8a"},{"url":"https://git.kernel.org/stable/c/f9827d457addf4a7fb089124fff01f10de83d557"},{"url":"https://git.kernel.org/stable/c/287bb7a11fe1053d78172f874e16873d4b20d6e5"},{"url":"https://git.kernel.org/stable/c/af559d87fdd921b90c86125f78d8b97d754432dd"},{"url":"https://git.kernel.org/stable/c/f2cc5001ffcc1d8e5e16607ce4b6920ea30c2cfe"},{"url":"https://git.kernel.org/stable/c/e2768e65a5f2f942c831e3df3b06ad7332d423e6"},{"url":"https://git.kernel.org/stable/c/9232301894a06e664d8de2da97175cf98419bd16"}],"title":"xfs: bound inode fork length against the fork size during log recovery","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99395","datePublished":"2026-11-19T14:23:33.347Z","dateReserved":"2026-09-25T10:25:14.412Z","dateUpdated":"2026-11-23T08:02:18.415Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-19 15:17:51","lastModifiedDate":"2026-11-23 08:17:43","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99395","Ordinal":"1","Title":"xfs: bound inode fork length against the fork size during log re","CVE":"CVE-2026-99395","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99395","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"xfs: bound inode fork length against the fork size during log re"}]}}}