CVE-2025-21853
bpf: avoid holding freeze_mutex during mmap operation
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= fc9702273e2edb90400a34b3be76f7b08fa3344b, < 2ce31c97c219b4fe797749f950274f246eb88c49; >= fc9702273e2edb90400a34b3be76f7b08fa3344b, < 0d90d9e154144a3a80e9fc0eb9b21b7fc990f68f; >= fc9702273e2edb90400a34b3be76f7b08fa3344b, < 4759acbd44d24a69b7b14848012ec4201d6c5501; >= fc9702273e2edb90400a34b3be76f7b08fa3344b, < 29cfda62ab4d92ab94123813db49ab76c1e61b29; >= fc9702273e2edb90400a34b3be76f7b08fa3344b, < d95607a5f2f9bb08194c9deaf4a5f3e8ba59a9d4; >= fc9702273e2edb90400a34b3be76f7b08fa3344b, < 271e49f8a58edba65bc2b1250a0abaa98c4bfdbe; >= fc9702273e2edb90400a34b3be76f7b08fa3344b, < bc27c52eea189e8f7492d40739b7746d67b65beb
- Anyone running Linux 5.5
Vulnerability facts
- Affected
- Linux >= fc9702273e2edb90400a34b3be76f7b08fa3344b, < 2ce31c97c219b4fe797749f950274f246eb88c49; >= fc9702273e2edb90400a34b3be76f7b08fa3344b, < 0d90d9e154144a3a80e9fc0eb9b21b7fc990f68f; >= fc9702273e2edb90400a34b3be76f7b08fa3344b, < 4759acbd44d24a69b7b14848012ec4201d6c5501; >= fc9702273e2edb90400a34b3be76f7b08fa3344b, < 29cfda62ab4d92ab94123813db49ab76c1e61b29; >= fc9702273e2edb90400a34b3be76f7b08fa3344b, < d95607a5f2f9bb08194c9deaf4a5f3e8ba59a9d4; >= fc9702273e2edb90400a34b3be76f7b08fa3344b, < 271e49f8a58edba65bc2b1250a0abaa98c4bfdbe; >= fc9702273e2edb90400a34b3be76f7b08fa3344b, < bc27c52eea189e8f7492d40739b7746d67b65beb; Linux 5.5
- Fixed in
- Linux 2ce31c97c219b4fe797749f950274f246eb88c49, Linux 0d90d9e154144a3a80e9fc0eb9b21b7fc990f68f, Linux 4759acbd44d24a69b7b14848012ec4201d6c5501, Linux 29cfda62ab4d92ab94123813db49ab76c1e61b29, Linux 271e49f8a58edba65bc2b1250a0abaa98c4bfdbe
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 0.31% chance of exploitation in 30 days (percentile 16, 2026-11-26)
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: bpf: avoid holding freeze_mutex during mmap operation We use map->freeze_mutex to prevent races between map_freeze() and memory mapping BPF map contents with writable permissions. The way we naively do this means we'll hold freeze_mutex for entire duration of all the mm and VMA manipulations, which is completely unnecessary. This can potentially also lead to deadlocks, as reported by syzbot in [0]. So, instead, hold freeze_mutex only during writeability checks, bump (proactively) "write active" count for the map, unlock the mutex and proceed with mmap logic. And only if something went wrong during mmap logic, then undo that "write active" counter increment. [0] https://lore.kernel.org/bpf/678dcbc9.050a0220.303755.0066.GAE@google.com/
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= fc9702273e2edb90400a34b3be76f7b08fa3344b, < 2ce31c97c219b4fe797749f950274f246eb88c49; >= fc9702273e2edb90400a34b3be76f7b08fa3344b, < 0d90d9e154144a3a80e9fc0eb9b21b7fc990f68f; >= fc9702273e2edb90400a34b3be76f7b08fa3344b, < 4759acbd44d24a69b7b14848012ec4201d6c5501; >= fc9702273e2edb90400a34b3be76f7b08fa3344b, < 29cfda62ab4d92ab94123813db49ab76c1e61b29; >= fc9702273e2edb90400a34b3be76f7b08fa3344b, < d95607a5f2f9bb08194c9deaf4a5f3e8ba59a9d4; >= fc9702273e2edb90400a34b3be76f7b08fa3344b, < 271e49f8a58edba65bc2b1250a0abaa98c4bfdbe; >= fc9702273e2edb90400a34b3be76f7b08fa3344b, < bc27c52eea189e8f7492d40739b7746d67b65beb | — | cvelist |
| Linux | 5.5 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-21853. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-21853.md Affected: Linux >= fc9702273e2edb90400a34b3be76f7b08fa3344b, < 2ce31c97c219b4fe797749f950274f246eb88c49; >= fc9702273e2edb90400a34b3be76f7b08fa3344b, < 0d90d9e154144a3a80e9fc0eb9b21b7fc990f68f; >= fc9702273e2edb90400a34b3be76f7b08fa3344b, < 4759acbd44d24a69b7b14848012ec4201d6c5501; >= fc9702273e2edb90400a34b… Fixed in: Linux 2ce31c97c219b4fe797749f950274f246eb88c49, Linux 0d90d9e154144a3a80e9fc0eb9b21b7fc990f68f, Linux 4759acbd44d24a69b7b14848012ec4201d6c5501, Linux 29cfda62ab4d92ab94123813db49ab76c1e61b29, Linux 271e49f8a58edba65bc2b1250a0abaa98c4bfdbe 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.
References
Patches
Other
- https://git.kernel.org/stable/c/2ce31c97c219b4fe797749f950274f246eb88c49
- https://git.kernel.org/stable/c/0d90d9e154144a3a80e9fc0eb9b21b7fc990f68f
- https://git.kernel.org/stable/c/4759acbd44d24a69b7b14848012ec4201d6c5501
- https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html
- https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html
- https://cert-portal.siemens.com/productcert/html/ssa-019113.html
- https://cert-portal.siemens.com/productcert/html/ssa-457936.html
FAQ
Is CVE-2025-21853 being exploited?
There is no confirmed exploitation: CVE-2025-21853 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-21853?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-21853?
Linux >= fc9702273e2edb90400a34b3be76f7b08fa3344b, < 2ce31c97c219b4fe797749f950274f246eb88c49; >= fc9702273e2edb90400a34b3be76f7b08fa3344b, < 0d90d9e154144a3a80e9fc0eb9b21b7fc990f68f; >= fc9702273e2edb90400a34b3be76f7b08fa3344b, < 4759acbd44d24a69b7b14848012ec4201d6c5501; >= fc9702273e2edb90400a34b3be76f7b08fa3344b, < 29cfda62ab4d92ab94123813db49ab76c1e61b29; >= fc9702273e2edb90400a34b3be76f7b08fa3344b, < d95607a5f2f9bb08194c9deaf4a5f3e8ba59a9d4; >= fc9702273e2edb90400a34b3be76f7b08fa3344b, < 271e49f8a58edba65bc2b1250a0abaa98c4bfdbe; >= fc9702273e2edb90400a34b3be76f7b08fa3344b, < bc27c52eea189e8f7492d40739b7746d67b65beb; Linux 5.5.
Is there a fix for CVE-2025-21853?
Yes. Fixed in Linux 2ce31c97c219b4fe797749f950274f246eb88c49, Linux 0d90d9e154144a3a80e9fc0eb9b21b7fc990f68f, Linux 4759acbd44d24a69b7b14848012ec4201d6c5501, Linux 29cfda62ab4d92ab94123813db49ab76c1e61b29, Linux 271e49f8a58edba65bc2b1250a0abaa98c4bfdbe. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2025-21853?
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.