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 B96191FBF53 for ; Mon, 21 Oct 2024 19:41:15 +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=1729539675; cv=none; b=lzrH+XgPRbU3cxRcGqgks8zfjBrmrxgfKdqwzj8BeHwtpx/URgfc6lvT5oUu8Kxe4md846TzYyH6nxWN5tLuTylqgetXUnXtJFd2SZMGKqM4o3FT+W4DGKtG/+38V0+A/DZI8a6qGgtTJ7SOrzUGMspLPASt1xpdteZb4Ro3A0g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729539675; c=relaxed/simple; bh=x8rGWEFl1gK+nzGP5iSim/ruH7a2kKSj0DTmxqFOrpg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=g1PprewDi/GKVlpCBIwkNrlYTgRDy0JexTQY7UKbudHUJhMrqQEdJqdiElZ7CnNn7/6Ksoluk+bO7hX4Dm1a5FtCBOlyAabYkYRTbKNtD0+nyEU/r3ukx0AKWHw1IAuqPvkRxs3qEVqbBi19mU84WnGKsq5cHVmFSJNGN4uHWqU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qH5XQIGG; 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="qH5XQIGG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 35D29C4CEC3; Mon, 21 Oct 2024 19:41:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729539675; bh=x8rGWEFl1gK+nzGP5iSim/ruH7a2kKSj0DTmxqFOrpg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=qH5XQIGGfdKvXA8Ma4l/J2CXCMzw2Ecr5ZM75GmnLBAxE6PKzsvO8ryf010+Pgktb K+BMFRHlSNxR1orXNFhedIi0SvDb22CrLPy9lxZZuSId0XqwZrOs36O1bywQUAQWbS 9+M1gF5Vh+kkDUl2HJZ0+36QR5Uv1LqiduH/06UE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50057: usb: typec: tipd: Free IRQ only if it was requested before Date: Mon, 21 Oct 2024 21:39:58 +0200 Message-ID: <2024102135-CVE-2024-50057-d046@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=2514; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=x8rGWEFl1gK+nzGP5iSim/ruH7a2kKSj0DTmxqFOrpg=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlia78rVzWsuXCJ94X/n83vT7/48P6NfMPmB7Hn7PauM HATcGZn64hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJcKczzFOX6tugdMBcmDf2 hbfdrqWKU2btvMsw3/ncqoo3ns9PlvWrLi4VtTkfd1BfHgA= 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: usb: typec: tipd: Free IRQ only if it was requested before In polling mode, if no IRQ was requested there is no need to free it. Call devm_free_irq() only if client->irq is set. This fixes the warning caused by the tps6598x module removal: WARNING: CPU: 2 PID: 333 at kernel/irq/devres.c:144 devm_free_irq+0x80/0x8c ... ... Call trace: devm_free_irq+0x80/0x8c tps6598x_remove+0x28/0x88 [tps6598x] i2c_device_remove+0x2c/0x9c device_remove+0x4c/0x80 device_release_driver_internal+0x1cc/0x228 driver_detach+0x50/0x98 bus_remove_driver+0x6c/0xbc driver_unregister+0x30/0x60 i2c_del_driver+0x54/0x64 tps6598x_i2c_driver_exit+0x18/0xc3c [tps6598x] __arm64_sys_delete_module+0x184/0x264 invoke_syscall+0x48/0x110 el0_svc_common.constprop.0+0xc8/0xe8 do_el0_svc+0x20/0x2c el0_svc+0x28/0x98 el0t_64_sync_handler+0x13c/0x158 el0t_64_sync+0x190/0x194 The Linux kernel CVE team has assigned CVE-2024-50057 to this issue. Affected and fixed versions =========================== Fixed in 6.6.57 with commit b72bf5cade51 Fixed in 6.11.4 with commit 4d4b23c11954 Fixed in 6.12-rc1 with commit db63d9868f7f 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-50057 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/usb/typec/tipd/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/b72bf5cade51ba4055c8a8998d275e72e6b521ce https://git.kernel.org/stable/c/4d4b23c119542fbaed2a16794d3801cb4806ea02 https://git.kernel.org/stable/c/db63d9868f7f310de44ba7bea584e2454f8b4ed0