# CVE-2024-50087: btrfs: fix uninitialized pointer free on read\_alloc\_one\_name() error

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-10-29 · Modified: 2026-08-05
- Aliases: UBUNTU-CVE-2024-50087, DEBIAN-CVE-2024-50087
- Record: https://cvemate.com/vulnerability/CVE-2024-50087 · JSON: https://cvemate.com/vulnerability/CVE-2024-50087/json

## Description

```text
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").
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.214%, percentile 12.513%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 106)

- debian linux (Debian): \< 6.1.115-1 \| \< 6.11.5-1
- ubuntu linux (Ubuntu): \< 6.8.0-56.58
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 6.8.0-1025.27
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1027.29~22.04.1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1025.30
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-6.11 (Ubuntu): \< 6.11.0-1012.12~24.04.1

## References (first 20 of 24)

- <https://git.kernel.org/stable/c/b37de9491f140a0ff125c27dd1050185c3accbc1>
- <https://git.kernel.org/stable/c/7fc7c47b9ba0cf2d192f2117a64b24881b0b577f>
- <https://git.kernel.org/stable/c/1ec28de5e476913ae51f909660b4447eddb28838>
- <https://git.kernel.org/stable/c/2ab5e243c2266c841e0f6904fad1514b18eaf510>
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- <https://ubuntu.com/security/CVE-2024-50087>
- <https://www.cve.org/CVERecord?id=CVE-2024-50087>
- <https://git.kernel.org/linus/2ab5e243c2266c841e0f6904fad1514b18eaf510>
- <https://ubuntu.com/security/notices/USN-7276-1>
- <https://ubuntu.com/security/notices/USN-7277-1>
- <https://ubuntu.com/security/notices/USN-7310-1>
- <https://ubuntu.com/security/notices/USN-7383-1>
- <https://ubuntu.com/security/notices/USN-7384-1>
- <https://ubuntu.com/security/notices/USN-7385-1>
- <https://ubuntu.com/security/notices/USN-7386-1>
- <https://ubuntu.com/security/notices/USN-7383-2>
- <https://ubuntu.com/security/notices/USN-7384-2>
- <https://ubuntu.com/security/notices/USN-7403-1>
- <https://ubuntu.com/security/notices/USN-7451-1>
- <https://ubuntu.com/security/notices/USN-7468-1>

---

Data as of 2026-12-05T04:39:34.595Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
