Skip to content
CVE PROGRAM SOURCE RECORD7.1 High

CVE-2026-93112

bpf: Require a BPF cpumask for bpf_cpumask_populate()

Description

In the Linux kernel, the following vulnerability has been resolved: bpf: Require a BPF cpumask for bpf_cpumask_populate() bpf_cpumask_populate() writes to its destination with bitmap_copy(), but the destination is typed as struct cpumask *. That allows the verifier to accept borrowed cpumask pointers returned by read-only kfuncs, such as scx_bpf_get_online_cpumask(), as a writable destination. Make the destination a struct bpf_cpumask * so populate follows the same ownership rule as the other mutating cpumask kfuncs. Query kfuncs continue to accept const struct cpumask * inputs.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 950ad93df2fce70445e655ed2e74f5c1a8653ab2 to < 0cfc9348a045da64955af2dd6902e66dfc7d6469affected
  • 950ad93df2fce70445e655ed2e74f5c1a8653ab2 to < b7e2a5c6519adc73be55c3de2cb545e095a0fbc5affected
  • 950ad93df2fce70445e655ed2e74f5c1a8653ab2 to < 8740156ad33be5071b588b594c55f279457f667caffected

Linux Linux

Default version status: affected

  • 6.15affected
  • 0 to < 6.15unaffected
  • 6.18.52 to ≤ 6.18.*unaffected
  • 7.2.6 to ≤ 7.2.*unaffected
  • 7.3 to ≤ *unaffected

References