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 832E420D4FD for ; Tue, 1 Apr 2025 15:47:37 +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=1743522457; cv=none; b=BgkoLjk5gpUFzjOiyQHZHCL/A4U3tJPHw+LOGKXUcMcr6sI0mavfl9gcFVDCwzmth66fd0HJZxB53Mt7xEQ33IQnmOFk6z5zcSPffFF/5VNo/wqDXxRF7XScoEXd0gsZWQo9Sia09pSjaDmH+RM2z6mMnaQoTYF8zu5eHWFPHzQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743522457; c=relaxed/simple; bh=m/t7GtyXt7sFNmFKCL7wCbH7+QuKPJ+PdoK3vxPrVqg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SS4T1cPpHWHlGWxktCj5RgUE2r4ox4Qf5ygJhgR3ceukIWqBMoW7zBgfqK2PE7NgXobhhuQGu4YiLnESEogzjMf01yAlIvGLTfEhe8oc/HLv/NjmndKVkdZ1q+gd8P7sVVMzrq54QxTN8nsedTyH7VRdR+bYUzQ9N2xotOX0xg0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uNd0VMA3; 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="uNd0VMA3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 022A9C4CEE4; Tue, 1 Apr 2025 15:47:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743522457; bh=m/t7GtyXt7sFNmFKCL7wCbH7+QuKPJ+PdoK3vxPrVqg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=uNd0VMA3mn+4oogR+6zFA7UtNOCA9LFbc1vxHkoKXXtEQBrc/Yb0Wf1Fr9+anMEnm tm1crrhXS18yBB5kYGIs8vym9offDH56VIx/cZucZEjtFi08N3Jxgo5y21ctSNLWnR rDWUPH0gBI3lHOAxKJT6QQKEQF6o39lmQrcJadoA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21955: ksmbd: prevent connection release during oplock break notification Date: Tue, 1 Apr 2025 16:45:40 +0100 Message-ID: <2025040143-CVE-2025-21955-c393@gregkh> X-Mailer: git-send-email 2.49.0 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=2156; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=m/t7GtyXt7sFNmFKCL7wCbH7+QuKPJ+PdoK3vxPrVqg=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlvuNSZJjWu+zrJ0nBNdUGRS8h+lhMXThQZyn6/vD/7V 46mpn1lRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkoivDgn26mf53Ypi8KkJE l+7d5cR/UulXL8M8RduVTxi665UErtuuvSj4meHXw4XvAQ== 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: ksmbd: prevent connection release during oplock break notification ksmbd_work could be freed when after connection release. Increment r_count of ksmbd_conn to indicate that requests are not finished yet and to not release the connection. The Linux kernel CVE team has assigned CVE-2025-21955 to this issue. Affected and fixed versions =========================== Fixed in 6.6.84 with commit 09aeab68033161cb54f194da93e51a11aee6144b Fixed in 6.12.20 with commit a4261bbc33fbf99b99c80aa3a2c5097611802980 Fixed in 6.13.8 with commit f17d1c63a76b0fe8e9c78023a86507a3a6d62cfa Fixed in 6.14 with commit 3aa660c059240e0c795217182cf7df32909dd917 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-2025-21955 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/connection.c fs/smb/server/connection.h fs/smb/server/oplock.c fs/smb/server/server.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/09aeab68033161cb54f194da93e51a11aee6144b https://git.kernel.org/stable/c/a4261bbc33fbf99b99c80aa3a2c5097611802980 https://git.kernel.org/stable/c/f17d1c63a76b0fe8e9c78023a86507a3a6d62cfa https://git.kernel.org/stable/c/3aa660c059240e0c795217182cf7df32909dd917