CVE-2024-50088
btrfs: fix uninitialized pointer free in add_inode_ref()
Reported by linux · Published October 29, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-modules-extra | Amazon Linux | 6.1.115-126.197.amzn2023 |
| Linux | Linux | 6.1.114 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 1cf474cd474bc5d3ef63086ffd009a87a5b7bb2e, e43eec81c5167b655b72c781b0e75e62a05e415e, e43eec81c5167b655b72c781b0e75e62a05e415e |
| Linux | Linux | 6.2, 0, 6.1.114 |
| amazon:2023 | kernel-modules-extra | 0 |
| Linux | Linux | *, 1cf474cd474bc5d3ef63086ffd009a87a5b7bb2e, * |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel | 0 |
| linux | linux_kernel | 6.1.57, 6.2, 6.2 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-livepatch-6.1.115-126.197 | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel-devel | 0 |
Timeline
- Oct 28, 2024 CVE Published
- Oct 29, 2024 EPSS Score (30 in total, the first dated here)
- Oct 29, 2024 Coalition ESS Score (16 in total, the first dated here)
- Jan 2, 2026 Security Advisory (129 in total, the first dated here)
- Apr 29, 2026 Distribution Patch (114 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-50088
vulnetix vdb fixes CVE-2024-50088
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-50088/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart