{"id":"CVE-2024-50088","published":"2024-10-29T00:50:31Z","modified":"2026-08-05T11:41:33Z","title":"btrfs: fix uninitialized pointer free in add_inode_ref()","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0032,"percentile":0.17481,"provenance":"source"},"cwes":[{"id":"CWE-824","name":"Access of Uninitialized Pointer"}],"references":[{"url":"https://git.kernel.org/stable/c/12cf028381aa19bc38465341512c280256e8d82d","tags":[]},{"url":"https://git.kernel.org/stable/c/e11ce03b58743bf1e096c48fcaa7e6f08eb75dfa","tags":[]},{"url":"https://git.kernel.org/stable/c/a941f3d5b1469c60a7e70e775584f110b47e0d16","tags":[]},{"url":"https://git.kernel.org/stable/c/66691c6e2f18d2aa4b22ffb624b9bdc97e9979e4","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[]}],"priority":{"score":9.0,"factors":[{"name":"EPSS percentile","points":3.5},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 1cf474cd474bc5d3ef63086ffd009a87a5b7bb2e, < 12cf028381aa19bc38465341512c280256e8d82d",">= e43eec81c5167b655b72c781b0e75e62a05e415e, < e11ce03b58743bf1e096c48fcaa7e6f08eb75dfa",">= e43eec81c5167b655b72c781b0e75e62a05e415e, < a941f3d5b1469c60a7e70e775584f110b47e0d16",">= e43eec81c5167b655b72c781b0e75e62a05e415e, < 66691c6e2f18d2aa4b22ffb624b9bdc97e9979e4",">= 6.1.57, < 6.1.114"]},{"vendor":"Linux","product":"Linux","versions":["6.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-10-01T20:23:09.128991Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-44730","exploited":false,"provenance":"source"}}