Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 53A8148424F for ; Fri, 25 Sep 2026 10:40:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332804; cv=none; b=pLKFz4RIYxNwfIePZJLF/jZBhU17px/j8GKIOlJH/froH/fpaA0jgAU6Xq5KgBivcgWQt/Sw/g1viQhZgLft7HfBaCvyc5T0jpeXKklaFKr+BRx7tNMoFnL7H9muMIr54/10DKrmZySgEeXHuZ633ItKnoU80FhGvpL0NO0/pGg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332804; c=relaxed/simple; bh=v1Zq3THjbTtUiPQPjc5w5mizzFg4AP0JeKlSey7ru00=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bUQZ1iuKLUsRTVHS3mgTCLz+tmTvoINarCpf1o+82wJP8c31bKG8ED5vEm1wdJTIRSu0Nt4hQ6EbOMfcshDD+vnw7CS4qvuYWupJhq5jqT9MnhgxhNTnE2YACjyGksu2bJpGU7BMUFimx50HHewhQnLCE50Nz8e3cCzKGMEa070= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=APkd02sC; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="APkd02sC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F2501F00893; Fri, 25 Sep 2026 10:40:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332803; bh=7gW5GTzBQuzBsywlf+f9FSQqm0pXkco7aUgOZC5W6S8=; h=From:To:Cc:Subject:Date:Reply-To; b=APkd02sC9o5pmzAq7RIeDl/hKHgqVB0IOKCVKS4SdpTWzwWFcpUqJTYRYw50r+qOb 3fjgK1oIc1iDWAvh61yI3P1Vqt7fe5Z7hDOYzthaBgtU0CVnVLRGJh5szLmRxYlQu6 8TtAs1P2lRI3CaAE6cl3fcLS+vaizT+SMHFZ6PHM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98112: ksmbd: fix listener task lifetime on netdev events Date: Fri, 25 Sep 2026 12:39:19 +0200 Message-ID: <2026092511-CVE-2026-98112-3acf@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2193; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=8MfQfWRVxtoQyrdbMtKkxKG+K5vceQK8NHlcs6ER1sw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnb/AP67lTfrausu7tO9/PfledDtaYwnWeT1iluPdjm+ SuPd/KTjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIslUM85P22FeXhddw55a0 LjewUH58Qig7lmHBlKvK32y7du7IOBItyc36vaF33hcxAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== 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. The Linux kernel CVE team has assigned CVE-2026-98112 to this issue. Affected and fixed versions =========================== Issue introduced in 6.19 with commit 3316a8fc840d82fad5efcf76ad0ea3f76fdca209 and fixed in 7.2.7 with commit 40581f10c1e56238b157af5f260b8f9518a0cbc1 Issue introduced in 6.19 with commit 3316a8fc840d82fad5efcf76ad0ea3f76fdca209 and fixed in 7.3-rc2 with commit a506290f59e1c6ce9ac0a13158640bb8fee93471 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-98112 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: fs/smb/server/transport_tcp.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/40581f10c1e56238b157af5f260b8f9518a0cbc1 https://git.kernel.org/stable/c/a506290f59e1c6ce9ac0a13158640bb8fee93471