{"id":"CVE-2026-46129","aliases":["CVE-2026-46129"],"related":[],"kind":"vulnerability","state":"published","title":"btrfs: fix double free in create_space_info() error path","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix double free in create_space_info() error path\n\nWhen kobject_init_and_add() fails, the call chain is:\n\ncreate_space_info()\n-> btrfs_sysfs_add_space_info_type()\n-> kobject_init_and_add()\n-> failure\n-> kobject_put(&space_info->kobj)\n-> space_info_release()\n-> kfree(space_info)\n\nThen control returns to create_space_info():\n\nbtrfs_sysfs_add_space_info_type() returns error\n-> goto out_free\n-> kfree(space_info)\n\nThis causes a double free.\n\nKeep the direct kfree(space_info) for the earlier failure path, but\nafter btrfs_sysfs_add_space_info_type() has called kobject_put(), let\nthe kobject release callback handle the cleanup.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix double free in create_space_info() error path\n\nWhen kobject_init_and_add() fails, the call chain is:\n\ncreate_space_info()\n-> btrfs_sysfs_add_space_info_type()\n-> kobject_init_and_add()\n-> failure\n-> kobject_put(&space_info->kobj)\n-> space_info_release()\n-> kfree(space_info)\n\nThen control returns to create_space_info():\n\nbtrfs_sysfs_add_space_info_type() returns error\n-> goto out_free\n-> kfree(space_info)\n\nThis causes a double free.\n\nKeep the direct kfree(space_info) for the earlier failure path, but\nafter btrfs_sysfs_add_space_info_type() has called kobject_put(), let\nthe kobject release callback handle the cleanup.","source":"cvelist"}],"published":"2026-05-28T09:35:44.271Z","modified":"2026-08-05T12:29:55.996Z","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"}],"cwes":["CWE-415"],"affected":[{"ranges":[{"type":"git","introduced":"20e8f2de3688082eeafeb93c8900485b7542457e","fixed":"ae6d6e31ceb72b7697c28a528e4923c08e3c2ef5","status":"affected"},{"type":"git","introduced":"58208907c4044a764dbd8896026283905da6d9be","fixed":"c2670ec4aa49ca226bce9776601e0da37502be07","status":"affected"},{"type":"git","introduced":"bb4fa4c0b54aae25e55faeda7f78d0c11b8cd618","fixed":"f414b3abbba59ef379a2b3c31f2bdd9358ed5e53","status":"affected"},{"type":"git","introduced":"6cb008f1bb23e023dfe615cca5df14570dfc8da5","fixed":"9a060970fd7b5e1c561e4ce73cb9949e4269a738","status":"affected"},{"type":"git","introduced":"a11224a016d6d1d46a4d9b6573244448a80d4d7f","fixed":"dd6ade0fdd59218d71a981ae7c937a304e49209c","status":"affected"},{"type":"git","introduced":"a11224a016d6d1d46a4d9b6573244448a80d4d7f","fixed":"3f487be81292702a59ea9dbc4088b3360a50e837","status":"affected"},{"type":"semver","introduced":"6.1.162","fixed":"6.1.175","status":"affected"},{"type":"semver","introduced":"6.6.122","fixed":"6.6.140","status":"affected"},{"type":"semver","introduced":"6.12.67","fixed":"6.12.88","status":"affected"},{"type":"semver","introduced":"6.18.7","fixed":"6.18.30","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.19","status":"unaffected"},{"type":"semver","introduced":"6.1.175","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.140","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.88","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.30","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.0.7","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","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.162","fixed":"6.1.175"},{"status":"affected","introduced":"6.6.122","fixed":"6.6.140"},{"status":"affected","introduced":"6.12.67","fixed":"6.12.88"},{"status":"affected","introduced":"6.18.7","fixed":"6.18.30"},{"status":"affected","introduced":"6.19.1","fixed":"7.0.7"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/ae6d6e31ceb72b7697c28a528e4923c08e3c2ef5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c2670ec4aa49ca226bce9776601e0da37502be07","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f414b3abbba59ef379a2b3c31f2bdd9358ed5e53","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9a060970fd7b5e1c561e4ce73cb9949e4269a738","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dd6ade0fdd59218d71a981ae7c937a304e49209c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3f487be81292702a59ea9dbc4088b3360a50e837","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-46129","url":"https://www.cve.org/CVERecord?id=CVE-2026-46129","licence":"CVE Terms of Use","modified":"2026-08-05T12:29:55.996Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-46129","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46129","licence":"Public domain","modified":"2026-06-24T18:10:24.650Z"}],"updatedAt":"2026-11-25T22:59:22.795Z","epss":{"score":0.00139,"percentile":0.0345,"date":"2026-12-02T12:00:21.000Z"}}