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-2022-48733

published high CVSS 3.1 · 7.8

btrfs: fix use-after-free after failure to create a snapshot

Published
20 Jun 2024, 11:13:20 UTC
Updated
05 Aug 2026, 08:52:01 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxc37b2b6269ee4637fb7cdb5da0d1e47215d57ce2 to < 7e4c72dbaf62f8978af8321a24dbd35566d3a78a · c37b2b6269ee4637fb7cdb5da0d1e47215d57ce2 to < a7b717fa15165d3d9245614680bebc48a52ac05d · c37b2b6269ee4637fb7cdb5da0d1e47215d57ce2 to < 9372fa1d73da5f1673921e365d0cd2c27ec7adc2 · c37b2b6269ee4637fb7cdb5da0d1e47215d57ce2 to < 28b21c558a3753171097193b6f6602a94169093a · Other versions: unaffected Affected Not stated Linux
Linux — Linux3.7 (affected) · 0 to < 3.7 (unaffected · semver) · 5.10.226 through 5.10.* (unaffected · semver) · 5.15.22 through 5.15.* (unaffected · semver) · 5.16.8 through 5.16.* (unaffected · semver) · 5.17 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected; No Fix Planned Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.10-2024-070 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Debian bullseye linux Advisory build 5.10.226-1 DLA-3912-1
SUSE / openSUSE SLE-12-SP5 cluster-md-kmp-defaultppc64le Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 cluster-md-kmp-defaults390x Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
Show 97 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
SUSE / openSUSE SLE-12-SP5 cluster-md-kmp-defaultx86_64 Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 cluster-md-kmp-rtx86_64 Advisory build 4.12.14-10.191.1 SUSE-SU-2024:2381-1
SUSE / openSUSE SLE-12-SP5 dlm-kmp-defaultppc64le Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 dlm-kmp-defaults390x Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 dlm-kmp-defaultx86_64 Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 dlm-kmp-rtx86_64 Advisory build 4.12.14-10.191.1 SUSE-SU-2024:2381-1
SUSE / openSUSE SLE-12-SP5 gfs2-kmp-defaultppc64le Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 gfs2-kmp-defaults390x Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 gfs2-kmp-defaultx86_64 Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 gfs2-kmp-rtx86_64 Advisory build 4.12.14-10.191.1 SUSE-SU-2024:2381-1
SUSE / openSUSE SLE-12-SP5 kernel-azurex86_64 Advisory build 4.12.14-16.191.1 SUSE-SU-2024:2360-1
SUSE / openSUSE SLE-12-SP5 kernel-azure-basex86_64 Advisory build 4.12.14-16.191.1 SUSE-SU-2024:2360-1
SUSE / openSUSE SLE-12-SP5 kernel-azure-develx86_64 Advisory build 4.12.14-16.191.1 SUSE-SU-2024:2360-1
SUSE / openSUSE SLE-12-SP5 kernel-defaultaarch64 Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-defaultppc64le Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-defaults390x Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-defaultx86_64 Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-default-baseaarch64 Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-default-baseppc64le Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-default-bases390x Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-default-basex86_64 Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-default-develaarch64 Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-default-develppc64le Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-default-devels390x Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-default-develx86_64 Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-default-extrax86_64 Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-default-kgraftppc64le Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-default-kgrafts390x Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-default-kgraftx86_64 Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-default-kgraft-develppc64le Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-default-kgraft-devels390x Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-default-kgraft-develx86_64 Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-default-mans390x Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-develnoarch Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-devel-azurenoarch Advisory build 4.12.14-16.191.1 SUSE-SU-2024:2360-1
SUSE / openSUSE SLE-12-SP5 kernel-devel-rtnoarch Advisory build 4.12.14-10.191.1 SUSE-SU-2024:2381-1
SUSE / openSUSE SLE-12-SP5 kernel-docsnoarch Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-macrosnoarch Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-obs-buildaarch64 Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-obs-buildppc64le Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-obs-builds390x Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-obs-buildx86_64 Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-rtx86_64 Advisory build 4.12.14-10.191.1 SUSE-SU-2024:2381-1
SUSE / openSUSE SLE-12-SP5 kernel-rt-basex86_64 Advisory build 4.12.14-10.191.1 SUSE-SU-2024:2381-1
SUSE / openSUSE SLE-12-SP5 kernel-rt-develx86_64 Advisory build 4.12.14-10.191.1 SUSE-SU-2024:2381-1
SUSE / openSUSE SLE-12-SP5 kernel-rt_debugx86_64 Advisory build 4.12.14-10.191.1 SUSE-SU-2024:2381-1
SUSE / openSUSE SLE-12-SP5 kernel-rt_debug-develx86_64 Advisory build 4.12.14-10.191.1 SUSE-SU-2024:2381-1
SUSE / openSUSE SLE-12-SP5 kernel-sourcenoarch Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-source-azurenoarch Advisory build 4.12.14-16.191.1 SUSE-SU-2024:2360-1
SUSE / openSUSE SLE-12-SP5 kernel-source-rtnoarch Advisory build 4.12.14-10.191.1 SUSE-SU-2024:2381-1
SUSE / openSUSE SLE-12-SP5 kernel-symsaarch64 Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-symsppc64le Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-symss390x Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-symsx86_64 Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-syms-azurex86_64 Advisory build 4.12.14-16.191.1 SUSE-SU-2024:2360-1
SUSE / openSUSE SLE-12-SP5 kernel-syms-rtx86_64 Advisory build 4.12.14-10.191.1 SUSE-SU-2024:2381-1
SUSE / openSUSE SLE-12-SP5 kgraft-patch-4_12_14-122_222-defaultppc64le Advisory build 1-8.3.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kgraft-patch-4_12_14-122_222-defaults390x Advisory build 1-8.3.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kgraft-patch-4_12_14-122_222-defaultx86_64 Advisory build 1-8.3.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 ocfs2-kmp-defaultppc64le Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 ocfs2-kmp-defaults390x Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 ocfs2-kmp-defaultx86_64 Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 ocfs2-kmp-rtx86_64 Advisory build 4.12.14-10.191.1 SUSE-SU-2024:2381-1
SUSE / openSUSE SLE-15-SP5 cluster-md-kmp-defaultaarch64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 cluster-md-kmp-defaultppc64le Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 cluster-md-kmp-defaults390x Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 cluster-md-kmp-defaultx86_64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 cluster-md-kmp-rtx86_64 Advisory build 5.14.21-150500.13.61.1 SUSE-SU-2024:2394-1
SUSE / openSUSE SLE-15-SP5 dlm-kmp-defaultaarch64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 dlm-kmp-defaultppc64le Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 dlm-kmp-defaults390x Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 dlm-kmp-defaultx86_64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 dlm-kmp-rtx86_64 Advisory build 5.14.21-150500.13.61.1 SUSE-SU-2024:2394-1
SUSE / openSUSE SLE-15-SP5 gfs2-kmp-defaultaarch64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 gfs2-kmp-defaultppc64le Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 gfs2-kmp-defaults390x Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 gfs2-kmp-defaultx86_64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 gfs2-kmp-rtx86_64 Advisory build 5.14.21-150500.13.61.1 SUSE-SU-2024:2394-1
SUSE / openSUSE SLE-15-SP5 kernel-64kbaarch64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-64kb-develaarch64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-azureaarch64 Advisory build 5.14.21-150500.33.60.1 SUSE-SU-2024:2372-1
SUSE / openSUSE SLE-15-SP5 kernel-azurex86_64 Advisory build 5.14.21-150500.33.60.1 SUSE-SU-2024:2372-1
SUSE / openSUSE SLE-15-SP5 kernel-azure-develaarch64 Advisory build 5.14.21-150500.33.60.1 SUSE-SU-2024:2372-1
SUSE / openSUSE SLE-15-SP5 kernel-azure-develx86_64 Advisory build 5.14.21-150500.33.60.1 SUSE-SU-2024:2372-1
SUSE / openSUSE SLE-15-SP5 kernel-defaultaarch64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-defaultppc64le Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-defaults390x Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-defaultx86_64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-default-baseaarch64 Advisory build 5.14.21-150500.55.73.1.150500.6.33.8 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-default-baseppc64le Advisory build 5.14.21-150500.55.73.1.150500.6.33.8 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-default-basex86_64 Advisory build 5.14.21-150500.55.73.1.150500.6.33.8 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-default-develaarch64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-default-develppc64le Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-default-devels390x Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-default-develx86_64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-default-extrax86_64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-default-livepatchppc64le Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-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: fix use-after-free after failure to create a snapshot At ioctl.c:create_snapshot(), we allocate a pending snapshot structure and then attach it to the transaction's list of pending snapshots. After that we call btrfs_commit_transaction(), and if that returns an error we jump to 'fail' label, where we kfree() the pending snapshot structure. This can result in a later use-after-free of the pending snapshot: 1) We allocated the pending snapshot and added it to the transaction's list of pending snapshots; 2) We call btrfs_commit_transaction(), and it fails either at the first call to btrfs_run_delayed_refs() or btrfs_start_dirty_block_groups(). In both cases, we don't abort the transaction and we release our transaction handle. We jump to the 'fail' label and free the pending snapshot structure. We return with the pending snapshot still in the transaction's list; 3) Another task commits the transaction. This time there's no error at all, and then during the transaction commit it accesses a pointer to the pending snapshot structure that the snapshot creation task has already freed, resulting in a user-after-free. This issue could actually be detected by smatch, which produced the following warning: fs/btrfs/ioctl.c:843 create_snapshot() warn: '&pending_snapshot->list' not removed from list So fix this by not having the snapshot creation ioctl directly add the pending snapshot to the transaction's list. Instead add the pending snapshot to the transaction handle, and then at btrfs_commit_transaction() we add the snapshot to the list only when we can guarantee that any error returned after that point will result in a transaction abort, in which case the ioctl code can safely free the pending snapshot and no one can access it anymore.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

