CVE-2025-21737
ceph: fix memory leak in ceph_mds_auth_match()
Mitigation
- Upgrade Linux to 3b7d93db450e9d8ead80d75e2a303248f1528c35 or later.
Who should check
- Anyone running Linux >= 596afb0b8933ba6ed7227adcc538db26feb25c74, < 146109fe936ac07f8f60cd6267543688985b96bc; >= 596afb0b8933ba6ed7227adcc538db26feb25c74, < 2b6086c5efe5c7bd6e0eb440d96c26ca0d20d9d7; >= 596afb0b8933ba6ed7227adcc538db26feb25c74, < 3b7d93db450e9d8ead80d75e2a303248f1528c35
- Anyone running Linux 6.10
Vulnerability facts
- Affected
- Linux >= 596afb0b8933ba6ed7227adcc538db26feb25c74, < 146109fe936ac07f8f60cd6267543688985b96bc; >= 596afb0b8933ba6ed7227adcc538db26feb25c74, < 2b6086c5efe5c7bd6e0eb440d96c26ca0d20d9d7; >= 596afb0b8933ba6ed7227adcc538db26feb25c74, < 3b7d93db450e9d8ead80d75e2a303248f1528c35; Linux 6.10
- Fixed in
- Linux 146109fe936ac07f8f60cd6267543688985b96bc, Linux 2b6086c5efe5c7bd6e0eb440d96c26ca0d20d9d7, Linux 3b7d93db450e9d8ead80d75e2a303248f1528c35
- 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, CNA)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.29% chance of exploitation in 30 days (percentile 14, 2026-11-26)
- CWE
- CWE-401
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: ceph: fix memory leak in ceph_mds_auth_match() We now free the temporary target path substring allocation on every possible branch, instead of omitting the default branch. In some cases, a memory leak occured, which could rapidly crash the system (depending on how many file accesses were attempted). This was detected in production because it caused a continuous memory growth, eventually triggering kernel OOM and completely hard-locking the kernel. Relevant kmemleak stacktrace: unreferenced object 0xffff888131e69900 (size 128): comm "git", pid 66104, jiffies 4295435999 hex dump (first 32 bytes): 76 6f 6c 75 6d 65 73 2f 63 6f 6e 74 61 69 6e 65 volumes/containe 72 73 2f 67 69 74 65 61 2f 67 69 74 65 61 2f 67 rs/gitea/gitea/g backtrace (crc 2f3bb450): [<ffffffffaa68fb49>] __kmalloc_noprof+0x359/0x510 [<ffffffffc32bf1df>] ceph_mds_check_access+0x5bf/0x14e0 [ceph] [<ffffffffc3235722>] ceph_open+0x312/0xd80 [ceph] [<ffffffffaa7dd786>] do_dentry_open+0x456/0x1120 [<ffffffffaa7e3729>] vfs_open+0x79/0x360 [<ffffffffaa832875>] path_openat+0x1de5/0x4390 [<ffffffffaa834fcc>] do_filp_open+0x19c/0x3c0 [<ffffffffaa7e44a1>] do_sys_openat2+0x141/0x180 [<ffffffffaa7e4945>] __x64_sys_open+0xe5/0x1a0 [<ffffffffac2cc2f7>] do_syscall_64+0xb7/0x210 [<ffffffffac400130>] entry_SYSCALL_64_after_hwframe+0x77/0x7f It can be triggered by mouting a subdirectory of a CephFS filesystem, and then trying to access files on this subdirectory with an auth token using a path-scoped capability: $ ceph auth get client.services [client.services] key = REDACTED caps mds = "allow rw fsname=cephfs path=/volumes/" caps mon = "allow r fsname=cephfs" caps osd = "allow rw tag cephfs data=cephfs" $ cat /proc/self/mounts services@[REDACTED].cephfs=/volumes/containers /ceph/containers ceph rw,noatime,name=services,secret=<hidden>,ms_mode=prefer-crc,mount_timeout=300,acl,mon_addr=[REDACTED]:3300,recover_session=clean 0 0 $ seq 1 1000000 | xargs -P32 --replace={} touch /ceph/containers/file-{} && \ seq 1 1000000 | xargs -P32 --replace={} cat /ceph/containers/file-{} [ idryomov: combine if statements, rename rc to path_matched and make it a bool, formatting ]
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 596afb0b8933ba6ed7227adcc538db26feb25c74, < 146109fe936ac07f8f60cd6267543688985b96bc; >= 596afb0b8933ba6ed7227adcc538db26feb25c74, < 2b6086c5efe5c7bd6e0eb440d96c26ca0d20d9d7; >= 596afb0b8933ba6ed7227adcc538db26feb25c74, < 3b7d93db450e9d8ead80d75e2a303248f1528c35 | — | cvelist |
| Linux | 6.10 | — | 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-21737. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-21737.md Affected: Linux >= 596afb0b8933ba6ed7227adcc538db26feb25c74, < 146109fe936ac07f8f60cd6267543688985b96bc; >= 596afb0b8933ba6ed7227adcc538db26feb25c74, < 2b6086c5efe5c7bd6e0eb440d96c26ca0d20d9d7; >= 596afb0b8933ba6ed7227adcc538db26feb25c74, < 3b7d93db450e9d8ead80d75e2a303248f1528c35; Linux 6.10 Fixed in: Linux 146109fe936ac07f8f60cd6267543688985b96bc, Linux 2b6086c5efe5c7bd6e0eb440d96c26ca0d20d9d7, Linux 3b7d93db450e9d8ead80d75e2a303248f1528c35 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
FAQ
Is CVE-2025-21737 being exploited?
There is no confirmed exploitation: CVE-2025-21737 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-21737?
Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-21737?
Linux >= 596afb0b8933ba6ed7227adcc538db26feb25c74, < 146109fe936ac07f8f60cd6267543688985b96bc; >= 596afb0b8933ba6ed7227adcc538db26feb25c74, < 2b6086c5efe5c7bd6e0eb440d96c26ca0d20d9d7; >= 596afb0b8933ba6ed7227adcc538db26feb25c74, < 3b7d93db450e9d8ead80d75e2a303248f1528c35; Linux 6.10.
Is there a fix for CVE-2025-21737?
Yes. Fixed in Linux 146109fe936ac07f8f60cd6267543688985b96bc, Linux 2b6086c5efe5c7bd6e0eb440d96c26ca0d20d9d7, Linux 3b7d93db450e9d8ead80d75e2a303248f1528c35. Upgrade Linux to 3b7d93db450e9d8ead80d75e2a303248f1528c35 or later.
How do I check if I'm affected by CVE-2025-21737?
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.