{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-93112",
  "modified": "2026-10-09T11:39:44Z",
  "upstream": [
    "CVE-2026-93112"
  ],
  "published": "2026-09-17T16:10:40Z",
  "summary": "bpf: Require a BPF cpumask for bpf_cpumask_populate()",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Require a BPF cpumask for bpf_cpumask_populate()\n\nbpf_cpumask_populate() writes to its destination with bitmap_copy(), but\nthe destination is typed as struct cpumask *. That allows the verifier to\naccept borrowed cpumask pointers returned by read-only kfuncs, such as\nscx_bpf_get_online_cpumask(), as a writable destination.\n\nMake the destination a struct bpf_cpumask * so populate follows the same\nownership rule as the other mutating cpumask kfuncs. Query kfuncs continue\nto accept const struct cpumask * inputs.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "Raspberry Pi OS:13",
        "name": "linux"
      },
      "versions": [
        "1:6.18.29-1+rpt1",
        "1:6.18.33-1+rpt1",
        "1:6.18.34-1+rpt1",
        "1:6.18.39-1+rpt1",
        "1:6.18.50-1+rpt1"
      ],
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "linux-image-6.18.29+rpt-rpi-2712",
            "binary_version": "1:6.18.29-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.29+rpt-rpi-v8",
            "binary_version": "1:6.18.29-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.29+rpt-rpi-v8-rt",
            "binary_version": "1:6.18.29-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.33+rpt-rpi-2712",
            "binary_version": "1:6.18.33-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.33+rpt-rpi-v8",
            "binary_version": "1:6.18.33-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.33+rpt-rpi-v8-rt",
            "binary_version": "1:6.18.33-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.34+rpt-rpi-2712",
            "binary_version": "1:6.18.34-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.34+rpt-rpi-v8",
            "binary_version": "1:6.18.34-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.34+rpt-rpi-v8-rt",
            "binary_version": "1:6.18.34-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.39+rpt-rpi-2712",
            "binary_version": "1:6.18.39-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.39+rpt-rpi-v8",
            "binary_version": "1:6.18.39-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.39+rpt-rpi-v8-rt",
            "binary_version": "1:6.18.39-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.50+rpt-rpi-2712",
            "binary_version": "1:6.18.50-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.50+rpt-rpi-v8",
            "binary_version": "1:6.18.50-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.50+rpt-rpi-v8-rt",
            "binary_version": "1:6.18.50-1+rpt1"
          }
        ]
      },
      "database_specific": {
        "per_version": {
          "1:6.18.29-1+rpt1": {
            "linux_commit": "66318c5b5cd8145a662303af12ed39ac07eb27cc",
            "upstream_version": "6.18.29",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.18.52"
          },
          "1:6.18.33-1+rpt1": {
            "linux_commit": "95b85bebbedcaedfa7ca79116ed38b7376fba412",
            "upstream_version": "6.18.33",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.18.52"
          },
          "1:6.18.34-1+rpt1": {
            "linux_commit": "c8c7494100e99ee05b11aaa4f0588a223a63d1af",
            "upstream_version": "6.18.34",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.18.52"
          },
          "1:6.18.39-1+rpt1": {
            "linux_commit": "60ea684a8ace97bb0db1a16e20753bdd6ab371ff",
            "upstream_version": "6.18.39",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.18.52"
          },
          "1:6.18.50-1+rpt1": {
            "linux_commit": "cff533aec2fa601846766b32ff57204e0a61bed7",
            "upstream_version": "6.18.50",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.18.52"
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-93112"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/0cfc9348a045da64955af2dd6902e66dfc7d6469"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/b7e2a5c6519adc73be55c3de2cb545e095a0fbc5"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/8740156ad33be5071b588b594c55f279457f667c"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-09-18T17:55:42Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 7.1,
      "cvss_v3_severity": "High",
      "scenario": "AV:L - bpf_cpumask_populate() is a kfunc on BPF_PROG_TYPE_SYSCALL/TRACING/STRUCT_OPS programs loaded via bpf(BPF_PROG_LOAD); the src bitmap is program-local memory, and a SYSCALL program runs it through BPF_PROG_TEST_RUN (bpf_prog_test_run_syscall). Those bits do not arrive in a network protocol message.\nAC:L - A program can call scx_bpf_get_online_cpumask() then bpf_cpumask_populate() in one path; process_kf_arg_ptr_to_btf_id() does not require strict matching here, so the borrowed struct cpumask * is accepted and bitmap_copy() runs with no race or layout dependency.\nPR:L - bpf_prog_load() of BPF_PROG_TYPE_SYSCALL needs only bpf_token_capable(CAP_BPF) (SYSCALL is not in is_perfmon_prog_type); TRACING/STRUCT_OPS also need CAP_PERFMON. bpf_token_capable() checks token->userns, so a delegated BPF token grants this to userns root rather than init-namespace root.\nUI:N - The attacker loads their own program and either BPF_PROG_TEST_RUN it or fork() to fire their tp_btf/task_newtask hook; no other user must mount, open a file, or otherwise interact.\nS:U - bitmap_copy() overwrites host kernel objects (__cpu_online_mask from scx_bpf_get_online_cpumask(), or task_struct.cpus_mask via cpus_ptr) in the same kernel; this is not a KVM/Xen escape or IOMMU bypass.\nC:N - bpf_cpumask_populate() only bitmap_copy()s the caller-supplied src buffer into the destination mask; it does not read kernel memory back to the program or otherwise disclose confidential data.\nI:H - The destination was typed struct cpumask * rather than struct bpf_cpumask *, so bitmap_copy() writes attacker-controlled bits into borrowed kernel masks such as cpu_online_mask from scx_bpf_get_online_cpumask() or task->cpus_ptr, which bpf_cpumask_set_cpu() would reject.\nA:H - Overwriting writable __cpu_online_mask forges the set walked by for_each_online_cpu(), so the scheduler IPIs or indexes per-CPU state for offline CPUs or sees num_online_cpus()==0, causing a kernel oops or hang."
    }
  }
}
