{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "5223cc60b40ae525ae6c94e98824129f1a5b4ae5"
            },
            {
              "fixed": "023545e272f369d487e6a986c1e321c6e04be1da"
            },
            {
              "fixed": "fd4913a53e3b54ad7e161847291439fe445d6356"
            },
            {
              "fixed": "b5b8ade9da452086e78f5d519b90d3769e354853"
            },
            {
              "fixed": "1ee1d006c9fe4d6be5527ab1c84216b80cccbe40"
            },
            {
              "fixed": "0761447f6f51e1c7997960d8e6559337deed6729"
            },
            {
              "fixed": "d7cf2314dd5e8661c05d076cd627eea9a7f76616"
            },
            {
              "fixed": "b2bd557b75b760e4b9d209112bda19314bd64558"
            },
            {
              "fixed": "ecb7c2484cfc83a93658907580035a8adf1e0a92"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "ecce1be9f2a366990d0e75dd249fb324e83c34a9"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "5.9.7"
            },
            {
              "fixed": "5.10"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.10.0"
            },
            {
              "fixed": "5.10.252"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.11.0"
            },
            {
              "fixed": "5.15.202"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.1.165"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.128"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.75"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.14"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "6.19.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45974.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix invalid leaf access in btrfs_quota_enable() if ref key not found\n\nIf btrfs_search_slot_for_read() returns 1, it means we did not find any\nkey greater than or equals to the key we asked for, meaning we have\nreached the end of the tree and therefore the path is not valid. If\nthis happens we need to break out of the loop and stop, instead of\ncontinuing and accessing an invalid path.",
  "id": "CVE-2026-45974",
  "modified": "2026-07-15T01:49:02.373065956Z",
  "published": "2026-05-27T12:18:33.107Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/023545e272f369d487e6a986c1e321c6e04be1da"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/0761447f6f51e1c7997960d8e6559337deed6729"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/1ee1d006c9fe4d6be5527ab1c84216b80cccbe40"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/b2bd557b75b760e4b9d209112bda19314bd64558"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/b5b8ade9da452086e78f5d519b90d3769e354853"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d7cf2314dd5e8661c05d076cd627eea9a7f76616"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ecb7c2484cfc83a93658907580035a8adf1e0a92"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/fd4913a53e3b54ad7e161847291439fe445d6356"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45974.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-45974"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.8.0",
  "summary": "btrfs: fix invalid leaf access in btrfs_quota_enable() if ref key not found"
}