Skip to content
Heist/ feed
High

bpf, arm64: Fix fp initialization for exception boundary

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: bpf, arm64: Fix fp initialization for exception boundary In the ARM64 BPF JIT when prog->aux->exception_boundary is set for a BPF program, find_used_callee_regs() is not called because for a program acting as exception boundary, all callee saved registers are saved. find_used_callee_regs() sets `ctx->fp_used = true;` when it sees FP being used in any of the instructions. For programs acting as exception boundary, ctx->fp_used remains false even if frame pointer is used by the program and therefore, FP is not set-up for such programs in the prologue. This can cause the kernel to crash due to a pagefault. Fix it by setting ctx->fp_used = true for exception boundary programs as fp is always saved in such programs.

Announced Source revision 1
Original source ↗

CVE-2025-38586

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-2025-38586

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": "5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff",
        "lessThan": "0dbef493cae7d451f740558665893c000adb2321",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff",
        "lessThan": "e23184725dbb72d5d02940222eee36dbba2aa422",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff",
        "lessThan": "1ce30231e0a2c8c361ee5f8f7f265fc17130adce",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff",
        "lessThan": "b114fcee766d5101eada1aca7bb5fd0a86c89b35",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "arch/arm64/net/bpf_jit_comp.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.12"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.12",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.12.42",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.15.10",
        "versionType": "semver",
        "lessThanOrEqual": "6.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.16.1",
        "versionType": "semver",
        "lessThanOrEqual": "6.16.*"
      },
      {
        "status": "unaffected",
        "version": "6.17",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "arch/arm64/net/bpf_jit_comp.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2025-38586

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

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