{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2026-46129", "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "state": "PUBLISHED", "assignerShortName": "Linux", "dateReserved": "2026-05-13T15:03:33.099Z", "datePublished": "2026-05-28T09:35:44.271Z", "dateUpdated": "2026-08-05T12:29:55.996Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "shortName": "Linux", "dateUpdated": "2026-08-05T12:29:55.996Z" }, "descriptions": [ { "lang": "en", "value": "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." } ], "metrics": [ { "cvssV3_1": { "version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.8, "baseSeverity": "HIGH" }, "scenarios": [ { "lang": "en", "value": "AV:L - The vulnerable code is reachable only during a btrfs mount (btrfs_fill_super → open_ctree → btrfs_init_space_info → create_space_info); it requires presenting a device/image and initiating a mount locally, with no network path.\nAC:L - The failure point is kobject_init_and_add() returning an allocation error; per guidance memory pressure is attacker-influenceable, and an attacker can repeatedly retry mounts under induced pressure to hit it.\nPR:L - On typical desktops/kiosks an unprivileged user can mount attacker-supplied removable media or loop images via udisks2/autofs, so no real root in the init namespace is strictly required to initiate the triggering mount.\nUI:N - The attacker performs the mount of their own crafted image themselves, so no separate victim action is required.\nS:U - The double free corrupts kernel heap state within the kernel's own security authority with no crossing into another security domain (no VM/IOMMU boundary).\nC:H - A double free is memory corruption that can be leveraged via reallocation of the freed slot into an attacker-controlled object, enabling kernel memory disclosure.\nI:H - Double-free corruption of the heap allocator can be groomed into a write primitive / control-flow hijack, so integrity impact is High.\nA:H - A double free reliably corrupts allocator metadata and causes kernel oops/panic, yielding a High availability impact." } ] } ], "affected": [ { "product": "Linux", "vendor": "Linux", "defaultStatus": "unaffected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "fs/btrfs/space-info.c" ], "versions": [ { "version": "20e8f2de3688082eeafeb93c8900485b7542457e", "lessThan": "ae6d6e31ceb72b7697c28a528e4923c08e3c2ef5", "status": "affected", "versionType": "git" }, { "version": "58208907c4044a764dbd8896026283905da6d9be", "lessThan": "c2670ec4aa49ca226bce9776601e0da37502be07", "status": "affected", "versionType": "git" }, { "version": "bb4fa4c0b54aae25e55faeda7f78d0c11b8cd618", "lessThan": "f414b3abbba59ef379a2b3c31f2bdd9358ed5e53", "status": "affected", "versionType": "git" }, { "version": "6cb008f1bb23e023dfe615cca5df14570dfc8da5", "lessThan": "9a060970fd7b5e1c561e4ce73cb9949e4269a738", "status": "affected", "versionType": "git" }, { "version": "a11224a016d6d1d46a4d9b6573244448a80d4d7f", "lessThan": "dd6ade0fdd59218d71a981ae7c937a304e49209c", "status": "affected", "versionType": "git" }, { "version": "a11224a016d6d1d46a4d9b6573244448a80d4d7f", "lessThan": "3f487be81292702a59ea9dbc4088b3360a50e837", "status": "affected", "versionType": "git" }, { "version": "6.1.162", "lessThan": "6.1.175", "status": "affected", "versionType": "semver" }, { "version": "6.6.122", "lessThan": "6.6.140", "status": "affected", "versionType": "semver" }, { "version": "6.12.67", "lessThan": "6.12.88", "status": "affected", "versionType": "semver" }, { "version": "6.18.7", "lessThan": "6.18.30", "status": "affected", "versionType": "semver" } ] }, { "product": "Linux", "vendor": "Linux", "defaultStatus": "affected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "fs/btrfs/space-info.c" ], "versions": [ { "version": "6.19", "status": "affected" }, { "version": "0", "lessThan": "6.19", "status": "unaffected", "versionType": "semver" }, { "version": "6.1.175", "lessThanOrEqual": "6.1.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.6.140", "lessThanOrEqual": "6.6.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.12.88", "lessThanOrEqual": "6.12.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.18.30", "lessThanOrEqual": "6.18.*", "status": "unaffected", "versionType": "semver" }, { "version": "7.0.7", "lessThanOrEqual": "7.0.*", "status": "unaffected", "versionType": "semver" }, { "version": "7.1", "lessThanOrEqual": "*", "status": "unaffected", "versionType": "original_commit_for_fix" } ] } ], "cpeApplicability": [ { "nodes": [ { "operator": "OR", "negate": false, "cpeMatch": [ { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.1.162", "versionEndExcluding": "6.1.175" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.6.122", "versionEndExcluding": "6.6.140" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.12.67", "versionEndExcluding": "6.12.88" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.18.7", "versionEndExcluding": "6.18.30" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.19", "versionEndExcluding": "7.0.7" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.19", "versionEndExcluding": "7.1" } ] } ] } ], "references": [ { "url": "https://git.kernel.org/stable/c/ae6d6e31ceb72b7697c28a528e4923c08e3c2ef5" }, { "url": "https://git.kernel.org/stable/c/c2670ec4aa49ca226bce9776601e0da37502be07" }, { "url": "https://git.kernel.org/stable/c/f414b3abbba59ef379a2b3c31f2bdd9358ed5e53" }, { "url": "https://git.kernel.org/stable/c/9a060970fd7b5e1c561e4ce73cb9949e4269a738" }, { "url": "https://git.kernel.org/stable/c/dd6ade0fdd59218d71a981ae7c937a304e49209c" }, { "url": "https://git.kernel.org/stable/c/3f487be81292702a59ea9dbc4088b3360a50e837" } ], "title": "btrfs: fix double free in create_space_info() error path", "x_generator": { "engine": "bippy-1.2.0" } } } }