{"id":"CVE-2026-93798","revision":"ac094325b36f41a9a8d7e61c2b9bc55c","records":[{"revision":"ac094325b36f41a9a8d7e61c2b9bc55c","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-93798","aliases":[],"title":"btrfs: fix reloc root cleanup in merge_reloc_roots()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix reloc root cleanup in merge_reloc_roots()\n\nIf the root we got has zero root refs in its root item, we are resetting\nthe root's ->reloc_root without using barriers like we do everywhere else.\nSashiko complained about this while reviewing another patch, and it's\ncorrect (see the Link tag below).\n\nAlso, we should not clear BTRFS_ROOT_DEAD_RELOC_TREE from the root unless\nthe root points to the reloc root we have.\n\nFix this by using clear_reloc_root(), which issues the memory barrier\nafter setting the root's ->reloc_root to NULL and before clearing the bit\nBTRFS_ROOT_DEAD_RELOC_TREE from the root.","state":0,"publishedAt":"2026-09-24T16:02:31.291+00:00","modifiedAt":"2026-10-03T10:57:32.55+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"fs/btrfs/relocation.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"1dae7e0e58b484eaa43d530f211098fdeeb0f404\",\n                            \"lessThan\": \"29531470b1bf1e8bd2df4941fe913106edbca615\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"1dae7e0e58b484eaa43d530f211098fdeeb0f404\",\n                            \"lessThan\": \"415f8665a969d3c906e4fd7c90fcbb4b357886f6\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"1dae7e0e58b484eaa43d530f211098fdeeb0f404\",\n                            \"lessThan\": \"ee695a968aa73b1e67ccbf2133dc0e54381d32b2\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"1dae7e0e58b484eaa43d530f211098fdeeb0f404\",\n                            \"lessThan\": \"0bc25f0a2d1b3e0a691431c4d7aef36afcd527c5\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"1dae7e0e58b484eaa43d530f211098fdeeb0f404\",\n                            \"lessThan\": \"ab48583aa9948205ff9a6470e23dbff74c565e24\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"1dae7e0e58b484eaa43d530f211098fdeeb0f404\",\n                            \"lessThan\": \"63d6b1f04cd91c825329712aa526215ffa5d11ca\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"1dae7e0e58b484eaa43d530f211098fdeeb0f404\",\n                            \"lessThan\": \"b78fe9563e2d5ae47805f1e5dc722c91fd30e1f8\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"ee08663380ffd5a45a1c87580fbc305e8413c235\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"33823378ff2b510fd7b566f25bb18438aeb9b23b\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"5.4.54\",\n                            \"lessThan\": \"5.5\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"5.7.11\",\n                            \"lessThan\": \"5.8\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"fs/btrfs/relocation.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"5.8\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"5.8\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"5.10.271\",\n                            \"lessThanOrEqual\": \"5.10.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"5.15.222\",\n                            \"lessThanOrEqual\": \"5.15.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.1.189\",\n                            \"lessThanOrEqual\": \"6.1.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.6.158\",\n                            \"lessThanOrEqual\": \"6.6.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.12.111\",\n                            \"lessThanOrEqual\": \"6.12.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.18.53\",\n                            \"lessThanOrEqual\": \"6.18.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.2\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"severity":"HIGH"}],"references":["https://git.kernel.org/stable/c/29531470b1bf1e8bd2df4941fe913106edbca615","https://git.kernel.org/stable/c/415f8665a969d3c906e4fd7c90fcbb4b357886f6","https://git.kernel.org/stable/c/ee695a968aa73b1e67ccbf2133dc0e54381d32b2","https://git.kernel.org/stable/c/0bc25f0a2d1b3e0a691431c4d7aef36afcd527c5","https://git.kernel.org/stable/c/ab48583aa9948205ff9a6470e23dbff74c565e24","https://git.kernel.org/stable/c/63d6b1f04cd91c825329712aa526215ffa5d11ca","https://git.kernel.org/stable/c/b78fe9563e2d5ae47805f1e5dc722c91fd30e1f8"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-93798","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-93798","identifiers":["CVE-2026-93798"]},"retained":false,"historicalAffected":[]}],"coverage":[]}