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 D535E60DEA for ; Fri, 17 May 2024 14:27:01 +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=1715956022; cv=none; b=cJzmPjtEs8ET2peIG6KD7EyFgdhVpQcITxEhcCJLFvylf8o0Wh7zNSJtCE0xP2JNcEeJJH09orAzhHeH8a1TDPTNL6jvCDL/2xzhWs0N3r45A4QzPKMkIzmSOGfaj3pzp/fauurolyI6c3s1jmWl1QCusBW9V2DCJxzFgmqIwW4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715956022; c=relaxed/simple; bh=iniDYyoV+lrZttvGqHXVIvtMtOlWMHPiTHSpGySlxqw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BniHM/luZv9dWOkjzA5rS9zNQ/ZCaESW9z7Va0PG90y0r9oItINjwJEqStnYv3Eqd29PBdDnx+iOKVE2RyPLoISoCBzS/dkimpBbtzg/vKAhxpSSyp5tGMIYBPfwgjpc7NjuQoYzSOFroc8CTkVt36lRH0L1l6t+/azZ/icIkp0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nGXbTmDw; 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="nGXbTmDw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 119B9C2BD10; Fri, 17 May 2024 14:27:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715956021; bh=iniDYyoV+lrZttvGqHXVIvtMtOlWMHPiTHSpGySlxqw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=nGXbTmDwVi+qH+VCDZO/WnNry6hR4ggf4LQeeQ70UZYaOLyKj/INxXm6mb4p1Pl5i Vf6C2QJclIeush0ZzERKRCxZjvjFZVfkUr6aUG1wrr5N1Kzbc/HJ/5EU61aNPwSwEm bDLkGkU/qdl/OMg65+BuoABXO3+eHV1tQmIhwAyg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52675: powerpc/imc-pmu: Add a null pointer check in update_events_in_group() Date: Fri, 17 May 2024 16:26:48 +0200 Message-ID: <2024051749-CVE-2023-52675-4d66@gregkh> X-Mailer: git-send-email 2.45.1 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=2799; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=iniDYyoV+lrZttvGqHXVIvtMtOlWMHPiTHSpGySlxqw=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnumZoZka2bszm9F9xleNU/+eCHg88Mlp5etU1930HJv MwK/a9CHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRnjaGBZf2b/DY/NRH4Ofy ufffFnBuvuwd/5NhftWGmmdWfa3Xj81y/n261S13wcqcOwA= 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: powerpc/imc-pmu: Add a null pointer check in update_events_in_group() kasprintf() returns a pointer to dynamically allocated memory which can be NULL upon failure. The Linux kernel CVE team has assigned CVE-2023-52675 to this issue. Affected and fixed versions =========================== Issue introduced in 4.14 with commit 885dcd709ba9 and fixed in 4.19.306 with commit 75fc599bcdcb Issue introduced in 4.14 with commit 885dcd709ba9 and fixed in 5.4.268 with commit 1e80aa25d186 Issue introduced in 4.14 with commit 885dcd709ba9 and fixed in 5.10.209 with commit 5a669f3511d2 Issue introduced in 4.14 with commit 885dcd709ba9 and fixed in 5.15.148 with commit f105c2630098 Issue introduced in 4.14 with commit 885dcd709ba9 and fixed in 6.1.75 with commit a2da3f9b1a10 Issue introduced in 4.14 with commit 885dcd709ba9 and fixed in 6.6.14 with commit 024352f7928b Issue introduced in 4.14 with commit 885dcd709ba9 and fixed in 6.7.2 with commit c7d828e12b32 Issue introduced in 4.14 with commit 885dcd709ba9 and fixed in 6.8 with commit 0a233867a390 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-2023-52675 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/powerpc/perf/imc-pmu.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/75fc599bcdcb1de093c9ced2e3cccc832f3787f3 https://git.kernel.org/stable/c/1e80aa25d186a7aa212df5acd8c75f55ac8dae34 https://git.kernel.org/stable/c/5a669f3511d273c8c1ab1c1d268fbcdf53fc7a05 https://git.kernel.org/stable/c/f105c263009839d80fad6998324a4e1b3511cba0 https://git.kernel.org/stable/c/a2da3f9b1a1019c887ee1d164475a8fcdb0a3fec https://git.kernel.org/stable/c/024352f7928b28f53609660663329d8c0f4ad032 https://git.kernel.org/stable/c/c7d828e12b326ea50fb80c369d7aa87519ed14c6 https://git.kernel.org/stable/c/0a233867a39078ebb0f575e2948593bbff5826b3