SB2025062004 - Use-after-free in Linux kernel btrfs
Published: June 20, 2025 Updated: June 21, 2025
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 1 security vulnerability.
1) Use-after-free (CVE-ID: CVE-2022-49999)
The vulnerability allows a local user to escalate privileges on the system.
The vulnerability exists due to a use-after-free error within the btrfs_pin_extent_for_log_replay(), __exclude_logged_extent(), btrfs_block_group_done() and btrfs_trim_fs() functions in fs/btrfs/extent-tree.c, within the btrfs_wait_block_group_cache_progress(), btrfs_put_block_group(), btrfs_cache_block_group() and btrfs_update_block_group() functions in fs/btrfs/block-group.c. A local user can escalate privileges on the system.
Remediation
Install update from vendor's website.
References
- https://git.kernel.org/stable/c/92dc4c1a8e58bcc7a183a4c86b055c24cc88d967
- https://git.kernel.org/stable/c/a2e54eb64229f07f917b05d0c323604fda9b89f7
- https://git.kernel.org/stable/c/ced8ecf026fd8084cf175530ff85c76d6085d715
- https://mirrors.edge.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.15.65
- https://mirrors.edge.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.19.6
- https://mirrors.edge.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.0