# CVE-2025-37760: mm/vma: add give\_up\_on\_oom option on modify/merge, use in uffd release

> 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-01T13:07:02.617Z
- **Modified:** 2026-06-17T09:15:23.167Z

## Who should check

- Anyone running Linux \>= 79636d2981b066acd945117387a9533f56411f6f, \< b906c1ad25adce6ff35be19b65a1aa7d960fe1d7; \>= 47b16d0462a460000b8f05dfb1292377ac48f3ca, \< c103a75c61648203d731e3b97a6fbeea4003cb15; \>= 47b16d0462a460000b8f05dfb1292377ac48f3ca, \< 41e6ddcaa0f18dda4c3fadf22533775a30d6f72f; 53fd215f7886a1e8dea5a9ca1391dbb697fff601; \>= 6.12.19, \< 6.12.25; \>= 6.13.7, \< 6.14
- Anyone running Linux 6.14

## Description

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

mm/vma: add give\_up\_on\_oom option on modify/merge, use in uffd release

Currently, if a VMA merge fails due to an OOM condition arising on commit
merge or a failure to duplicate anon\_vma's, we report this so the caller
can handle it.

However there are cases where the caller is only ostensibly trying a
merge, and doesn't mind if it fails due to this condition.

Since we do not want to introduce an implicit assumption that we only
actually modify VMAs after OOM conditions might arise, add a 'give up on
oom' option and make an explicit contract that, should this flag be set, we
absolutely will not modify any VMAs should OOM arise and just bail out.

Since it'd be very unusual for a user to try to vma\_modify() with this flag
set but be specifying a range within a VMA which ends up being split (which
can fail due to rlimit issues, not only OOM), we add a debug warning for
this condition.

The motivating reason for this is uffd release - syzkaller (and Pedro
Falcato's VERY astute analysis) found a way in which an injected fault on
allocation, triggering an OOM condition on commit merge, would result in
uffd code becoming confused and treating an error value as if it were a VMA
pointer.

To avoid this, we make use of this new VMG flag to ensure that this never
occurs, utilising the fact that, should we be clearing entire VMAs, we do
not wish an OOM event to be reported to us.

Many thanks to Pedro Falcato for his excellent analysis and Jann Horn for
his insightful and intelligent analysis of the situation, both of whom were
instrumental in this fix.

## Affected and fixed versions

- Linux: \>= 79636d2981b066acd945117387a9533f56411f6f, \< b906c1ad25adce6ff35be19b65a1aa7d960fe1d7; \>= 47b16d0462a460000b8f05dfb1292377ac48f3ca, \< c103a75c61648203d731e3b97a6fbeea4003cb15; \>= 47b16d0462a460000b8f05dfb1292377ac48f3ca, \< 41e6ddcaa0f18dda4c3fadf22533775a30d6f72f; 53fd215f7886a1e8dea5a9ca1391dbb697fff601; \>= 6.12.19, \< 6.12.25; \>= 6.13.7, \< 6.14 (cvelist)
- Linux: 6.14 (cvelist)

## Mitigation

- Upgrade Linux to 6.14 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-37760.md
Affected: Linux >= 79636d2981b066acd945117387a9533f56411f6f, < b906c1ad25adce6ff35be19b65a1aa7d960fe1d7; >= 47b16d0462a460000b8f05dfb1292377ac48f3ca, < c103a75c61648203d731e3b97a6fbeea4003cb15; >= 47b16d0462a460000b8f05dfb1292377ac48f3ca, < 41e6ddcaa0f18dda4c3fadf22533775a30d6f72f; 53fd215f7886a1e8dea5a9ca13…
Fixed in: Linux 41e6ddcaa0f18dda4c3fadf22533775a30d6f72f, Linux 6.12.25, Linux 6.14

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-37760 being exploited?

There is no confirmed exploitation: CVE-2025-37760 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-37760?

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

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

Linux \>= 79636d2981b066acd945117387a9533f56411f6f, \< b906c1ad25adce6ff35be19b65a1aa7d960fe1d7; \>= 47b16d0462a460000b8f05dfb1292377ac48f3ca, \< c103a75c61648203d731e3b97a6fbeea4003cb15; \>= 47b16d0462a460000b8f05dfb1292377ac48f3ca, \< 41e6ddcaa0f18dda4c3fadf22533775a30d6f72f; 53fd215f7886a1e8dea5a9ca1391dbb697fff601; \>= 6.12.19, \< 6.12.25; \>= 6.13.7, \< 6.14; Linux 6.14.

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

Yes. Fixed in Linux 41e6ddcaa0f18dda4c3fadf22533775a30d6f72f, Linux 6.12.25, Linux 6.14. Upgrade Linux to 6.14 or later.

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

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/b906c1ad25adce6ff35be19b65a1aa7d960fe1d7>
- patch: <https://git.kernel.org/stable/c/c103a75c61648203d731e3b97a6fbeea4003cb15>
- patch: <https://git.kernel.org/stable/c/41e6ddcaa0f18dda4c3fadf22533775a30d6f72f>

## 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-37760>

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