# mmmremap.c: avoid pointless invalidate_range_start/end on mremap(old_size=0)

CVE record · `CVE-2022-49077`

- **Identifiers:** `CVE-2022-49077`
- **State:** Confirmed
- **Severity:** No CVSS score
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 26 Feb 2025
- **Updated:** 5 Nov 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 26 Feb 2025, 01:54 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `7b6efc2bc4f19952b25ebf9b236e5ac43cd386c2 to before a05540f3903bd8295e8c4cd90dd3d416239a115b` (git)
  - affected: `7b6efc2bc4f19952b25ebf9b236e5ac43cd386c2 to before eeaf28e2a0128147d687237e59d5407ee1b14693` (git)
  - affected: `7b6efc2bc4f19952b25ebf9b236e5ac43cd386c2 to before e2c328c2a8f9de8b761bd4025b66c63120c55761` (git)
  - affected: `7b6efc2bc4f19952b25ebf9b236e5ac43cd386c2 to before c19d8de4e682ec4b0ea2b04a832cd8cc0be3bb31` (git)
  - affected: `7b6efc2bc4f19952b25ebf9b236e5ac43cd386c2 to before 7d659cb1763ff17d1c6ee082fa6feb4267c7a30b` (git)
  - affected: `7b6efc2bc4f19952b25ebf9b236e5ac43cd386c2 to before a04cb99c5d4668fe3f5c0e5b6da1cecd34c3f219` (git)
  - affected: `7b6efc2bc4f19952b25ebf9b236e5ac43cd386c2 to before 2358aa84ef6dafcf544a557caaa6b91afb4a0bd2` (git)
  - affected: `7b6efc2bc4f19952b25ebf9b236e5ac43cd386c2 to before 04bc13dae4a27b8d030843c85ae452bb2f1d9c1f` (git)
  - affected: `7b6efc2bc4f19952b25ebf9b236e5ac43cd386c2 to before 01e67e04c28170c47700c2c226d732bbfedb1ad0` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `3.2`
  - unaffected: `before 3.2` (semver)
  - unaffected: `4.9.311 to 4.9.*, inclusive` (semver)
  - unaffected: `4.14.276 to 4.14.*, inclusive` (semver)
  - unaffected: `4.19.238 to 4.19.*, inclusive` (semver)
  - unaffected: `5.4.189 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.111 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.34 to 5.15.*, inclusive` (semver)
  - unaffected: `5.16.20 to 5.16.*, inclusive` (semver)
  - unaffected: `5.17.3 to 5.17.*, inclusive` (semver)
  - unaffected: `5.18 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The Linux kernel is affected from version 3.2 until the fixes in its stable branches, which include 4.9.311, 4.14.276, 4.19.238 and 5.4.189. A user-space program that calls mremap() with an old size of zero can trigger an unnecessary empty-range invalidation, which causes a kernel WARN in KVM's MMU notifier code. Upgrade to a fixed kernel release for your branch. The source gives few details on wider impact.

Written 16 Nov 2026.

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

No source has published a CVSS score for this record yet.

- **CISA KEV:** Not listed.
- **EPSS:** 0.0025, the 17th percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 26 Feb 2025, 01:54 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2022-49077)
- 26 Feb 2025, 07:00 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2022-49077)

## Sources

- [CVE List: CVE-2022-49077](https://www.cve.org/CVERecord?id=CVE-2022-49077)
- [NVD: CVE-2022-49077](https://nvd.nist.gov/vuln/detail/CVE-2022-49077)

### References from the CNA

- <https://git.kernel.org/stable/c/a05540f3903bd8295e8c4cd90dd3d416239a115b>
- <https://git.kernel.org/stable/c/eeaf28e2a0128147d687237e59d5407ee1b14693>
- <https://git.kernel.org/stable/c/e2c328c2a8f9de8b761bd4025b66c63120c55761>
- <https://git.kernel.org/stable/c/c19d8de4e682ec4b0ea2b04a832cd8cc0be3bb31>
- <https://git.kernel.org/stable/c/7d659cb1763ff17d1c6ee082fa6feb4267c7a30b>
- <https://git.kernel.org/stable/c/a04cb99c5d4668fe3f5c0e5b6da1cecd34c3f219>
- <https://git.kernel.org/stable/c/2358aa84ef6dafcf544a557caaa6b91afb4a0bd2>
- <https://git.kernel.org/stable/c/04bc13dae4a27b8d030843c85ae452bb2f1d9c1f>
- <https://git.kernel.org/stable/c/01e67e04c28170c47700c2c226d732bbfedb1ad0>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2022-49077>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2022-49077/>. Everything for agents: <https://agentprime.io/llms.txt>.
