Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2024-39496

published high CVSS 3.1 · 7.8

btrfs: zoned: fix use-after-free due to race with dev replace

Published
12 Jul 2024, 12:20:31 UTC
Updated
05 Aug 2026, 11:33:45 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux5b316468983dfa9473ff0f1c42e4e30b4c267141 to < 17765964703b88d8befd899f8501150bb7e07e43 · 5b316468983dfa9473ff0f1c42e4e30b4c267141 to < 092571ef9a812566c8f2c9038d9c2a64c49788d6 · 5b316468983dfa9473ff0f1c42e4e30b4c267141 to < a0cc006f4214b87e70983c692e05bb36c59b5752 · 5b316468983dfa9473ff0f1c42e4e30b4c267141 to < 0090d6e1b210551e63cf43958dc7a1ec942cdde9 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.11 (affected) · 0 to < 5.11 (unaffected · semver) · 6.1.95 through 6.1.* (unaffected · semver) · 6.6.35 through 6.6.* (unaffected · semver) · 6.9.6 through 6.9.* (unaffected · semver) · 6.10 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2025-836 Fixed Not stated Amazon Linux assessment
Debian bookworm linux Advisory build 6.1.99-1 DSA-5731-1
SUSE / openSUSE SLE-15-SP6 cluster-md-kmp-defaultaarch64 Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
Debian bullseye linux-6.1 Advisory build 6.1.119-1~deb11u1 DLA-4008-1
SUSE / openSUSE SLE-15-SP6 cluster-md-kmp-defaultppc64le Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
SUSE / openSUSE SLE-15-SP6 cluster-md-kmp-defaults390x Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 cluster-md-kmp-defaultx86_64 Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 cluster-md-kmp-rtx86_64 Advisory build 6.4.0-150600.10.5.1 SUSE-SU-2024:2973-1
SUSE / openSUSE SLE-15-SP6 dlm-kmp-defaultaarch64 Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 dlm-kmp-defaultppc64le Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 dlm-kmp-defaults390x Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 dlm-kmp-defaultx86_64 Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 dlm-kmp-rtx86_64 Advisory build 6.4.0-150600.10.5.1 SUSE-SU-2024:2973-1
SUSE / openSUSE SLE-15-SP6 gfs2-kmp-defaultaarch64 Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 gfs2-kmp-defaultppc64le Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 gfs2-kmp-defaults390x Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 gfs2-kmp-defaultx86_64 Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 gfs2-kmp-rtx86_64 Advisory build 6.4.0-150600.10.5.1 SUSE-SU-2024:2973-1
SUSE / openSUSE SLE-15-SP6 kernel-64kbaarch64 Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 kernel-64kb-develaarch64 Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 kernel-azureaarch64 Advisory build 6.4.0-150600.8.8.2 SUSE-SU-2024:2896-1
SUSE / openSUSE SLE-15-SP6 kernel-azurex86_64 Advisory build 6.4.0-150600.8.8.2 SUSE-SU-2024:2896-1
SUSE / openSUSE SLE-15-SP6 kernel-azure-develaarch64 Advisory build 6.4.0-150600.8.8.2 SUSE-SU-2024:2896-1
SUSE / openSUSE SLE-15-SP6 kernel-azure-develx86_64 Advisory build 6.4.0-150600.8.8.2 SUSE-SU-2024:2896-1
SUSE / openSUSE SLE-15-SP6 kernel-defaultaarch64 Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 kernel-defaultppc64le Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 kernel-defaults390x Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 kernel-defaultx86_64 Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 kernel-default-baseaarch64 Advisory build 6.4.0-150600.23.17.1.150600.12.6.2 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 kernel-default-baseppc64le Advisory build 6.4.0-150600.23.17.1.150600.12.6.2 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 kernel-default-basex86_64 Advisory build 6.4.0-150600.23.17.1.150600.12.6.2 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 kernel-default-develaarch64 Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 kernel-default-develppc64le Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 kernel-default-devels390x Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 kernel-default-develx86_64 Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 kernel-default-extrax86_64 Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 kernel-default-livepatchppc64le Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 kernel-default-livepatchs390x Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 kernel-default-livepatchx86_64 Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 kernel-default-livepatch-develppc64le Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 kernel-default-livepatch-devels390x Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 kernel-default-livepatch-develx86_64 Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 kernel-develnoarch Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 kernel-devel-azurenoarch Advisory build 6.4.0-150600.8.8.2 SUSE-SU-2024:2896-1
SUSE / openSUSE SLE-15-SP6 kernel-devel-rtnoarch Advisory build 6.4.0-150600.10.5.1 SUSE-SU-2024:2973-1
SUSE / openSUSE SLE-15-SP6 kernel-docsnoarch Advisory build 6.4.0-150600.23.17.3 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 kernel-livepatch-6_4_0-150600_10_5-rtx86_64 Advisory build 1-150600.1.5.1 SUSE-SU-2024:2973-1
SUSE / openSUSE SLE-15-SP6 kernel-livepatch-6_4_0-150600_23_17-defaultppc64le Advisory build 1-150600.13.3.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 kernel-livepatch-6_4_0-150600_23_17-defaults390x Advisory build 1-150600.13.3.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 kernel-livepatch-6_4_0-150600_23_17-defaultx86_64 Advisory build 1-150600.13.3.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 kernel-macrosnoarch Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 kernel-obs-buildaarch64 Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 kernel-obs-buildppc64le Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 kernel-obs-builds390x Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 kernel-obs-buildx86_64 Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 kernel-rtx86_64 Advisory build 6.4.0-150600.10.5.1 SUSE-SU-2024:2973-1
SUSE / openSUSE SLE-15-SP6 kernel-rt-develx86_64 Advisory build 6.4.0-150600.10.5.1 SUSE-SU-2024:2973-1
SUSE / openSUSE SLE-15-SP6 kernel-rt_debugx86_64 Advisory build 6.4.0-150600.10.5.1 SUSE-SU-2024:2973-1
SUSE / openSUSE SLE-15-SP6 kernel-rt_debug-develx86_64 Advisory build 6.4.0-150600.10.5.1 SUSE-SU-2024:2973-1
SUSE / openSUSE SLE-15-SP6 kernel-sourcenoarch Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 kernel-source-azurenoarch Advisory build 6.4.0-150600.8.8.2 SUSE-SU-2024:2896-1
SUSE / openSUSE SLE-15-SP6 kernel-source-rtnoarch Advisory build 6.4.0-150600.10.5.1 SUSE-SU-2024:2973-1
SUSE / openSUSE SLE-15-SP6 kernel-symsaarch64 Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 kernel-symsppc64le Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 kernel-symss390x Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 kernel-symsx86_64 Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 kernel-syms-azureaarch64 Advisory build 6.4.0-150600.8.8.1 SUSE-SU-2024:2896-1
SUSE / openSUSE SLE-15-SP6 kernel-syms-azurex86_64 Advisory build 6.4.0-150600.8.8.1 SUSE-SU-2024:2896-1
SUSE / openSUSE SLE-15-SP6 kernel-syms-rtx86_64 Advisory build 6.4.0-150600.10.5.1 SUSE-SU-2024:2973-1
SUSE / openSUSE SLE-15-SP6 kernel-zfcpdumps390x Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 ocfs2-kmp-defaultaarch64 Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 ocfs2-kmp-defaultppc64le Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 ocfs2-kmp-defaults390x Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 ocfs2-kmp-defaultx86_64 Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 ocfs2-kmp-rtx86_64 Advisory build 6.4.0-150600.10.5.1 SUSE-SU-2024:2973-1
SUSE / openSUSE SLE-15-SP6 reiserfs-kmp-defaultaarch64 Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 reiserfs-kmp-defaultppc64le Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 reiserfs-kmp-defaults390x Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE SLE-15-SP6 reiserfs-kmp-defaultx86_64 Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE openSUSE-Leap-15.6 cluster-md-kmp-64kbaarch64 Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE openSUSE-Leap-15.6 cluster-md-kmp-azureaarch64 Advisory build 6.4.0-150600.8.8.2 SUSE-SU-2024:2896-1
SUSE / openSUSE openSUSE-Leap-15.6 cluster-md-kmp-azurex86_64 Advisory build 6.4.0-150600.8.8.2 SUSE-SU-2024:2896-1
SUSE / openSUSE openSUSE-Leap-15.6 cluster-md-kmp-defaultaarch64 Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE openSUSE-Leap-15.6 cluster-md-kmp-defaultppc64le Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE openSUSE-Leap-15.6 cluster-md-kmp-defaults390x Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE openSUSE-Leap-15.6 cluster-md-kmp-defaultx86_64 Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE openSUSE-Leap-15.6 cluster-md-kmp-rtx86_64 Advisory build 6.4.0-150600.10.5.1 SUSE-SU-2024:2973-1
SUSE / openSUSE openSUSE-Leap-15.6 dlm-kmp-64kbaarch64 Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE openSUSE-Leap-15.6 dlm-kmp-azureaarch64 Advisory build 6.4.0-150600.8.8.2 SUSE-SU-2024:2896-1
SUSE / openSUSE openSUSE-Leap-15.6 dlm-kmp-azurex86_64 Advisory build 6.4.0-150600.8.8.2 SUSE-SU-2024:2896-1
SUSE / openSUSE openSUSE-Leap-15.6 dlm-kmp-defaultaarch64 Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE openSUSE-Leap-15.6 dlm-kmp-defaultppc64le Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE openSUSE-Leap-15.6 dlm-kmp-defaults390x Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE openSUSE-Leap-15.6 dlm-kmp-defaultx86_64 Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE openSUSE-Leap-15.6 dlm-kmp-rtx86_64 Advisory build 6.4.0-150600.10.5.1 SUSE-SU-2024:2973-1
SUSE / openSUSE openSUSE-Leap-15.6 dtb-allwinneraarch64 Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE openSUSE-Leap-15.6 dtb-alteraaarch64 Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE openSUSE-Leap-15.6 dtb-amazonaarch64 Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE openSUSE-Leap-15.6 dtb-amdaarch64 Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE openSUSE-Leap-15.6 dtb-amlogicaarch64 Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1
SUSE / openSUSE openSUSE-Leap-15.6 dtb-apmaarch64 Advisory build 6.4.0-150600.23.17.1 SUSE-SU-2024:2802-1

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: btrfs: zoned: fix use-after-free due to race with dev replace While loading a zone's info during creation of a block group, we can race with a device replace operation and then trigger a use-after-free on the device that was just replaced (source device of the replace operation). This happens because at btrfs_load_zone_info() we extract a device from the chunk map into a local variable and then use the device while not under the protection of the device replace rwsem. So if there's a device replace operation happening when we extract the device and that device is the source of the replace operation, we will trigger a use-after-free if before we finish using the device the replace operation finishes and frees the device. Fix this by enlarging the critical section under the protection of the device replace rwsem so that all uses of the device are done inside the critical section.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

