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 BBF5C25625 for ; Wed, 28 Feb 2024 08:16:27 +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=1709108187; cv=none; b=aVUC5D0xVUfQFR1lxOuWjPOoEiCKrMtTanlMvxL3pfRROCNa+poLTFfQyBTN3jJpV4+98llYeGPeTZ8pMuBk7pQmy0uBelTuLU6lGkNderysZfHpygGt4KRxw+RWplnaMW2OhMFQd3JDVE0U+7nnutnthejvUiMW/PBDuHv9FSI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709108187; c=relaxed/simple; bh=STESbSSoZTsGmIIO+6iM0/2yXk4FJrHe7dCmFsDfFGA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dGNwTyT7++1eDank1yUpDvZnzM4R46VpK+rIzHf62RQTP49pB4aiXGeMMld+HPflcfQU4JCwuxs2dUsIpGLyqWS8c4kkkmmbYbMjv0SAa+qGQG3S3ANhKAf7QQndYL04LrknlUBCcuFhEhB0279xKujGTWzBoBd24Je3VjOyNKg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=AVEXgsLp; 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="AVEXgsLp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09799C433C7; Wed, 28 Feb 2024 08:16:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709108187; bh=STESbSSoZTsGmIIO+6iM0/2yXk4FJrHe7dCmFsDfFGA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=AVEXgsLpsAwlcghIWRtIoBQ831uRw22BlsSbOP+oKbGKJu9KBG72fA+tf894Hq7Lk FcsCLqqBXzGhPG1pBv5Zs1fi8buWiiHZvR0KjDe5knb156AquKZITK9BtuTAEyZgwp 4Uu+jRchdyu92YoLp3Vg/giJ40JowhwZiOj6MeoY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: gregkh@kernel.org Subject: CVE-2021-47006: ARM: 9064/1: hw_breakpoint: Do not directly check the event's overflow_handler hook Date: Wed, 28 Feb 2024 09:14:56 +0100 Message-ID: <2024022829-CVE-2021-47006-3312@gregkh> X-Mailer: git-send-email 2.44.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=3217; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=F916YEejLx2ANyz7IbJa8nPAHo6McIUVqttN72UEUeU=; b=owGbwMvMwCRo6H6F97bub03G02pJDKn3Xqd+4lGZxmSc9dpiZ4vqDMUvPptfysxxWxqw9+6Uw 6Z1y1yndsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEWnQZFpzMbJ/LXvD83rl/ catDv5Qlp3NOc2RYsMlH6NA/S5ud1w608MVOzuc4xB14HQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: gregkh@kernel.org Description =========== In the Linux kernel, the following vulnerability has been resolved: ARM: 9064/1: hw_breakpoint: Do not directly check the event's overflow_handler hook The commit 1879445dfa7b ("perf/core: Set event's default ::overflow_handler()") set a default event->overflow_handler in perf_event_alloc(), and replace the check event->overflow_handler with is_default_overflow_handler(), but one is missing. Currently, the bp->overflow_handler can not be NULL. As a result, enable_single_step() is always not invoked. Comments from Zhen Lei: https://patchwork.kernel.org/project/linux-arm-kernel/patch/20210207105934.2001-1-thunder.leizhen@huawei.com/ The Linux kernel CVE team has assigned CVE-2021-47006 to this issue. Affected and fixed versions =========================== Issue introduced in 4.7 with commit 1879445dfa7b and fixed in 4.9.269 with commit 555a70f7fff0 Issue introduced in 4.7 with commit 1879445dfa7b and fixed in 4.14.233 with commit ed1f67465327 Issue introduced in 4.7 with commit 1879445dfa7b and fixed in 4.19.191 with commit a9938d6d78a2 Issue introduced in 4.7 with commit 1879445dfa7b and fixed in 5.4.120 with commit 3ed8832aeaa9 Issue introduced in 4.7 with commit 1879445dfa7b and fixed in 5.10.38 with commit 630146203108 Issue introduced in 4.7 with commit 1879445dfa7b and fixed in 5.11.22 with commit 7eeacc6728c5 Issue introduced in 4.7 with commit 1879445dfa7b and fixed in 5.12.5 with commit dabe299425b1 Issue introduced in 4.7 with commit 1879445dfa7b and fixed in 5.13 with commit a506bd575629 Please see https://www.kernel.org or 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-2021-47006 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: arch/arm/kernel/hw_breakpoint.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/555a70f7fff03bd669123487905c47ae27dbdaac https://git.kernel.org/stable/c/ed1f67465327cec4457bb988775245b199da86e6 https://git.kernel.org/stable/c/a9938d6d78a238d6ab8de57a4d3dcf77adceb9bb https://git.kernel.org/stable/c/3ed8832aeaa9a37b0fc386bb72ff604352567c80 https://git.kernel.org/stable/c/630146203108bf6b8934eec0dfdb3e46dcb917de https://git.kernel.org/stable/c/7eeacc6728c5478e3c01bc82a1f08958eaa12366 https://git.kernel.org/stable/c/dabe299425b1a53a69461fed7ac8922ea6733a25 https://git.kernel.org/stable/c/a506bd5756290821a4314f502b4bafc2afcf5260