CVE-2026-92518 (GCVE-0-2026-92518)
Vulnerability from cvelistv5
Published
2026-09-17 16:10
Modified
2026-10-19 09:04
Summary
In the Linux kernel, the following vulnerability has been resolved: riscv, bpf: Fix kernel stack corruption in tailcall with CFI When CONFIG_CFI_CLANG is enabled, prog->bpf_func already skips the kcfi instruction during setup. Including it again in the tailcall jump offset causes it to jump over an extra 4 bytes, skipping the stack pointer adjustment, which will result in kernel stack corruption.
Impacted products
Vendor Product Version
Linux Linux Version: 30a59cc79754fd9ff3f41b7ee2eb21da85988548
Version: 30a59cc79754fd9ff3f41b7ee2eb21da85988548
Version: 30a59cc79754fd9ff3f41b7ee2eb21da85988548
Version: fe5b68fdcec0f3d97a32f4c4acfef59cf90718f7
Version: 6.11.6   ≤
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "arch/riscv/net/bpf_jit_comp64.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "34b1bb33a025787e05f966e74de18cd36276f801",
              "status": "affected",
              "version": "30a59cc79754fd9ff3f41b7ee2eb21da85988548",
              "versionType": "git"
            },
            {
              "lessThan": "a6e11a81da3420fd37f1518d4f238c4d5784086e",
              "status": "affected",
              "version": "30a59cc79754fd9ff3f41b7ee2eb21da85988548",
              "versionType": "git"
            },
            {
              "lessThan": "52fb1756ea1d2759dfef2d86245be00b05dac3a2",
              "status": "affected",
              "version": "30a59cc79754fd9ff3f41b7ee2eb21da85988548",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "fe5b68fdcec0f3d97a32f4c4acfef59cf90718f7",
              "versionType": "git"
            },
            {
              "lessThan": "6.12",
              "status": "affected",
              "version": "6.11.6",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "arch/riscv/net/bpf_jit_comp64.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.12"
            },
            {
              "lessThan": "6.12",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.52",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.2.*",
              "status": "unaffected",
              "version": "7.2.6",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.3",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.52",
                  "versionStartIncluding": "6.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2.6",
                  "versionStartIncluding": "6.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3",
                  "versionStartIncluding": "6.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "6.11.6",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nriscv, bpf: Fix kernel stack corruption in tailcall with CFI\n\nWhen CONFIG_CFI_CLANG is enabled, prog-\u003ebpf_func already skips the kcfi\ninstruction during setup. Including it again in the tailcall jump offset\ncauses it to jump over an extra 4 bytes, skipping the stack pointer\nadjustment, which will result in kernel stack corruption."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The attacker-controlled input is a BPF program that uses bpf_tail_call, loaded via bpf(BPF_PROG_LOAD) in __sys_bpf(). emit_bpf_tail_call() then calls __build_epilogue(true), which emits the miscomputed jalr; no remote protocol carries that bytecode.\nAC:L - On CONFIG_CFI, bpf_int_jit_compile() sets prog-\u003ebpf_func to ro_insns+cfi_get_offset() (skipping the kcfi word), while __build_epilogue() still adds RV_KCFI_NINSNS to the jalr immediate, so every tail call lands past the prologue addi-to-SP. The attacker loads the caller/callee and runs them; no race or uninfluenced layout is required.\nPR:L - bpf_prog_load() allows BPF_PROG_TYPE_SOCKET_FILTER without CAP_BPF when unprivileged BPF is enabled, BPF_MAP_TYPE_PROG_ARRAY is created without CAP_BPF, and bpf_base_func_proto() returns bpf_tail_call_proto before the CAP_PERFMON gate. Otherwise only CAP_BPF or a delegated BPF token is required, not init-namespace root.\nUI:N - The attacker loads both programs, updates the PROG_ARRAY, and runs the caller with bpf(BPF_PROG_TEST_RUN) (sk_filter_prog_ops.test_run = bpf_prog_test_run_skb) or setsockopt(SO_ATTACH_BPF) on a socket they own. No other user must mount, open, or click.\nS:U - The skipped stack allocation corrupts the host kernel stack of the thread running the JITed image (bpf_prog_test_run_skb or sk_filter_trim_cap). That is in-kernel memory corruption on the same authority, not a KVM/Xen guest-to-host or IOMMU boundary crossing.\nC:H - After the tailcall jalr skips emit_addi(SP, SP, -stack_adjust), bpf_jit_build_prologue() still does emit_addi(S5, SP, bpf_stack_adjust), so BPF_REG_FP addresses the kernel caller\u0027s frame. FP-relative LDX then reads saved return addresses and locals from that frame.\nI:H - The same missed SP subtract means prologue sd of RA/FP/S1\u2013S6 and BPF STX through S5 write into the kernel frame above SP. The callee epilogue then addi SP, SP, stack_adjust and jalr RA on that smashed frame, enabling a stack pivot and control-flow hijack.\nA:H - Returning from the tail-call target with SP still at the pre-BPF kernel SP, then adding stack_adjust in __build_epilogue(), misaligns the caller of bpf_prog_run so the kernel oopses or panics; any such crash is Availability High."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-10-19T09:04:24.705Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/34b1bb33a025787e05f966e74de18cd36276f801"
        },
        {
          "url": "https://git.kernel.org/stable/c/a6e11a81da3420fd37f1518d4f238c4d5784086e"
        },
        {
          "url": "https://git.kernel.org/stable/c/52fb1756ea1d2759dfef2d86245be00b05dac3a2"
        }
      ],
      "title": "riscv, bpf: Fix kernel stack corruption in tailcall with CFI",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-92518",
    "datePublished": "2026-09-17T16:10:26.136Z",
    "dateReserved": "2026-09-16T12:21:13.873Z",
    "dateUpdated": "2026-10-19T09:04:24.705Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…