Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 BCD2C2FF665 for ; Tue, 19 Aug 2025 17:20:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755624015; cv=none; b=UJzPAArxNvUFHX2t7P8bBNif/uNOla8zvYtGZPvu/0fxJquvq/eIsQ3HIuNNhNI0CqYlfiwHw+cMQe6ofdQTcuzDvuIhdmlFEi3s/02XBDfCCnCpjRbcPSb24XGihrKOdnBxGdbpMZFQbuGRwJmjUkoKyXj9uIbn2jy3Ra3KFpc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755624015; c=relaxed/simple; bh=4rT+i3Cw8dcCqjOEm2OI4nUkWwHqAHktMHHEZzGK/0Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CPFoQofTygdfrp1y3QInvAN6f+Oy6RNuxSuQP1aYJAIaFSfY3RbFAenvYqzeCSN6xeVQwQtv2iaM2iWPjH5luvYjdMXyk6KlzVfupWzDGYhJiLxoJgcpfD7YI2cQkZsY7k6GpLQwG3lbnOVBwYFZZUIwPAme7bPEkO2ImMDu598= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HPcWVCxh; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="HPcWVCxh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0C75C4CEF4; Tue, 19 Aug 2025 17:20:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755624015; bh=4rT+i3Cw8dcCqjOEm2OI4nUkWwHqAHktMHHEZzGK/0Y=; h=From:To:Cc:Subject:Date:Reply-to:From; b=HPcWVCxhfqv+5eiYkbXTtAs1NPwFLuCQRLmoAFOxPTEykihLpqwwUIpF5PKXXV+NG BY4EA/FxSJsHQ+aPvujNjTNpeOz/SDbT7UK0udEx9QQBUUlUm6I8kVkS1GFMs43AeM uFQJ1IPneJS2HJvoj22qYNapvfkMFzTSIsWOp16E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38562: ksmbd: fix null pointer dereference error in generate_encryptionkey Date: Tue, 19 Aug 2025 19:18:09 +0200 Message-ID: <2025081907-CVE-2025-38562-1418@gregkh> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2466; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=TmM174XE2wpsuSm4rca+5YQpcYdmMZJYFoztRKa7YxQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlLNp6/ei7iJO/8U94TH+use3eMwd5Ox/Dsw2nHux5dZ H48I8ZiSUcsC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBMROsMwzylbSw/k3jT1+ZH TVp1c10Nv8uGR6EMc7gkgu1SsuXKBV2XTWVYMOUsR8mrxwA= 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 null pointer dereference error in generate_encryptionkey If client send two session setups with krb5 authenticate to ksmbd, null pointer dereference error in generate_encryptionkey could happen. sess->Preauth_HashValue is set to NULL if session is valid. So this patch skip generate encryption key if session is valid. The Linux kernel CVE team has assigned CVE-2025-38562 to this issue. Affected and fixed versions =========================== Fixed in 6.1.148 with commit 96a82e19434a2522525baab59c33332658bc7653 Fixed in 6.6.102 with commit d79c8bebaa622ee223128be7c66d8aaeeb634a57 Fixed in 6.12.42 with commit 2a30ed6428ce83afedca1a6c5c5c4247bcf12d0e Fixed in 6.15.10 with commit 015ef163d65496ae3ba6192c96140a22743f0353 Fixed in 6.16.1 with commit 9c2dbbc959e1fcc6f603a1a843e9cf743ba383bb Fixed in 6.17-rc1 with commit 9b493ab6f35178afd8d619800df9071992f715de 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-2025-38562 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/smb2pdu.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/96a82e19434a2522525baab59c33332658bc7653 https://git.kernel.org/stable/c/d79c8bebaa622ee223128be7c66d8aaeeb634a57 https://git.kernel.org/stable/c/2a30ed6428ce83afedca1a6c5c5c4247bcf12d0e https://git.kernel.org/stable/c/015ef163d65496ae3ba6192c96140a22743f0353 https://git.kernel.org/stable/c/9c2dbbc959e1fcc6f603a1a843e9cf743ba383bb https://git.kernel.org/stable/c/9b493ab6f35178afd8d619800df9071992f715de