{"id":"CVE-2026-80535","state":"PUBLISHED","title":"xfs: don't double-lock when deleting a self-referential directory","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfs: don't double-lock when deleting a self-referential directory\n\nLOLLM notices that the dirtree scrubber can detect a directory that\nrefers to itself.  In this case, it's not correct for the directory tree\nrepair code to try to iolock/ilock both sc->ip and dp, because they're\nthe same inode.  Fix this by detecting that corner case and handling it\nappropriately.","publishedAt":"2026-08-26T14:37:10.985Z","updatedAt":"2026-08-26T14:37:10.985Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3f31406aef493b3f19020909d29974e28253f91c","status":"affected","lessThan":"17bc347cbdfb125eddac0a815b1f6c1f6eb56676","versionType":"git"},{"version":"3f31406aef493b3f19020909d29974e28253f91c","status":"affected","lessThan":"ce2a7006ec5ed88db1b1669124ec85bc1714ccaa","versionType":"git"},{"version":"3f31406aef493b3f19020909d29974e28253f91c","status":"affected","lessThan":"c575904471570e69bce40fa638365c6c0403e2ff","versionType":"git"},{"version":"3f31406aef493b3f19020909d29974e28253f91c","status":"affected","lessThan":"5fc643fb86599e29b38e7b2c2680b4b15bf8f772","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/xfs/scrub/dirtree_repair.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/dirtree_repair.c"]}],"references":["https://git.kernel.org/stable/c/17bc347cbdfb125eddac0a815b1f6c1f6eb56676","https://git.kernel.org/stable/c/ce2a7006ec5ed88db1b1669124ec85bc1714ccaa","https://git.kernel.org/stable/c/c575904471570e69bce40fa638365c6c0403e2ff","https://git.kernel.org/stable/c/5fc643fb86599e29b38e7b2c2680b4b15bf8f772"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:07.220Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/80xxx/CVE-2026-80535.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-80535","state":"PUBLISHED","datePublished":"2026-08-26T14:37:10.985Z","dateUpdated":"2026-08-26T14:37:10.985Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-08-26T14:34:25.764Z"},"containers":{"cna":{"title":"xfs: don't double-lock when deleting a self-referential directory","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfs: don't double-lock when deleting a self-referential directory\n\nLOLLM notices that the dirtree scrubber can detect a directory that\nrefers to itself.  In this case, it's not correct for the directory tree\nrepair code to try to iolock/ilock both sc->ip and dp, because they're\nthe same inode.  Fix this by detecting that corner case and handling it\nappropriately."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3f31406aef493b3f19020909d29974e28253f91c","status":"affected","lessThan":"17bc347cbdfb125eddac0a815b1f6c1f6eb56676","versionType":"git"},{"version":"3f31406aef493b3f19020909d29974e28253f91c","status":"affected","lessThan":"ce2a7006ec5ed88db1b1669124ec85bc1714ccaa","versionType":"git"},{"version":"3f31406aef493b3f19020909d29974e28253f91c","status":"affected","lessThan":"c575904471570e69bce40fa638365c6c0403e2ff","versionType":"git"},{"version":"3f31406aef493b3f19020909d29974e28253f91c","status":"affected","lessThan":"5fc643fb86599e29b38e7b2c2680b4b15bf8f772","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/xfs/scrub/dirtree_repair.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/dirtree_repair.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/17bc347cbdfb125eddac0a815b1f6c1f6eb56676"},{"url":"https://git.kernel.org/stable/c/ce2a7006ec5ed88db1b1669124ec85bc1714ccaa"},{"url":"https://git.kernel.org/stable/c/c575904471570e69bce40fa638365c6c0403e2ff"},{"url":"https://git.kernel.org/stable/c/5fc643fb86599e29b38e7b2c2680b4b15bf8f772"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-26T14:37:10.985Z"},"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"}}}}}