← Back to CVE Explorer

CVE-2026-92519

Full vulnerability record from the local CVENow database.

Description

In the Linux kernel, the following vulnerability has been resolved: riscv, bpf: Fix memory leak in bpf_jit_free When bpf_int_jit_compile() is called for subprograms, it returns early during the first pass (!prog->is_func || extra_pass is false), keeping ctx->offset alive for the subsequent extra pass. If JIT compilation fails for a later subprogram, the BPF core aborts and calls bpf_jit_free() to clean up the first subprogram. However, bpf_jit_free() fails to free jit_data->ctx.offset, which causes a memory leak of the JIT context offsets array. Fix this by adding the missing kfree(jit_data->ctx.offset) in bpf_jit_free().

Severity
Not scored
CVSS score
Not available
Vulnerability status
Received
Source identifier
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Published
2026-09-17 17:17:54.787000
Last modified
2026-10-21 13:20:58.530000
View original CVE JSON
{
  "id": "CVE-2026-92519",
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
  "published": "2026-09-17T17:17:54.787",
  "lastModified": "2026-10-21T13:20:58.530",
  "vulnStatus": "Received",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nriscv, bpf: Fix memory leak in bpf_jit_free\n\nWhen bpf_int_jit_compile() is called for subprograms, it returns early\nduring the first pass (!prog->is_func || extra_pass is false), keeping\nctx->offset alive for the subsequent extra pass.\n\nIf JIT compilation fails for a later subprogram, the BPF core aborts\nand calls bpf_jit_free() to clean up the first subprogram. However,\nbpf_jit_free() fails to free jit_data->ctx.offset, which causes a\nmemory leak of the JIT context offsets array.\n\nFix this by adding the missing kfree(jit_data->ctx.offset) in\nbpf_jit_free()."
    }
  ],
  "affected": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "affectedData": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "programFiles": [
            "arch/riscv/net/bpf_jit_core.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "versions": [
            {
              "version": "48a8f78c50bd6f7f08fd40daa62252fd043f2f18",
              "lessThan": "7285f004293e7dc043c55369c0dbe8350b28cc45",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "48a8f78c50bd6f7f08fd40daa62252fd043f2f18",
              "lessThan": "b594c23f584ab032a5eae809eee81b809dd27330",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "48a8f78c50bd6f7f08fd40daa62252fd043f2f18",
              "lessThan": "5cadc66b534fe8140441916200a20c7efb06a388",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "48a8f78c50bd6f7f08fd40daa62252fd043f2f18",
              "lessThan": "2a3a29e90021806ea00527f6458cfd2edb58b42a",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "48a8f78c50bd6f7f08fd40daa62252fd043f2f18",
              "lessThan": "369e4635d04801f394d5bd42556f21029e95ff93",
              "versionType": "git",
              "status": "affected"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "programFiles": [
            "arch/riscv/net/bpf_jit_core.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "versions": [
            {
              "version": "6.6",
              "status": "affected"
            },
            {
              "version": "0",
              "lessThan": "6.6",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.6.160",
              "lessThanOrEqual": "6.6.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.12.110",
              "lessThanOrEqual": "6.12.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.18.52",
              "lessThanOrEqual": "6.18.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "7.2.6",
              "lessThanOrEqual": "7.2.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "7.3",
              "lessThanOrEqual": "*",
              "versionType": "original_commit_for_fix",
              "status": "unaffected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {},
  "references": [
    {
      "url": "https://git.kernel.org/stable/c/2a3a29e90021806ea00527f6458cfd2edb58b42a",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/369e4635d04801f394d5bd42556f21029e95ff93",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/5cadc66b534fe8140441916200a20c7efb06a388",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/7285f004293e7dc043c55369c0dbe8350b28cc45",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/b594c23f584ab032a5eae809eee81b809dd27330",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    }
  ]
}