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 333E7288500 for ; Wed, 18 Jun 2025 11:04:28 +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=1750244668; cv=none; b=S7jdSX/Tcmv8ALVH5ua+kghAb8S5upIOr2jvijD+oLLQFLafHHhyoGQ/oolm3Q5O4+dJJx7WzzoelWSCP8ieiIPGtj+V9d4zF7hU7Dg21BDEmV/bDqHimDxCFLqiqRyCz+5YvXCT4xILijciFApFL/cc+D6b7G3l/zckPuGbh7o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244668; c=relaxed/simple; bh=V+XCuSEPt9JrTQ6he/Ix9hBSmlBZA8gwRZRdXj0Qb54=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jP3P6LrQc8FQt8enN5vWIiptCA8z03UWQrG0mlUndt3cZCHMRYhLB2ChXlqafEf/+f+zd8rWuMOffKjn5GwRffLKZNdrXF2/dlQvGUlJxCQlLp6Yr4w+5mmC8ZqqkD0N/BSNnyNc93Gs7oiP47TpIq0lTcy653/90CVRzYTOfzs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Le1rjLCy; 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="Le1rjLCy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5EA7C4CEE7; Wed, 18 Jun 2025 11:04:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750244668; bh=V+XCuSEPt9JrTQ6he/Ix9hBSmlBZA8gwRZRdXj0Qb54=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Le1rjLCyKdC240JiB02WoxQQ4al1Pk7Gy2NYE18QU+OQfyS+1GwI6l12bWNuw8r11 Q/l8HV0+v31l+sJjE5P+/+S7uXvhRXAatfykipig/BvmgnAYnqv0mvkl2xX6viCs3h i4of8Enu3A/YJV5qavRbyJCQkfN6yNWUXFJGqIu8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49968: ieee802154/adf7242: defer destroy_workqueue call Date: Wed, 18 Jun 2025 13:00:33 +0200 Message-ID: <2025061816-CVE-2022-49968-6e78@gregkh> X-Mailer: git-send-email 2.49.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=3628; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=doJTkDVvg0tO4GD0eve4ELUQ4/Z+n+GY0+WyHRu2oMY=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBcxzWpMZ8OM6ya9NZz/Oy0t+mp/LdSDq18lP+5m1Oe 1ZPzv6R1BHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQAT4WhgmF80oUsxfM8GZZ/F 876IKzj5nY4++YRhnon0p3fBZlalX4oEJXff2PdFV7HpLQA= 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: ieee802154/adf7242: defer destroy_workqueue call There is a possible race condition (use-after-free) like below (FREE) | (USE) adf7242_remove | adf7242_channel cancel_delayed_work_sync | destroy_workqueue (1) | adf7242_cmd_rx | mod_delayed_work (2) | The root cause for this race is that the upper layer (ieee802154) is unaware of this detaching event and the function adf7242_channel can be called without any checks. To fix this, we can add a flag write at the beginning of adf7242_remove and add flag check in adf7242_channel. Or we can just defer the destructive operation like other commit 3e0588c291d6 ("hamradio: defer ax25 kfree after unregister_netdev") which let the ieee802154_unregister_hw() to handle the synchronization. This patch takes the second option. runs") The Linux kernel CVE team has assigned CVE-2022-49968 to this issue. Affected and fixed versions =========================== Issue introduced in 4.18 with commit 58e9683d14752debc6f22daf6b23e031787df31f and fixed in 4.19.258 with commit dede80aaf01f4b6e8657d23726cb4a3da226ec4c Issue introduced in 4.18 with commit 58e9683d14752debc6f22daf6b23e031787df31f and fixed in 5.4.213 with commit bed12d7531df1417fc92c691999ff95e03835008 Issue introduced in 4.18 with commit 58e9683d14752debc6f22daf6b23e031787df31f and fixed in 5.10.142 with commit 23a29932715ca43bceb2eae1bdb770995afe7271 Issue introduced in 4.18 with commit 58e9683d14752debc6f22daf6b23e031787df31f and fixed in 5.15.66 with commit 9f8558c5c642c62c450c98c99b7d18a709fff485 Issue introduced in 4.18 with commit 58e9683d14752debc6f22daf6b23e031787df31f and fixed in 5.19.8 with commit 15f3b89bd521d5770d36a61fc04a77c293138ba6 Issue introduced in 4.18 with commit 58e9683d14752debc6f22daf6b23e031787df31f and fixed in 6.0 with commit afe7116f6d3b888778ed6d95e3cf724767b9aedf Issue introduced in 4.17.19 with commit a2363e2d88bf50022ee643c49ee5d4f7e8c915ea 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-49968 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/net/ieee802154/adf7242.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/dede80aaf01f4b6e8657d23726cb4a3da226ec4c https://git.kernel.org/stable/c/bed12d7531df1417fc92c691999ff95e03835008 https://git.kernel.org/stable/c/23a29932715ca43bceb2eae1bdb770995afe7271 https://git.kernel.org/stable/c/9f8558c5c642c62c450c98c99b7d18a709fff485 https://git.kernel.org/stable/c/15f3b89bd521d5770d36a61fc04a77c293138ba6 https://git.kernel.org/stable/c/afe7116f6d3b888778ed6d95e3cf724767b9aedf