CVE-2025-21944

Source
https://cve.org/CVERecord?id=CVE-2025-21944
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21944.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-21944
Downstream
Published
2025-04-01T15:41:07.977Z
Modified
2026-03-20T12:41:15.290747Z
Summary
ksmbd: fix bug on trap in smb2_lock
Details

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 smblock, not flags. It will cause bug-on trap from locksfree_lock in error handling routine.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21944.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0626e6641f6b467447c81dd7678a69c66f7746cf
Fixed
11e0e74e14f1832a95092f2c98ed3b99f57797ee
Fixed
8994f0ce8259f812b4f4a681d8298c6ff682efaa
Fixed
dbcd7fdd86f77529210fe8978154a81cd479844c
Fixed
2b70e3ac79eacbdf32571f7af48dd81cdd957ca8
Fixed
e26e2d2e15daf1ab33e0135caf2304a0cfa2744b

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21944.json"