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

published high CVSS 3.1 · 7.8

btrfs: always do the basic checks for btrfs_qgroup_inherit structure

Published
30 Jul 2024, 07:46:05 UTC
Updated
05 Aug 2026, 11:35:43 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxb5357cb268c41b4e2b7383d2759fc562f5b58c33 to < ebe5ea02577b2c527958af1b76ac472c7ab53a56 · b5357cb268c41b4e2b7383d2759fc562f5b58c33 to < 724d8042cef84496ddb4492dc120291f997ae26b · c839f73a70f312f477225b64020364e108f08231 · 6.8.10 to < 6.9 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.9 (affected) · 0 to < 6.9 (unaffected · semver) · 6.9.9 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 evaluation Not Affected Not required Amazon Linux assessment
Ubuntu jammy linux-aws-6.8 Advisory build 6.8.0-1018.19~22.04.1 USN-7089-3
Ubuntu jammy linux-aws-6.8-cloud-tools-6.8.0-1018 Advisory build 6.8.0-1018.19~22.04.1 USN-7089-3
Ubuntu jammy linux-aws-6.8-headers-6.8.0-1018 Advisory build 6.8.0-1018.19~22.04.1 USN-7089-3
Ubuntu jammy linux-aws-6.8-tools-6.8.0-1018 Advisory build 6.8.0-1018.19~22.04.1 USN-7089-3
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Ubuntu jammy linux-azure-6.8 Advisory build 6.8.0-1017.20~22.04.1 USN-7090-1
Ubuntu jammy linux-azure-6.8-cloud-tools-6.8.0-1017 Advisory build 6.8.0-1017.20~22.04.1 USN-7090-1
Ubuntu jammy linux-azure-6.8-headers-6.8.0-1017 Advisory build 6.8.0-1017.20~22.04.1 USN-7090-1
Ubuntu jammy linux-azure-6.8-tools-6.8.0-1017 Advisory build 6.8.0-1017.20~22.04.1 USN-7090-1
Ubuntu jammy linux-buildinfo-6.8.0-1015-oracle Advisory build 6.8.0-1015.15~22.04.1 USN-7089-3
Ubuntu jammy linux-buildinfo-6.8.0-1015-oracle-64k Advisory build 6.8.0-1015.15~22.04.1 USN-7089-3
Ubuntu jammy linux-buildinfo-6.8.0-1017-azure Advisory build 6.8.0-1017.20~22.04.1 USN-7090-1
Ubuntu jammy linux-buildinfo-6.8.0-1017-gcp Advisory build 6.8.0-1017.19~22.04.1 USN-7089-1
Ubuntu jammy linux-buildinfo-6.8.0-1017-nvidia Advisory build 6.8.0-1017.19~22.04.1 USN-7095-1
Ubuntu jammy linux-buildinfo-6.8.0-1017-nvidia-64k Advisory build 6.8.0-1017.19~22.04.1 USN-7095-1
Ubuntu jammy linux-buildinfo-6.8.0-1018-aws Advisory build 6.8.0-1018.19~22.04.1 USN-7089-3
Ubuntu jammy linux-buildinfo-6.8.0-48-generic Advisory build 6.8.0-48.48~22.04.1 USN-7089-1
Ubuntu jammy linux-buildinfo-6.8.0-48-generic-64k Advisory build 6.8.0-48.48~22.04.1 USN-7089-1
Ubuntu jammy linux-buildinfo-6.8.0-48-lowlatency Advisory build 6.8.0-48.48.3~22.04.1 USN-7089-7
Ubuntu jammy linux-buildinfo-6.8.0-48-lowlatency-64k Advisory build 6.8.0-48.48.3~22.04.1 USN-7089-7
Ubuntu jammy linux-cloud-tools-6.8.0-1017-azure Advisory build 6.8.0-1017.20~22.04.1 USN-7090-1
Ubuntu jammy linux-cloud-tools-6.8.0-1018-aws Advisory build 6.8.0-1018.19~22.04.1 USN-7089-3
Ubuntu jammy linux-cloud-tools-6.8.0-48-generic Advisory build 6.8.0-48.48~22.04.1 USN-7089-1
Ubuntu jammy linux-cloud-tools-6.8.0-48-lowlatency Advisory build 6.8.0-48.48.3~22.04.1 USN-7089-7
Ubuntu jammy linux-gcp-6.8 Advisory build 6.8.0-1017.19~22.04.1 USN-7089-1
Ubuntu jammy linux-gcp-6.8-headers-6.8.0-1017 Advisory build 6.8.0-1017.19~22.04.1 USN-7089-1
Ubuntu jammy linux-gcp-6.8-tools-6.8.0-1017 Advisory build 6.8.0-1017.19~22.04.1 USN-7089-1
Ubuntu jammy linux-headers-6.8.0-1015-oracle Advisory build 6.8.0-1015.15~22.04.1 USN-7089-3
Ubuntu jammy linux-headers-6.8.0-1015-oracle-64k Advisory build 6.8.0-1015.15~22.04.1 USN-7089-3
Ubuntu jammy linux-headers-6.8.0-1017-azure Advisory build 6.8.0-1017.20~22.04.1 USN-7090-1
Ubuntu jammy linux-headers-6.8.0-1017-gcp Advisory build 6.8.0-1017.19~22.04.1 USN-7089-1
Ubuntu jammy linux-headers-6.8.0-1017-nvidia Advisory build 6.8.0-1017.19~22.04.1 USN-7095-1
Ubuntu jammy linux-headers-6.8.0-1017-nvidia-64k Advisory build 6.8.0-1017.19~22.04.1 USN-7095-1
Ubuntu jammy linux-headers-6.8.0-1018-aws Advisory build 6.8.0-1018.19~22.04.1 USN-7089-3
Ubuntu jammy linux-headers-6.8.0-48-generic Advisory build 6.8.0-48.48~22.04.1 USN-7089-1
Ubuntu jammy linux-headers-6.8.0-48-generic-64k Advisory build 6.8.0-48.48~22.04.1 USN-7089-1
Ubuntu jammy linux-headers-6.8.0-48-lowlatency Advisory build 6.8.0-48.48.3~22.04.1 USN-7089-7
Ubuntu jammy linux-headers-6.8.0-48-lowlatency-64k Advisory build 6.8.0-48.48.3~22.04.1 USN-7089-7
Ubuntu jammy linux-hwe-6.8 Advisory build 6.8.0-48.48~22.04.1 USN-7089-1
Ubuntu jammy linux-hwe-6.8-cloud-tools-6.8.0-48 Advisory build 6.8.0-48.48~22.04.1 USN-7089-1
Ubuntu jammy linux-hwe-6.8-headers-6.8.0-48 Advisory build 6.8.0-48.48~22.04.1 USN-7089-1
Ubuntu jammy linux-hwe-6.8-tools-6.8.0-48 Advisory build 6.8.0-48.48~22.04.1 USN-7089-1
Ubuntu jammy linux-image-6.8.0-48-generic Advisory build 6.8.0-48.48~22.04.1 USN-7089-1
Ubuntu jammy linux-image-unsigned-6.8.0-1015-oracle Advisory build 6.8.0-1015.15~22.04.1 USN-7089-3
Ubuntu jammy linux-image-unsigned-6.8.0-1015-oracle-64k Advisory build 6.8.0-1015.15~22.04.1 USN-7089-3
Ubuntu jammy linux-image-unsigned-6.8.0-1017-azure Advisory build 6.8.0-1017.20~22.04.1 USN-7090-1
Ubuntu jammy linux-image-unsigned-6.8.0-1017-gcp Advisory build 6.8.0-1017.19~22.04.1 USN-7089-1
Ubuntu jammy linux-image-unsigned-6.8.0-1017-nvidia Advisory build 6.8.0-1017.19~22.04.1 USN-7095-1
Ubuntu jammy linux-image-unsigned-6.8.0-1017-nvidia-64k Advisory build 6.8.0-1017.19~22.04.1 USN-7095-1
Ubuntu jammy linux-image-unsigned-6.8.0-1018-aws Advisory build 6.8.0-1018.19~22.04.1 USN-7089-3
Ubuntu jammy linux-image-unsigned-6.8.0-48-generic Advisory build 6.8.0-48.48~22.04.1 USN-7089-1
Ubuntu jammy linux-image-unsigned-6.8.0-48-generic-64k Advisory build 6.8.0-48.48~22.04.1 USN-7089-1
Ubuntu jammy linux-image-unsigned-6.8.0-48-lowlatency Advisory build 6.8.0-48.48.3~22.04.1 USN-7089-7
Ubuntu jammy linux-image-unsigned-6.8.0-48-lowlatency-64k Advisory build 6.8.0-48.48.3~22.04.1 USN-7089-7
Ubuntu jammy linux-lowlatency-hwe-6.8 Advisory build 6.8.0-48.48.3~22.04.1 USN-7089-7
Ubuntu jammy linux-lowlatency-hwe-6.8-cloud-tools-6.8.0-48 Advisory build 6.8.0-48.48.3~22.04.1 USN-7089-7
Ubuntu jammy linux-lowlatency-hwe-6.8-headers-6.8.0-48 Advisory build 6.8.0-48.48.3~22.04.1 USN-7089-7
Ubuntu jammy linux-lowlatency-hwe-6.8-lib-rust-6.8.0-48-lowlatency Advisory build 6.8.0-48.48.3~22.04.1 USN-7089-7
Ubuntu jammy linux-lowlatency-hwe-6.8-tools-6.8.0-48 Advisory build 6.8.0-48.48.3~22.04.1 USN-7089-7
Ubuntu jammy linux-modules-6.8.0-1015-oracle Advisory build 6.8.0-1015.15~22.04.1 USN-7089-3
Ubuntu jammy linux-modules-6.8.0-1015-oracle-64k Advisory build 6.8.0-1015.15~22.04.1 USN-7089-3
Ubuntu jammy linux-modules-6.8.0-1017-azure Advisory build 6.8.0-1017.20~22.04.1 USN-7090-1
Ubuntu jammy linux-modules-6.8.0-1017-gcp Advisory build 6.8.0-1017.19~22.04.1 USN-7089-1
Ubuntu jammy linux-modules-6.8.0-1017-nvidia Advisory build 6.8.0-1017.19~22.04.1 USN-7095-1
Ubuntu jammy linux-modules-6.8.0-1017-nvidia-64k Advisory build 6.8.0-1017.19~22.04.1 USN-7095-1
Ubuntu jammy linux-modules-6.8.0-1018-aws Advisory build 6.8.0-1018.19~22.04.1 USN-7089-3
Ubuntu jammy linux-modules-6.8.0-48-generic Advisory build 6.8.0-48.48~22.04.1 USN-7089-1
Ubuntu jammy linux-modules-6.8.0-48-generic-64k Advisory build 6.8.0-48.48~22.04.1 USN-7089-1
Ubuntu jammy linux-modules-6.8.0-48-lowlatency Advisory build 6.8.0-48.48.3~22.04.1 USN-7089-7
Ubuntu jammy linux-modules-6.8.0-48-lowlatency-64k Advisory build 6.8.0-48.48.3~22.04.1 USN-7089-7
Ubuntu jammy linux-modules-extra-6.8.0-1015-oracle Advisory build 6.8.0-1015.15~22.04.1 USN-7089-3
Ubuntu jammy linux-modules-extra-6.8.0-1015-oracle-64k Advisory build 6.8.0-1015.15~22.04.1 USN-7089-3
Ubuntu jammy linux-modules-extra-6.8.0-1017-azure Advisory build 6.8.0-1017.20~22.04.1 USN-7090-1
Ubuntu jammy linux-modules-extra-6.8.0-1017-gcp Advisory build 6.8.0-1017.19~22.04.1 USN-7089-1
Ubuntu jammy linux-modules-extra-6.8.0-1017-nvidia Advisory build 6.8.0-1017.19~22.04.1 USN-7095-1
Ubuntu jammy linux-modules-extra-6.8.0-1018-aws Advisory build 6.8.0-1018.19~22.04.1 USN-7089-3
Ubuntu jammy linux-modules-extra-6.8.0-48-generic Advisory build 6.8.0-48.48~22.04.1 USN-7089-1
Ubuntu jammy linux-modules-involflt-6.8.0-1017-azure Advisory build 6.8.0-1017.20~22.04.1 USN-7090-1
Ubuntu jammy linux-modules-ipu6-6.8.0-48-generic Advisory build 6.8.0-48.48~22.04.1 USN-7089-1
Ubuntu jammy linux-modules-iwlwifi-6.8.0-1017-azure Advisory build 6.8.0-1017.20~22.04.1 USN-7090-1
Ubuntu jammy linux-modules-iwlwifi-6.8.0-48-generic Advisory build 6.8.0-48.48~22.04.1 USN-7089-1
Ubuntu jammy linux-modules-iwlwifi-6.8.0-48-lowlatency Advisory build 6.8.0-48.48.3~22.04.1 USN-7089-7
Ubuntu jammy linux-modules-nvidia-fs-6.8.0-1017-nvidia Advisory build 6.8.0-1017.19~22.04.1 USN-7095-1
Ubuntu jammy linux-modules-nvidia-fs-6.8.0-1017-nvidia-64k Advisory build 6.8.0-1017.19~22.04.1 USN-7095-1
Ubuntu jammy linux-modules-usbio-6.8.0-48-generic Advisory build 6.8.0-48.48~22.04.1 USN-7089-1
Ubuntu jammy linux-nvidia-6.8 Advisory build 6.8.0-1017.19~22.04.1 USN-7095-1
Ubuntu jammy linux-nvidia-6.8-headers-6.8.0-1017 Advisory build 6.8.0-1017.19~22.04.1 USN-7095-1
Ubuntu jammy linux-nvidia-6.8-tools-6.8.0-1017 Advisory build 6.8.0-1017.19~22.04.1 USN-7095-1
Ubuntu jammy linux-oracle-6.8 Advisory build 6.8.0-1015.15~22.04.1 USN-7089-3
Ubuntu jammy linux-oracle-6.8-headers-6.8.0-1015 Advisory build 6.8.0-1015.15~22.04.1 USN-7089-3
Ubuntu jammy linux-oracle-6.8-tools-6.8.0-1015 Advisory build 6.8.0-1015.15~22.04.1 USN-7089-3
Ubuntu jammy linux-tools-6.8.0-1015-oracle Advisory build 6.8.0-1015.15~22.04.1 USN-7089-3
Ubuntu jammy linux-tools-6.8.0-1015-oracle-64k Advisory build 6.8.0-1015.15~22.04.1 USN-7089-3
Ubuntu jammy linux-tools-6.8.0-1017-azure Advisory build 6.8.0-1017.20~22.04.1 USN-7090-1
Ubuntu jammy linux-tools-6.8.0-1017-gcp Advisory build 6.8.0-1017.19~22.04.1 USN-7089-1
Ubuntu jammy linux-tools-6.8.0-1017-nvidia Advisory build 6.8.0-1017.19~22.04.1 USN-7095-1
Ubuntu jammy linux-tools-6.8.0-1017-nvidia-64k Advisory build 6.8.0-1017.19~22.04.1 USN-7095-1
Ubuntu jammy linux-tools-6.8.0-1018-aws Advisory build 6.8.0-1018.19~22.04.1 USN-7089-3
Ubuntu jammy linux-tools-6.8.0-48-generic Advisory build 6.8.0-48.48~22.04.1 USN-7089-1
Ubuntu jammy linux-tools-6.8.0-48-generic-64k Advisory build 6.8.0-48.48~22.04.1 USN-7089-1
Ubuntu jammy linux-tools-6.8.0-48-lowlatency Advisory build 6.8.0-48.48.3~22.04.1 USN-7089-7

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: always do the basic checks for btrfs_qgroup_inherit structure [BUG] Syzbot reports the following regression detected by KASAN: BUG: KASAN: slab-out-of-bounds in btrfs_qgroup_inherit+0x42e/0x2e20 fs/btrfs/qgroup.c:3277 Read of size 8 at addr ffff88814628ca50 by task syz-executor318/5171 CPU: 0 PID: 5171 Comm: syz-executor318 Not tainted 6.10.0-rc2-syzkaller-00010-g2ab795141095 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 Call Trace: <TASK> __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 print_address_description mm/kasan/report.c:377 [inline] print_report+0x169/0x550 mm/kasan/report.c:488 kasan_report+0x143/0x180 mm/kasan/report.c:601 btrfs_qgroup_inherit+0x42e/0x2e20 fs/btrfs/qgroup.c:3277 create_pending_snapshot+0x1359/0x29b0 fs/btrfs/transaction.c:1854 create_pending_snapshots+0x195/0x1d0 fs/btrfs/transaction.c:1922 btrfs_commit_transaction+0xf20/0x3740 fs/btrfs/transaction.c:2382 create_snapshot+0x6a1/0x9e0 fs/btrfs/ioctl.c:875 btrfs_mksubvol+0x58f/0x710 fs/btrfs/ioctl.c:1029 btrfs_mksnapshot+0xb5/0xf0 fs/btrfs/ioctl.c:1075 __btrfs_ioctl_snap_create+0x387/0x4b0 fs/btrfs/ioctl.c:1340 btrfs_ioctl_snap_create_v2+0x1f2/0x3a0 fs/btrfs/ioctl.c:1422 btrfs_ioctl+0x99e/0xc60 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fcbf1992509 RSP: 002b:00007fcbf1928218 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fcbf1a1f618 RCX: 00007fcbf1992509 RDX: 0000000020000280 RSI: 0000000050009417 RDI: 0000000000000003 RBP: 00007fcbf1a1f610 R08: 00007ffea1298e97 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fcbf19eb660 R13: 00000000200002b8 R14: 00007fcbf19e60c0 R15: 0030656c69662f2e </TASK> And it also pinned it down to commit b5357cb268c4 ("btrfs: qgroup: do not check qgroup inherit if qgroup is disabled"). [CAUSE] That offending commit skips the whole qgroup inherit check if qgroup is not enabled. But that also skips the very basic checks like num_ref_copies/num_excl_copies and the structure size checks. Meaning if a qgroup enable/disable race is happening at the background, and we pass a btrfs_qgroup_inherit structure when the qgroup is disabled, the check would be completely skipped. Then at the time of transaction commitment, qgroup is re-enabled and btrfs_qgroup_inherit() is going to use the incorrect structure and causing the above KASAN error. [FIX] Make btrfs_qgroup_check_inherit() only skip the source qgroup checks. So that even if invalid btrfs_qgroup_inherit structure is passed in, we can still reject invalid ones no matter if qgroup is enabled or not. Furthermore we do already have an extra safety inside btrfs_qgroup_inherit(), which would just ignore invalid qgroup sources, so even if we only skip the qgroup source check we're still safe.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

