CVE-2025-21944

Source
https://nvd.nist.gov/vuln/detail/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
2025-11-28T02:35:26.289745Z
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
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21944.json"
}
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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.15.0
Fixed
6.1.131
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.83
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.19
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.13.7