# bpf: avoid holding freeze_mutex during mmap operation

CVE record · `CVE-2025-21853`

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

Published by the CVE Program (CNA: Linux) at 12 Mar 2025, 09:42 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: `fc9702273e2edb90400a34b3be76f7b08fa3344b to before 2ce31c97c219b4fe797749f950274f246eb88c49` (git)
  - affected: `fc9702273e2edb90400a34b3be76f7b08fa3344b to before 0d90d9e154144a3a80e9fc0eb9b21b7fc990f68f` (git)
  - affected: `fc9702273e2edb90400a34b3be76f7b08fa3344b to before 4759acbd44d24a69b7b14848012ec4201d6c5501` (git)
  - affected: `fc9702273e2edb90400a34b3be76f7b08fa3344b to before 29cfda62ab4d92ab94123813db49ab76c1e61b29` (git)
  - affected: `fc9702273e2edb90400a34b3be76f7b08fa3344b to before d95607a5f2f9bb08194c9deaf4a5f3e8ba59a9d4` (git)
  - affected: `fc9702273e2edb90400a34b3be76f7b08fa3344b to before 271e49f8a58edba65bc2b1250a0abaa98c4bfdbe` (git)
  - affected: `fc9702273e2edb90400a34b3be76f7b08fa3344b to before bc27c52eea189e8f7492d40739b7746d67b65beb` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `5.5`
  - unaffected: `before 5.5` (semver)
  - unaffected: `5.10.237 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.181 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.135 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.80 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.17 to 6.12.*, inclusive` (semver)
  - unaffected: `6.13.5 to 6.13.*, inclusive` (semver)
  - unaffected: `6.14 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 BPF map memory-mapping code, from version 5.5 until fixed, can hold the map's freeze_mutex for the whole mmap operation, which can potentially lead to deadlocks. The source gives few details on what an attacker needs or what they could gain. Upgrade to 5.10.237, 5.15.181, 6.1.135, 6.6.80, or a later release in those branches.

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 16th percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 12 Mar 2025, 09:42 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2025-21853)
- 12 Mar 2025, 10:15 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2025-21853)

## Sources

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

### References from the CNA

- <https://git.kernel.org/stable/c/2ce31c97c219b4fe797749f950274f246eb88c49>
- <https://git.kernel.org/stable/c/0d90d9e154144a3a80e9fc0eb9b21b7fc990f68f>
- <https://git.kernel.org/stable/c/4759acbd44d24a69b7b14848012ec4201d6c5501>
- <https://git.kernel.org/stable/c/29cfda62ab4d92ab94123813db49ab76c1e61b29>
- <https://git.kernel.org/stable/c/d95607a5f2f9bb08194c9deaf4a5f3e8ba59a9d4>
- <https://git.kernel.org/stable/c/271e49f8a58edba65bc2b1250a0abaa98c4bfdbe>
- <https://git.kernel.org/stable/c/bc27c52eea189e8f7492d40739b7746d67b65beb>

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-2025-21853>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

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