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

  ksmbd: fix listener task lifetime on netdev events

  The listener thread exits when its listening socket is shutdown
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  ksmbd: fix listener task lifetime on netdev events

  The listener thread exits when its listening socket is shutdown. The
  netdevice notifier shuts down the socket before…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-825
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 3316a8fc840d82fad5efcf76ad0ea3f76fdca209 <
    40581f10c1e56238b157af5f260b8f9518a0cbc1
  - >-
    Linux >= 3316a8fc840d82fad5efcf76ad0ea3f76fdca209 <
    a506290f59e1c6ce9ac0a13158640bb8fee93471
  - Linux 6.19
published: '2026-09-25'
updated: '2026-09-30'
sourceUpdated: '2026-09-30T14:10:59.253'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-98112'
references:
  - url: 'https://git.kernel.org/stable/c/40581f10c1e56238b157af5f260b8f9518a0cbc1'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/a506290f59e1c6ce9ac0a13158640bb8fee93471'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-98112.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-98112'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2541318'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-98112'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-98112'
  - url: >-
      https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2026/CVE-2026-98112.mbox
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
  - score-dispute
epss: 0.0012
epssPercentile: 0.01839
scores:
  nvd: 7.8
  vendor: 5.5
  cna: 7.8
ingestedAt: '2026-09-25T11:06:38.823Z'
---

## Overview

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

ksmbd: fix listener task lifetime on netdev events

The listener thread exits when its listening socket is shutdown. The
netdevice notifier shuts down the socket before calling kthread_stop(), so
the task_struct can be freed before kthread_stop() gets its reference.

Create the listener in a stopped state and hold an extra task_struct
reference until kthread_stop_put() completes. Also stop and release
listeners before freeing their interface records during TCP teardown.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **Red Hat VEX** · Moderate · updated 2026-09-29 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-98112.json)
