{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-80531","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-08-26T14:34:25.764Z","datePublished":"2026-08-26T14:37:08.594Z","dateUpdated":"2026-08-27T05:01:25.229Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-08-27T05:01:25.229Z"},"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."}],"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."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/xfs/scrub/tempfile.c"],"versions":[{"version":"84c14ee39dd388d73054181c70b3f42af7ddc238","lessThan":"08a20776ce33a2a52d856911e447c59424f0465a","status":"affected","versionType":"git"},{"version":"84c14ee39dd388d73054181c70b3f42af7ddc238","lessThan":"cd1f876d1bc2e94f271e07c606cacd85b109108a","status":"affected","versionType":"git"},{"version":"84c14ee39dd388d73054181c70b3f42af7ddc238","lessThan":"96246a3200d32a43766152e56bc7ae2d93604d74","status":"affected","versionType":"git"},{"version":"84c14ee39dd388d73054181c70b3f42af7ddc238","lessThan":"0c88e10d12de9ca7cbed1467bb1b52310101bff8","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/xfs/scrub/tempfile.c"],"versions":[{"version":"6.10","status":"affected"},{"version":"0","lessThan":"6.10","status":"unaffected","versionType":"semver"},{"version":"6.12.105","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.46","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.1.10","lessThanOrEqual":"7.1.*","status":"unaffected","versionType":"semver"},{"version":"7.2","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"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"}]}]}],"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"}],"title":"xfs: avoid UAF on sc->tempip in xrep_tempfile_create","x_generator":{"engine":"bippy-1.2.0"}}}}