{"api_version":"1","generated_at":"2026-08-12T07:38:39+00:00","cve":"CVE-2026-68442","urls":{"html":"https://cve.report/CVE-2026-68442","api":"https://cve.report/api/cve/CVE-2026-68442.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-68442","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-68442"},"summary":{"title":"btrfs: don't propagate EXTENT_FLAG_LOGGING to split extent maps","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: don't propagate EXTENT_FLAG_LOGGING to split extent maps\n\nWhen btrfs_drop_extent_map_range() splits an extent map, the new split\nmaps inherit the original map's flags through a local 'flags' variable.\nCommit f86f7a75e2fb (\"btrfs: use the flags of an extent map to identify\nthe compression type\") changed the EXTENT_FLAG_LOGGING clearing to\noperate on em->flags instead of that local 'flags' copy, so a split of\nan extent map that is currently being logged wrongly inherits\nEXTENT_FLAG_LOGGING.\n\nThe flag is then never cleared on the split, and when it is freed while\nstill on the inode's modified_extents list (for example by the extent\nmap shrinker) it trips the WARN_ON(!list_empty(&em->list)) in\nbtrfs_free_extent_map() and leads to a use-after-free.\n\nClear EXTENT_FLAG_LOGGING from the local 'flags' copy used for the\nsplits and only clear EXTENT_FLAG_PINNED from em->flags, restoring the\nbehaviour prior to f86f7a75e2fb.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-08-12 00:17:44","updated_at":"2026-08-12 00:17:44"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/5eff4d5b17fa1950e80bfd1ba43dc0699e61a644","name":"https://git.kernel.org/stable/c/5eff4d5b17fa1950e80bfd1ba43dc0699e61a644","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/2a9246a424f45f33a1b8367052611ebe874868ad","name":"https://git.kernel.org/stable/c/2a9246a424f45f33a1b8367052611ebe874868ad","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/9304713b70e7e1450e3a76e758836fe5391bfa95","name":"https://git.kernel.org/stable/c/9304713b70e7e1450e3a76e758836fe5391bfa95","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/0e465c63f103a5ce6849614d6bda048d70eebec8","name":"https://git.kernel.org/stable/c/0e465c63f103a5ce6849614d6bda048d70eebec8","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-68442","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-68442","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected f86f7a75e2fb5fd7d31d00eab8a392f97ba42ce9 2a9246a424f45f33a1b8367052611ebe874868ad git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected f86f7a75e2fb5fd7d31d00eab8a392f97ba42ce9 9304713b70e7e1450e3a76e758836fe5391bfa95 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected f86f7a75e2fb5fd7d31d00eab8a392f97ba42ce9 0e465c63f103a5ce6849614d6bda048d70eebec8 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected f86f7a75e2fb5fd7d31d00eab8a392f97ba42ce9 5eff4d5b17fa1950e80bfd1ba43dc0699e61a644 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.8","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.8 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.101 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.42 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.1.6 7.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.2-rc5 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/btrfs/extent_map.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"2a9246a424f45f33a1b8367052611ebe874868ad","status":"affected","version":"f86f7a75e2fb5fd7d31d00eab8a392f97ba42ce9","versionType":"git"},{"lessThan":"9304713b70e7e1450e3a76e758836fe5391bfa95","status":"affected","version":"f86f7a75e2fb5fd7d31d00eab8a392f97ba42ce9","versionType":"git"},{"lessThan":"0e465c63f103a5ce6849614d6bda048d70eebec8","status":"affected","version":"f86f7a75e2fb5fd7d31d00eab8a392f97ba42ce9","versionType":"git"},{"lessThan":"5eff4d5b17fa1950e80bfd1ba43dc0699e61a644","status":"affected","version":"f86f7a75e2fb5fd7d31d00eab8a392f97ba42ce9","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/btrfs/extent_map.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.8"},{"lessThan":"6.8","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.101","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.42","versionType":"semver"},{"lessThanOrEqual":"7.1.*","status":"unaffected","version":"7.1.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.2-rc5","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.101","versionStartIncluding":"6.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.42","versionStartIncluding":"6.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.1.6","versionStartIncluding":"6.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.2-rc5","versionStartIncluding":"6.8","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: don't propagate EXTENT_FLAG_LOGGING to split extent maps\n\nWhen btrfs_drop_extent_map_range() splits an extent map, the new split\nmaps inherit the original map's flags through a local 'flags' variable.\nCommit f86f7a75e2fb (\"btrfs: use the flags of an extent map to identify\nthe compression type\") changed the EXTENT_FLAG_LOGGING clearing to\noperate on em->flags instead of that local 'flags' copy, so a split of\nan extent map that is currently being logged wrongly inherits\nEXTENT_FLAG_LOGGING.\n\nThe flag is then never cleared on the split, and when it is freed while\nstill on the inode's modified_extents list (for example by the extent\nmap shrinker) it trips the WARN_ON(!list_empty(&em->list)) in\nbtrfs_free_extent_map() and leads to a use-after-free.\n\nClear EXTENT_FLAG_LOGGING from the local 'flags' copy used for the\nsplits and only clear EXTENT_FLAG_PINNED from em->flags, restoring the\nbehaviour prior to f86f7a75e2fb."}],"providerMetadata":{"dateUpdated":"2026-08-12T00:07:31.981Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/2a9246a424f45f33a1b8367052611ebe874868ad"},{"url":"https://git.kernel.org/stable/c/9304713b70e7e1450e3a76e758836fe5391bfa95"},{"url":"https://git.kernel.org/stable/c/0e465c63f103a5ce6849614d6bda048d70eebec8"},{"url":"https://git.kernel.org/stable/c/5eff4d5b17fa1950e80bfd1ba43dc0699e61a644"}],"title":"btrfs: don't propagate EXTENT_FLAG_LOGGING to split extent maps","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-68442","datePublished":"2026-08-12T00:07:31.981Z","dateReserved":"2026-07-30T09:28:09.394Z","dateUpdated":"2026-08-12T00:07:31.981Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-08-12 00:17:44","lastModifiedDate":"2026-08-12 00:17:44","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"68442","Ordinal":"1","Title":"btrfs: don't propagate EXTENT_FLAG_LOGGING to split extent maps","CVE":"CVE-2026-68442","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"68442","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: don't propagate EXTENT_FLAG_LOGGING to split extent maps\n\nWhen btrfs_drop_extent_map_range() splits an extent map, the new split\nmaps inherit the original map's flags through a local 'flags' variable.\nCommit f86f7a75e2fb (\"btrfs: use the flags of an extent map to identify\nthe compression type\") changed the EXTENT_FLAG_LOGGING clearing to\noperate on em->flags instead of that local 'flags' copy, so a split of\nan extent map that is currently being logged wrongly inherits\nEXTENT_FLAG_LOGGING.\n\nThe flag is then never cleared on the split, and when it is freed while\nstill on the inode's modified_extents list (for example by the extent\nmap shrinker) it trips the WARN_ON(!list_empty(&em->list)) in\nbtrfs_free_extent_map() and leads to a use-after-free.\n\nClear EXTENT_FLAG_LOGGING from the local 'flags' copy used for the\nsplits and only clear EXTENT_FLAG_PINNED from em->flags, restoring the\nbehaviour prior to f86f7a75e2fb.","Type":"Description","Title":"btrfs: don't propagate EXTENT_FLAG_LOGGING to split extent maps"}]}}}