{"id":"CVE-2026-80531","state":"PUBLISHED","title":"xfs: avoid UAF on sc->tempip in xrep_tempfile_create","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfs: avoid UAF on sc->tempip in xrep_tempfile_create\n\nLOLLM noticed a potential UAF if the tempfile creation code fails after\nit set sc->tempip.  Fix that.","publishedAt":"2026-08-26T14:37:08.594Z","updatedAt":"2026-08-27T05:01:25.229Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"84c14ee39dd388d73054181c70b3f42af7ddc238","status":"affected","lessThan":"08a20776ce33a2a52d856911e447c59424f0465a","versionType":"git"},{"version":"84c14ee39dd388d73054181c70b3f42af7ddc238","status":"affected","lessThan":"cd1f876d1bc2e94f271e07c606cacd85b109108a","versionType":"git"},{"version":"84c14ee39dd388d73054181c70b3f42af7ddc238","status":"affected","lessThan":"96246a3200d32a43766152e56bc7ae2d93604d74","versionType":"git"},{"version":"84c14ee39dd388d73054181c70b3f42af7ddc238","status":"affected","lessThan":"0c88e10d12de9ca7cbed1467bb1b52310101bff8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/xfs/scrub/tempfile.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.10","versionType":"semver"},{"version":"6.12.105","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.46","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.10","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/xfs/scrub/tempfile.c"]}],"references":["https://git.kernel.org/stable/c/08a20776ce33a2a52d856911e447c59424f0465a","https://git.kernel.org/stable/c/cd1f876d1bc2e94f271e07c606cacd85b109108a","https://git.kernel.org/stable/c/96246a3200d32a43766152e56bc7ae2d93604d74","https://git.kernel.org/stable/c/0c88e10d12de9ca7cbed1467bb1b52310101bff8"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:07.220Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/80xxx/CVE-2026-80531.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-80531","state":"PUBLISHED","datePublished":"2026-08-26T14:37:08.594Z","dateUpdated":"2026-08-27T05:01:25.229Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-08-26T14:34:25.764Z"},"containers":{"cna":{"title":"xfs: avoid UAF on sc->tempip in xrep_tempfile_create","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfs: avoid UAF on sc->tempip in xrep_tempfile_create\n\nLOLLM noticed a potential UAF if the tempfile creation code fails after\nit set sc->tempip.  Fix that."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"84c14ee39dd388d73054181c70b3f42af7ddc238","status":"affected","lessThan":"08a20776ce33a2a52d856911e447c59424f0465a","versionType":"git"},{"version":"84c14ee39dd388d73054181c70b3f42af7ddc238","status":"affected","lessThan":"cd1f876d1bc2e94f271e07c606cacd85b109108a","versionType":"git"},{"version":"84c14ee39dd388d73054181c70b3f42af7ddc238","status":"affected","lessThan":"96246a3200d32a43766152e56bc7ae2d93604d74","versionType":"git"},{"version":"84c14ee39dd388d73054181c70b3f42af7ddc238","status":"affected","lessThan":"0c88e10d12de9ca7cbed1467bb1b52310101bff8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/xfs/scrub/tempfile.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.10","versionType":"semver"},{"version":"6.12.105","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.46","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.10","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/xfs/scrub/tempfile.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/08a20776ce33a2a52d856911e447c59424f0465a"},{"url":"https://git.kernel.org/stable/c/cd1f876d1bc2e94f271e07c606cacd85b109108a"},{"url":"https://git.kernel.org/stable/c/96246a3200d32a43766152e56bc7ae2d93604d74"},{"url":"https://git.kernel.org/stable/c/0c88e10d12de9ca7cbed1467bb1b52310101bff8"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The bug is only reachable via XFS_IOC_SCRUB_METADATA or XFS_IOC_SCRUBV_METADATA ioctl on an open XFS file descriptor (xfs_file_ioctl -> xfs_ioc_scrub_metadata -> xfs_scrub_metadata -> xrep_setup_* -> xrep_tempfile_create); it is not exposed through NFS, SMB, or other network-facing kernel services.\nAC:L - An attacker with ioctl access can deterministically hit the error path by invoking online repair (XFS_SCRUB_IFLAG_REPAIR) and forcing tempfile creation to fail after xfs_icreate sets sc->tempip (e.g., ENOSPC from filling the filesystem or EIO), without races or uncontrollable victim state.\nPR:L - Both scrub ioctl handlers enforce capable(CAP_SYS_ADMIN), which is obtainable by unprivileged users who map root in a user namespace and mount their own XFS filesystem to run online scrub/repair, consistent with other XFS scrub CVE scoring.\nUI:N - Exploitation requires no victim interaction; the attacker issues the scrub/repair ioctl themselves once they have the required privileges and can induce the tempfile-creation failure.\nS:U - Impact is kernel memory corruption and crash within the same kernel security domain during XFS online repair teardown; this does not cross VM, container, or IOMMU security boundaries.\nC:H - On failure after sc->tempip is set, xrep_tempfile_create releases the inode but left a dangling pointer; xchk_teardown then calls xrep_tempfile_rele which performs xfs_is_metadir_inode, xfs_iunlock, and xchk_irele on freed xfs_inode memory—a use-after-free enabling arbitrary kernel read.\nI:H - The stale sc->tempip is dereferenced in xrep_tempfile_rele for locking, metadir cleanup, and inode release on freed memory; UAF on xfs_inode structures can corrupt heap metadata and be leveraged for arbitrary kernel write or control-flow hijacking.\nA:H - Use-after-free on sc->tempip during xchk_teardown provokes double-free, invalid inode lock operations, or kernel oops/panic when online repair setup fails after partial tempfile creation, causing complete host denial of service."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-27T05:01:25.229Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.10","versionEndExcluding":"6.12.105"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.10","versionEndExcluding":"6.18.46"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.10","versionEndExcluding":"7.1.10"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.10","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}