CVE-2024-50087
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-libbpf-devel | Amazon Linux | 6.1.115-126.197.amzn2023 |
| bpftool | Amazon Linux | 6.1.115-126.197.amzn2023 |
| Linux | Linux | b37de9491f140a0ff125c27dd1050185c3accbc1, 7fc7c47b9ba0cf2d192f2117a64b24881b0b577f, 6.1.114, 1ec28de5e476913ae51f909660b4447eddb28838 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 1cf474cd474bc5d3ef63086ffd009a87a5b7bb2e, e43eec81c5167b655b72c781b0e75e62a05e415e, e43eec81c5167b655b72c781b0e75e62a05e415e |
| Linux | Linux | 6.2, 0, 6.1.114 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | bpftool | 0 |
| Linux | Linux | 6.1.57, *, 6.2 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel | 0 |
| linux | linux_kernel | 6.2, 6.2, 6.2 |
| amazon:2023 | kernel-livepatch-6.1.115-126.197 | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-headers | 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 (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