
Cloud Vulnerability DB
A community-led vulnerabilities database
A use-after-free vulnerability was discovered in the Linux kernel's BTRFS file system implementation, specifically in the snapshot creation functionality. The vulnerability (CVE-2022-48733) affects Linux kernel versions up to 5.15.22 and from 5.16 up to (excluding) 5.16.8. The issue occurs in the create_snapshot() function where a pending snapshot structure is improperly handled after a transaction failure (NVD).
The vulnerability exists in the BTRFS file system's snapshot creation mechanism. When creating a snapshot, the code allocates a pending snapshot structure and attaches it to the transaction's list of pending snapshots. If btrfs_commit_transaction() fails during execution, particularly at btrfs_run_delayed_refs() or btrfs_start_dirty_block_groups(), the code jumps to a 'fail' label and frees the pending snapshot structure. However, the structure remains in the transaction's list, leading to a potential use-after-free condition when another task commits the transaction. The vulnerability has been assigned a CVSS v3.1 base score of 7.8 (HIGH) with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD, Kernel Patch).
The vulnerability could allow a local attacker to potentially compromise the system through a use-after-free condition in the BTRFS file system. This could lead to privilege escalation, information disclosure, or system crashes. The high CVSS score indicates potential for complete compromise of confidentiality, integrity, and availability of the affected system (NVD).
The vulnerability requires local access and low privileges to exploit. The issue can be triggered through the BTRFS file system's snapshot creation functionality, specifically when a transaction fails during the snapshot creation process (NVD).
The vulnerability has been fixed in the Linux kernel through a patch that modifies how pending snapshots are handled. The fix changes the snapshot creation mechanism to add the pending snapshot to the transaction handle instead of directly adding it to the transaction's list. The snapshot is only added to the list when it can be guaranteed that any error will result in a transaction abort (Kernel Patch). Users should update their Linux kernel to a patched version.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."