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 1C406371880 for ; Sun, 18 Oct 2026 15:17:27 +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=1792336649; cv=none; b=cRQjP5Lkb/f6gOieS5shMQBC3cexNgc52VNtH6KfSNSpM0bzxvjK2vJLGIJY4Nzqp0ljEVI8RmB6nUJT0tE8kyNSwGvHP7NCiN5rcwTL1qJEzNsxy4g6Lap8TuP0dOYhLklw/xstN+Xov/3XUkJe4a889x9U+oOfGztNjVWJa6w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792336649; c=relaxed/simple; bh=6WsNOIRbfL9WHaDQ4+miH5WJPqFu8AzaCxs0ehxhEzE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BKDlUPbdAA5nnFHLxlIk2sXHznch+Je8rcIPebY5/exrYcah82yi4izzTgoC7bLvFCuGR+cKIlYHowMdERSZuIDYufpJ8PHoRGzOCybKckcrorxlNcY8GjJdpDMLKe6Iy6oQFZIxWxkCb4Grs/rrgf8ubc/7ufSVkDZb1VeGs5g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bXoIusyo; 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="bXoIusyo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 007141F000C4; Sun, 18 Oct 2026 15:17:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792336647; bh=VPu92Sdp1Ox3CtzkXdsLC19RH8Api80D6lQa+1tuZyg=; h=From:To:Cc:Subject:Date:Reply-To; b=bXoIusyoNL5FilhoshSNeAcZ9V+UHRPL4Gx/5h+au2xrbAys3AETRVOwjhCnlzzvP xl4Y1KDHfzuuc+Fu4VOyV0LzBWiPlr0gItLP5/heHVgvLW0QVkbndjBANBo4q/9ciz MjvSKG3bOAVVe12JSCr8xCqd1/e1Z9VdXSCrDhZs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98450: smb: client: close completed creates on compound wait errors Date: Sun, 18 Oct 2026 17:15:14 +0200 Message-ID: <2026101808-CVE-2026-98450-cf63@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=3306; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mv4+kMt7+JzoqksXstEEc0jB0ILcM+AYhow8yw3tPsI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXHtWw+8hphi0I4Jp28vvnAr6MDfsifC8b7g2t4Dn2W +l+U2BcRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzE5gnDgh7+2XvsqxpYpa+a vmW+Ivas77H9N4b5CYLltqp3dAMfV/VfCFfeKLW3v9oVAA== 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: close completed creates on compound wait errors compound_send_recv() waits for responses in order. If a later wait is interrupted, or if a later MID fails during response synchronization, an earlier CREATE may already have opened a remote handle. The earlier mid is then released without invoking handle_cancelled_mid(), leaving the remote handle open because no FID was copied to the caller. Mark completed earlier mids as cancelled when a compound wait or MID synchronization aborts. Keep their response buffers attached while the MIDs are synchronized, and transfer them only after synchronization of the processed responses, so the release path can inspect successful CREATE responses and queue SMB2_close() after a later failure. Account for a remote open only after the close work is allocated and before it is queued, since the caller has not yet updated num_remote_opens. Mark the create+close compound used by smb2_unlink() so it is not closed again. Non-CREATE responses and compounds that already include a close keep their existing behavior. The Linux kernel CVE team has assigned CVE-2026-98450 to this issue. Affected and fixed versions =========================== Issue introduced in 4.19 with commit e0bba0b8548179b696e86c158ea8f45f2ef6ad14 and fixed in 6.12.113 with commit 2cb07d1a6a30283dbfc809c8036bc1fd103d59fa Issue introduced in 4.19 with commit e0bba0b8548179b696e86c158ea8f45f2ef6ad14 and fixed in 6.18.56 with commit 224b56b7c02b2bfb1f5bee18d5f56ae6b052be44 Issue introduced in 4.19 with commit e0bba0b8548179b696e86c158ea8f45f2ef6ad14 and fixed in 7.2.9 with commit 253612499ce9b4cd7bb922fe507ec204bddd9313 Issue introduced in 4.19 with commit e0bba0b8548179b696e86c158ea8f45f2ef6ad14 and fixed in 7.3-rc5 with commit 6c5c547f037bc18f0b8d0b5db5a648f8f630ce85 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-98450 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/smb2inode.c fs/smb/client/smb2misc.c fs/smb/client/transport.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/2cb07d1a6a30283dbfc809c8036bc1fd103d59fa https://git.kernel.org/stable/c/224b56b7c02b2bfb1f5bee18d5f56ae6b052be44 https://git.kernel.org/stable/c/253612499ce9b4cd7bb922fe507ec204bddd9313 https://git.kernel.org/stable/c/6c5c547f037bc18f0b8d0b5db5a648f8f630ce85