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 1F9B23BB695 for ; Thu, 17 Sep 2026 16: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=1789661848; cv=none; b=CKiCKAiMOcTXxvM+GVueH8wMmgbHmsnYTJevdVXvECvaLcGm0o/N+InKMQaC4NVdw8HfOiMIp9QQKsvChmtbR0dU02omrsZphB4PhAtYobrL75Vn97z2NnafObOjkv5CR1ezk4eDPHqJGJkFnJs+MT/cNZX1TFVnnCuuXpJ07nA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789661848; c=relaxed/simple; bh=Wqm5ObbazQtWC6AL4phZn9T+MNGv0twCOWuuwM4fosE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VuwSc4ACBkxsfWoK08AO+NjSXj4PEPRY+FXYClHva+Yybx3vbwh2Vege7EpCsWaLPvdBc2TLbjJUIvGUgDAu8edwu55AJvi3DaoJ6qZgEhelWaux4lmPdRPi7BwLf/dW9p051BdN0X2ou5Y9dJvfbLt5S5NNQh+CzPQ8mbqactU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bnGK3xWv; 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="bnGK3xWv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 76DEA1F000FF; Thu, 17 Sep 2026 16:17:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789661847; bh=qN+WIkV0QV/HIhm77ytNog2xydKYf/GN0jI85GQdzTY=; h=From:To:Cc:Subject:Date:Reply-To; b=bnGK3xWvI/X9eZrncfwkg0LHERoq8oYVLCp6zaVwZ9PD6FI/ZZVWogOIlkdjFE5Bm 28Wg1UDq4OVYsfwNoKBpL4mJKUA/nWh+q1pLpD1ijmT54LEE/tqa0mkXrrif0bfBp0 q/7y+YwsjLAHDv44mMREl/9Zs6h2pxXb+waiFolw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90155: ksmbd: detach blocked lock requests before freeing Date: Thu, 17 Sep 2026 17:09:45 +0100 Message-ID: <2026091724-CVE-2026-90155-9482@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=2737; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=kT0OmcsQis37nj6ernCcBKnA4Cs8Vuh+95v1EHc+N0Y=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBCqcb6TqpPgyxVgdUJ1lOzlE//KjrP7++pry5Pk8W XOkFv/qiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIm07WNYcGmDUJnwNublDGwb Zc+askfbV02OZ5hnfLRKeV997PbHK6YtbJm+QKGm96wPAA== 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: detach blocked lock requests before freeing A file_lock retained by ksmbd for byte-range lock bookkeeping can still be part of the VFS blocked-request graph. In particular, the VFS can chain a new waiter below an already blocked request through flc_blocked_requests. The ksmbd_file reference count does not cover that graph. Both __ksmbd_close_fd() and the cross-request unlock path free these retained file_lock objects directly. If a dependent waiter is still attached, locks_release_private() hits BUG_ON(!list_empty(&flc->flc_blocked_requests)). The same lifetime mismatch can leave a freed ksmbd_lock reachable through its request-local llist. Detach the file_lock from the blocked-request graph before freeing it in the close, cross-request unlock, and rollback paths. locks_delete_block() also wakes requests chained below the object. Remove llist when a completed lock is published so a globally visible ksmbd_lock no longer points into the submitting worker's stack. The Linux kernel CVE team has assigned CVE-2026-90155 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit d63528eb0d43c4796c42aad56889dec12cf4e122 and fixed in 7.2.6 with commit 514a0b2bc949963497e66cacd433f65dc768a71d Issue introduced in 5.15 with commit d63528eb0d43c4796c42aad56889dec12cf4e122 and fixed in 7.3-rc1 with commit 215e8816b1ac25176d911abb8704390413ccee4b 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-90155 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/smb2pdu.c fs/smb/server/vfs_cache.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/514a0b2bc949963497e66cacd433f65dc768a71d https://git.kernel.org/stable/c/215e8816b1ac25176d911abb8704390413ccee4b