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 BA89A2641CF for ; Tue, 8 Apr 2025 08:18:41 +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=1744100323; cv=none; b=R3Zfk/9eOgtzwLQFSOR0s3MvCmGUKBJUxaZNpbs5Tcw6yHNEM77HmXv3jlasViBf8HiL1h+FufWY9+kNgaXgyR96A36hiM0Ejx0PSYDz82A+bspGvonbBbz2c2FiRLWxh3uWEZOxwdjldgWdBts7aJx844im4nF2v7unO32NqLY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744100323; c=relaxed/simple; bh=vMp29jYptIvb6O/DeUoU92i+iOKC7tMViH3xDpqcKuE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Uak5vbIthOtQp1uUaNjz4fr4CPmA0c4DGzk8ZHt8dCoOowM9admYqGqMDzSnRbk6kx44BWmd5WJSG8ZkxevAPWJxqRsuo6VxhLE0+t5k6UG1TqPRYvzwQPLTdKS94oXjopRwwIMaB/X+zWcOUAauAAMzm/NoQ1HhWFHIzZqsspU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rRYX+cBe; 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="rRYX+cBe" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1DDCC4CEE5; Tue, 8 Apr 2025 08:18:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744100321; bh=vMp29jYptIvb6O/DeUoU92i+iOKC7tMViH3xDpqcKuE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=rRYX+cBey3bd0tPTocObXmY3P5bBLsYxYgYTref6+As1yw+PrTDZLfuo8fWEO2yBs ydxFIiDJduDXngCXDvY279zs04IKB+yIMyWX5GkyInpJS4iaqUeQJmEM+bB8tKW3qY mipmlWeGrAr5YWvurgjvothzD1e6/az1J0MNzecY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-22016: dpll: fix xa_alloc_cyclic() error handling Date: Tue, 8 Apr 2025 10:16:50 +0200 Message-ID: <2025040844-CVE-2025-22016-ac9d@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=2280; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=vMp29jYptIvb6O/DeUoU92i+iOKC7tMViH3xDpqcKuE=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlfbufUyWo5RJ6U25yZeE7t/5L07AtG4rerc388vlw0t +a9j4xmRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzklQ/DPC3lWoFXYXWrZucJ d9p+2WRT+XbzdYZ5Cg9SJVpsnhUo1O590iU+t3x6frErAA== 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: dpll: fix xa_alloc_cyclic() error handling In case of returning 1 from xa_alloc_cyclic() (wrapping) ERR_PTR(1) will be returned, which will cause IS_ERR() to be false. Which can lead to dereference not allocated pointer (pin). Fix it by checking if err is lower than zero. This wasn't found in real usecase, only noticed. Credit to Pierre. The Linux kernel CVE team has assigned CVE-2025-22016 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit 97f265ef7f5b526b33d6030b2a1fc69a2259bf4a and fixed in 6.12.21 with commit cb2f8a5c1fd9e7a1fefa23afe20570e16da1ada4 Issue introduced in 6.8 with commit 97f265ef7f5b526b33d6030b2a1fc69a2259bf4a and fixed in 6.13.9 with commit 4d350043be684762e581d9bdd32d543621d01a9c Issue introduced in 6.8 with commit 97f265ef7f5b526b33d6030b2a1fc69a2259bf4a and fixed in 6.14 with commit 3614bf90130d60f191a5fe218d04f6251c678e13 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-2025-22016 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/dpll/dpll_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/cb2f8a5c1fd9e7a1fefa23afe20570e16da1ada4 https://git.kernel.org/stable/c/4d350043be684762e581d9bdd32d543621d01a9c https://git.kernel.org/stable/c/3614bf90130d60f191a5fe218d04f6251c678e13