CVE-2024-50088

Source
https://cve.org/CVERecord?id=CVE-2024-50088
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-50088.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-50088
Downstream
Related
Published
2024-10-29T00:50:31.362Z
Modified
2026-05-15T11:54:34.348500936Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
btrfs: fix uninitialized pointer free in add_inode_ref()
Details

In the Linux kernel, the following vulnerability has been resolved:

btrfs: fix uninitialized pointer free in addinoderef()

The addinoderef() function does not initialize the "name" struct when it is declared. If any of the following calls to "readoneinode() 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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50088.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.1.114
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.58
Fixed
6.11.5

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-50088.json"