{
  "id": "CVE-2025-38012",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-38012",
  "published_at": "2025-06-18T09:28:22.057Z",
  "title": "sched_ext: bpf_iter_scx_dsq_new() should always initialize iterator",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nsched_ext: bpf_iter_scx_dsq_new() should always initialize iterator\n\nBPF programs may call next() and destroy() on BPF iterators even after new()\nreturns an error value (e.g. bpf_for_each() macro ignores error returns from\nnew()). bpf_iter_scx_dsq_new() could leave the iterator in an uninitialized\nstate after an error return causing bpf_iter_scx_dsq_next() to dereference\ngarbage data. Make bpf_iter_scx_dsq_new() always clear $kit-\u003edsq so that\nnext() and destroy() become noops.",
  "cwe": "CWE-908",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc6:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8,
    "nvd": 5.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 650ba21b131ed1f8ee57826b2c6295a3be221132, \u003c 0102989af4c334d1d98b2a0fd4d61a5152e39b72",
          "\u003e= 650ba21b131ed1f8ee57826b2c6295a3be221132, \u003c 255dd31bfc4a67a19b1fc2cd130a50284dadfe3a",
          "\u003e= 650ba21b131ed1f8ee57826b2c6295a3be221132, \u003c 428dc9fc0873989d73918d4a9cc22745b7bbc799"
        ],
        "fixed_in": [
          "0102989af4c334d1d98b2a0fd4d61a5152e39b72",
          "255dd31bfc4a67a19b1fc2cd130a50284dadfe3a",
          "428dc9fc0873989d73918d4a9cc22745b7bbc799"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.12"
        ],
        "fixed_in": [
          "0",
          "6.12.30",
          "6.14.8",
          "6.15"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 0102989af4c334d1d98b2a0fd4d61a5152e39b72 or 255dd31bfc4a67a19b1fc2cd130a50284dadfe3a or 428dc9fc0873989d73918d4a9cc22745b7bbc799 or later.",
      "Upgrade Linux to 0 or 6.12.30 or 6.14.8 or 6.15 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