30

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 bug is reached only via local BTRFS_IOC_SNAP_CREATE/SNAP_CREATE_V2 ioctls on a mounted btrfs filesystem; it is not reachable from network packet or remote filesystem protocol paths. AC:L - An unprivileged attacker who can create snapshots can drive the failing commit path and separately force another transaction commit, and between the free and reuse can spray the heap; the UAF does not depend on a race the attacker cannot influence. PR:L - Snapshot creation needs only directory write/exec permission and ownership of the source subvolume (inode_owner_or_capable), not real root or init-namespace CAP_SYS_ADMIN. UI:N - The attacker triggers the vulnerable ioctl themselves; no separate victim action is required. S:U - Impact is standard in-kernel memory corruption and privilege escalation within the host kernel's security authority, not a VM/IOMMU/sandbox boundary crossing. C:H - Use-after-free of btrfs_pending_snapshot leaves attacker-controllable freed memory that create_pending_snapshot later dereferences (dentry/dir/root/path/root_item), enabling arbitrary kernel read primitives. I:H - The same UAF of a pointer-rich structure during snapshot commit enables heap spraying and arbitrary write/control-flow hijacking. A:H - Dereferencing the freed pending snapshot during a later transaction commit can oops/panic the kernel even without a full exploit.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux c37b2b6269ee4637fb7cdb5da0d1e47215d57ce2 to < 7e4c72dbaf62f8978af8321a24dbd35566d3a78a (affected · git)c37b2b6269ee4637fb7cdb5da0d1e47215d57ce2 to < a7b717fa15165d3d9245614680bebc48a52ac05d (affected · git)c37b2b6269ee4637fb7cdb5da0d1e47215d57ce2 to < 9372fa1d73da5f1673921e365d0cd2c27ec7adc2 (affected · git)c37b2b6269ee4637fb7cdb5da0d1e47215d57ce2 to < 28b21c558a3753171097193b6f6602a94169093a (affected · git)Default: unaffected Linux · cna
Linux Linux 3.7 (affected)0 to < 3.7 (unaffected · semver)5.10.226 through 5.10.* (unaffected · semver)5.15.22 through 5.15.* (unaffected · semver)5.16.8 through 5.16.* (unaffected · semver)5.17 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

5

Provider assertions

3

Linux · cna

btrfs: fix use-after-free after failure to create a snapshot

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
1e162d7b88493072e7381c741c9c2cb9415a80122c379da4065755e6facc62e5
Ingested
23 Sep 2026, 08:04:03 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