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 98FE853FD41 for ; Fri, 11 Sep 2026 19:37:49 +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=1789155475; cv=none; b=L8mlh8Zo79X+pZkxZ0tzOCkB4f3T45h2lrK6d8sKU9xZikTZUBeTpbIw+ET+KfQPT06ndYFh/m4plr6znw9rCo10gmRZhcbt8NvtHrzietp1Ji2Mig6+OySInNEaWqcJqJuXgnE5ODV2u+P+SxYj5z1g/C7sg0NLVbR7XAuzWko= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789155475; c=relaxed/simple; bh=0R+jhDe58opnC1ot4F9FJD6LnT42iJp8lZDWcWZ7pUQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BSw/zECv8hokhncruP9yArZJILwWHHWvkO5GBuAZJLEcoCc/BZd/xVWhNUNckgaG3JhGnWPQSg0uBbZKPLwioLmwvrlvjaZuRYTvw6uUvxNRbd2kWTvqXIFitsU3nxGS0Ss/1qiR7cpBWa2MUp5cgInmS3LZWLxOElRwxCMzPzU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QwrDgV4P; 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="QwrDgV4P" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4DCC91F00893; Fri, 11 Sep 2026 19:37:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789155467; bh=RHlC23Mpo3SaoATSLKqhDOd+IDBsyx+AL5jusQZ4V7Q=; h=From:To:Cc:Subject:Date:Reply-To; b=QwrDgV4Pd3JMIqqnHl9PbjM4swW+raoeLmxKYCVD8lMmFQnqgjNUsHA/osX9jwxAl NyptVa4uAkT9jCk24ulrZtT4n19Fa20XySIEVv9PqFUl3zgg04lH5sUij5TvXnJufh KMeOm/fTKsq+zP0dN+Hk7UDW/6cmdElM8SBVVZOk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-80926: ksmbd: fix use-after-free in oplock break notification Date: Fri, 11 Sep 2026 21:35:56 +0200 Message-ID: <2026091156-CVE-2026-80926-f155@gregkh> X-Mailer: git-send-email 2.55.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=3686; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=qIyOldnSewnIiF7XqvvxBFd62IIS2sfDQ/qTVuJstyI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlLImRKmSbEfFWVPbGNaVWZt8rn9NWWO/kdPt269qpFa lvqjc53HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARFxWGuSKpjU1/1RNZszZO Uv1Wn9u7amnGUYa5MpsSixZcSEv89D90+btfYbGlF5yOAAA= 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: ksmbd: fix use-after-free in oplock break notification smb2_oplock_break_noti() reads opinfo->conn without any lock and dereferences it after two allocations which may sleep. When the durable handle owning the oplock is disconnected, session_fd_check() clears opinfo->conn and drops its conn reference under ci->m_lock, and the last ksmbd_conn_put() frees the connection. A break triggered by another connection that races with the teardown can then resurrect the freed connection: ksmbd_conn_get() is a plain atomic_inc, and the queued break work later dereferences the stale conn via ksmbd_conn_write(), a use-after-free reachable by any authenticated client holding a durable batch oplock. Thread the caller's inode into the notification path instead of taking a new reference on it. Every caller of oplock_break() already holds a live ksmbd_file (or an explicit ksmbd_inode_lookup_lock() reference, in the parent lease break paths) on the inode that owns the break target's oplock list, so ci cannot be freed during the call, and its lock can be taken without dereferencing opinfo->o_fp, which a concurrent close may free. Select and pin the connection under ci->m_lock, the same lock session_fd_check() and ksmbd_reopen_durable_fd() use to update opinfo->conn, so a concurrent detach either loses the race to the clear or keeps the connection alive until the notification work releases it. Transfer the reference to the work item and release it on allocation failures. The Linux kernel CVE team has assigned CVE-2026-80926 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18.36 with commit e735dbd489e3ea02be78dba991056fe1138be51e and fixed in 6.18.51 with commit c8279ae8df68cce9cd3b785e85f7a86c80a46e78 Issue introduced in 7.1 with commit b003086d76968298f22e7cf62239833b5a3a06b1 and fixed in 7.2.5 with commit 8cc98db4fc590e6c7d9db6529320982ee16c5d1d Issue introduced in 7.1 with commit b003086d76968298f22e7cf62239833b5a3a06b1 and fixed in 7.3-rc2 with commit 0e753899627b5e28a9fea8bca98262a6f65a2452 Issue introduced in 6.6.143 with commit 945a86b21b40fb17183f5b27461baa6f03e2467f Issue introduced in 6.12.94 with commit 1ff58dcfcab434ebb51649da33774fbb8e1f7b67 Issue introduced in 7.0.13 with commit 75e33deda658c1ab3a9336cbdb1436536f9b3660 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-80926 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/oplock.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/c8279ae8df68cce9cd3b785e85f7a86c80a46e78 https://git.kernel.org/stable/c/8cc98db4fc590e6c7d9db6529320982ee16c5d1d https://git.kernel.org/stable/c/0e753899627b5e28a9fea8bca98262a6f65a2452