CVE-2026-99756
btrfs: prevent deleting the wrong subvolume by ID
- CVSS
- —
- EPSS
- 0.18% (p8)
- Published
- 2026-11-20
- Age
- 14d old
- Modified
- 2026-11-23
- Product
- Linux Linux
Description
In the Linux kernel, the following vulnerability has been resolved: btrfs: prevent deleting the wrong subvolume by ID When deleting a subvolume by ID, btrfs_ioctl_snap_destroy() first resolves the requested ID to a name, then looks up that name again under the parent directory lock. A concurrent rename can change which subvolume is associated with the name between these operations. Since the deletion path does not verify the ID of the resolved subvolume, it can delete a different subvolume while leaving the requested one intact. This was reproduced by repeatedly exchanging the names of two subvolumes using renameat2(RENAME_EXCHANGE) while deleting one of them by ID. The wrong subvolume was deleted in 9 out of 14 independent tests. Fix this by checking that the resolved subvolume ID matches the requested ID while holding the parent directory lock. Return -EAGAIN on a mismatch so that userspace can retry the operation instead of being told that the requested subvolume does not exist.
Fixed in
1960146913b31b288ed2cd607d103ee3b41681d4 · 4bdb2a0ccd2aa93e81fcf13c43f2265f60cfe9a4 · 5.10.275 · 5.15.226 · 6.1.193 · 6.12.119 · 6.18.65 · 6.6.163 · 7.3.5 · 8e64f41414a2e0ec767dfb317103b931b4be0d64 · 9e7dda14b480bf4c515a6eecc516277f290ff2ee · bd5fe32d98fd2a09753034c867a138bd0699d57d · d70a57571d9b248c36830329c36a17a87e130485 · d75be841c195dd64bab6a8a28cde944ba1670ae0 · db399899dbac590d7d124b6896bd113916e7ab09
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| Linux | Kernel | >=5.11.0, <5.15.226 | 5.15.226 |
| Linux | Kernel | >=5.16.0, <6.1.193 | 6.1.193 |
| Linux | Kernel | >=5.7.0, <5.10.275 | 5.10.275 |
| Linux | Kernel | >=6.13.0, <6.18.65 | 6.18.65 |
| Linux | Kernel | >=6.19.0, <7.3.5 | 7.3.5 |
| Linux | Kernel | >=6.2.0, <6.6.163 | 6.6.163 |
| Linux | Kernel | >=6.7.0, <6.12.119 | 6.12.119 |
| vendor | Linux | >=949964c928430a42e0d4f514d888a58a201b6fcb, <1960146913b31b288ed2cd607d103ee3b41681d4 | 1960146913b31b288ed2cd607d103ee3b41681d4 |
| vendor | Linux | >=949964c928430a42e0d4f514d888a58a201b6fcb, <4bdb2a0ccd2aa93e81fcf13c43f2265f60cfe9a4 | 4bdb2a0ccd2aa93e81fcf13c43f2265f60cfe9a4 |
| vendor | Linux | >=949964c928430a42e0d4f514d888a58a201b6fcb, <8e64f41414a2e0ec767dfb317103b931b4be0d64 | 8e64f41414a2e0ec767dfb317103b931b4be0d64 |
| vendor | Linux | >=949964c928430a42e0d4f514d888a58a201b6fcb, <9e7dda14b480bf4c515a6eecc516277f290ff2ee | 9e7dda14b480bf4c515a6eecc516277f290ff2ee |
| vendor | Linux | >=949964c928430a42e0d4f514d888a58a201b6fcb, <bd5fe32d98fd2a09753034c867a138bd0699d57d | bd5fe32d98fd2a09753034c867a138bd0699d57d |
| vendor | Linux | >=949964c928430a42e0d4f514d888a58a201b6fcb, <d70a57571d9b248c36830329c36a17a87e130485 | d70a57571d9b248c36830329c36a17a87e130485 |
| vendor | Linux | >=949964c928430a42e0d4f514d888a58a201b6fcb, <d75be841c195dd64bab6a8a28cde944ba1670ae0 | d75be841c195dd64bab6a8a28cde944ba1670ae0 |
| vendor | Linux | >=949964c928430a42e0d4f514d888a58a201b6fcb, <db399899dbac590d7d124b6896bd113916e7ab09 | db399899dbac590d7d124b6896bd113916e7ab09 |
Sources
- NVD · first seen 14d ago · NVD terms of use
- OSV · first seen 11d ago · CC-BY 4.0
- CVE List · first seen 14d ago · CVE Terms of Use
References
- https://git.kernel.org/stable/c/db399899dbac590d7d124b6896bd113916e7ab09 other
- https://git.kernel.org/stable/c/1960146913b31b288ed2cd607d103ee3b41681d4 other
- https://git.kernel.org/stable/c/d75be841c195dd64bab6a8a28cde944ba1670ae0 other
- https://git.kernel.org/stable/c/d70a57571d9b248c36830329c36a17a87e130485 other
- https://git.kernel.org/stable/c/bd5fe32d98fd2a09753034c867a138bd0699d57d other
- https://git.kernel.org/stable/c/4bdb2a0ccd2aa93e81fcf13c43f2265f60cfe9a4 other
- https://git.kernel.org/stable/c/9e7dda14b480bf4c515a6eecc516277f290ff2ee other
- https://git.kernel.org/stable/c/8e64f41414a2e0ec767dfb317103b931b4be0d64 other
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99756.json advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-99756 advisory
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git package