CVE-2023-4389: Kernel: btrfs: double free in btrfs_get_root_ref()
A flaw was found in btrfsgetrootref in fs/btrfs/disk-io.c in the btrfs filesystem in the Linux Kernel due to a double decrement of the reference count. This issue may allow a local attacker with user privilege to crash the system or may lead to leaked internal kernel information.
Other sources
An error due to a double decrement of reference count was found in btrfsgetrootref in fs/btrfs/disk-io.c in btrfs filesystem in the Linux Kernel. In this flaw a local attacker with user privilege may lead to a system crash or may leak internal kernel information.
In btrfsgetrootref(), when btrfsinsertfsroot() fails, btrfsputroot() will be called to possibly free the memory area of the variable root. However, this variable is then used again in error handling code after "goto fail", when ret is not -EEXIST.
References: https://patchwork.kernel.org/project/linux-btrfs/patch/20220324134454.15192-1-baijiaju1990@gmail.com/
— Red Hat
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2023-4389?
The severity of CVE-2023-4389 is rated high with a CVSS score of 7.1.
What does CVE-2023-4389 affect?
CVE-2023-4389 affects the btrfs filesystem in the Linux Kernel.
How do I fix CVE-2023-4389?
To fix CVE-2023-4389, apply the available patch for the Linux Kernel provided by your Linux distribution.
What type of vulnerability is CVE-2023-4389?
CVE-2023-4389 is a double free vulnerability that can potentially allow a local attacker to crash the system or leak kernel information.
Who can exploit CVE-2023-4389?
A local attacker with user privileges can exploit CVE-2023-4389.