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 3F45321C174 for ; Wed, 26 Feb 2025 02:28:04 +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=1740536884; cv=none; b=LSLXBkuuUOruO/jlcckK1URR4iXwAjM7H4gXh1EYQHknFocgdpL49NkqjNJ1kWOpZjoh9BuqhSPIGOkth9sZs5GpXmhAgwqxo7sBxAmvrNULFyx4r+6XNxwHwcSEjqmeGMrohkYraxrL0l+va/uZxJa+gVBEAU+tv3UgA5uLYnY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536884; c=relaxed/simple; bh=1jXHqn1HbuSckoDe58+gUOJfqx44vODCOgWF7fOJfJ0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=baUW7AuNuoKzeOlfgaZDzt9yLY7rxLZvmd/vRCiCWtRJrw2fXOg5dOuoCNZ4CRDrBTbWcKc+Ca/q9yN60lS9jSPmGIximuy4ftOLu5Vv1wbdZbZu5zBCRSP74knarGtR3M0j2rPS4ZlGyYfuVU0ndrdqo7dUX9RYCJzYnYeEPnM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZwRlIhkA; 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="ZwRlIhkA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1577DC4CEE6; Wed, 26 Feb 2025 02:28:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536884; bh=1jXHqn1HbuSckoDe58+gUOJfqx44vODCOgWF7fOJfJ0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ZwRlIhkA+pokqDNUdXH9YF5b+2EtUUrhP/gN3N/mCMbj49Rj86VKS3WozO8+0tRmy IdLFDydCPh3b9il6Lm9e5JpuHXfYvKn5z39aQ+xcreX+u9ULALVSgYNY+eucZEhzH8 D+6fRyvYFI+lh2Sd9JX4JgYYeCx3e22669kMT+EU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49724: tty: goldfish: Fix free_irq() on remove Date: Wed, 26 Feb 2025 03:24:47 +0100 Message-ID: <2025022633-CVE-2022-49724-124b@gregkh> X-Mailer: git-send-email 2.48.1 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=3277; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1jXHqn1HbuSckoDe58+gUOJfqx44vODCOgWF7fOJfJ0=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7ql52LL++aDLHk2Be4/p4rtW75fQsli4WjVikLBSz+ tea9pb1HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARdUeGBRtLT5pr39haUTTd objdtjyLvTz2JsN8/9+eSyx/3uDnbqhblLQr7eH0WjshAA== 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: tty: goldfish: Fix free_irq() on remove Pass the correct dev_id to free_irq() to fix this splat when the driver is unbound: WARNING: CPU: 0 PID: 30 at kernel/irq/manage.c:1895 free_irq Trying to free already-free IRQ 65 Call Trace: warn_slowpath_fmt free_irq goldfish_tty_remove platform_remove device_remove device_release_driver_internal device_driver_detach unbind_store drv_attr_store ... The Linux kernel CVE team has assigned CVE-2022-49724 to this issue. Affected and fixed versions =========================== Issue introduced in 4.6 with commit 465893e18878e119d8d0255439fad8debbd646fd and fixed in 4.14.285 with commit c4b0b8edccb0cfb15a8cecf4161e0571d3daac64 Issue introduced in 4.6 with commit 465893e18878e119d8d0255439fad8debbd646fd and fixed in 4.19.249 with commit c83a1d40dc624070a203eb383ef9fb60eb634136 Issue introduced in 4.6 with commit 465893e18878e119d8d0255439fad8debbd646fd and fixed in 5.4.200 with commit f7183c76d500324b8b5bd0af5e663cfa57b7b836 Issue introduced in 4.6 with commit 465893e18878e119d8d0255439fad8debbd646fd and fixed in 5.10.124 with commit 65ca4db68b6819244df9024aea4be55edf8af1ef Issue introduced in 4.6 with commit 465893e18878e119d8d0255439fad8debbd646fd and fixed in 5.15.49 with commit fb15e79cacddfbc62264e6e807bde50ad688e988 Issue introduced in 4.6 with commit 465893e18878e119d8d0255439fad8debbd646fd and fixed in 5.18.6 with commit a6fcd7ffd76a9c1d998a2d02d518c78a55c5bed8 Issue introduced in 4.6 with commit 465893e18878e119d8d0255439fad8debbd646fd and fixed in 5.19 with commit 499e13aac6c762e1e828172b0f0f5275651d6512 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-2022-49724 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/goldfish.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/c4b0b8edccb0cfb15a8cecf4161e0571d3daac64 https://git.kernel.org/stable/c/c83a1d40dc624070a203eb383ef9fb60eb634136 https://git.kernel.org/stable/c/f7183c76d500324b8b5bd0af5e663cfa57b7b836 https://git.kernel.org/stable/c/65ca4db68b6819244df9024aea4be55edf8af1ef https://git.kernel.org/stable/c/fb15e79cacddfbc62264e6e807bde50ad688e988 https://git.kernel.org/stable/c/a6fcd7ffd76a9c1d998a2d02d518c78a55c5bed8 https://git.kernel.org/stable/c/499e13aac6c762e1e828172b0f0f5275651d6512