{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-38008","id":"CVE-2025-38008","title":"mm/page_alloc: fix race condition in unaccepted memory handling","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/page_alloc: fix race condition in unaccepted memory handling\n\nThe page allocator tracks the number of zones that have unaccepted memory\nusing static_branch_enc/dec() and uses that static branch in hot paths to\ndetermine if it needs to deal with unaccepted memory.\n\nBorislav and Thomas pointed out that the tracking is racy: oper","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/page_alloc: fix race condition in unaccepted memory handling\n\nThe page allocator tracks the number of zones that have unaccepted memory\nusing static_branch_enc/dec() and uses that static branch in hot paths to\ndetermine if it needs to deal with unaccepted memory.\n\nBorislav and Thomas pointed out that the tracking is racy: operations on\nstatic_branch are not serialized against adding/removing unaccepted pages\nto/from the zone.\n\nSanity checks inside static_branch machinery detects it:\n\nWARNING: CPU: 0 PID: 10 at kernel/jump_label.c:276 __static_key_slow_dec_cpuslocked+0x8e/0xa0\n\nThe comment around the WARN() explains the problem:\n\n\t/*\n\t * Warn about the '-1' case though; since that means a\n\t * decrement is concurrent with a first (0->1) increment. IOW\n\t * people are trying to disable something that wasn't yet fully\n\t * enabled. This suggests an ordering problem on the user side.\n\t */\n\nThe effect of this static_branch optimization is only visible on\nmicrobenchmark.\n\nInstead of adding more complexity around it, remove it altogether.","published":"2025-06-18T09:28:19.358Z","updated":"2026-10-28T02:30:27.465941318Z","reserved":"2025-04-16T04:51:23.977Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6","lessThan":"98fdd2f612e949c652693f6df00442c81037776d","status":"affected","versionType":"git"},{"version":"dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6","lessThan":"74953f93f47a45296cc2a3fd04e2a3202ff3fa53","status":"affected","versionType":"git"},{"version":"dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6","lessThan":"71dda1cb10702dc2859f00eb789b0502de2176a9","status":"affected","versionType":"git"},{"version":"dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6","lessThan":"fefc075182275057ce607effaa3daa9e6e3bdc73","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.5","status":"affected"},{"version":"0","lessThan":"6.5","status":"unaffected","versionType":"semver"},{"version":"6.6.92","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.30","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.14.8","lessThanOrEqual":"6.14.*","status":"unaffected","versionType":"semver"},{"version":"6.15","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-362"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/98fdd2f612e949c652693f6df00442c81037776d","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/74953f93f47a45296cc2a3fd04e2a3202ff3fa53","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/71dda1cb10702dc2859f00eb789b0502de2176a9","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/fefc075182275057ce607effaa3daa9e6e3bdc73","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38008.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38008","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00144,"epssPercentile":0.03783,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-38008","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38008","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-38008","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-38008","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}