CVE-2025-38092 ksmbd: use list_first_entry_or_null for opinfo_get_list()
A null pointer dereference in the ksmbd kernel module can cause a system crash when handling empty lists.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-38092?
CVE-2025-38092 is a high-severity vulnerability in Linux kernel, published on 2 Jul 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
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.
Weakness: CWE-476
Which versions are affected by CVE-2025-38092?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2025-38092?
Apply the vendor's patch.
Is CVE-2025-38092 being exploited?
There is no known exploitation of CVE-2025-38092 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2025-38092, DEBIAN-CVE-2025-38092, GHSA-wjw7-v5jq-mg9c, ROOT-OS-DEBIAN-12-CVE-2025-38092, ROOT-OS-UBUNTU-2204-CVE-2025-38092, ROOT-OS-UBUNTU-2404-CVE-2025-38092 and 1 more.