CVE-2025-71153
ksmbd: Fix memory leak in get_file_all_info()
Mitigation
- Upgrade Linux to 6.9 or later.
Who should check
- Anyone running Linux >= c8f7ad2df083c510e640c0bf76166593cc116ff2, < 5012b4c812230ae066902a00442708c999111183; >= 5614c8c487f6af627614dd2efca038e4afe0c6d7, < 676907004256e0226c7ed3691db9f431404ca258; >= 5614c8c487f6af627614dd2efca038e4afe0c6d7, < d026f47db68638521df8543535ef863814fb01b1; >= 5614c8c487f6af627614dd2efca038e4afe0c6d7, < 0c56693b06a68476ba113db6347e7897475f9e4c; f9278ba4967027ad2bf001694f0e489c7bbae6d5; 88779f09295d82b86601fe42595748488bf5e20c; >= 6.6.24, < 6.6.120; >= 6.7.12, < 6.8; >= 6.8.3, < 6.9
- Anyone running Linux 6.9
Vulnerability facts
- Affected
- Linux >= c8f7ad2df083c510e640c0bf76166593cc116ff2, < 5012b4c812230ae066902a00442708c999111183; >= 5614c8c487f6af627614dd2efca038e4afe0c6d7, < 676907004256e0226c7ed3691db9f431404ca258; >= 5614c8c487f6af627614dd2efca038e4afe0c6d7, < d026f47db68638521df8543535ef863814fb01b1; >= 5614c8c487f6af627614dd2efca038e4afe0c6d7, < 0c56693b06a68476ba113db6347e7897475f9e4c; f9278ba4967027ad2bf001694f0e489c7bbae6d5; 88779f09295d82b86601fe42595748488bf5e20c; >= 6.6.24, < 6.6.120; >= 6.7.12, < 6.8; >= 6.8.3, < 6.9; Linux 6.9
- Fixed in
- Linux 5012b4c812230ae066902a00442708c999111183, Linux 676907004256e0226c7ed3691db9f431404ca258, Linux 0c56693b06a68476ba113db6347e7897475f9e4c, Linux 6.6.120, Linux 6.8, Linux 6.9
- 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.20% chance of exploitation in 30 days (percentile 6, 2026-11-26)
- CWE
- CWE-401
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: ksmbd: Fix memory leak in get_file_all_info() In get_file_all_info(), if vfs_getattr() fails, the function returns immediately without freeing the allocated filename, leading to a memory leak. Fix this by freeing the filename before returning in this error case.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= c8f7ad2df083c510e640c0bf76166593cc116ff2, < 5012b4c812230ae066902a00442708c999111183; >= 5614c8c487f6af627614dd2efca038e4afe0c6d7, < 676907004256e0226c7ed3691db9f431404ca258; >= 5614c8c487f6af627614dd2efca038e4afe0c6d7, < d026f47db68638521df8543535ef863814fb01b1; >= 5614c8c487f6af627614dd2efca038e4afe0c6d7, < 0c56693b06a68476ba113db6347e7897475f9e4c; f9278ba4967027ad2bf001694f0e489c7bbae6d5; 88779f09295d82b86601fe42595748488bf5e20c; >= 6.6.24, < 6.6.120; >= 6.7.12, < 6.8; >= 6.8.3, < 6.9 | — | cvelist |
| Linux | 6.9 | — | 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-71153. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-71153.md Affected: Linux >= c8f7ad2df083c510e640c0bf76166593cc116ff2, < 5012b4c812230ae066902a00442708c999111183; >= 5614c8c487f6af627614dd2efca038e4afe0c6d7, < 676907004256e0226c7ed3691db9f431404ca258; >= 5614c8c487f6af627614dd2efca038e4afe0c6d7, < d026f47db68638521df8543535ef863814fb01b1; >= 5614c8c487f6af627614dd2… Fixed in: Linux 5012b4c812230ae066902a00442708c999111183, Linux 676907004256e0226c7ed3691db9f431404ca258, Linux 0c56693b06a68476ba113db6347e7897475f9e4c, Linux 6.6.120, Linux 6.8, Linux 6.9 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-71153 being exploited?
There is no confirmed exploitation: CVE-2025-71153 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-71153?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-71153?
Linux >= c8f7ad2df083c510e640c0bf76166593cc116ff2, < 5012b4c812230ae066902a00442708c999111183; >= 5614c8c487f6af627614dd2efca038e4afe0c6d7, < 676907004256e0226c7ed3691db9f431404ca258; >= 5614c8c487f6af627614dd2efca038e4afe0c6d7, < d026f47db68638521df8543535ef863814fb01b1; >= 5614c8c487f6af627614dd2efca038e4afe0c6d7, < 0c56693b06a68476ba113db6347e7897475f9e4c; f9278ba4967027ad2bf001694f0e489c7bbae6d5; 88779f09295d82b86601fe42595748488bf5e20c; >= 6.6.24, < 6.6.120; >= 6.7.12, < 6.8; >= 6.8.3, < 6.9; Linux 6.9.
Is there a fix for CVE-2025-71153?
Yes. Fixed in Linux 5012b4c812230ae066902a00442708c999111183, Linux 676907004256e0226c7ed3691db9f431404ca258, Linux 0c56693b06a68476ba113db6347e7897475f9e4c, Linux 6.6.120, Linux 6.8, Linux 6.9. Upgrade Linux to 6.9 or later.
How do I check if I'm affected by CVE-2025-71153?
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.