7.8high
btrfs: fix uninitialized pointer free on read_alloc_one_name() error
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.21% (higher than 12% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 1cf474cd474bc5d3ef63086ffd009a87a5b7bb2e before b37de9491f140a0ff125c27dd1050185c3accbc1, from e43eec81c5167b655b72c781b0e75e62a05e415e before 7fc7c47b9ba0cf2d192f2117a64b24881b0b577f, from e43eec81c5167b655b72c781b0e75e62a05e415e before 1ec28de5e476913ae51f909660b4447eddb28838, from e43eec81c5167b655b72c781b0e75e62a05e415e before 2ab5e243c2266c841e0f6904fad1514b18eaf510, from 6.1.57 before 6.1.114, 6.2 Not affected: before 6.2, from 6.1.114 up to 6.1.*, from 6.6.58 up to 6.6.*, from 6.11.5 up to 6.11.*, from 6.12 up to * | CVE List |
| linux linux_kernel | from 6.1.57 before 6.1.114, from 6.2 before 6.6.58, from 6.7 before 6.11.5, 6.12 | NVD |
All scores
| Linux | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CISA-ADP | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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").
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: btrfs: fix uninitialized pointer free on read_alloc_one_name() error La función read_alloc_one_name() no inicializa el campo de nombre de la estructura fscrypt_str pasada si kmalloc no puede asignar el búfer correspondiente. Por lo tanto, no se garantiza que fscrypt_str.name se inicialice al liberarlo. Este es un seguimiento del parche vinculado que corrige las instancias restantes del error introducido por el commit e43eec81c516 ("btrfs: use struct qstr instead of name and namelen pairs").
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-50087 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2024-50087 changed 2026-08-04 | Public domain |