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

Published Jul 2, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: use listfirstentryornull for opinfogetlist()

The listfirstentry() macro never returns NULL. If the list is empty then it returns an invalid pointer. Use listfirstentryornull() to check if the list is empty.

Affected Software

9 affected components
Linux Kernel
Linux Linux kernel>=6.6.88<6.6.93
Linux Linux kernel>=6.12.25<6.12.32
Linux Linux kernel>=6.14.4<6.14.10
Linux Linux kernel=6.15-rc3
Linux Linux kernel=6.15-rc4
Linux Linux kernel=6.15-rc5
Linux Linux kernel=6.15-rc6
Linux Linux kernel=6.15-rc7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Update code to use list_first_entry_or_null() instead of list_first_entry() so that when the list is empty it returns NULL (not an invalid pointer).

    Linux kernel list_first_entry() macro usage = Replace list_first_entry() with list_first_entry_or_null()

Event History

Jul 2, 2025
CVE Published
via MITRE·02:43 PM
Data Sourced
via MITRE·02:43 PM
DescriptionSeverity
Data Sourced
via NVD·03:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-38092?

CVE-2025-38092 is classified as a medium severity vulnerability due to its potential impact on system stability.

2

How do I fix CVE-2025-38092?

To fix CVE-2025-38092, update your Linux kernel to the latest version where this vulnerability is resolved.

3

What systems are affected by CVE-2025-38092?

CVE-2025-38092 affects the Linux kernel, specifically versions prior to the security fix.

4

What type of vulnerability is CVE-2025-38092?

CVE-2025-38092 is a programming flaw in the Linux kernel's ksmbd component related to list handling.

5

When was CVE-2025-38092 reported?

CVE-2025-38092 was reported and documented in 2025.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203