CVE-2025-38092
High
ksmbd: use list_first_entry_or_null for opinfo_get_list()
In the Linux kernel, the following vulnerability has been resolved: ksmbd: use list_first_entry_or_null for opinfo_get_list() The list_first_entry() macro never returns NULL. If the list is empty then it returns an invalid pointer. Use list_first_entry_or_null() to check if the list is empty.
Exploit probability
0.3%
Published
July 2, 2025
Required by
Not available
Last source change
August 12, 2026
02 / AFFECTED SOFTWARE
Affected packages
18 explicit affected versions
04 / EVIDENCE
Source records
Open Source Vulnerabilities
CVE-2025-38092
View original source
In the Linux kernel, the following vulnerability has been resolved: ksmbd: use list_first_entry_or_null for opinfo_get_list() The list_first_entry() macro never returns NULL. If the list is empty then it returns an invalid pointer. Use list_first_entry_or_null() to check if the list is empty.
05 / REFERENCES
Further evidence
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
- https://git.kernel.org/stable/c/10379171f346e6f61d30d9949500a8de4336444a
- https://git.kernel.org/stable/c/334da674b25fdb7a1a4d4b89dcd7795144fc7e11
- https://git.kernel.org/stable/c/c78abb646ff823e7d22faad4cc0703d4484da9e8
- https://git.kernel.org/stable/c/cb7e06e9736d73007dc8dab7b353733bb37df86b
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38092.json
- https://nvd.nist.gov/vuln/detail/CVE-2025-38092