# CVE-2026-99689: xfs: fix temporary cursor leak in btree shift corruption paths

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-20 · Modified: 2026-11-23
- Aliases: DEBIAN-CVE-2026-99689, UBUNTU-CVE-2026-99689, CGA-3r83-mx57-v89h, CGA-483c-rrvv-q569, CGA-53jh-qgw2-qgpc, CGA-87rj-v6q9-h3mv, CGA-c2vf-7xm7-gqp2, CGA-cc3x-mhwm-64cq, CGA-fmwx-xh3q-3h9h, CGA-g9x3-qh3w-xfrr, CGA-vqxq-8q3g-g4pp, CGA-w524-68ch-m83g, CGA-x5w9-mf8p-v2v6, CGA-2gmw-c3pw-724p, CGA-6x5f-vwwf-6x63, CGA-m63w-wrwf-52q2, CGA-mh3m-2p4p-97rc, CGA-pfr3-xfwj-wpcq, CGA-vp8j-gwhg-96p4, CGA-w632-2j35-jwc6, CGA-m6rv-57hf-rr7x
- Record: https://cvemate.com/vulnerability/CVE-2026-99689 · JSON: https://cvemate.com/vulnerability/CVE-2026-99689/json

## Description

```text
In the Linux kernel, the following vulnerability has been resolved:

xfs: fix temporary cursor leak in btree shift corruption paths

In xfs_btree_lshift and xfs_btree_rshift, when XFS_IS_CORRUPT detects
an invalid firstrec/lastrec result after xfs_btree_dup_cursor has
successfully allocated a temporary cursor, the error path jumps to
error0 which returns without freeing tcur.  This leaks the cursor
memory, the xfs_group reference, and the per-level buffer references
held by the duplicated cursor.  Jump to error1 instead, which calls
xfs_btree_del_cursor(tcur, XFS_BTREE_ERROR) to properly release all
resources.
```

## Signals

- CVSS: 5.3 medium (v4.0, OSV · Ubuntu) CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- EPSS: 0.177%, percentile 7.563%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 182)

- chainguard linux-desktop-7.2 (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-bootc (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-bootc-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-modules (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2 (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-bootc (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-bootc-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-modules (Chainguard): All versions (No fix recorded)
- debian linux (Debian): All versions (No fix recorded) \| \< 6.12.118-1 \| \< 7.3.5-1
- debian linux-6.12 (Debian): \< 6.12.118-1~deb12u1
- ubuntu linux (Ubuntu): All versions (No fix recorded)
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)

## References

- <https://git.kernel.org/stable/c/3f52eb7dd4a584c60f1b190b18fa4958b5fbef65>
- <https://git.kernel.org/stable/c/fa4189dbbd9487de3ef9437572a29c71c5521fe5>
- <https://git.kernel.org/stable/c/845ef1a6277f8b8bdf6479c6f561c16e5d5f56e2>
- <https://git.kernel.org/stable/c/2bbca049deeb1699cafd966cb2793fee576ee409>
- <https://security-tracker.debian.org/tracker/CVE-2026-99689>
- <https://git.kernel.org/stable/c/476fa55ee5071b113202d7ff87c53ec12c7714ef>
- <https://git.kernel.org/stable/c/90cf07b0e2d827e7ae1b34cf8b2f337332f67b1e>
- <https://git.kernel.org/stable/c/ef31e08939f5a926cee9ad9e3b35144d6cddff97>
- <https://git.kernel.org/stable/c/0c9778449bb8beb9408c71904cebcc3d98b1d3c8>
- <https://ubuntu.com/security/CVE-2026-99689>
- <https://www.cve.org/CVERecord?id=CVE-2026-99689>
- <https://git.kernel.org/linus/2bbca049deeb1699cafd966cb2793fee576ee409>

---

Data as of 2026-12-05T14:04:04.378Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
