{"id":"CVE-2024-50087","aliases":["CVE-2024-50087"],"related":[],"kind":"vulnerability","state":"published","title":"btrfs: fix uninitialized pointer free on read_alloc_one_name() error","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix uninitialized pointer free on read_alloc_one_name() error\n\nThe function read_alloc_one_name() does not initialize the name field of\nthe passed fscrypt_str struct if kmalloc fails to allocate the\ncorresponding buffer.  Thus, it is not guaranteed that\nfscrypt_str.name is initialized when freeing it.\n\nThis is a follow-up to the linked patch that fixes the remaining\ninstances of the bug introduced by commit e43eec81c516 (\"btrfs: use\nstruct qstr instead of name and namelen pairs\").","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix uninitialized pointer free on read_alloc_one_name() error\n\nThe function read_alloc_one_name() does not initialize the name field of\nthe passed fscrypt_str struct if kmalloc fails to allocate the\ncorresponding buffer.  Thus, it is not guaranteed that\nfscrypt_str.name is initialized when freeing it.\n\nThis is a follow-up to the linked patch that fixes the remaining\ninstances of the bug introduced by commit e43eec81c516 (\"btrfs: use\nstruct qstr instead of name and namelen pairs\").","source":"cvelist"},{"lang":"es","text":"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\").","source":"nvd"}],"published":"2024-10-29T00:50:30.313Z","modified":"2026-08-05T11:41:32.766Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-824"],"affected":[{"ranges":[{"type":"git","introduced":"1cf474cd474bc5d3ef63086ffd009a87a5b7bb2e","fixed":"b37de9491f140a0ff125c27dd1050185c3accbc1","status":"affected"},{"type":"git","introduced":"e43eec81c5167b655b72c781b0e75e62a05e415e","fixed":"7fc7c47b9ba0cf2d192f2117a64b24881b0b577f","status":"affected"},{"type":"git","introduced":"e43eec81c5167b655b72c781b0e75e62a05e415e","fixed":"1ec28de5e476913ae51f909660b4447eddb28838","status":"affected"},{"type":"git","introduced":"e43eec81c5167b655b72c781b0e75e62a05e415e","fixed":"2ab5e243c2266c841e0f6904fad1514b18eaf510","status":"affected"},{"type":"semver","introduced":"6.1.57","fixed":"6.1.114","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.2","status":"unaffected"},{"type":"semver","introduced":"6.1.114","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.58","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.11.5","lastAffected":"6.11.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.12","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.1.57","fixed":"6.1.114"},{"status":"affected","introduced":"6.2","fixed":"6.6.58"},{"status":"affected","introduced":"6.7","fixed":"6.11.5"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/b37de9491f140a0ff125c27dd1050185c3accbc1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7fc7c47b9ba0cf2d192f2117a64b24881b0b577f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1ec28de5e476913ae51f909660b4447eddb28838","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2ab5e243c2266c841e0f6904fad1514b18eaf510","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-01T20:23:12.303Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-50087","url":"https://www.cve.org/CVERecord?id=CVE-2024-50087","licence":"CVE Terms of Use","modified":"2026-08-05T11:41:32.766Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-50087","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50087","licence":"Public domain","modified":"2026-08-04T11:21:17.337Z"}],"updatedAt":"2026-11-25T22:58:47.451Z","epss":{"score":0.00214,"percentile":0.12545,"date":"2026-12-01T12:00:22.000Z"}}