CVE-2025-37778

Published May 1, 2025

Last updated 25 days ago

Linux Kernel

Overview

AI description

Automated description summarized from trusted sources.

CVE-2025-37778 is a use-after-free vulnerability found in the Linux kernel's ksmbd component, specifically within the Kerberos authentication pathway during remote client session setups. The vulnerability arises when the `krb_authenticate` function frees `sess->user` but doesn't set the pointer to NULL. Subsequently, `ksmbd_krb5_authenticate` might not reinitialize `sess->user`, leading `smb2_sess_setup` to access freed memory when using `sess->user`. This flaw can lead to memory corruption, potentially allowing an attacker to execute arbitrary code with kernel privileges. The vulnerability affects multiple versions of the Linux kernel, and distributions like SUSE are actively working on providing patches.

Description
In the Linux kernel, the following vulnerability has been resolved: ksmbd: Fix dangling pointer in krb_authenticate krb_authenticate frees sess->user and does not set the pointer to NULL. It calls ksmbd_krb5_authenticate to reinitialise sess->user but that function may return without doing so. If that happens then smb2_sess_setup, which calls krb_authenticate, will be accessing free'd memory when it later uses sess->user.
Source
416baaa9-dc9f-4396-8d5f-8c081fb06d67
NVD status
Awaiting Analysis

Social media

Hype score
Not currently trending