VDB

CVE-2025-38008

CVE-2025-38008 PUBLISHED

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.

PackageEcosystemFixed in
kernel6.12-modules-extraAmazon Linux6.12.30-34.92.amzn2023
kernel-libbpf-develAmazon Linux6.12.30-34.92.amzn2023
kernel-modules-extra-commonAmazon Linux6.12.30-34.92.amzn2023
kernel6.12Amazon Linux6.12.30-34.92.amzn2023
perf6.12Amazon Linux6.12.30-34.92.amzn2023
kernel-tools-develAmazon Linux6.12.30-34.92.amzn2023
LinuxLinux74953f93f47a45296cc2a3fd04e2a3202ff3fa53, 71dda1cb10702dc2859f00eb789b0502de2176a9

Risk scores

EPSS Score
0.14%
3.8th percentile

Affected products

VendorProductVersions
LinuxLinuxdcdfdd40fa82b6704d2841938e5c8ec3051eb0d6, dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6, dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6
LinuxLinux6.5, 0, 6.6.92
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel-libbpf-devel0
amazon:2023kernel-modules-extra-common0
amazon:2023kernel6.120
amazon:2023perf6.120
amazon:2023kernel-tools-devel0
LinuxLinux*, *, *
amazon:2023bpftool0
linuxlinux_kernel6.5, 6.5, 6.5
amazon:2023kernel-tools0
amazon:2023kernel-headers0
amazon:2023python3-perf6.120
amazon:2023kernel-libbpf-static0
amazon:2023kernel-libbpf0
amazon:2023kernel-livepatch-6.12.30-34.920
amazon:2023kernel-devel0

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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›