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 B77D5148316 for ; Fri, 18 Apr 2025 14:21:04 +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=1744986064; cv=none; b=aXkxohUEbrSgrAhPa/CTcrbpiTAcLcdDudXNmC1iYg8A80Qqgi9yeUXVwsHRwoQMpKztM2eTKpZkbBSkeWgQiyQsPkxHfabrbDMXpTIr+qGAXeZ3Jl+FLVS4VYdGVL3XwBZy/7naHdQSIeW5UlMc8leHm/t13B3r3LymgvAUCIk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744986064; c=relaxed/simple; bh=Bsh+DLkEL15KSdClAoseeIJQnJvuQ8Aew9BpjmbV2KE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=N3tqQo69+vNSQ9vH1vz2p4AUorZdGFBClDba9SCdkdv284mJS+MpiQe8joq6qG9B0tizhCoroJQg2J0P4HVK1696wuL5Z/1KbC/up1P0mG6J8AicVTls98z0PkbssytqPqjBFSOGWrQSRsb2CWRFbCPMIe6H2KefRLbXd6fFsCk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MsYB58PX; 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="MsYB58PX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ADEDEC4CEE2; Fri, 18 Apr 2025 14:21:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744986064; bh=Bsh+DLkEL15KSdClAoseeIJQnJvuQ8Aew9BpjmbV2KE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=MsYB58PXFeuK2rukpHEiCJVrHs7+rPc6p0JahzfhsTZE26GPxZFPFp7XiFbcHm4ns +FNK3aAiXlMb4mCUDdZV8qh/ozmxYBm6kUM//DGnyfwIkHHHwkL0yDxKoSvltg8xdA +eiWQMrFGx20Dcz53GXWKTfiePNTmM5H48S306vc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37838: HSI: ssi_protocol: Fix use after free vulnerability in ssi_protocol Driver Due to Race Condition Date: Fri, 18 Apr 2025 16:20:59 +0200 Message-ID: <2025041858-CVE-2025-37838-2253@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=2297; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=GAvI6CEVZFpVzyslSEtShqgRNbTWN3ZzJWdispEnp10=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlM8afOHF/MfEi+oyxT1T7FaeXPe6ZWzp6vZhdJf5bc8 bxs85sXHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRR8oM8zR/3RMx2Pvu/IXP +un7PRg2cvG4hDHMMzF5Xrt/lpFYiZr5gpLQJu1ardvpAA== 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: HSI: ssi_protocol: Fix use after free vulnerability in ssi_protocol Driver Due to Race Condition In the ssi_protocol_probe() function, &ssi->work is bound with ssip_xmit_work(), In ssip_pn_setup(), the ssip_pn_xmit() function within the ssip_pn_ops structure is capable of starting the work. If we remove the module which will call ssi_protocol_remove() to make a cleanup, it will free ssi through kfree(ssi), while the work mentioned above will be used. The sequence of operations that may lead to a UAF bug is as follows: CPU0 CPU1 | ssip_xmit_work ssi_protocol_remove | kfree(ssi); | | struct hsi_client *cl = ssi->cl; | // use ssi Fix it by ensuring that the work is canceled before proceeding with the cleanup in ssi_protocol_remove(). The Linux kernel CVE team has assigned CVE-2025-37838 to this issue. Affected and fixed versions =========================== Fixed in 6.15-rc1 with commit e3f88665a78045fe35c7669d2926b8d97b892c11 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-37838 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: drivers/hsi/clients/ssi_protocol.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/e3f88665a78045fe35c7669d2926b8d97b892c11