14

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 vulnerability is reached through the BTRFS_IOC_SNAP_CREATE_V2/BTRFS_IOC_SUBVOL_CREATE_V2 ioctls on a mounted btrfs filesystem, requiring a local account on the system. There is no network-facing path to this code. AC:L - The attacker fully controls the malformed btrfs_qgroup_inherit structure and the long side of the check-to-use window, which spans an entire transaction commit and can be stretched with I/O load, and the snapshot ioctl can be replayed in a tight loop indefinitely until the window is hit. No memory layout or timing condition outside the attacker's influence is needed to trigger the out-of-bounds access itself. PR:L - Issuing the vulnerable ioctl requires no capability at all - subvolume creation is explicitly unrestricted and snapshot creation only requires ownership of one's own subvolume, so an ordinary unprivileged user with write access to a btrfs directory suffices. The concurrent qgroup enable is background system activity (snapper, container/LXD tooling), not a privilege the attacker must hold. UI:N - The attack is driven entirely by the attacker's own ioctl calls against an already-mounted btrfs filesystem. No victim action is required. S:U - The out-of-bounds access corrupts kernel slab memory within the same kernel security authority. No VM, IOMMU, or sandbox boundary is crossed. C:H - The loop performs an unbounded sequential out-of-bounds read of kernel slab memory past a buffer of attacker-chosen size, with the read length controlled by the unvalidated num_qgroups/num_ref_copies/num_excl_copies fields. Read values that match existing qgroup IDs escape zeroing and are propagated into qgroup relations, and the corrupted adjacent objects provide a route to broader kernel memory disclosure. I:H - The same loop performs an out-of-bounds write (*i_qgroups = 0ULL) into memory following the slab object, with both the target slab size class (via vol_args->size) and the corruption length attacker-controlled. Zeroing pointers, refcounts, and length fields in groomed neighbouring objects is a well-established path to use-after-free and privilege escalation. A:H - Syzbot reproduced this as a KASAN slab-out-of-bounds, and a large attacker-supplied count walks the loop into unmapped memory or destroys adjacent kernel structures, producing an oops or panic. The corruption also occurs during transaction commit, where failures escalate to a filesystem abort.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux b5357cb268c41b4e2b7383d2759fc562f5b58c33 to < ebe5ea02577b2c527958af1b76ac472c7ab53a56 (affected · git)b5357cb268c41b4e2b7383d2759fc562f5b58c33 to < 724d8042cef84496ddb4492dc120291f997ae26b (affected · git)c839f73a70f312f477225b64020364e108f08231 (affected · git)6.8.10 to < 6.9 (affected · semver)Default: unaffected Linux · cna
Linux Linux 6.9 (affected)0 to < 6.9 (unaffected · semver)6.9.9 through 6.9.* (unaffected · semver)6.10 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

2

Provider assertions

3

Linux · cna

btrfs: always do the basic checks for btrfs_qgroup_inherit structure

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
278e6fba3916cc1d3ccb58574d270dedf5745f6153164f05b745c16be2a00cf0
Ingested
23 Sep 2026, 08:26:31 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