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 0D49121771B for ; Fri, 2 May 2025 15:56: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=1746201420; cv=none; b=UVQGh00Ldltf8LsCOj60aXeb31vD53x4W5duFyhgc/l9oXrlYTodJl9AEtlctiv5VuM+MOCabNiu8+yv7TfZCIa0vunIAKK3NsRzTp0tk9IsHRKCBukY9cFnRU9sVA62VQ/DiUCaa/RyqROs++idWlRMb+f2w06DaX5dOTdNAAE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746201420; c=relaxed/simple; bh=cqMt9QdobQ2qc1mmuCzIQ1JJmcr4RoYhEzOw6PFjlq8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SjUppq2FOWKLOvEQe/TvuZGkU/gwo5U5FI8lFmJja/QEeA7oVCdJZOUqAf3xuy2JmfyqlujlmofadzDlPhNSMPO5isv3ZCm/ouW6YMF9TSEmLilqHuMt3pJlasr/PVXGq4MLaYrtsAA+rQIP8JXZokF50k8mtuDf89Uv/XsxoJQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YDdWHMqu; 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="YDdWHMqu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 20BDAC4CEE4; Fri, 2 May 2025 15:56:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746201419; bh=cqMt9QdobQ2qc1mmuCzIQ1JJmcr4RoYhEzOw6PFjlq8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=YDdWHMqu1s16EzwfPXj4ademO96jwTQRRvlaIUKV0sds6WPvURiCmMcJi0puoCFSq 0bvguGBhyLVPkE8E9dewJaBj5Xxr0v486MfZWvC7iewtY7/W1VBaUNNvn9K8P3cnM+ vImua8nZDxwjWaInD7+2V0PYVO/jEYlwt6k2493M= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53039: HID: intel-ish-hid: ipc: Fix potential use-after-free in work function Date: Fri, 2 May 2025 17:55:04 +0200 Message-ID: <2025050202-CVE-2023-53039-7efe@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=2356; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nTcChjHC2Nz6nEllCHvPNxlpeEFJxorP2MGUuOdnGc8=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkir66Z/rr4QbUi8B+P34zs5jYf7gWf79/Tzp4b8LPn8 uVWVr7zHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR34sY5qm9Kd69+4VeyWKV c0KJUjdcV+1+3M6woD3nyrPrVYL2x+adeVKYJVks3NqrBgA= 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: HID: intel-ish-hid: ipc: Fix potential use-after-free in work function When a reset notify IPC message is received, the ISR schedules a work function and passes the ISHTP device to it via a global pointer ishtp_dev. If ish_probe() fails, the devm-managed device resources including ishtp_dev are freed, but the work is not cancelled, causing a use-after-free when the work function tries to access ishtp_dev. Use devm_work_autocancel() instead, so that the work is automatically cancelled if probe fails. The Linux kernel CVE team has assigned CVE-2023-53039 to this issue. Affected and fixed versions =========================== Fixed in 5.15.105 with commit 8c1d378b8c224fd50247625255f09fc01dcc5836 Fixed in 6.1.22 with commit 0a594cb490ca6232671fc09e2dc1a0fc7ccbb0b5 Fixed in 6.2.9 with commit d3ce3afd9f791dd1b7daedfcf8c396b60af5dec0 Fixed in 6.3 with commit 8ae2f2b0a28416ed2f6d8478ac8b9f7862f36785 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-2023-53039 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/hid/intel-ish-hid/ipc/ipc.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/8c1d378b8c224fd50247625255f09fc01dcc5836 https://git.kernel.org/stable/c/0a594cb490ca6232671fc09e2dc1a0fc7ccbb0b5 https://git.kernel.org/stable/c/d3ce3afd9f791dd1b7daedfcf8c396b60af5dec0 https://git.kernel.org/stable/c/8ae2f2b0a28416ed2f6d8478ac8b9f7862f36785