# CVE-2025-38092: ksmbd: use list_first_entry_or_null for opinfo_get_list()

- Severity: High 8.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 31% of CVEs (2026-12-01)
- Published: 2025-07-02T14:43:30.776Z
- Modified: 2026-08-05T11:59:27.724Z
- Weaknesses: CWE-476
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 296cb5457cc6f4a754c4ae29855f8a253d52bcc6 before c78abb646ff823e7d22faad4cc0703d4484da9e8; from d54ab1520d43e95f9b2e22d7a05fc9614192e5a5 before 334da674b25fdb7a1a4d4b89dcd7795144fc7e11; from d73686367ad68534257cd88a36ca3c52cb8b81d8 before cb7e06e9736d73007dc8dab7b353733bb37df86b; from 18b4fac5ef17f77fed9417d22210ceafd6525fc7 before 10379171f346e6f61d30d9949500a8de4336444a; from 6.6.88 before 6.6.93; from 6.12.25 before 6.12.32; from 6.14.4 before 6.14.10
- linux linux_kernel: from 6.6.88 before 6.6.93; from 6.12.25 before 6.12.32; from 6.14.4 before 6.14.10; 6.15

## Every score

- Linux: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/c78abb646ff823e7d22faad4cc0703d4484da9e8> (patch)
- <https://git.kernel.org/stable/c/334da674b25fdb7a1a4d4b89dcd7795144fc7e11> (patch)
- <https://git.kernel.org/stable/c/cb7e06e9736d73007dc8dab7b353733bb37df86b> (patch)
- <https://git.kernel.org/stable/c/10379171f346e6f61d30d9949500a8de4336444a> (patch)

## Sources

- CVE List: [CVE-2025-38092](https://www.cve.org/CVERecord?id=CVE-2025-38092), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-38092](https://nvd.nist.gov/vuln/detail/CVE-2025-38092), Public domain, modified 2026-07-30

---

Page: https://cve.day/CVE-2025-38092 · Whole record: https://cve.day/CVE-2025-38092.json · Rebuilt by cve.day 2026-11-25T22:59:00.482Z
