CVE-2026-68442

Source
https://cve.org/CVERecord?id=CVE-2026-68442
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68442.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-68442
Downstream
Published
2026-08-12T00:07:31.981Z
Modified
2026-08-18T03:30:59.209759622Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
btrfs: don't propagate EXTENT_FLAG_LOGGING to split extent maps
Details

In the Linux kernel, the following vulnerability has been resolved:

btrfs: don't propagate EXTENTFLAGLOGGING to split extent maps

When btrfsdropextentmaprange() splits an extent map, the new split maps inherit the original map's flags through a local 'flags' variable. Commit f86f7a75e2fb ("btrfs: use the flags of an extent map to identify the compression type") changed the EXTENTFLAGLOGGING clearing to operate on em->flags instead of that local 'flags' copy, so a split of an extent map that is currently being logged wrongly inherits EXTENTFLAGLOGGING.

The flag is then never cleared on the split, and when it is freed while still on the inode's modifiedextents list (for example by the extent map shrinker) it trips the WARNON(!listempty(&em->list)) in btrfsfreeextentmap() and leads to a use-after-free.

Clear EXTENTFLAGLOGGING from the local 'flags' copy used for the splits and only clear EXTENTFLAGPINNED from em->flags, restoring the behaviour prior to f86f7a75e2fb.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68442.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f86f7a75e2fb5fd7d31d00eab8a392f97ba42ce9
Fixed
2a9246a424f45f33a1b8367052611ebe874868ad
Fixed
9304713b70e7e1450e3a76e758836fe5391bfa95
Fixed
0e465c63f103a5ce6849614d6bda048d70eebec8
Fixed
5eff4d5b17fa1950e80bfd1ba43dc0699e61a644

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68442.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.8.0
Fixed
6.12.101
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.42
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68442.json"