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 99776168DC for ; Sun, 19 May 2024 08:36: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=1716107775; cv=none; b=aGIQUbCkQH+7L6F8wmN3IXpABFDY7PdStwi0vFXEAa7hhyhI6ZCRnnsdXy31Atn59Od5olQkkzFyOSQQryTBiJ6yTZl7bvYHmV033HxyOPKtINFmB4XgcO0i2krniuWjU52yPapFZaBbqdZ5nWQoSQj6EAVwRV0d6A4H46df8gM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716107775; c=relaxed/simple; bh=Qe/J3VIUJzDtW4HrL0tmUid24aS0yFMe6+won+zeMiw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=srplvzg1xsfMYWtIsnBb3LRQukYa3rP/cE8nQedsqEQF2Tt6QTWSCKFL3XJmKKfZstLLrrVuDNAHym0md0EIwJFyjQjI5OSlGfvQKhUq1XBveZ0+EupuLhq3/IRFxQcdwDksr74/ok0BDVE556VNCi/R1skS1O0vGpfQYphIgSg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lzslL1Qk; 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="lzslL1Qk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2586C32781; Sun, 19 May 2024 08:36:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716107775; bh=Qe/J3VIUJzDtW4HrL0tmUid24aS0yFMe6+won+zeMiw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=lzslL1Qkk79W/3AtmDhTyvrCG7YRh2lBY61f7451xE8GF1DcxwY2tbaeOhld0653f VGPABF9s5tkYtdXxsUlv/K2FzYctqQB7MtVS88hy/OP7ovJTsUK000fWHH2X20+Zbb kOdjTJJdhV1qbx6TGeTt9eq6rv+mUpM6oT7ifnFA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-35869: smb: client: guarantee refcounted children from parent session Date: Sun, 19 May 2024 10:34:43 +0200 Message-ID: <2024051940-CVE-2024-35869-73f8@gregkh> X-Mailer: git-send-email 2.45.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=2098; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Qe/J3VIUJzDtW4HrL0tmUid24aS0yFMe6+won+zeMiw=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmeOxcoPmQ+39p+XFvNKWmnXkb+5pDzDHMXOTZm3J/V7 H9KbWlIRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkVT/DLGarx8slrbZ+KDbh 9vq/Q1Vvz0qhGwzza8VSm/ZNdKu6nJb3aHE4/15jJp7pAA== 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: client: guarantee refcounted children from parent session Avoid potential use-after-free bugs when walking DFS referrals, mounting and performing DFS failover by ensuring that all children from parent @tcon->ses are also refcounted. They're all needed across the entire DFS mount. Get rid of @tcon->dfs_ses_list while we're at it, too. The Linux kernel CVE team has assigned CVE-2024-35869 to this issue. Affected and fixed versions =========================== Fixed in 6.6.29 with commit 645f332c6b63 Fixed in 6.8.5 with commit e1db9ae87b71 Fixed in 6.9 with commit 062a7f0ff46e 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-35869 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/cifsglob.h fs/smb/client/cifsproto.h fs/smb/client/connect.c fs/smb/client/dfs.c fs/smb/client/dfs.h fs/smb/client/dfs_cache.c fs/smb/client/misc.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/645f332c6b63499cc76197f9b6bffcc659ba64cc https://git.kernel.org/stable/c/e1db9ae87b7148c021daee1fcc4bc71b2ac58a79 https://git.kernel.org/stable/c/062a7f0ff46eb57aff526897bd2bebfdb1d3046a