---
id: CVE-2025-37924
title: |-
  In the Linux kernel, the following vulnerability has been resolved:

  ksmbd: fix use-after-free in kerberos authentication

  Setting sess->user = NULL was introduced to fix the dangling pointer
  created by ksmbd_free_user
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  ksmbd: fix use-after-free in kerberos authentication

  Setting sess->user = NULL was introduced to fix the dangling pointer
  created by ksmbd_free_user. However, it is po…
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-416
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 5.15, < 6.1.138'
  - 'linux_kernel >= 6.2, < 6.6.90'
  - 'linux_kernel >= 6.7, < 6.12.28'
  - 'linux_kernel >= 6.13, < 6.14.6'
  - linux_kernel = 6.15
  - debian_linux = 11.0
patched:
  - linux_kernel 6.14.6
published: '2025-05-20'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T22:18:21.743'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-37924'
references:
  - url: 'https://git.kernel.org/stable/c/28c756738af44a404a91b77830d017bb0c525890'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/b447463562238428503cfba1c913261047772f90'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/e18c616718018dfc440e4a2d2b94e28fe91b1861'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/e34a33d5d7e87399af0a138bb32f6a3e95dd83d2'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/e86e9134e1d1c90a960dd57f59ce574d27b9a124'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
  - cve.org
epss: 0.24546
epssPercentile: 0.97886
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: total
  timestamp: '2026-10-15T21:46:12.066488Z'
ingestedAt: '2026-10-15T22:48:25.485Z'
---

## Overview

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

ksmbd: fix use-after-free in kerberos authentication

Setting sess->user = NULL was introduced to fix the dangling pointer
created by ksmbd_free_user. However, it is possible another thread could
be operating on the session and make use of sess->user after it has been
passed to ksmbd_free_user but before sess->user is set to NULL.

## Affected

- `linux_kernel >= 5.15, < 6.1.138`
- `linux_kernel >= 6.2, < 6.6.90`
- `linux_kernel >= 6.7, < 6.12.28`
- `linux_kernel >= 6.13, < 6.14.6`
- `linux_kernel = 6.15`
- `debian_linux = 11.0`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.14.6`
