CVE-2024-50087

Source
https://cve.org/CVERecord?id=CVE-2024-50087
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-50087.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-50087
Downstream
Related
Published
2024-10-29T00:50:30.313Z
Modified
2026-03-11T07:48:44.238984551Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
btrfs: fix uninitialized pointer free on read_alloc_one_name() error
Details

In the Linux kernel, the following vulnerability has been resolved:

btrfs: fix uninitialized pointer free on readallocone_name() error

The function readalloconename() does not initialize the name field of the passed fscryptstr 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").

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50087.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1cf474cd474bc5d3ef63086ffd009a87a5b7bb2e
Fixed
b37de9491f140a0ff125c27dd1050185c3accbc1
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
e43eec81c5167b655b72c781b0e75e62a05e415e
Fixed
7fc7c47b9ba0cf2d192f2117a64b24881b0b577f
Fixed
1ec28de5e476913ae51f909660b4447eddb28838
Fixed
2ab5e243c2266c841e0f6904fad1514b18eaf510

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-50087.json"