Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 CABFB51AEF3 for ; Wed, 14 Oct 2026 13:26:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791984392; cv=none; b=ZWpFtb6p6//AKg49kt62vVmXQGzfAm8Ga515jIsHgILSxqEs1FP25sehXxA1UAOHT9RAwT5lEZOvDUq0qflUlNo7ZsH6UqtvLX2kPoPdsT7stbt6IdWXcBaGppEETMOZIkkgYZmgegQNkD15C100CdDiQAqWZZAefiOFIYwZZhQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791984392; c=relaxed/simple; bh=GATaXe7UhaIkDWQBJx0MB6UOEQDBki3Ohdcvm5b01AU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kg0B8V+Walz/36u9Z4C65IidzayrmacBZD6WGSEbqb/vtZQFwh1ahVONyRn8eEO+6EVsaUxwUComETXK0GQ1qIyIl7v1RtFlcpLRhUJ2hyoj2XpoXtjgeDt5O5pJGw/cWr7MMay2WU62vGccvc0Yjo3lX7C2y7bDg78cZuLzISQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FCW6GRUk; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="FCW6GRUk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B0FFA1F000FF; Wed, 14 Oct 2026 13:26:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791984390; bh=TVtBoJXjJFrg1lsLeJILjQ3i5RY9GBorpPmYxwORLd4=; h=From:To:Cc:Subject:Date:Reply-To; b=FCW6GRUkN8ysbjtyiCcUt38bZpIQkyQ/vsiq80R09b3SegfWlldt+vjAoJZGEJalF lIHtDbLiyspTqJB0dOA8ntb4/k3typZfsmurswx0DHivw0f7pRgD3OawLmO3KsQPW3 O7RsklQFByvsmwKYxtZ3O3lRW+nkubJnOA1tKJKM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98397: platform/x86: x86-android-tablets: hold device reference for secondary fwnode teardown Date: Wed, 14 Oct 2026 15:26:27 +0200 Message-ID: <2026101421-CVE-2026-98397-7cbd@gregkh> X-Mailer: git-send-email 2.56.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=2419; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=LF8vJuzB2R9W+UrjxvTB45sRRuZX068LcfaTKvy9Zzg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnnm/6+a376KSx6fdWa8FWy+8O5u/p4zz3+mhLyYoOYR c3vN58ndsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEHD4xzHdf3KQq+Ui343vw msUf15290PgnKZZhwXqVF1rn1C+c/nYjkYnjtd6lpbcmVgMA 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: platform/x86: x86-android-tablets: hold device reference for secondary fwnode teardown In gpio_secondary_fwnode_init(), acpi_bus_find_device_by_name() returns a device reference, but the local dev variable is declared with __free(put_device), dropping the reference at the end of each iteration. Meanwhile, devm_add_action_or_reset() saves the dev pointer for gpio_secondary_unset() without incrementing its reference count, which could lead to a use-after-free during driver teardown if the device is released in the interim. Acquire an explicit device reference with get_device() when registering the devres action, and drop it with put_device() inside gpio_secondary_unset(). The Linux kernel CVE team has assigned CVE-2026-98397 to this issue. Affected and fixed versions =========================== Issue introduced in 7.2 with commit 1448c2d2ca5cc7f4ea6694e6bc809946de0a751c and fixed in 7.2.7 with commit c62b6e081119f2ab03cfcafde1f83c0f50e8e726 Issue introduced in 7.2 with commit 1448c2d2ca5cc7f4ea6694e6bc809946de0a751c and fixed in 7.3-rc3 with commit 144113b0a70fa18033a747ee5db6803308f7688c 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-2026-98397 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/c62b6e081119f2ab03cfcafde1f83c0f50e8e726 https://git.kernel.org/stable/c/144113b0a70fa18033a747ee5db6803308f7688c