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 02BB42D8771 for ; Fri, 23 Jan 2026 14:15:49 +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=1769177749; cv=none; b=nFxGj3aRKZgNItkHtMjpMLaIMq+LR7UvLRKXQtuRmhptxxG5EHJn1ULsUf7f3YS2mP4bG7VZRVeTOx3zEd/NvJhnB8o5/g2WuXbULDcaFvlpnxJ+DkPdTB4i7vnOL8UGQcW9S0eFoKWtgEPijkUNYwC7+mFjCxs9QJ0kkMWAFv0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769177749; c=relaxed/simple; bh=uL59uhSKwfRgHMlfIVval5hmzTPy/87WWynB23SuHhA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EOIRN1kq1kDlqWQqFGPv71XkDaSXOkk1tZixhqtF5kY+vf2HRmJySstvHktkScaBBbEoR/SGyK5R758hUOWaVtz6XmJ20xU5iOWivg6yFA3X4cE/ym2D6c/rXY++x/TU+fSKnJQjcgV8x9g9QarKqiUWaJBveYvVFPov87+F/ec= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pno0Et2U; 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="pno0Et2U" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 476D3C4CEF1; Fri, 23 Jan 2026 14:15:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1769177748; bh=uL59uhSKwfRgHMlfIVval5hmzTPy/87WWynB23SuHhA=; h=From:To:Cc:Subject:Date:Reply-To:From; b=pno0Et2UX4J1KP1fc9cYFmzEKDFwfrPtIEajlOzixCKiY3s5DnficMtnHya0yhO3v Ijow8J+A2+t3ozXnFbAh658kU7Bqz9/gJjbEgbDbm9K7OogIv7m5MwdNHInhhpL3/W bmJW7mHj9gSvC86K0+/sxXnX4XWd1+nN/WBRhEgo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-71150: ksmbd: Fix refcount leak when invalid session is found on session lookup Date: Fri, 23 Jan 2026 15:15:30 +0100 Message-ID: <2026012328-CVE-2025-71150-1b7c@gregkh> X-Mailer: git-send-email 2.52.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=2421; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=RSnhNgZrc8ilyrPIw+KjvK55dm5Fhug6XFqDAmYXlYY=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnFTQ3tMxhv7PA9NPXcJl+lOr6d7nts2A0bBR5lHuNnu rrty7QvHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRkqcMCyZ7TZ8uGNKsN2NZ KUviM4fY1cXezAwL9vbI2s67wPXoZ/W9/GemWqmdHZeTAA== 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 refcount leak when invalid session is found on session lookup When a session is found but its state is not SMB2_SESSION_VALID, It indicates that no valid session was found, but it is missing to decrement the reference count acquired by the session lookup, which results in a reference count leak. This patch fixes the issue by explicitly calling ksmbd_user_session_put to release the reference to the session. The Linux kernel CVE team has assigned CVE-2025-71150 to this issue. Affected and fixed versions =========================== Fixed in 6.1.160 with commit 0fb87b28cafae71e9c8248432cc3a6a1fd759efc Fixed in 6.6.120 with commit e54fb2a4772545701766cba08aab20de5eace8cd Fixed in 6.12.64 with commit 02e06785e85b4bd86ef3d23b7c8d87acc76773d5 Fixed in 6.18.3 with commit 8cabcb4dd3dc85dd83a37d26efcc59a66a4074d7 Fixed in 6.19-rc2 with commit cafb57f7bdd57abba87725eb4e82bbdca4959644 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-71150 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/mgmt/user_session.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/0fb87b28cafae71e9c8248432cc3a6a1fd759efc https://git.kernel.org/stable/c/e54fb2a4772545701766cba08aab20de5eace8cd https://git.kernel.org/stable/c/02e06785e85b4bd86ef3d23b7c8d87acc76773d5 https://git.kernel.org/stable/c/8cabcb4dd3dc85dd83a37d26efcc59a66a4074d7 https://git.kernel.org/stable/c/cafb57f7bdd57abba87725eb4e82bbdca4959644