CVE-2025-38092

ksmbd: use list_first_entry_or_null for opinfo_get_list()

State
Published
Severity
8.8 High
Published
Jul 2, 2025
Updated
Aug 5, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.18.8 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 296cb5457cc6f4a754c4ae29855f8a253d52bcc6 to before c78abb646ff823e7d22faad4cc0703d4484da9e8Affected
  • d54ab1520d43e95f9b2e22d7a05fc9614192e5a5 to before 334da674b25fdb7a1a4d4b89dcd7795144fc7e11Affected
  • d73686367ad68534257cd88a36ca3c52cb8b81d8 to before cb7e06e9736d73007dc8dab7b353733bb37df86bAffected
  • 18b4fac5ef17f77fed9417d22210ceafd6525fc7 to before 10379171f346e6f61d30d9949500a8de4336444aAffected
LinuxLinux
  • 6.6.88 to before 6.6.93Affected
  • 6.12.25 to before 6.12.32Affected
  • 6.14.4 to before 6.14.10Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.