Skip to content
Heist/ feed
Unrated

riscv, bpf: Fix memory leak in bpf_jit_free

Type: advisorySource: Official CVE List1 source record

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().

Announced Group revision 1
Original source ↗

CVE-2026-92519

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-92519

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "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"
      }
    ],
    "programFiles": [
      "arch/riscv/net/bpf_jit_core.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "6.6"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.6",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.6.160",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.110",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.52",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.2.6",
        "versionType": "semver",
        "lessThanOrEqual": "7.2.*"
      },
      {
        "status": "unaffected",
        "version": "7.3",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "arch/riscv/net/bpf_jit_core.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-92519

Source reference: /cveMetadata/cveId

Publisher severity

No explicit severity was provided.

Event
#48701 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement