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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-04-01 · Modified: 2026-05-11
- Aliases: UBUNTU-CVE-2025-21944, DEBIAN-CVE-2025-21944
- Record: https://cvemate.com/vulnerability/CVE-2025-21944 · JSON: https://cvemate.com/vulnerability/CVE-2025-21944/json

## Description

```text
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.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.176%, percentile 7.45%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 130)

- debian linux (Debian): \< 6.1.133-1 \| \< 6.12.19-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-84.84
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1039.41
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1039.41~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1039.41+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1038.44
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 28)

- <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>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- <https://ubuntu.com/security/CVE-2025-21944>
- <https://www.cve.org/CVERecord?id=CVE-2025-21944>
- <https://git.kernel.org/linus/e26e2d2e15daf1ab33e0135caf2304a0cfa2744b>
- <https://ubuntu.com/security/notices/USN-7605-1>
- <https://ubuntu.com/security/notices/USN-7606-1>
- <https://ubuntu.com/security/notices/USN-7605-2>
- <https://ubuntu.com/security/notices/USN-7628-1>
- <https://ubuntu.com/security/notices/USN-7764-1>
- <https://ubuntu.com/security/notices/USN-7765-1>
- <https://ubuntu.com/security/notices/USN-7766-1>
- <https://ubuntu.com/security/notices/USN-7767-1>
- <https://ubuntu.com/security/notices/USN-7779-1>
- <https://ubuntu.com/security/notices/USN-7767-2>
- <https://ubuntu.com/security/notices/USN-7764-2>

---

Data as of 2026-12-05T04:23:42.260Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
