{"id":"CVE-2026-68450","state":"PUBLISHED","title":"btrfs: free mapping node on duplicate reloc root insert","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: free mapping node on duplicate reloc root insert\n\n__add_reloc_root() allocates a mapping_node before inserting it into\nrc->reloc_root_tree.  If rb_simple_insert() finds an existing entry, it\nreturns the existing rb_node and leaves the newly allocated node unlinked.\n\nThe error path then returns -EEXIST without freeing the new node.  Since\nthe node was never inserted into reloc_root_tree, the later cleanup in\nput_reloc_control() cannot find it either.\n\nFree the newly allocated node before returning -EEXIST.\n\nThe callers currently assert that -EEXIST should not happen, so this is a\ndefensive cleanup for an unexpected duplicate insert path.  If the path is\never reached, the local allocation should still be released.","publishedAt":"2026-08-12T00:51:48.970Z","updatedAt":"2026-08-19T16:35:45.490Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"57a304cfd43b2b4a5b44b8f5dc026abb34183068","status":"affected","lessThan":"29d9746812d8b7c37d594f484e994fd552c3ec33","versionType":"git"},{"version":"57a304cfd43b2b4a5b44b8f5dc026abb34183068","status":"affected","lessThan":"b7c5b8e1d5f0779dfbabc3068b7ac0f12e53b3a8","versionType":"git"},{"version":"57a304cfd43b2b4a5b44b8f5dc026abb34183068","status":"affected","lessThan":"92bedc0455552b42ada1a1f42b0e3a8593cdfccc","versionType":"git"},{"version":"57a304cfd43b2b4a5b44b8f5dc026abb34183068","status":"affected","lessThan":"14a8be9428435ee17f17fae7991215c246b7fd43","versionType":"git"},{"version":"57a304cfd43b2b4a5b44b8f5dc026abb34183068","status":"affected","lessThan":"797dc567146c7e3c4f8d9680e4fbc76e0a6d9151","versionType":"git"},{"version":"57a304cfd43b2b4a5b44b8f5dc026abb34183068","status":"affected","lessThan":"ae0629ff9ccb836416ada129f4edc7efea6eaaad","versionType":"git"},{"version":"57a304cfd43b2b4a5b44b8f5dc026abb34183068","status":"affected","lessThan":"6a8269b6459ed870a8156c106a0f597383907872","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/btrfs/relocation.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.13","versionType":"semver"},{"version":"5.15.216","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.183","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.148","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.101","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.42","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.6","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/btrfs/relocation.c"]}],"references":["https://git.kernel.org/stable/c/29d9746812d8b7c37d594f484e994fd552c3ec33","https://git.kernel.org/stable/c/b7c5b8e1d5f0779dfbabc3068b7ac0f12e53b3a8","https://git.kernel.org/stable/c/92bedc0455552b42ada1a1f42b0e3a8593cdfccc","https://git.kernel.org/stable/c/14a8be9428435ee17f17fae7991215c246b7fd43","https://git.kernel.org/stable/c/797dc567146c7e3c4f8d9680e4fbc76e0a6d9151","https://git.kernel.org/stable/c/ae0629ff9ccb836416ada129f4edc7efea6eaaad","https://git.kernel.org/stable/c/6a8269b6459ed870a8156c106a0f597383907872"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:49.727Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/68xxx/CVE-2026-68450.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-68450","state":"PUBLISHED","datePublished":"2026-08-12T00:51:48.970Z","dateUpdated":"2026-08-19T16:35:45.490Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-07-30T09:28:09.395Z"},"containers":{"cna":{"title":"btrfs: free mapping node on duplicate reloc root insert","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: free mapping node on duplicate reloc root insert\n\n__add_reloc_root() allocates a mapping_node before inserting it into\nrc->reloc_root_tree.  If rb_simple_insert() finds an existing entry, it\nreturns the existing rb_node and leaves the newly allocated node unlinked.\n\nThe error path then returns -EEXIST without freeing the new node.  Since\nthe node was never inserted into reloc_root_tree, the later cleanup in\nput_reloc_control() cannot find it either.\n\nFree the newly allocated node before returning -EEXIST.\n\nThe callers currently assert that -EEXIST should not happen, so this is a\ndefensive cleanup for an unexpected duplicate insert path.  If the path is\never reached, the local allocation should still be released."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"57a304cfd43b2b4a5b44b8f5dc026abb34183068","status":"affected","lessThan":"29d9746812d8b7c37d594f484e994fd552c3ec33","versionType":"git"},{"version":"57a304cfd43b2b4a5b44b8f5dc026abb34183068","status":"affected","lessThan":"b7c5b8e1d5f0779dfbabc3068b7ac0f12e53b3a8","versionType":"git"},{"version":"57a304cfd43b2b4a5b44b8f5dc026abb34183068","status":"affected","lessThan":"92bedc0455552b42ada1a1f42b0e3a8593cdfccc","versionType":"git"},{"version":"57a304cfd43b2b4a5b44b8f5dc026abb34183068","status":"affected","lessThan":"14a8be9428435ee17f17fae7991215c246b7fd43","versionType":"git"},{"version":"57a304cfd43b2b4a5b44b8f5dc026abb34183068","status":"affected","lessThan":"797dc567146c7e3c4f8d9680e4fbc76e0a6d9151","versionType":"git"},{"version":"57a304cfd43b2b4a5b44b8f5dc026abb34183068","status":"affected","lessThan":"ae0629ff9ccb836416ada129f4edc7efea6eaaad","versionType":"git"},{"version":"57a304cfd43b2b4a5b44b8f5dc026abb34183068","status":"affected","lessThan":"6a8269b6459ed870a8156c106a0f597383907872","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/btrfs/relocation.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.13","versionType":"semver"},{"version":"5.15.216","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.183","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.148","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.101","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.42","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.6","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/btrfs/relocation.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/29d9746812d8b7c37d594f484e994fd552c3ec33"},{"url":"https://git.kernel.org/stable/c/b7c5b8e1d5f0779dfbabc3068b7ac0f12e53b3a8"},{"url":"https://git.kernel.org/stable/c/92bedc0455552b42ada1a1f42b0e3a8593cdfccc"},{"url":"https://git.kernel.org/stable/c/14a8be9428435ee17f17fae7991215c246b7fd43"},{"url":"https://git.kernel.org/stable/c/797dc567146c7e3c4f8d9680e4fbc76e0a6d9151"},{"url":"https://git.kernel.org/stable/c/ae0629ff9ccb836416ada129f4edc7efea6eaaad"},{"url":"https://git.kernel.org/stable/c/6a8269b6459ed870a8156c106a0f597383907872"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-19T16:35:45.490Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"5.15.216"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"6.1.183"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"6.6.148"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"6.12.101"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"6.18.42"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"7.1.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}