CVE-2024-50088 btrfs: fix uninitialized pointer free in add_inode_ref()
A local attacker can cause a kernel crash by triggering an uninitialized pointer free in the btrfs filesystem code.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-50088?
CVE-2024-50088 is a high-severity vulnerability in Linux kernel, published on 29 Oct 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
btrfs: fix uninitialized pointer free in add_inode_ref()
The add_inode_ref() function does not initialize the "name" struct when it is declared. If any of the following calls to "read_one_inode() returns NULL,
dir = read_one_inode(root, parent_objectid); if (!dir) { ret = -ENOENT; goto out; }
inode = read_one_inode(root, inode_objectid); if (!inode) { ret = -EIO; goto out; }
then "name.name" would be freed on "out" before being initialized.
out: ... kfree(name.name);
This issue was reported by Coverity with CID 1526744.
Weakness: CWE-824
Which versions are affected by CVE-2024-50088?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-50088?
Apply the vendor's patch.
Is CVE-2024-50088 being exploited?
There is no known exploitation of CVE-2024-50088 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-52038, BELL-CVE-2024-50088, DEBIAN-CVE-2024-50088, GHSA-22g9-2j29-w93q, UBUNTU-CVE-2024-50088.