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 9A3471EF0A5 for ; Wed, 12 Mar 2025 07:31:59 +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=1741764719; cv=none; b=Wdj3THn3x0jTgWkBBfRRhhXVWgBsLP0FnHnCOP8G6E4CpQqqg15O5iDZY5NpbROT21UjzgvIyeytx0cpx54Fmb70ayjY1JVL65ZdI7oyDW9jFO+0Rz/3uKgEywatroVsJurwyFFofZm6sBPlD3GWjA2BQm8t1D8woP3n5WjG4A4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741764719; c=relaxed/simple; bh=FqQXuBD9YsPo7Kaf9j7z/gF9IswRsCGhblXT1Mi9DsA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NoOIkQASZ+fa/1goqcZ/nnqyCwOfnoeyreQJ69gaISQfYVD8J5p0R7dAMDrpkdNL8q3E6EbyPOrF9gL2w0o6T8f3C/po98WyvxAbWI7LfeAHoCUMXciIuNb5WQ4iekj2f4CvkvfnZzqRzeZQgxlu/lexO0qB6gFAu47qcLrSKVY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0krhHPOT; 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="0krhHPOT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5698C4CEE3; Wed, 12 Mar 2025 07:31:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1741764719; bh=FqQXuBD9YsPo7Kaf9j7z/gF9IswRsCGhblXT1Mi9DsA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=0krhHPOTYYNekx0lAl0O4Bo9fisoIO9Z+1f9NArXgjeyifAI2SAmpz5S6zjbvT7tQ vaMa35p+i6XGOvQDgOReoZduNsrjdHVAQdbwtN7ka0oR0ufqsEPqML54+vAyImARsf bH51hsFgDrvYW5J/mv40VnmLYmYsU+LAV0+k8okE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-58087: ksmbd: fix racy issue from session lookup and expire Date: Wed, 12 Mar 2025 08:31:53 +0100 Message-ID: <2025031253-CVE-2024-58087-d9e7@gregkh> X-Mailer: git-send-email 2.48.1 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=2226; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=FqQXuBD9YsPo7Kaf9j7z/gF9IswRsCGhblXT1Mi9DsA=; b=owGbwMvMwCRo6H6F97bub03G02pJDOkXLTLTOxQWX/80f49y7wPbdWn7lXImbv3PnCR3eeHSb fKb37QzdcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBFwhgWbGX2abuwVDEhc+5v ia27FwW96Nk9lWHBlcUTnKJfphpuU9zpeWVC1EHFoO4AAA== 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: fix racy issue from session lookup and expire Increment the session reference count within the lock for lookup to avoid racy issue with session expire. The Linux kernel CVE team has assigned CVE-2024-58087 to this issue. Affected and fixed versions =========================== Fixed in 5.15.176 with commit 2107ab40629aeabbec369cf34b8cf0f288c3eb1b Fixed in 6.1.121 with commit 37a0e2b362b3150317fb6e2139de67b1e29ae5ff Fixed in 6.6.67 with commit 450a844c045ff0895d41b05a1cbe8febd1acfcfd Fixed in 6.12.6 with commit a39e31e22a535d47b14656a7d6a893c7f6cf758c Fixed in 6.13 with commit b95629435b84b9ecc0c765995204a4d8a913ed52 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-2024-58087 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/auth.c fs/smb/server/mgmt/user_session.c fs/smb/server/server.c fs/smb/server/smb2pdu.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/2107ab40629aeabbec369cf34b8cf0f288c3eb1b https://git.kernel.org/stable/c/37a0e2b362b3150317fb6e2139de67b1e29ae5ff https://git.kernel.org/stable/c/450a844c045ff0895d41b05a1cbe8febd1acfcfd https://git.kernel.org/stable/c/a39e31e22a535d47b14656a7d6a893c7f6cf758c https://git.kernel.org/stable/c/b95629435b84b9ecc0c765995204a4d8a913ed52