{"id":"CVE-2024-50088","aliases":["CVE-2024-50088"],"related":[],"kind":"vulnerability","state":"published","title":"btrfs: fix uninitialized pointer free in add_inode_ref()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix uninitialized pointer free in add_inode_ref()\n\nThe add_inode_ref() function does not initialize the \"name\" struct when\nit is declared.  If any of the following calls to \"read_one_inode()\nreturns NULL,\n\n\tdir = read_one_inode(root, parent_objectid);\n\tif (!dir) {\n\t\tret = -ENOENT;\n\t\tgoto out;\n\t}\n\n\tinode = read_one_inode(root, inode_objectid);\n\tif (!inode) {\n\t\tret = -EIO;\n\t\tgoto out;\n\t}\n\nthen \"name.name\" would be freed on \"out\" before being initialized.\n\nout:\n\t...\n\tkfree(name.name);\n\nThis issue was reported by Coverity with CID 1526744.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix uninitialized pointer free in add_inode_ref()\n\nThe add_inode_ref() function does not initialize the \"name\" struct when\nit is declared.  If any of the following calls to \"read_one_inode()\nreturns NULL,\n\n\tdir = read_one_inode(root, parent_objectid);\n\tif (!dir) {\n\t\tret = -ENOENT;\n\t\tgoto out;\n\t}\n\n\tinode = read_one_inode(root, inode_objectid);\n\tif (!inode) {\n\t\tret = -EIO;\n\t\tgoto out;\n\t}\n\nthen \"name.name\" would be freed on \"out\" before being initialized.\n\nout:\n\t...\n\tkfree(name.name);\n\nThis issue was reported by Coverity with CID 1526744.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: btrfs: se corrige la liberación de un puntero no inicializado en add_inode_ref() La función add_inode_ref() no inicializa la estructura \"name\" cuando se declara. Si alguna de las siguientes llamadas a \"read_one_inode() devuelve NULL, dir = read_one_inode(root, parent_objectid); if (!dir) { ret = -ENOENT; goto out; } inode = read_one_inode(root, inode_objectid); if (!inode) { ret = -EIO; goto out; } entonces \"name.name\" se liberaría en \"out\" antes de inicializarse. out: ... kfree(name.name); Este problema fue informado por Coverity con CID 1526744.","source":"nvd"}],"published":"2024-10-29T00:50:31.362Z","modified":"2026-08-05T11:41:33.818Z","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:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","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"}],"cwes":["CWE-824"],"affected":[{"ranges":[{"type":"git","introduced":"1cf474cd474bc5d3ef63086ffd009a87a5b7bb2e","fixed":"12cf028381aa19bc38465341512c280256e8d82d","status":"affected"},{"type":"git","introduced":"e43eec81c5167b655b72c781b0e75e62a05e415e","fixed":"e11ce03b58743bf1e096c48fcaa7e6f08eb75dfa","status":"affected"},{"type":"git","introduced":"e43eec81c5167b655b72c781b0e75e62a05e415e","fixed":"a941f3d5b1469c60a7e70e775584f110b47e0d16","status":"affected"},{"type":"git","introduced":"e43eec81c5167b655b72c781b0e75e62a05e415e","fixed":"66691c6e2f18d2aa4b22ffb624b9bdc97e9979e4","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/12cf028381aa19bc38465341512c280256e8d82d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e11ce03b58743bf1e096c48fcaa7e6f08eb75dfa","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a941f3d5b1469c60a7e70e775584f110b47e0d16","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/66691c6e2f18d2aa4b22ffb624b9bdc97e9979e4","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":"total","date":"2025-10-01T20:23:09.128Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-50088","url":"https://www.cve.org/CVERecord?id=CVE-2024-50088","licence":"CVE Terms of Use","modified":"2026-08-05T11:41:33.818Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-50088","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50088","licence":"Public domain","modified":"2026-06-17T08:03:33.250Z"}],"updatedAt":"2026-11-25T22:58:47.451Z","epss":{"score":0.00214,"percentile":0.12546,"date":"2026-12-01T12:00:22.000Z"}}