Skip to main content
Network Thinking Solutions Logo

CVE-2025-21853

Linux kernel: bpf: avoid holding freeze_mutex during mmap operation

All CVEs
CVE-2025-21853Published 3/12/2025

Linux kernel: bpf: avoid holding freeze_mutex during mmap operation

Vendor advisory
CVSS5.5Medium

Overview

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/

Published
3/12/2025
Last modified
11/10/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
≥ 5.5, < 6.6.80

Verify advisory

Source
linux kernel
linux
≥ 6.7, < 6.12.17

Verify advisory

Source
linux kernel
linux
≥ 6.13, < 6.13.5

Verify advisory

Source
linux kernel
linux
6.14

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
Linux
Linux
≥ fc9702273e2edb90400a34b3be76f7b08fa3344b, < 2ce31c97c219b4fe797749f950274f246eb88c49

Verify advisory

Source
Linux
Linux
≥ fc9702273e2edb90400a34b3be76f7b08fa3344b, < 0d90d9e154144a3a80e9fc0eb9b21b7fc990f68f

Verify advisory

Source
Linux
Linux
≥ fc9702273e2edb90400a34b3be76f7b08fa3344b, < 4759acbd44d24a69b7b14848012ec4201d6c5501

Verify advisory

Source
Linux
Linux
≥ fc9702273e2edb90400a34b3be76f7b08fa3344b, < 29cfda62ab4d92ab94123813db49ab76c1e61b29

Verify advisory

Source
Linux
Linux
≥ fc9702273e2edb90400a34b3be76f7b08fa3344b, < d95607a5f2f9bb08194c9deaf4a5f3e8ba59a9d4

Verify advisory

Source
Linux
Linux
≥ fc9702273e2edb90400a34b3be76f7b08fa3344b, < 271e49f8a58edba65bc2b1250a0abaa98c4bfdbe

Verify advisory

Source
Linux
Linux
≥ fc9702273e2edb90400a34b3be76f7b08fa3344b, < bc27c52eea189e8f7492d40739b7746d67b65beb

Verify advisory

Source
Linux
Linux
5.5

Verify advisory

Source
SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)
Siemens
≥ V3.1.6, < *

Verify advisory

Source
SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)
Siemens
≥ V3.1.7, < *

Verify advisory

Source
SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0)
Siemens
≥ V3.1.6, < *

Verify advisory

Source
SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0)
Siemens
≥ V3.1.7, < *

Verify advisory

Source
SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0)
Siemens
≥ V3.1.6, < *

Verify advisory

Source
SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0)
Siemens
≥ V3.1.7, < *

Verify advisory

Source
SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0)
Siemens
≥ V3.1.6, < *

Verify advisory

Source
SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0)
Siemens
≥ V3.1.7, < *

Verify advisory

Source
SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0)
Siemens
≥ V3.1.6, < *

Verify advisory

Source
SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0)
Siemens
≥ V3.1.7, < *

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 5.5. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.