Bug 2322317 (CVE-2024-50087) - CVE-2024-50087 kernel: btrfs: fix uninitialized pointer free on read_alloc_one_name() error
Summary: CVE-2024-50087 kernel: btrfs: fix uninitialized pointer free on read_alloc_on...
Keywords:
Status: NEW
Alias: CVE-2024-50087
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2322380
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-10-29 01:02 UTC by OSIDB Bzimport
Modified: 2024-10-29 08:29 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-10-29 01:02:07 UTC
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").


Note You need to log in before you can comment on or make changes to this bug.