CVE-2025-38092

ksmbd: use list_first_entry_or_null for opinfo_get_list()

MEDIUM
5.5
CVSS Score
Published: July 2, 2025 at 02:43 PM UTC
Updated: July 30, 2026 at 06:42 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

6.12.25 ≤ v < 6.12.326.14.4 ≤ v < 6.14.106.6.88 ≤ v < 6.6.9318b4fac5ef17f77fed9417d22210ceafd6525fc7296cb5457cc6f4a754c4ae29855f8a253d52bcc66.12.256.14.46.15 rc36.15 rc46.15 rc56.15 rc66.15 rc76.6.88d54ab1520d43e95f9b2e22d7a05fc9614192e5a5d73686367ad68534257cd88a36ca3c52cb8b81d8
Vendor states this is fixed in 10379171f346e6f61d30d9949500a8de4336444a (fixed)
Vendor states this is fixed in 334da674b25fdb7a1a4d4b89dcd7795144fc7e11 (fixed)
Vendor states this is fixed in c78abb646ff823e7d22faad4cc0703d4484da9e8 (fixed)
Vendor states this is fixed in cb7e06e9736d73007dc8dab7b353733bb37df86b (fixed)
Affected range stops below 6.12.32, so it looks safe — our inference, not a vendor statement
Affected range stops below 6.14.10, so it looks safe — our inference, not a vendor statement
Affected range stops below 6.6.93, so it looks safe — our inference, not a vendor statement

References (4)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/10379171f346e6f61d30d9949500a8de4336444a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/334da674b25fdb7a1a4d4b89dcd7795144fc7e11
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c78abb646ff823e7d22faad4cc0703d4484da9e8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/cb7e06e9736d73007dc8dab7b353733bb37df86b

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card