VDB

CVE-2024-50087

CVE-2024-50087 PUBLISHED CVSS 7.8 HIGH

btrfs: fix uninitialized pointer free on read_alloc_one_name() error

Reported by linux · Published October 29, 2024

In the Linux kernel, the following vulnerability has been resolved: btrfs: fix uninitialized pointer free on read_alloc_one_name() error The function read_alloc_one_name() does not initialize the name field of the passed fscrypt_str struct if kmalloc fails to allocate the corresponding buffer. Thus, it is not guaranteed that fscrypt_str.name is initialized when freeing it. This is a follow-up to the linked patch that fixes the remaining instances of the bug introduced by commit e43eec81c516 ("btrfs: use struct qstr instead of name and namelen pairs").

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-libbpf-develAmazon Linux6.1.115-126.197.amzn2023
bpftoolAmazon Linux6.1.115-126.197.amzn2023
LinuxLinuxb37de9491f140a0ff125c27dd1050185c3accbc1, 7fc7c47b9ba0cf2d192f2117a64b24881b0b577f, 6.1.114, 1ec28de5e476913ae51f909660b4447eddb28838

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-libbpf-devel0
amazon:2023bpftool0
LinuxLinux6.1.57, *, 6.2
amazon:2023kernel-modules-extra0
amazon:2023kernel-libbpf0
amazon:2023kernel-tools-devel0
amazon:2023kernel-libbpf-static0
amazon:2023kernel0
linuxlinux_kernel6.2, 6.2, 6.2
amazon:2023kernel-livepatch-6.1.115-126.1970
amazon:2023perf0
amazon:2023kernel-tools0
amazon:2023python3-perf0
amazon:2023kernel-modules-extra-common0
amazon:2023kernel-devel0
amazon:2023kernel-headers0

Timeline

  • Oct 28, 2024 CVE Published
  • Oct 29, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 29, 2024 Coalition ESS Score (9 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-50087
vulnetix vdb fixes CVE-2024-50087

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-50087/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 ›