23

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The vulnerable path is entered through ordinary local filesystem activity (write/create syscalls forcing chunk allocation on a mounted zoned btrfs); no network or adjacent-network interface is involved. AC:L - The attacker drives the block-group-creation side of the race continuously and at will, and the window is unusually wide because the reader blocks in report-zones I/O holding the stale device pointer while the freeing side runs synchronize_rcu() before kfree(), so repeated attempts yield reliable success once a replace is in flight. PR:L - No capability is checked anywhere on the btrfs_chunk_alloc → btrfs_create_chunk → btrfs_make_block_group → btrfs_load_zone_info path; any unprivileged local user with write access to the zoned btrfs mount can force new block group creation and execute the use-after-free. UI:N - The attacker triggers the vulnerable code entirely through their own filesystem writes; no victim must open a file, click anything, or otherwise interact. S:U - The corruption occurs in kernel memory and is exploited by a local user against the same kernel; there is no crossing into a different security authority such as a hypervisor or IOMMU boundary. C:H - The freed struct btrfs_device is dereferenced for bdev, name and zone_info, and test_bit() reads through the freed zone_info->seq_zones bitmap; after reclaiming the kmalloc'd object with sprayed data this yields an attacker-directed kernel memory read. I:H - btrfs_dev_clear_zone_empty() performs a __clear_bit() write through zone_info->empty_zones with both the base pointer and the bit index shift read out of the freed object, giving a controlled write primitive suitable for privilege escalation. A:H - Even without successful reclaim, dereferencing the freed device and issuing blkdev_report_zones() on a closed block device oopses the kernel inside a transaction, panicking the system or forcing the filesystem read-only.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 5b316468983dfa9473ff0f1c42e4e30b4c267141 to < 17765964703b88d8befd899f8501150bb7e07e43 (affected · git)5b316468983dfa9473ff0f1c42e4e30b4c267141 to < 092571ef9a812566c8f2c9038d9c2a64c49788d6 (affected · git)5b316468983dfa9473ff0f1c42e4e30b4c267141 to < a0cc006f4214b87e70983c692e05bb36c59b5752 (affected · git)5b316468983dfa9473ff0f1c42e4e30b4c267141 to < 0090d6e1b210551e63cf43958dc7a1ec942cdde9 (affected · git)Default: unaffected Linux · cna
Linux Linux 5.11 (affected)0 to < 5.11 (unaffected · semver)6.1.95 through 6.1.* (unaffected · semver)6.6.35 through 6.6.* (unaffected · semver)6.9.6 through 6.9.* (unaffected · semver)6.10 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

5

Provider assertions

3

Linux · cna

btrfs: zoned: fix use-after-free due to race with dev replace

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
22fb2fc102d356f7047c5f57b977048fcc69018d56c31692168c8d01106b52b5
Ingested
23 Sep 2026, 08:25:18 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected