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-26616

published

btrfs: scrub: avoid use-after-free when chunk length is not 64K aligned

Published
29 Feb 2024, 15:52:19 UTC
Updated
11 May 2026, 20:00:50 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxe02ee89baa66c40e1002cf8b09141fce7265e0f5 to < 642b9c520ef2f104277ad1f902f8526edbe087fb · e02ee89baa66c40e1002cf8b09141fce7265e0f5 to < 34de0f04684ec00c093a0455648be055f0e8e24f · e02ee89baa66c40e1002cf8b09141fce7265e0f5 to < f546c4282673497a06ecb6190b50ae7f6c85b02f · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.4 (affected) · 0 to < 6.4 (unaffected · semver) · 6.6.15 through 6.6.* (unaffected · semver) · 6.7.3 through 6.7.* (unaffected · semver) · 6.8 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 evaluation Not Affected Not required Amazon Linux assessment
Ubuntu jammy linux-azure-6.5 Advisory build 6.5.0-1022.23~22.04.1 USN-6819-1
Ubuntu jammy linux-azure-6.5-cloud-tools-6.5.0-1022 Advisory build 6.5.0-1022.23~22.04.1 USN-6819-1
Ubuntu jammy linux-azure-6.5-headers-6.5.0-1022 Advisory build 6.5.0-1022.23~22.04.1 USN-6819-1
Ubuntu jammy linux-azure-6.5-tools-6.5.0-1022 Advisory build 6.5.0-1022.23~22.04.1 USN-6819-1
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Ubuntu jammy linux-buildinfo-6.5.0-1015-starfive Advisory build 6.5.0-1015.16~22.04.1 USN-6819-1
Ubuntu jammy linux-buildinfo-6.5.0-1021-nvidia Advisory build 6.5.0-1021.22 USN-6818-3
Ubuntu jammy linux-buildinfo-6.5.0-1021-nvidia-64k Advisory build 6.5.0-1021.22 USN-6818-3
Ubuntu jammy linux-buildinfo-6.5.0-1022-azure Advisory build 6.5.0-1022.23~22.04.1 USN-6819-1
Ubuntu jammy linux-buildinfo-6.5.0-1022-gcp Advisory build 6.5.0-1022.24~22.04.1 USN-6818-1
Ubuntu jammy linux-buildinfo-6.5.0-1024-oem Advisory build 6.5.0-1024.25 USN-6819-3
Ubuntu jammy linux-buildinfo-6.5.0-1024-oracle Advisory build 6.5.0-1024.24~22.04.1 USN-6819-4
Ubuntu jammy linux-buildinfo-6.5.0-1024-oracle-64k Advisory build 6.5.0-1024.24~22.04.1 USN-6819-4
Ubuntu jammy linux-buildinfo-6.5.0-41-generic Advisory build 6.5.0-41.41~22.04.2 USN-6818-4
Ubuntu jammy linux-buildinfo-6.5.0-41-generic-64k Advisory build 6.5.0-41.41~22.04.2 USN-6818-4
Ubuntu jammy linux-buildinfo-6.5.0-41-lowlatency Advisory build 6.5.0-41.41.1~22.04.1 USN-6818-1
Ubuntu jammy linux-buildinfo-6.5.0-41-lowlatency-64k Advisory build 6.5.0-41.41.1~22.04.1 USN-6818-1
Ubuntu jammy linux-cloud-tools-6.5.0-1022-azure Advisory build 6.5.0-1022.23~22.04.1 USN-6819-1
Ubuntu jammy linux-cloud-tools-6.5.0-41-generic Advisory build 6.5.0-41.41~22.04.2 USN-6818-4
Ubuntu jammy linux-cloud-tools-6.5.0-41-lowlatency Advisory build 6.5.0-41.41.1~22.04.1 USN-6818-1
Ubuntu jammy linux-gcp-6.5 Advisory build 6.5.0-1022.24~22.04.1 USN-6818-1
Ubuntu jammy linux-gcp-6.5-headers-6.5.0-1022 Advisory build 6.5.0-1022.24~22.04.1 USN-6818-1
Ubuntu jammy linux-gcp-6.5-tools-6.5.0-1022 Advisory build 6.5.0-1022.24~22.04.1 USN-6818-1
Ubuntu jammy linux-headers-6.5.0-1015-starfive Advisory build 6.5.0-1015.16~22.04.1 USN-6819-1
Ubuntu jammy linux-headers-6.5.0-1021-nvidia Advisory build 6.5.0-1021.22 USN-6818-3
Ubuntu jammy linux-headers-6.5.0-1021-nvidia-64k Advisory build 6.5.0-1021.22 USN-6818-3
Ubuntu jammy linux-headers-6.5.0-1022-azure Advisory build 6.5.0-1022.23~22.04.1 USN-6819-1
Ubuntu jammy linux-headers-6.5.0-1022-gcp Advisory build 6.5.0-1022.24~22.04.1 USN-6818-1
Ubuntu jammy linux-headers-6.5.0-1024-oem Advisory build 6.5.0-1024.25 USN-6819-3
Ubuntu jammy linux-headers-6.5.0-1024-oracle Advisory build 6.5.0-1024.24~22.04.1 USN-6819-4
Ubuntu jammy linux-headers-6.5.0-1024-oracle-64k Advisory build 6.5.0-1024.24~22.04.1 USN-6819-4
Ubuntu jammy linux-headers-6.5.0-41-generic Advisory build 6.5.0-41.41~22.04.2 USN-6818-4
Ubuntu jammy linux-headers-6.5.0-41-generic-64k Advisory build 6.5.0-41.41~22.04.2 USN-6818-4
Ubuntu jammy linux-headers-6.5.0-41-lowlatency Advisory build 6.5.0-41.41.1~22.04.1 USN-6818-1
Ubuntu jammy linux-headers-6.5.0-41-lowlatency-64k Advisory build 6.5.0-41.41.1~22.04.1 USN-6818-1
Ubuntu jammy linux-hwe-6.5 Advisory build 6.5.0-41.41~22.04.2 USN-6818-4
Ubuntu jammy linux-hwe-6.5-cloud-tools-6.5.0-41 Advisory build 6.5.0-41.41~22.04.2 USN-6818-4
Ubuntu jammy linux-hwe-6.5-cloud-tools-common Advisory build 6.5.0-41.41~22.04.2 USN-6818-4
Ubuntu jammy linux-hwe-6.5-headers-6.5.0-41 Advisory build 6.5.0-41.41~22.04.2 USN-6818-4
Ubuntu jammy linux-hwe-6.5-tools-6.5.0-41 Advisory build 6.5.0-41.41~22.04.2 USN-6818-4
Ubuntu jammy linux-hwe-6.5-tools-common Advisory build 6.5.0-41.41~22.04.2 USN-6818-4
Ubuntu jammy linux-hwe-6.5-tools-host Advisory build 6.5.0-41.41~22.04.2 USN-6818-4
Ubuntu jammy linux-image-6.5.0-1015-starfive Advisory build 6.5.0-1015.16~22.04.1 USN-6819-1
Ubuntu jammy linux-image-6.5.0-41-generic Advisory build 6.5.0-41.41~22.04.2 USN-6818-4
Ubuntu jammy linux-image-unsigned-6.5.0-1021-nvidia Advisory build 6.5.0-1021.22 USN-6818-3
Ubuntu jammy linux-image-unsigned-6.5.0-1021-nvidia-64k Advisory build 6.5.0-1021.22 USN-6818-3
Ubuntu jammy linux-image-unsigned-6.5.0-1022-azure Advisory build 6.5.0-1022.23~22.04.1 USN-6819-1
Ubuntu jammy linux-image-unsigned-6.5.0-1022-gcp Advisory build 6.5.0-1022.24~22.04.1 USN-6818-1
Ubuntu jammy linux-image-unsigned-6.5.0-1024-oem Advisory build 6.5.0-1024.25 USN-6819-3
Ubuntu jammy linux-image-unsigned-6.5.0-1024-oracle Advisory build 6.5.0-1024.24~22.04.1 USN-6819-4
Ubuntu jammy linux-image-unsigned-6.5.0-1024-oracle-64k Advisory build 6.5.0-1024.24~22.04.1 USN-6819-4
Ubuntu jammy linux-image-unsigned-6.5.0-41-generic Advisory build 6.5.0-41.41~22.04.2 USN-6818-4
Ubuntu jammy linux-image-unsigned-6.5.0-41-generic-64k Advisory build 6.5.0-41.41~22.04.2 USN-6818-4
Ubuntu jammy linux-image-unsigned-6.5.0-41-lowlatency Advisory build 6.5.0-41.41.1~22.04.1 USN-6818-1
Ubuntu jammy linux-image-unsigned-6.5.0-41-lowlatency-64k Advisory build 6.5.0-41.41.1~22.04.1 USN-6818-1
Ubuntu jammy linux-lowlatency-hwe-6.5 Advisory build 6.5.0-41.41.1~22.04.1 USN-6818-1
Ubuntu jammy linux-lowlatency-hwe-6.5-cloud-tools-6.5.0-41 Advisory build 6.5.0-41.41.1~22.04.1 USN-6818-1
Ubuntu jammy linux-lowlatency-hwe-6.5-cloud-tools-common Advisory build 6.5.0-41.41.1~22.04.1 USN-6818-1
Ubuntu jammy linux-lowlatency-hwe-6.5-headers-6.5.0-41 Advisory build 6.5.0-41.41.1~22.04.1 USN-6818-1
Ubuntu jammy linux-lowlatency-hwe-6.5-lib-rust-6.5.0-41-lowlatency Advisory build 6.5.0-41.41.1~22.04.1 USN-6818-1
Ubuntu jammy linux-lowlatency-hwe-6.5-tools-6.5.0-41 Advisory build 6.5.0-41.41.1~22.04.1 USN-6818-1
Ubuntu jammy linux-lowlatency-hwe-6.5-tools-common Advisory build 6.5.0-41.41.1~22.04.1 USN-6818-1
Ubuntu jammy linux-lowlatency-hwe-6.5-tools-host Advisory build 6.5.0-41.41.1~22.04.1 USN-6818-1
Ubuntu jammy linux-modules-6.5.0-1015-starfive Advisory build 6.5.0-1015.16~22.04.1 USN-6819-1
Ubuntu jammy linux-modules-6.5.0-1021-nvidia Advisory build 6.5.0-1021.22 USN-6818-3
Ubuntu jammy linux-modules-6.5.0-1021-nvidia-64k Advisory build 6.5.0-1021.22 USN-6818-3
Ubuntu jammy linux-modules-6.5.0-1022-azure Advisory build 6.5.0-1022.23~22.04.1 USN-6819-1
Ubuntu jammy linux-modules-6.5.0-1022-gcp Advisory build 6.5.0-1022.24~22.04.1 USN-6818-1
Ubuntu jammy linux-modules-6.5.0-1024-oem Advisory build 6.5.0-1024.25 USN-6819-3
Ubuntu jammy linux-modules-6.5.0-1024-oracle Advisory build 6.5.0-1024.24~22.04.1 USN-6819-4
Ubuntu jammy linux-modules-6.5.0-1024-oracle-64k Advisory build 6.5.0-1024.24~22.04.1 USN-6819-4
Ubuntu jammy linux-modules-6.5.0-41-generic Advisory build 6.5.0-41.41~22.04.2 USN-6818-4
Ubuntu jammy linux-modules-6.5.0-41-generic-64k Advisory build 6.5.0-41.41~22.04.2 USN-6818-4
Ubuntu jammy linux-modules-6.5.0-41-lowlatency Advisory build 6.5.0-41.41.1~22.04.1 USN-6818-1
Ubuntu jammy linux-modules-6.5.0-41-lowlatency-64k Advisory build 6.5.0-41.41.1~22.04.1 USN-6818-1
Ubuntu jammy linux-modules-extra-6.5.0-1015-starfive Advisory build 6.5.0-1015.16~22.04.1 USN-6819-1
Ubuntu jammy linux-modules-extra-6.5.0-1021-nvidia Advisory build 6.5.0-1021.22 USN-6818-3
Ubuntu jammy linux-modules-extra-6.5.0-1022-azure Advisory build 6.5.0-1022.23~22.04.1 USN-6819-1
Ubuntu jammy linux-modules-extra-6.5.0-1022-gcp Advisory build 6.5.0-1022.24~22.04.1 USN-6818-1
Ubuntu jammy linux-modules-extra-6.5.0-1024-oracle Advisory build 6.5.0-1024.24~22.04.1 USN-6819-4
Ubuntu jammy linux-modules-extra-6.5.0-1024-oracle-64k Advisory build 6.5.0-1024.24~22.04.1 USN-6819-4
Ubuntu jammy linux-modules-extra-6.5.0-41-generic Advisory build 6.5.0-41.41~22.04.2 USN-6818-4
Ubuntu jammy linux-modules-ipu6-6.5.0-1024-oem Advisory build 6.5.0-1024.25 USN-6819-3
Ubuntu jammy linux-modules-ipu6-6.5.0-41-generic Advisory build 6.5.0-41.41~22.04.2 USN-6818-4
Ubuntu jammy linux-modules-ivsc-6.5.0-1024-oem Advisory build 6.5.0-1024.25 USN-6819-3
Ubuntu jammy linux-modules-ivsc-6.5.0-41-generic Advisory build 6.5.0-41.41~22.04.2 USN-6818-4
Ubuntu jammy linux-modules-iwlwifi-6.5.0-1022-gcp Advisory build 6.5.0-1022.24~22.04.1 USN-6818-1
Ubuntu jammy linux-modules-iwlwifi-6.5.0-1024-oem Advisory build 6.5.0-1024.25 USN-6819-3
Ubuntu jammy linux-modules-iwlwifi-6.5.0-41-generic Advisory build 6.5.0-41.41~22.04.2 USN-6818-4
Ubuntu jammy linux-modules-iwlwifi-6.5.0-41-lowlatency Advisory build 6.5.0-41.41.1~22.04.1 USN-6818-1
Ubuntu jammy linux-modules-nvidia-fs-6.5.0-1021-nvidia Advisory build 6.5.0-1021.22 USN-6818-3
Ubuntu jammy linux-modules-nvidia-fs-6.5.0-1021-nvidia-64k Advisory build 6.5.0-1021.22 USN-6818-3
Ubuntu jammy linux-modules-usbio-6.5.0-1024-oem Advisory build 6.5.0-1024.25 USN-6819-3
Ubuntu jammy linux-nvidia-6.5 Advisory build 6.5.0-1021.22 USN-6818-3
Ubuntu jammy linux-nvidia-6.5-headers-6.5.0-1021 Advisory build 6.5.0-1021.22 USN-6818-3
Ubuntu jammy linux-nvidia-6.5-tools-6.5.0-1021 Advisory build 6.5.0-1021.22 USN-6818-3
Ubuntu jammy linux-nvidia-6.5-tools-host Advisory build 6.5.0-1021.22 USN-6818-3
Ubuntu jammy linux-oem-6.5 Advisory build 6.5.0-1024.25 USN-6819-3
Ubuntu jammy linux-oem-6.5-headers-6.5.0-1024 Advisory build 6.5.0-1024.25 USN-6819-3
Ubuntu jammy linux-oem-6.5-lib-rust-6.5.0-1024-oem Advisory build 6.5.0-1024.25 USN-6819-3
Ubuntu jammy linux-oem-6.5-tools-6.5.0-1024 Advisory build 6.5.0-1024.25 USN-6819-3

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: scrub: avoid use-after-free when chunk length is not 64K aligned [BUG] There is a bug report that, on a ext4-converted btrfs, scrub leads to various problems, including: - "unable to find chunk map" errors BTRFS info (device vdb): scrub: started on devid 1 BTRFS critical (device vdb): unable to find chunk map for logical 2214744064 length 4096 BTRFS critical (device vdb): unable to find chunk map for logical 2214744064 length 45056 This would lead to unrepariable errors. - Use-after-free KASAN reports: ================================================================== BUG: KASAN: slab-use-after-free in __blk_rq_map_sg+0x18f/0x7c0 Read of size 8 at addr ffff8881013c9040 by task btrfs/909 CPU: 0 PID: 909 Comm: btrfs Not tainted 6.7.0-x64v3-dbg #11 c50636e9419a8354555555245df535e380563b2b Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 2023.11-2 12/24/2023 Call Trace: <TASK> dump_stack_lvl+0x43/0x60 print_report+0xcf/0x640 kasan_report+0xa6/0xd0 __blk_rq_map_sg+0x18f/0x7c0 virtblk_prep_rq.isra.0+0x215/0x6a0 [virtio_blk 19a65eeee9ae6fcf02edfad39bb9ddee07dcdaff] virtio_queue_rqs+0xc4/0x310 [virtio_blk 19a65eeee9ae6fcf02edfad39bb9ddee07dcdaff] blk_mq_flush_plug_list.part.0+0x780/0x860 __blk_flush_plug+0x1ba/0x220 blk_finish_plug+0x3b/0x60 submit_initial_group_read+0x10a/0x290 [btrfs e57987a360bed82fe8756dcd3e0de5406ccfe965] flush_scrub_stripes+0x38e/0x430 [btrfs e57987a360bed82fe8756dcd3e0de5406ccfe965] scrub_stripe+0x82a/0xae0 [btrfs e57987a360bed82fe8756dcd3e0de5406ccfe965] scrub_chunk+0x178/0x200 [btrfs e57987a360bed82fe8756dcd3e0de5406ccfe965] scrub_enumerate_chunks+0x4bc/0xa30 [btrfs e57987a360bed82fe8756dcd3e0de5406ccfe965] btrfs_scrub_dev+0x398/0x810 [btrfs e57987a360bed82fe8756dcd3e0de5406ccfe965] btrfs_ioctl+0x4b9/0x3020 [btrfs e57987a360bed82fe8756dcd3e0de5406ccfe965] __x64_sys_ioctl+0xbd/0x100 do_syscall_64+0x5d/0xe0 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f47e5e0952b - Crash, mostly due to above use-after-free [CAUSE] The converted fs has the following data chunk layout: item 2 key (FIRST_CHUNK_TREE CHUNK_ITEM 2214658048) itemoff 16025 itemsize 80 length 86016 owner 2 stripe_len 65536 type DATA|single For above logical bytenr 2214744064, it's at the chunk end (2214658048 + 86016 = 2214744064). This means btrfs_submit_bio() would split the bio, and trigger endio function for both of the two halves. However scrub_submit_initial_read() would only expect the endio function to be called once, not any more. This means the first endio function would already free the bbio::bio, leaving the bvec freed, thus the 2nd endio call would lead to use-after-free. [FIX] - Make sure scrub_read_endio() only updates bits in its range Since we may read less than 64K at the end of the chunk, we should not touch the bits beyond chunk boundary. - Make sure scrub_submit_initial_read() only to read the chunk range This is done by calculating the real number of sectors we need to read, and add sector-by-sector to the bio. Thankfully the scrub read repair path won't need extra fixes: - scrub_stripe_submit_repair_read() With above fixes, we won't update error bit for range beyond chunk, thus scrub_stripe_submit_repair_read() should never submit any read beyond the chunk.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

8

Assessment

CVSS risk assessment and additional context for this vulnerability.

No normalized assessments.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux e02ee89baa66c40e1002cf8b09141fce7265e0f5 to < 642b9c520ef2f104277ad1f902f8526edbe087fb (affected · git)e02ee89baa66c40e1002cf8b09141fce7265e0f5 to < 34de0f04684ec00c093a0455648be055f0e8e24f (affected · git)e02ee89baa66c40e1002cf8b09141fce7265e0f5 to < f546c4282673497a06ecb6190b50ae7f6c85b02f (affected · git)Default: unaffected Linux · cna
Linux Linux 6.4 (affected)0 to < 6.4 (unaffected · semver)6.6.15 through 6.6.* (unaffected · semver)6.7.3 through 6.7.* (unaffected · semver)6.8 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

3

Provider assertions

3

Linux · cna

btrfs: scrub: avoid use-after-free when chunk length is not 64K aligned

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
86f0c07baf83196d49d690a41204e8ed988abcc279a8b98d43188d0b77ab5517
Ingested
23 Sep 2026, 08:20:34 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