# CVE-2026-99756: btrfs: prevent deleting the wrong subvolume by ID

Status: published. Published: 2026-11-20. Updated: 2026-11-23.

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.

## Remediation

No remediation reported in collected sources

## Affected products and versions

- Linux / Linux: ≥ 949964c928430a42e0d4f514d888a58a201b6fcb; < d75be841c195dd64bab6a8a28cde944ba1670ae0 (affected, git); ≥ 949964c928430a42e0d4f514d888a58a201b6fcb; < d70a57571d9b248c36830329c36a17a87e130485 (affected, git); ≥ 949964c928430a42e0d4f514d888a58a201b6fcb; < bd5fe32d98fd2a09753034c867a138bd0699d57d (affected, git); ≥ 949964c928430a42e0d4f514d888a58a201b6fcb; < 4bdb2a0ccd2aa93e81fcf13c43f2265f60cfe9a4 (affected, git); ≥ 949964c928430a42e0d4f514d888a58a201b6fcb; < 9e7dda14b480bf4c515a6eecc516277f290ff2ee (affected, git); ≥ 949964c928430a42e0d4f514d888a58a201b6fcb; < 8e64f41414a2e0ec767dfb317103b931b4be0d64 (affected, git); ≥ 949964c928430a42e0d4f514d888a58a201b6fcb; < db399899dbac590d7d124b6896bd113916e7ab09 (affected, git); ≥ 949964c928430a42e0d4f514d888a58a201b6fcb; < 1960146913b31b288ed2cd607d103ee3b41681d4 (affected, git). Source: CNA: Linux
- Linux / Linux: 5.7 (affected); ≥ 0; < 5.7 (unaffected, semver); ≥ 5.10.275; ≤ 5.10.* (unaffected, semver); ≥ 5.15.226; ≤ 5.15.* (unaffected, semver); ≥ 6.1.193; ≤ 6.1.* (unaffected, semver); ≥ 6.6.163; ≤ 6.6.* (unaffected, semver); ≥ 6.12.119; ≤ 6.12.* (unaffected, semver); ≥ 6.18.65; ≤ 6.18.* (unaffected, semver); ≥ 7.3.5; ≤ 7.3.* (unaffected, semver); ≥ 7.4-rc2; ≤ * (unaffected, original_commit_for_fix). Source: CNA: Linux

## Severity and prioritization

- CISA KEV: No listing in collected sources

- EPSS: 0.16% as of 2026-11-22; percentile 4.73%

- SSVC: Not available

- Weaknesses: Not reported

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://git.kernel.org/stable/c/d75be841c195dd64bab6a8a28cde944ba1670ae0 (CNA: Linux)

- https://git.kernel.org/stable/c/d70a57571d9b248c36830329c36a17a87e130485 (CNA: Linux)

- https://git.kernel.org/stable/c/bd5fe32d98fd2a09753034c867a138bd0699d57d (CNA: Linux)

- https://git.kernel.org/stable/c/4bdb2a0ccd2aa93e81fcf13c43f2265f60cfe9a4 (CNA: Linux)

- https://git.kernel.org/stable/c/9e7dda14b480bf4c515a6eecc516277f290ff2ee (CNA: Linux)

- https://git.kernel.org/stable/c/8e64f41414a2e0ec767dfb317103b931b4be0d64 (CNA: Linux)

- https://git.kernel.org/stable/c/db399899dbac590d7d124b6896bd113916e7ab09 (CNA: Linux)

- https://git.kernel.org/stable/c/1960146913b31b288ed2cd607d103ee3b41681d4 (CNA: Linux)

- https://git.kernel.org/stable/c/1960146913b31b288ed2cd607d103ee3b41681d4 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

- https://git.kernel.org/stable/c/db399899dbac590d7d124b6896bd113916e7ab09 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

## Provenance

- CNA: Linux: https://www.cve.org/CVERecord?id=CVE-2026-99756; retrieved 2026-11-23; source updated 2026-11-23

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-99756; retrieved 2026-11-20; source updated 2026-11-20

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-99756; retrieved 2026-11-23; source updated Not reported

Revision: 7c7a9367567421cf4e6c90b20ed36e5932e5afd906150990dbda758bbdb0a6cb

Canonical: https://y2.dev/cve/CVE-2026-99756

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.