CVE-2024-50088

Severity CVSS v4.0:
Pending analysis
Type:
CWE-824 Access of Uninitialized Pointer
Publication date:
29/10/2024
Last modified:
03/11/2025

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> btrfs: fix uninitialized pointer free in add_inode_ref()<br /> <br /> The add_inode_ref() function does not initialize the "name" struct when<br /> it is declared. If any of the following calls to "read_one_inode()<br /> returns NULL,<br /> <br /> dir = read_one_inode(root, parent_objectid);<br /> if (!dir) {<br /> ret = -ENOENT;<br /> goto out;<br /> }<br /> <br /> inode = read_one_inode(root, inode_objectid);<br /> if (!inode) {<br /> ret = -EIO;<br /> goto out;<br /> }<br /> <br /> then "name.name" would be freed on "out" before being initialized.<br /> <br /> out:<br /> ...<br /> kfree(name.name);<br /> <br /> This issue was reported by Coverity with CID 1526744.

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.1.57 (including) 6.1.114 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.2 (including) 6.6.58 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.7 (including) 6.11.5 (excluding)
cpe:2.3:o:linux:linux_kernel:6.12:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.12:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.12:rc3:*:*:*:*:*:*