CVE-2025-38008
mm/page_alloc: fix race condition in unaccepted memory handling
Reported by linux · Published June 18, 2025
In the Linux kernel, the following vulnerability has been resolved: mm/page_alloc: fix race condition in unaccepted memory handling The page allocator tracks the number of zones that have unaccepted memory using static_branch_enc/dec() and uses that static branch in hot paths to determine if it needs to deal with unaccepted memory. Borislav and Thomas pointed out that the tracking is racy: operations on static_branch are not serialized against adding/removing unaccepted pages to/from the zone. Sanity checks inside static_branch machinery detects it: WARNING: CPU: 0 PID: 10 at kernel/jump_label.c:276 __static_key_slow_dec_cpuslocked+0x8e/0xa0 The comment around the WARN() explains the problem: /* * Warn about the '-1' case though; since that means a * decrement is concurrent with a first (0->1) increment. IOW * people are trying to disable something that wasn't yet fully * enabled. This suggests an ordering problem on the user side. */ The effect of this static_branch optimization is only visible on microbenchmark. Instead of adding more complexity around it, remove it altogether.
EPSS 0.14% · 3.8th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel6.12-modules-extra | Amazon Linux | 6.12.30-34.92.amzn2023 |
| kernel-libbpf-devel | Amazon Linux | 6.12.30-34.92.amzn2023 |
| kernel-modules-extra-common | Amazon Linux | 6.12.30-34.92.amzn2023 |
| kernel6.12 | Amazon Linux | 6.12.30-34.92.amzn2023 |
| perf6.12 | Amazon Linux | 6.12.30-34.92.amzn2023 |
| kernel-tools-devel | Amazon Linux | 6.12.30-34.92.amzn2023 |
| Linux | Linux | 74953f93f47a45296cc2a3fd04e2a3202ff3fa53, 71dda1cb10702dc2859f00eb789b0502de2176a9 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6, dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6, dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6 |
| Linux | Linux | 6.5, 0, 6.6.92 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| Linux | Linux | *, *, * |
| amazon:2023 | bpftool | 0 |
| linux | linux_kernel | 6.5, 6.5, 6.5 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-livepatch-6.12.30-34.92 | 0 |
| amazon:2023 | kernel-devel | 0 |
Timeline
- Jun 17, 2025 CVE Published
- Jun 18, 2025 EPSS Score (30 in total, the first dated here)
- Oct 12, 2025 PoC Published (15 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (270 in total, the first dated here)
- Mar 29, 2026 Security Advisory (281 in total, the first dated here)
- Jun 9, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-38008
vulnetix vdb fixes CVE-2025-38008
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-38008/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart