bpf: Require a BPF cpumask for bpf_cpumask_populate()
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.
CVE-2026-93112
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-93112
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": "950ad93df2fce70445e655ed2e74f5c1a8653ab2",
"lessThan": "0cfc9348a045da64955af2dd6902e66dfc7d6469",
"versionType": "git"
},
{
"status": "affected",
"version": "950ad93df2fce70445e655ed2e74f5c1a8653ab2",
"lessThan": "b7e2a5c6519adc73be55c3de2cb545e095a0fbc5",
"versionType": "git"
},
{
"status": "affected",
"version": "950ad93df2fce70445e655ed2e74f5c1a8653ab2",
"lessThan": "8740156ad33be5071b588b594c55f279457f667c",
"versionType": "git"
}
],
"programFiles": [
"kernel/bpf/cpumask.c",
"tools/sched_ext/include/scx/compat.bpf.h"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "6.15"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "6.15",
"versionType": "semver"
},
{
"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": [
"kernel/bpf/cpumask.c",
"tools/sched_ext/include/scx/compat.bpf.h"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-93112
Source reference:
/cveMetadata/cveId
Publisher severity
high
Source reference: /containers/cna/metrics
- Event
- #37838 · Revision 1
- Added to Heist Feed
- Publisher date