PT-2025-25993 · Linux+2 · Linux Kernel+2

Published

2022-08-17

·

Updated

2025-07-28

·

CVE-2022-50067

CVSS v3.1

7.8

High

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel (affected versions not specified)
Description A use-after-free bug has been identified in the Linux kernel, specifically in the btrfs file system. The issue arises when the btrfs commit transaction() function fails, causing the reloc ctl variable to be freed without being set to NULL. This can lead to a use-after-free bug when the btrfs init reloc root() function is called. The bug can be triggered by calling btrfs ioctl balance() before btrfs ioctl defrag(). Technical details include the involvement of prepare to relocate(), set reloc control(), and unset reloc control() functions, as well as the fs info->reloc ctl variable.
Recommendations To fix this issue, in prepare to relocate(), check if btrfs commit transaction() fails. If the failure occurs, call unset reloc control() to set fs info->reloc ctl to NULL. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Use After Free

Buffer Overflow

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BDU:2026-01524
CVE-2022-50067
SUSE-SU-2025:02264-1
SUSE-SU-2025:02308-1
SUSE-SU-2025:02312-1
SUSE-SU-2025:02320-1
SUSE-SU-2025:02321-1
SUSE-SU-2025:02322-1
SUSE-SU-2025:02334-1
SUSE-SU-2025:02537-1
SUSE-SU-2025:2264-1
SUSE-SU-2025_02264-1
SUSE-SU-2025_02308-1
SUSE-SU-2025_02312-1
SUSE-SU-2025_02334-1
SUSE-SU-2025_02537-1

Affected Products

Astra Linux
Linux Kernel
Suse