{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "d1f424a77b6bd27b361737ed73df49a0158f1590"
            },
            {
              "fixed": "7203b3225a0533d1cfd89dd4695ff80947ad16a7"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "4669a8db976c8cbd5427fe9945f12c5fa5168ff3"
            },
            {
              "fixed": "a18b920a21163cfcef67d3913c87ce53894dc19c"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "23f852daa4bab4d579110e034e4d513f7d490846"
            },
            {
              "fixed": "f624585522f6fe93823a3feea28ce3b4ace9e77a"
            },
            {
              "fixed": "a08ba2ab79dffd92c32d3f2dadfc7eba03625a2b"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "03fe4c886667b3a09b9d6afc03bbc68afb35c82b"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "d6028caa0ee39dccd005468adfa3223b92bd3ad3"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "2a008f6de163279deffd488c1deab081bce5667c"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.1.191"
            },
            {
              "fixed": "6.2"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.6.160"
            },
            {
              "fixed": "6.7"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.12.63"
            },
            {
              "fixed": "6.12.120"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.17.13"
            },
            {
              "fixed": "6.18"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.18.2"
            },
            {
              "fixed": "6.18.66"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.7"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143364.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Clamp the trace length before the skip test in stackid_init()\n\nstackid_init() gives a bucket of the stack map\nmin(trace_nr - skip, max_depth - skip) trace entries. Here max_depth is the\nsize of a bucket plus skip, but at most perf_event_max_stack. Context\nmarkers can make trace_nr larger than that, so the skip test can pass when\nmax_depth \u003c skip. Then 'max_depth - skip' wraps, and the kernel can write\nafter the bucket.\n\nClamp trace_nr to max_depth before the skip test, as __bpf_get_stack_pe()\ndoes. The result changes only when skip \u003e= max_depth. Then it is -EFAULT.\nUntil now skip == max_depth could give the id of an empty trace.\n\nget_perf_callchain() releases the trace, so an NMI can change trace-\u003enr.\nUse READ_ONCE() in bpf_get_stackid(), so the compiler reads it one time.",
  "id": "CVE-2026-143364",
  "modified": "2026-12-03T10:45:25.372140040Z",
  "published": "2026-12-03T09:22:16.867Z",
  "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/7203b3225a0533d1cfd89dd4695ff80947ad16a7"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a08ba2ab79dffd92c32d3f2dadfc7eba03625a2b"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a18b920a21163cfcef67d3913c87ce53894dc19c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f624585522f6fe93823a3feea28ce3b4ace9e77a"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143364.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-143364"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "bpf: Clamp the trace length before the skip test in stackid_init()"
}