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 4A8511FCC64 for ; Mon, 21 Oct 2024 18:08:08 +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=1729534088; cv=none; b=FQ0+ZA2Ln+J21ipTQzyxSdibrDJSv3isdR1wBaY1dlm4SAfbjd3YaRDX1QqTwSnjkF3/G1qdFpoVoiCrHQnbso38sqyC7yD4ZIVamZMHvrxJC3zU47lGvdCGFegSOJgdvAcsCEJGiApUxByomH9fOm4fc01ZPK1WC9hrE6E4xy0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729534088; c=relaxed/simple; bh=vTi6Mptnm89eESWXSuRFEE3IYA5czkonXwxA22qKyEY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=g7iKm/IOvURw+rjYwi45Aks1xd5Q7Uyiesl8fo6WG/LzG4Ht7PYXooyXJfrhvRA07zvTGAX5OS7n15+bNASI1MBZMN1MJ7HPSQ3Pd8BlVU+SCxBMHKvvy0xq4Nfae0WdBuTXZJ6lZPKXI4BtDZDkK8+znFS6BgxjqVnowx9fCZE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=X0NUuH38; 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="X0NUuH38" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B57A6C4CEC3; Mon, 21 Oct 2024 18:08:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729534088; bh=vTi6Mptnm89eESWXSuRFEE3IYA5czkonXwxA22qKyEY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=X0NUuH38x1HKOKFfkao1HPQqd8hKgfZTcV/veFtShFz44Bt9mGQIsXBqKlDq+IIbo XNCxJV2u4p1vhb3EfpABh5EaUOsnyZsBYBqUXCEI1v3spobwDhz9RXcB5ldOKxoXGE 4kIJTCSPP4S5L/DyxvBxFtYmTRbUkleo9rAO6PpQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-49986: platform/x86: x86-android-tablets: Fix use after free on platform_device_register() errors Date: Mon, 21 Oct 2024 20:03:14 +0200 Message-ID: <2024102136-CVE-2024-49986-19eb@gregkh> X-Mailer: git-send-email 2.47.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=2377; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=vTi6Mptnm89eESWXSuRFEE3IYA5czkonXwxA22qKyEY=; b=owGbwMvMwCRo6H6F97bub03G02pJDOli0xlS5DP6zvTNPmawOvNdkbOHveGauXMWbgqcPGdT3 XzDyPW8HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARy7sMC641zXAs/ZxeIXqe 27uy0b+10DxyPsOCs5o3FgZVxj6d1L3MMmzbdjnnJn95AA== 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: platform/x86: x86-android-tablets: Fix use after free on platform_device_register() errors x86_android_tablet_remove() frees the pdevs[] array, so it should not be used after calling x86_android_tablet_remove(). When platform_device_register() fails, store the pdevs[x] PTR_ERR() value into the local ret variable before calling x86_android_tablet_remove() to avoid using pdevs[] after it has been freed. The Linux kernel CVE team has assigned CVE-2024-49986 to this issue. Affected and fixed versions =========================== Issue introduced in 5.17 with commit 5eba0141206e and fixed in 6.6.55 with commit aac871e493fc Issue introduced in 5.17 with commit 5eba0141206e and fixed in 6.10.14 with commit f08adc5177bd Issue introduced in 5.17 with commit 5eba0141206e and fixed in 6.11.3 with commit 73a98cf79e4d Issue introduced in 5.17 with commit 5eba0141206e and fixed in 6.12-rc2 with commit 2fae3129c0c0 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-49986 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/platform/x86/x86-android-tablets/core.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/aac871e493fc8809e60209d9899b1af07e9dbfc8 https://git.kernel.org/stable/c/f08adc5177bd4343df09033f62ab562c09ba7f7d https://git.kernel.org/stable/c/73a98cf79e4dbfa3d0c363e826c65aae089b313c https://git.kernel.org/stable/c/2fae3129c0c08e72b1fe93e61fd8fd203252094a