# CVE-2025-37960: memblock: Accept allocated memory before use in memblock\_double\_array()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **Published:** 2025-05-20T16:01:53.264Z
- **Modified:** 2026-11-05T21:17:59.593Z

## Who should check

- Anyone running Linux \>= dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6, \< 7bcd29181bab8d508d2adfdbb132de8b1e088698; \>= dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6, \< d66a22f6a432a9dd376c9b365d7dc89bd416909c; \>= dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6, \< aa513e69e011a2b19fa22ce62ce35effbd5e0c81; \>= dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6, \< da8bf5daa5e55a6af2b285ecda460d6454712ff4
- Anyone running Linux 6.5

## Description

In the Linux kernel, the following vulnerability has been resolved:

memblock: Accept allocated memory before use in memblock\_double\_array()

When increasing the array size in memblock\_double\_array() and the slab
is not yet available, a call to memblock\_find\_in\_range() is used to
reserve/allocate memory. However, the range returned may not have been
accepted, which can result in a crash when booting an SNP guest:

  RIP: 0010:memcpy\_orig+0x68/0x130
  Code: ...
  RSP: 0000:ffffffff9cc03ce8 EFLAGS: 00010006
  RAX: ff11001ff83e5000 RBX: 0000000000000000 RCX: fffffffffffff000
  RDX: 0000000000000bc0 RSI: ffffffff9dba8860 RDI: ff11001ff83e5c00
  RBP: 0000000000002000 R08: 0000000000000000 R09: 0000000000002000
  R10: 000000207fffe000 R11: 0000040000000000 R12: ffffffff9d06ef78
  R13: ff11001ff83e5000 R14: ffffffff9dba7c60 R15: 0000000000000c00
  memblock\_double\_array+0xff/0x310
  memblock\_add\_range+0x1fb/0x2f0
  memblock\_reserve+0x4f/0xa0
  memblock\_alloc\_range\_nid+0xac/0x130
  memblock\_alloc\_internal+0x53/0xc0
  memblock\_alloc\_try\_nid+0x3d/0xa0
  swiotlb\_init\_remap+0x149/0x2f0
  mem\_init+0xb/0xb0
  mm\_core\_init+0x8f/0x350
  start\_kernel+0x17e/0x5d0
  x86\_64\_start\_reservations+0x14/0x30
  x86\_64\_start\_kernel+0x92/0xa0
  secondary\_startup\_64\_no\_verify+0x194/0x19b

Mitigate this by calling accept\_memory() on the memory range returned
before the slab is available.

Prior to v6.12, the accept\_memory() interface used a 'start' and 'end'
parameter instead of 'start' and 'size', therefore the accept\_memory()
call must be adjusted to specify 'start + size' for 'end' when applying
to kernels prior to v6.12.

## Affected and fixed versions

- Linux: \>= dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6, \< 7bcd29181bab8d508d2adfdbb132de8b1e088698; \>= dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6, \< d66a22f6a432a9dd376c9b365d7dc89bd416909c; \>= dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6, \< aa513e69e011a2b19fa22ce62ce35effbd5e0c81; \>= dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6, \< da8bf5daa5e55a6af2b285ecda460d6454712ff4 (cvelist)
- Linux: 6.5 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-37960. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-37960.md
Affected: Linux >= dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6, < 7bcd29181bab8d508d2adfdbb132de8b1e088698; >= dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6, < d66a22f6a432a9dd376c9b365d7dc89bd416909c; >= dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6, < aa513e69e011a2b19fa22ce62ce35effbd5e0c81; >= dcdfdd40fa82b6704d28419…
Fixed in: Linux 7bcd29181bab8d508d2adfdbb132de8b1e088698

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-37960 being exploited?

There is no confirmed exploitation: CVE-2025-37960 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-37960?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-37960?

Linux \>= dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6, \< 7bcd29181bab8d508d2adfdbb132de8b1e088698; \>= dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6, \< d66a22f6a432a9dd376c9b365d7dc89bd416909c; \>= dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6, \< aa513e69e011a2b19fa22ce62ce35effbd5e0c81; \>= dcdfdd40fa82b6704d2841938e5c8ec3051eb0d6, \< da8bf5daa5e55a6af2b285ecda460d6454712ff4; Linux 6.5.

### Is there a fix for CVE-2025-37960?

Yes. Fixed in Linux 7bcd29181bab8d508d2adfdbb132de8b1e088698. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-37960?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/7bcd29181bab8d508d2adfdbb132de8b1e088698>
- patch: <https://git.kernel.org/stable/c/d66a22f6a432a9dd376c9b365d7dc89bd416909c>
- patch: <https://git.kernel.org/stable/c/aa513e69e011a2b19fa22ce62ce35effbd5e0c81>
- patch: <https://git.kernel.org/stable/c/da8bf5daa5e55a6af2b285ecda460d6454712ff4>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-37960>

HTML: <https://flawdb.com/CVE-2025-37960> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-37960>
