{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "06accc8779c1d558a5b5a21f2ac82b0c95827ddd"
            },
            {
              "fixed": "f5d3e5382dbca1a639fe124a38acd526155a5103"
            },
            {
              "fixed": "fe416645a7c67cd7d1127ea707e7027145ddf2c5"
            },
            {
              "fixed": "cc3ad4a2f4812f1efeb6fff6eba6260f8fc6faa6"
            },
            {
              "fixed": "6f3ee3516305da3043f1787e3890381a54151730"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.4.0"
            },
            {
              "fixed": "6.12.120"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.66"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139621.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Don't converge a loop on an iterator that was created anew\n\nWhen the verifier reaches bpf_iter_*_next() in a state that is equal to\na state that is still being explored it concludes that the loop\nconverged, since an active iterator will be drained eventually.\nstates_equal() matches ids through idmap, so the same is concluded for\nan iterator that was destroyed and created again since the old state:\n\n  bpf_iter_num_new(\u0026it, 0, 10);\n  loop:\n          if (bpf_ktime_get_ns())\n                  goto remake;\n  next:\n          if (!bpf_iter_num_next(\u0026it))\n                  goto out;\n          goto loop;\n  remake:\n          bpf_iter_num_destroy(\u0026it);\n          bpf_iter_num_new(\u0026it, 0, 10);\n          goto next;\n\nSuch prog is accepted when the call of bpf_iter_num_next() is the first\nprune point after bpf_iter_num_new() and it never returns. Otherwise\nit's rejected with \"infinite loop detected\".\n\nRequire the iterator to have the same id in both states.",
  "id": "CVE-2026-139621",
  "modified": "2026-11-30T14:45:22.373430619Z",
  "published": "2026-11-30T13:36:26.614Z",
  "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/6f3ee3516305da3043f1787e3890381a54151730"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/cc3ad4a2f4812f1efeb6fff6eba6260f8fc6faa6"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f5d3e5382dbca1a639fe124a38acd526155a5103"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/fe416645a7c67cd7d1127ea707e7027145ddf2c5"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139621.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139621"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "bpf: Don't converge a loop on an iterator that was created anew"
}