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 71920156F3F for ; Sun, 29 Dec 2024 11:31:36 +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=1735471896; cv=none; b=BRqB+nur0CtjggMRmGPtmdokpHJAIijbxBBMabTrlI+Ss1xOlOkRzB3cpYc9M9U6u9nkN2dQ2gwJrAt7/XhRSV7HJxawPvoLrYgqIFygbX+r6M8TGn1/1aOQph/fNxHuUHbfoi67qHGcMF7TocuvERxfNz6HxQj9HnjVivo329c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735471896; c=relaxed/simple; bh=q61O0UcGzfJS0BCaNvCggCW1l8RpjP6vA0s+k8l/G7Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AS5dT96u1oRoPNJhpkA1MbrJyT9NE6eHxtZHAF5fe7G0eKzRg+suKU9a946Ry4MuKVCUfbZcQoMcTbgu2LJcpIDsgBxtAJu0ozer865sotBGjnQB2oy+zyqmjlzrvFPE8rYOR8dU7pcqBRuiwals9w2CQEjflXYaPhZ7gHNlzVk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yeWFe9cT; 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="yeWFe9cT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8389FC4CED1; Sun, 29 Dec 2024 11:31:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735471895; bh=q61O0UcGzfJS0BCaNvCggCW1l8RpjP6vA0s+k8l/G7Y=; h=From:To:Cc:Subject:Date:Reply-to:From; b=yeWFe9cT8pOstxFfgksX+1YAhNj3lHsvVneOhs68FzQx7ViwGDA96ySJxbqZv+A7E RECOaTUA8iDvqpP3cYpCFkmu5PUEQn0FDnqlNeDnyrRPDzjY9wd+uNsP0E3So5NbWt Y6zpvdvppDrxOZG72btNmQ7Neced24zj5K3eHv9E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56729: smb: Initialize cfid->tcon before performing network ops Date: Sun, 29 Dec 2024 12:29:30 +0100 Message-ID: <2024122924-CVE-2024-56729-8f1c@gregkh> X-Mailer: git-send-email 2.47.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=2493; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=q61O0UcGzfJS0BCaNvCggCW1l8RpjP6vA0s+k8l/G7Y=; b=kA0DAAIRMUfUDdst+ykByyZiAGdxMpSgjm3zJcRrauWzLs2mMSN2sM8bA/TMWv7HzMDq7H3Xc 4hdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmdxMpQACgkQMUfUDdst+ykiFACeJLe3 zQEgOguMEkbTqPxzvzLfR+gAn0+iHjQYBYx3sdM+S/dcwe1zQal3 X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: smb: Initialize cfid->tcon before performing network ops Avoid leaking a tcon ref when a lease break races with opening the cached directory. Processing the leak break might take a reference to the tcon in cached_dir_lease_break() and then fail to release the ref in cached_dir_offload_close, since cfid->tcon is still NULL. The Linux kernel CVE team has assigned CVE-2024-56729 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit ebe98f1447bbccf8228335c62d86af02a0ed23f7 and fixed in 6.6.64 with commit 625e2357c8fcfae6e66dcc667dc656fe390bab15 Issue introduced in 6.1 with commit ebe98f1447bbccf8228335c62d86af02a0ed23f7 and fixed in 6.11.11 with commit 4b216c8f9c7d84ef7de33ca60b97e08e03ef3292 Issue introduced in 6.1 with commit ebe98f1447bbccf8228335c62d86af02a0ed23f7 and fixed in 6.12.2 with commit 1b9ab6b648f89441c8a13cb3fd8ca83ffebc5262 Issue introduced in 6.1 with commit ebe98f1447bbccf8228335c62d86af02a0ed23f7 and fixed in 6.13-rc1 with commit c353ee4fb119a2582d0e011f66a76a38f5cf984d 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-2024-56729 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/client/cached_dir.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/625e2357c8fcfae6e66dcc667dc656fe390bab15 https://git.kernel.org/stable/c/4b216c8f9c7d84ef7de33ca60b97e08e03ef3292 https://git.kernel.org/stable/c/1b9ab6b648f89441c8a13cb3fd8ca83ffebc5262 https://git.kernel.org/stable/c/c353ee4fb119a2582d0e011f66a76a38f5cf984d