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 C840417106F for ; Fri, 21 Jun 2024 10:24:57 +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=1718965497; cv=none; b=WYvVlecaP95T20FaAMR06L19NNpHfQsCZvJ+nuJPcOdP+Zd0emiswPpBOO8f2mR+zIjRHureKtPK6OxEtcBL/x7qZFGLTGu1x883rs1yKomM+u0p5pJXinGkO9MnjRHAXJzN/HiwMEmWemOH6kujWI1YyEWe9J51+vbUGdnu0/o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718965497; c=relaxed/simple; bh=GXXjyWUta6udJkDATxmuoifN/7Ar9b6f2vLANOAo/R0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kkr7DRhG01zlFuIxkgX27oFDpMmzlgNX2LY6qjjfYIXlSvCvslPIPUYIQEkUBoKVzQXLrVv7prevsJwWqkEgw6kezDl5iGlF+E2VbNoXjQgPUJvxRkKM/e8iHvapbIj2JprToJI1QYzQJqmkpudMPAMdF28Ltgk6J4Wf4rXi3Qc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=p5+sTqFG; 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="p5+sTqFG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F811C2BBFC; Fri, 21 Jun 2024 10:24:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718965497; bh=GXXjyWUta6udJkDATxmuoifN/7Ar9b6f2vLANOAo/R0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=p5+sTqFGQ2dsXKnrxgcK6vuY6G0Qq4QUCvW+A5d77w5eRhrEc+tMxD9B7SX/lYq+o Fx5iJBRBPNXKQbrLsUQ1MP9cHOrrnTeGqCC60Nosf8LRuYhZgzwKiziTbsVa5Spzzz OMfvEILJJZLIBndnt5lzuVI5uaJCde4y3mcXk/i0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-38630: watchdog: cpu5wdt.c: Fix use-after-free bug caused by cpu5wdt_trigger Date: Fri, 21 Jun 2024 12:19:56 +0200 Message-ID: <2024062141-CVE-2024-38630-3640@gregkh> X-Mailer: git-send-email 2.45.2 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=2350; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=GXXjyWUta6udJkDATxmuoifN/7Ar9b6f2vLANOAo/R0=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmlwXsl11ZVS+37wRN9zd4jJYKncHLQxcviVr9nPk+L4 vn/a15oRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExE5hDDPIu/c19KfFh99qox d3XH/jDPzO79mQzzE9ev4XT/8arF89HHThWdjmifnYLxAA== 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: watchdog: cpu5wdt.c: Fix use-after-free bug caused by cpu5wdt_trigger When the cpu5wdt module is removing, the origin code uses del_timer() to de-activate the timer. If the timer handler is running, del_timer() could not stop it and will return directly. If the port region is released by release_region() and then the timer handler cpu5wdt_trigger() calls outb() to write into the region that is released, the use-after-free bug will happen. Change del_timer() to timer_shutdown_sync() in order that the timer handler could be finished before the port region is released. The Linux kernel CVE team has assigned CVE-2024-38630 to this issue. Affected and fixed versions =========================== Issue introduced in 3.8 with commit e09d9c3e9f85 and fixed in 6.6.33 with commit 9b1c063ffc07 Issue introduced in 3.8 with commit e09d9c3e9f85 and fixed in 6.9.4 with commit f19686d61650 Issue introduced in 3.8 with commit e09d9c3e9f85 and fixed in 6.10-rc1 with commit 573601521277 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-38630 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/watchdog/cpu5wdt.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/9b1c063ffc075abf56f63e55d70b9778ff534314 https://git.kernel.org/stable/c/f19686d616500cd0d47b30cee82392b53f7f784a https://git.kernel.org/stable/c/573601521277119f2e2ba5f28ae6e87fc594f4d4