{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "9eaead51bed957af0070a277d945744a76df0c8b"
            },
            {
              "fixed": "3f52eb7dd4a584c60f1b190b18fa4958b5fbef65"
            },
            {
              "fixed": "fa4189dbbd9487de3ef9437572a29c71c5521fe5"
            },
            {
              "fixed": "845ef1a6277f8b8bdf6479c6f561c16e5d5f56e2"
            },
            {
              "fixed": "2bbca049deeb1699cafd966cb2793fee576ee409"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "2.6.29"
            },
            {
              "fixed": "6.12.118"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.64"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.5"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99689.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nxfs: fix temporary cursor leak in btree shift corruption paths\n\nIn xfs_btree_lshift and xfs_btree_rshift, when XFS_IS_CORRUPT detects\nan invalid firstrec/lastrec result after xfs_btree_dup_cursor has\nsuccessfully allocated a temporary cursor, the error path jumps to\nerror0 which returns without freeing tcur.  This leaks the cursor\nmemory, the xfs_group reference, and the per-level buffer references\nheld by the duplicated cursor.  Jump to error1 instead, which calls\nxfs_btree_del_cursor(tcur, XFS_BTREE_ERROR) to properly release all\nresources.",
  "id": "CVE-2026-99689",
  "modified": "2026-11-20T06:45:27.096447077Z",
  "published": "2026-11-20T05:50:34.158Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2bbca049deeb1699cafd966cb2793fee576ee409"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/3f52eb7dd4a584c60f1b190b18fa4958b5fbef65"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/845ef1a6277f8b8bdf6479c6f561c16e5d5f56e2"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/fa4189dbbd9487de3ef9437572a29c71c5521fe5"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99689.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99689"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "xfs: fix temporary cursor leak in btree shift corruption paths"
}