CVE-2026-46164
btrfs: fix double free in create_space_info_sub_group() error path
Check your servers for CVE-2026-46164
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-46164 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
btrfs: fix double free in create_space_info_sub_group() error path
When kobject_init_and_add() fails, the call chain is:
create_space_info_sub_group() -> btrfs_sysfs_add_space_info_type() -> kobject_init_and_add() -> failure -> kobject_put(&sub_group->kobj) -> space_info_release() -> kfree(sub_group)
Then control returns to create_space_info_sub_group(), where:
btrfs_sysfs_add_space_info_type() returns error -> kfree(sub_group)
Thus, sub_group is freed twice.
Keep parent->sub_group[index] = NULL for the failure path, but after btrfs_sysfs_add_space_info_type() has called kobject_put(), let the kobject release callback handle the cleanup.
Severity (CVSS)
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- none: the attacker does not need an account
- User interaction
- required: a user has to do something, such as open a link or a file
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.16%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 3.17% of all scored CVEs. Scores of 30 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 64c7ddda83acfbaa0efb381a1928ce908c584607, before c2d59527cba6d59f0d77a75c1101ab4e69758bea affected from 0bd151ce4200ca847990e05cca29a76456982ca5, before d2a675f2e238ec96c8e91e2718c1f910c9c8fb21 affected from 190d5a7c4fe42b8c9aa46e3336389e7cb10395bb, before 14b22be1dd844383eb03af9b1ee3b6b25d32aeaf affected from f92ee31e031c7819126d2febdda0c3e91f5d2eb9, before dfd05a16b5c9d1d98b47905f37f2fccda52173d1 affected from f92ee31e031c7819126d2febdda0c3e91f5d2eb9, before 259af6857a1b4f1e9ef8b780353f9d11c26a22bd affected from f92ee31e031c7819126d2febdda0c3e91f5d2eb9, before a7449edf96143f192606ec8647e3167e1ecbd728 affected from 6.1.162, before 6.1.176 affected from 6.6.122, before 6.6.141 affected from 6.12.67, before 6.12.90
Other versions: unaffected
|
| Linux |
affected 6.16 unaffected before 6.16 unaffected from 6.1.176 up to and including 6.1.* unaffected from 6.6.141 up to and including 6.6.* unaffected from 6.12.90 up to and including 6.12.* unaffected from 6.18.32 up to and including 6.18.* unaffected from 7.0.7 up to and including 7.0.* unaffected 7.1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-46164 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-46164
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-46164
trivy image --scanners vuln IMAGE | grep CVE-2026-46164
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/c2d59527cba6d59f0d77a75c1101ab4e69758bea git.kernel.org
- https://git.kernel.org/stable/c/d2a675f2e238ec96c8e91e2718c1f910c9c8fb21 git.kernel.org
- https://git.kernel.org/stable/c/14b22be1dd844383eb03af9b1ee3b6b25d32aeaf git.kernel.org
- https://git.kernel.org/stable/c/dfd05a16b5c9d1d98b47905f37f2fccda52173d1 git.kernel.org
- https://git.kernel.org/stable/c/259af6857a1b4f1e9ef8b780353f9d11c26a22bd git.kernel.org
- https://git.kernel.org/stable/c/a7449edf96143f192606ec8647e3167e1ecbd728 git.kernel.org
Source: the record CVE-2026-46164 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse