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 584F828A3EF for ; Wed, 18 Jun 2025 11:09:33 +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=1750244973; cv=none; b=l81b3sO7CN0KJKEyNpbMnwmQTFtvEw8NvvVBRQBBreQ77RDtFf/wL3XzH74GsAhlZwTKY9pavB/TFtO64xYGyoSkphsxACH8KK5oc2et0fvGvBmnanFuW0c52l4d5ruNrfAXovvGcNmCVAn8XcVPyYm85zJlMTxRA4lz9ySCOxI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244973; c=relaxed/simple; bh=26NaUgdL+gANELzTqMa0usRrpV7gWiRNbqQV4LnXK2g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Vgrw5rllktKJAKdUDhh0da3rtolYpvUdxtahtFXfAcnOkXGlJ5mMyijCg60PTHP7zY3EkUZ7DtwjbMoI6bjaqfZv8MQGZomuTA090kFpvidqCFznhRN0NbeS+tJGiRr7YwY2Y9fAkd/tG9TyD6r+iBt4WfPQnXXyIQJz3RjndxU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Iuuj7YMv; 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="Iuuj7YMv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BAC70C4CEED; Wed, 18 Jun 2025 11:09:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750244973; bh=26NaUgdL+gANELzTqMa0usRrpV7gWiRNbqQV4LnXK2g=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Iuuj7YMvDaTUSrqhy0yepXRhMH3NsUO/8Fakg7Mda0RDznpai3KXwtIBZkDZmpGPj ARcMLQBi2B2TRzLyTCqOw/X6aSflhN5pFRNs4nxwAhuQwBUnRRgyARU7/Ies522xgd otKhA+7sslFhryVvLn+WO9Zc98U84I84ooMh6Ru4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50091: locking/csd_lock: Change csdlock_debug from early_param to __setup Date: Wed, 18 Jun 2025 13:02:36 +0200 Message-ID: <2025061800-CVE-2022-50091-fddc@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=3095; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hsCZO5ml8n7fnF7kvv9wNCHEhMPwkB0sGveAQTWbvdM=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc3L2B369EP7JYZt+esrfgqalHgUmqvyLFq3I8b7rU e5ars3bEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABOZ78AwV6qx6qAt05qwUx6a E835FPUXznmoyjA/MjyX36FgW0XrO9kmhvefq29WBQgCAA== 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: locking/csd_lock: Change csdlock_debug from early_param to __setup The csdlock_debug kernel-boot parameter is parsed by the early_param() function csdlock_debug(). If set, csdlock_debug() invokes static_branch_enable() to enable csd_lock_wait feature, which triggers a panic on arm64 for kernels built with CONFIG_SPARSEMEM=y and CONFIG_SPARSEMEM_VMEMMAP=n. With CONFIG_SPARSEMEM_VMEMMAP=n, __nr_to_section is called in static_key_enable() and returns NULL, resulting in a NULL dereference because mem_section is initialized only later in sparse_init(). This is also a problem for powerpc because early_param() functions are invoked earlier than jump_label_init(), also resulting in static_key_enable() failures. These failures cause the warning "static key 'xxx' used before call to jump_label_init()". Thus, early_param is too early for csd_lock_wait to run static_branch_enable(), so changes it to __setup to fix these. The Linux kernel CVE team has assigned CVE-2022-50091 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit 8d0968cc6b8ffd8496c2ebffdfdc801f949a85e5 and fixed in 5.15.61 with commit d2cbdbe22b5f190055d2d0ae92e7454479343a30 Issue introduced in 5.13 with commit 8d0968cc6b8ffd8496c2ebffdfdc801f949a85e5 and fixed in 5.18.18 with commit 05de9e2e33b1625c71aee69e353fe906dd2be88a Issue introduced in 5.13 with commit 8d0968cc6b8ffd8496c2ebffdfdc801f949a85e5 and fixed in 5.19.2 with commit b480d1e9a8c11ecc1c99dc01814b28e3103bd0a0 Issue introduced in 5.13 with commit 8d0968cc6b8ffd8496c2ebffdfdc801f949a85e5 and fixed in 6.0 with commit 9c9b26b0df270d4f9246e483a44686fca951a29c 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-50091 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: kernel/smp.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/d2cbdbe22b5f190055d2d0ae92e7454479343a30 https://git.kernel.org/stable/c/05de9e2e33b1625c71aee69e353fe906dd2be88a https://git.kernel.org/stable/c/b480d1e9a8c11ecc1c99dc01814b28e3103bd0a0 https://git.kernel.org/stable/c/9c9b26b0df270d4f9246e483a44686fca951a29c