CVE-2024-50087

btrfs: fix uninitialized pointer free on read_alloc_one_name() error

MEDIUM
5.5
CVSS Score
Published: October 29, 2024 at 12:50 AM UTC
Updated: August 5, 2026 at 12:05 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

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

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

6.1.57 ≤ v < 6.1.1146.2 ≤ v < 6.11.56.2 ≤ v < 6.126.2 ≤ v < 6.6.586.7 ≤ v < 6.11.51cf474cd474bc5d3ef63086ffd009a87a5b7bb2e6.1.576.12 rc16.12 rc26.12 rc3e43eec81c5167b655b72c781b0e75e62a05e415e
Vendor states this is fixed in 1ec28de5e476913ae51f909660b4447eddb28838 (fixed)
Vendor states this is fixed in 2ab5e243c2266c841e0f6904fad1514b18eaf510 (fixed)
Vendor states this is fixed in 7fc7c47b9ba0cf2d192f2117a64b24881b0b577f (fixed)
Vendor states this is fixed in b37de9491f140a0ff125c27dd1050185c3accbc1 (fixed)
Vendor states this is fixed in 6.1.114 (unaffected)
Vendor states this is fixed in 6.11.5 (unaffected)
Vendor states this is fixed in 6.12 (unaffected)
Vendor states this is fixed in 6.2 (unaffected)
Vendor states this is fixed in 6.6.58 (unaffected)

References (5)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1ec28de5e476913ae51f909660b4447eddb28838
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2ab5e243c2266c841e0f6904fad1514b18eaf510
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7fc7c47b9ba0cf2d192f2117a64b24881b0b577f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b37de9491f140a0ff125c27dd1050185c3accbc1
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.5MEDIUMCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-824

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card