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 2BB103314DE for ; Sun, 18 Oct 2026 16:01:01 +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=1792339262; cv=none; b=L0Knwfi28PawctmRyYVx/RRnE16TC/3BUgpiyk9+dfk0n2FQfKDsLfC/5XqtBbaZsQL4SCvh/N0haW/W9KgnQT5z9JcfCqiCQdBYWIFEjtZLhg3+lzGOwafZjW1r5kFkStxIAZ9Rydo6tKN1JYw6DYhR2G///cXRkSwDnt503ZM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792339262; c=relaxed/simple; bh=tPUANXKhyLnRVqaBNBqZ0TlQoZuveslevk7jkRL5J/U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sQUYycqCbjLH7+/Ir8rxLtgbSJphMKC6Ak+ik636YmtZXZA+7t782YJhHBSvvZMBHm0drvp3FqHKX6YUeu4lFzOb2/KflEhrbNst/r1PIU0OIgYbxBrKDf2J3GsI/OvvbsV6rRMooZIFcD53bt1g3h8vhL3o5sXmOXEzB72AnWI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jXmS1KKH; 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="jXmS1KKH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5BE681F000C4; Sun, 18 Oct 2026 16:00:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792339261; bh=bVSDU+C9mCHXWV+oiB+gZ0C7/8TiUe+eY/0A17jLkBE=; h=From:To:Cc:Subject:Date:Reply-To; b=jXmS1KKHMj1vMWqoTSqH4fBuUlqERLGiPY0MUt5+3liNi7K9tHbb3wQBh0jyccqbY l/nKM3T0oLh38JYWWUyFxaRkYIIrguBhU5OAD2mWzSXpaJl4h3tXRQDdxYx82btFNE a7ELCngDwqUvRHlsauFkn1N9LHlsoB7AURI7Y+/g= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98749: tty: serial: max3100: shut down timer before freeing port Date: Sun, 18 Oct 2026 17:45:24 +0200 Message-ID: <2026101814-CVE-2026-98749-1116@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=3897; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=vz78zLcz3WiyEq9vM6LGVf647teBjNSJAPDyJ7oU6HI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXXvpVtcmJCss73fBTa+24tFwhIdH9xXXuhv03rO9M/ LFp3umQjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiI5AaG+R7mv5vdzNd0ida4 POFSTn8zWb7RnmHBwdX9Nqs1Lq+Tct8iKWK4VsueJc8eAA== 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: tty: serial: max3100: shut down timer before freeing port max3100_shutdown() stops the polling timer but returns early during system suspend. If the SPI device is unbound before resume, the serial core does not call max3100_shutdown() again, so max3100_remove() frees the port while the timer remains armed. max3100_timeout() may then access the freed port and re-arm the timer. Add final timer teardown to max3100_remove() and use timer_shutdown_sync() to prevent a racing callback from re-arming it. Also free the IRQ and destroy the workqueue there before freeing the port. Keep timer_delete_sync() in max3100_shutdown() so that a subsequent open() can re-arm the timer. The workqueue is created before request_irq() and destroyed on both request_irq() failure and normal shutdown. Its presence at remove thus identifies the IRQ left registered when suspend bypasses shutdown. Free the IRQ before destroying the workqueue, in both max3100_shutdown() and max3100_remove(), and cancel the pending work in between. free_irq() waits for a running interrupt handler to finish and no new handler can start afterwards, so a racing handler cannot queue work on a workqueue that is being destroyed; the force_end_work check in max3100_dowork() only narrows that window, as a handler delayed between the check and queue_work() could still run after the teardown has cleared the workqueue pointer. Cancelling the work also keeps destroy_workqueue() from waiting on a queued work item in case remove() ever runs while the freezable workqueue is still frozen, e.g. device removal during the resume window, before workqueues are thawed. This issue was found by an in-house static analysis tool. The Linux kernel CVE team has assigned CVE-2026-98749 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.30 with commit 7831d56b0a3544cbb6f82f76c34ca95e24d5b676 and fixed in 6.12.113 with commit fb668620e3b163962dabe1a674725a07aa44ff4a Issue introduced in 2.6.30 with commit 7831d56b0a3544cbb6f82f76c34ca95e24d5b676 and fixed in 6.18.56 with commit 2c8614981d3e6e000427de0ab2426ab68274d850 Issue introduced in 2.6.30 with commit 7831d56b0a3544cbb6f82f76c34ca95e24d5b676 and fixed in 7.2.10 with commit 247b8f680876313586aed4d267bfcceddc2b4901 Issue introduced in 2.6.30 with commit 7831d56b0a3544cbb6f82f76c34ca95e24d5b676 and fixed in 7.3-rc6 with commit db0949bbd06db0a75b4b1076f1e25194be7d956a 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-98749 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/tty/serial/max3100.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/fb668620e3b163962dabe1a674725a07aa44ff4a https://git.kernel.org/stable/c/2c8614981d3e6e000427de0ab2426ab68274d850 https://git.kernel.org/stable/c/247b8f680876313586aed4d267bfcceddc2b4901 https://git.kernel.org/stable/c/db0949bbd06db0a75b4b1076f1e25194be7d956a