From mboxrd@z Thu Jan 1 00:00:00 1970 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 588422F1FF4 for ; Sun, 18 Oct 2026 15:17:55 +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=1792336676; cv=none; b=EGvMoQzr7Vv1SLrfp0dy8RrT2TyoQ3QwxpUiTRFuGRLkiCUjrncvYZCmyYtBfIJ5iDjmI8HWCnuDi6+xBlwdcTBgBKc4bQu14o6K88ABPaVv7BoqU7YA7Xtu7fIjQ9pMmsBSjOvO9sS75FlHDR35WIXDdOMIQi7iiiacipRnU/k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792336676; c=relaxed/simple; bh=ACXErNFf5nrJAWGE7oz5eqcDfHZDYt54CASiJEQem5A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oK7Y6oo729DFOs3utyhmvlqdWFvb9yJYZ/99MxdNM10RneYoRYQ9AfTcDXvRDWfdYESdeTzER65xN/PSGPTTuoVXBPpSk3IfjxFENEANSfstB+N4cOnjhyaqC4nKazilTgU8tM341reiNjz7ThB2vfU/pQrZ1i2JxW+HFU8qnRs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JH9S4Elw; 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="JH9S4Elw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 56F4E1F000C4; Sun, 18 Oct 2026 15:17:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792336675; bh=NcODk7OoVqhhhnbjWiM+luvzZP8R6AL4JM6SaAnw25g=; h=From:To:Cc:Subject:Date:Reply-To; b=JH9S4Elww2UosnSXxKaWJCfQZy8pZ6DwVLo1fFqgbVUSte+4bI5ba5pBceVFrxO+K jhn4MSmvUMareidCfXIK15pyJdo7w7u9QdA4RArNsYiDvw4hvyMoMkzAaoI7RBwgUa HuD0pBNYyX15l4oI2SAM0yH9ymlxuiYONFZkXhwQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98452: smb: client: clean up failed cached directory opens Date: Sun, 18 Oct 2026 17:15:16 +0200 Message-ID: <2026101809-CVE-2026-98452-716d@gregkh> X-Mailer: git-send-email 2.56.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=2941; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=n1dQ2xQ3kcqxwPggDrh/LPlNZ17emGjaHuG2pO5x9QQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXHtWGTNxt/7Ct4MgtVuaU/0sSDy8q33n8Lue5axwKS 9uKfTKudsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBElA4yzOFg3l9kFeq2n9Vw 7+vDN1+KZ7LsUGGYwyen3MTzXXtGMvuTDStl2y/MamkWBQA= 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: client: clean up failed cached directory opens open_cached_dir() sends CREATE and QUERY_INFO as a compound request. If the CREATE succeeds but a later command returns an error, the function must retain the CREATE FID so common cleanup can issue SMB2_close(). It also must not treat a response error as a valid CREATE. Validate the CREATE response before using its fields, record the FIDs, and mark the handle open before handling errors from later compound commands. Move the -EREMCHG reconnect handling before response validation so a missing response does not hide the reconnect request. Count the handle when it is marked open; confirmed close responses decrement the counter, while existing close retry behavior remains best effort on transport failures. The Linux kernel CVE team has assigned CVE-2026-98452 to this issue. Affected and fixed versions =========================== Issue introduced in 5.1 with commit b0f6df737a1c5d9d5ff90cc946205d8af46cc067 and fixed in 6.12.112 with commit 48958ddda3d7eee3600261e2d90671f63e055dc4 Issue introduced in 5.1 with commit b0f6df737a1c5d9d5ff90cc946205d8af46cc067 and fixed in 6.18.55 with commit abab661eed00fa102d3c35ddf1cce4f687e718c1 Issue introduced in 5.1 with commit b0f6df737a1c5d9d5ff90cc946205d8af46cc067 and fixed in 7.2.9 with commit 7c1509598a4fdfb54cb09ce33e4405bd6dbd8295 Issue introduced in 5.1 with commit b0f6df737a1c5d9d5ff90cc946205d8af46cc067 and fixed in 7.3-rc5 with commit d2ff5fb93ea83034025850266b5eed391f96b825 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-98452 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/48958ddda3d7eee3600261e2d90671f63e055dc4 https://git.kernel.org/stable/c/abab661eed00fa102d3c35ddf1cce4f687e718c1 https://git.kernel.org/stable/c/7c1509598a4fdfb54cb09ce33e4405bd6dbd8295 https://git.kernel.org/stable/c/d2ff5fb93ea83034025850266b5eed391f96b825