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 70D202D94A1 for ; Sat, 6 Dec 2025 21:52:59 +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=1765057979; cv=none; b=DcS74Ds+vgfsDZnJh6m31vQM9KU/GwgpgLAXiAQ+sWf23mzo+zhUkV6lr7EIff2jSDieSX10p2frSZ6phxRrV1esVlyOVIy5OMw13NGqocusiACu+TtrLnBCJoiQLnFDNyvuvo8ntmJZDBiT99qTDIGw7qQstw+bB+5/Qhz/bz8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765057979; c=relaxed/simple; bh=ZwAyFvtM/x3xE0PuhH5wIy6PmQoaFttUx2QaKftpLag=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=s7jsmfaLvfNpfLuLWdoe+Q5/1J02hoyVF7b5Mxz4QR//g+bqgk7mswYuHBWEbhuDeJYnObKCtZV8sL+gUhmAWpi0/5RIdyzcxwVns9jndr6P02kHjQn/UL1bP8tJ/KpPwFfztJxsuNq4j2NKFnkiJQpnpgqZICKig7C8VeW15J0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Gzj/KcUc; 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="Gzj/KcUc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99B48C4CEF5; Sat, 6 Dec 2025 21:52:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765057979; bh=ZwAyFvtM/x3xE0PuhH5wIy6PmQoaFttUx2QaKftpLag=; h=From:To:Cc:Subject:Date:Reply-To:From; b=Gzj/KcUcJ/hEony/HT5g87qE2VV9LHY6fb59PSoLRnztnWnyj+YJimAYONZF5gszd /qjqEv3cXaRt44f+KwgFmb4+jOhZTUEN342EFnOHROxYVZeNNVDsjgBOMVV8PxHPiS lixbMldZ5wTAODQN5KjQFu77k9r20H7cpupPlYqA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40286: smb/server: fix possible memory leak in smb2_read() Date: Sun, 7 Dec 2025 06:52:33 +0900 Message-ID: <2025120718-CVE-2025-40286-1b9c@gregkh> X-Mailer: git-send-email 2.52.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=2124; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=tZLFdnER8GkjpEfGKlW03pUoKHPI3hZizP0yFVpkR7g=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkmSycpTlr4/deHjydrkvZdynu0pibi+O3sC3tuRrPc2 bBsiZ7L3Y5YFgZBJgZZMUWWL9t4ju6vOKToZWh7GmYOKxPIEAYuTgGYSEcrw4KZjTUV7HuV/+Rm vpeOfTPFL1pA6RXDghs/DrUJqYicPDy5ctVHr8CvnRoB+wA= 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: smb/server: fix possible memory leak in smb2_read() Memory leak occurs when ksmbd_vfs_read() fails. Fix this by adding the missing kvfree(). The Linux kernel CVE team has assigned CVE-2025-40286 to this issue. Affected and fixed versions =========================== Fixed in 6.1.159 with commit 0797c6cf3b857cc229ab2bc69552938dcd738d78 Fixed in 6.6.117 with commit 63d8706a2c09a0c29b8b0e8a44bc7a1339685de9 Fixed in 6.12.59 with commit f1305587731886da37a214cda812ade246c653b0 Fixed in 6.17.9 with commit bfda5422a16651d0bf864ec468b1c216e1b10d91 Fixed in 6.18 with commit 6fced056d2cc8d01b326e6fcfabaacb9850b71a4 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-40286 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/0797c6cf3b857cc229ab2bc69552938dcd738d78 https://git.kernel.org/stable/c/63d8706a2c09a0c29b8b0e8a44bc7a1339685de9 https://git.kernel.org/stable/c/f1305587731886da37a214cda812ade246c653b0 https://git.kernel.org/stable/c/bfda5422a16651d0bf864ec468b1c216e1b10d91 https://git.kernel.org/stable/c/6fced056d2cc8d01b326e6fcfabaacb9850b71a4