VDB

CVE-2024-50088

CVE-2024-50088 PUBLISHED CVSS 7.8 HIGH

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.

PackageEcosystemFixed in
kernel-modules-extraAmazon Linux6.1.115-126.197.amzn2023
LinuxLinux6.1.114

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux1cf474cd474bc5d3ef63086ffd009a87a5b7bb2e, e43eec81c5167b655b72c781b0e75e62a05e415e, e43eec81c5167b655b72c781b0e75e62a05e415e
LinuxLinux6.2, 0, 6.1.114
amazon:2023kernel-modules-extra0
LinuxLinux*, 1cf474cd474bc5d3ef63086ffd009a87a5b7bb2e, *
amazon:2023bpftool0
amazon:2023kernel-libbpf0
amazon:2023kernel0
linuxlinux_kernel6.1.57, 6.2, 6.2
amazon:2023python3-perf0
amazon:2023kernel-libbpf-static0
amazon:2023kernel-livepatch-6.1.115-126.1970
amazon:2023kernel-tools-devel0
amazon:2023kernel-modules-extra-common0
amazon:2023perf0
amazon:2023kernel-headers0
amazon:2023kernel-tools0
amazon:2023kernel-libbpf-devel0
amazon:2023kernel-devel0

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›