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 DCE82313267 for ; Tue, 16 Sep 2025 16:14:40 +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=1758039280; cv=none; b=NB39yWlZoPihMEA/bUaHO1v1+V+tdTKr797XbBE7occVyWt61cELvTBLNDCkjvc/hH/yT/RCN7Z3a/UVh2E13gDhDnRlFigunORacBNLBfEC6sJr3lNszrY19cn5yiyIvsE86rVWKhN1sr+G/xx1AG5yXc/KfMTPK1Y9ncjcYtY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758039280; c=relaxed/simple; bh=8T/ovZS2BJc5UA4xiHrisV3EjZVf6XN5SYusYnPD/ug=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=E7F4hvLKR2pnbYwyDmmkRzNtybdiaIrQxDYM6SRbA4vAvED2yjGFTWeRrktU2oebCeTMML4UHk7yzE2e4RmEccESJC3rLJz7ypRRO70OT/YU9HVS5P3k3byyz5ks1dQ0kZqFNV0pSDVcpfN8JdbGH8ZhTlPWo6S/cZIiS/HAyCo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qfbcgSX4; 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="qfbcgSX4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0973BC4CEEB; Tue, 16 Sep 2025 16:14:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758039280; bh=8T/ovZS2BJc5UA4xiHrisV3EjZVf6XN5SYusYnPD/ug=; h=From:To:Cc:Subject:Date:Reply-to:From; b=qfbcgSX4O7JI1b7EyL7fJ22S+06HM4ESMGpVtwrKuTK1kfPzxm/q87Hb74Cr9aA68 RKGmrbc1V7VAwQ4u+SkbQvx2ABxUNnR5J5MACXtahoiZrRYLyN9pn3skN2dcue45Ag mUehQupZ60eMq9laZovR8xscbiyboaLURVpjW8+Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53326: powerpc: Don't try to copy PPR for task with NULL pt_regs Date: Tue, 16 Sep 2025 18:12:11 +0200 Message-ID: <2025091645-CVE-2023-53326-7ff5@gregkh> X-Mailer: git-send-email 2.51.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=4571; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wTkn0vF+rIzou9g5nLrhsLssXKdL08IIcXSKm6fJ8TU=; b=owGbwMvMwCRo6H6F97bub03G02pJDBknexx/uieIdqoffF9iqhMz1YE/Y+Kn5SsDp27Zd9jj1 ZaJXlvSO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAikxkZ5hk1Gf3OPFb88XKH 96dHZr4t+lxvVzIsaGKbvINhXkupWqfpvv9fv2z/sPgVCwA= 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: powerpc: Don't try to copy PPR for task with NULL pt_regs powerpc sets up PF_KTHREAD and PF_IO_WORKER with a NULL pt_regs, which from my (arguably very short) checking is not commonly done for other archs. This is fine, except when PF_IO_WORKER's have been created and the task does something that causes a coredump to be generated. Then we get this crash: Kernel attempted to read user page (160) - exploit attempt? (uid: 1000) BUG: Kernel NULL pointer dereference on read at 0x00000160 Faulting instruction address: 0xc0000000000c3a60 Oops: Kernel access of bad area, sig: 11 [#1] LE PAGE_SIZE=64K MMU=Radix SMP NR_CPUS=32 NUMA pSeries Modules linked in: bochs drm_vram_helper drm_kms_helper xts binfmt_misc ecb ctr syscopyarea sysfillrect cbc sysimgblt drm_ttm_helper aes_generic ttm sg libaes evdev joydev virtio_balloon vmx_crypto gf128mul drm dm_mod fuse loop configfs drm_panel_orientation_quirks ip_tables x_tables autofs4 hid_generic usbhid hid xhci_pci xhci_hcd usbcore usb_common sd_mod CPU: 1 PID: 1982 Comm: ppc-crash Not tainted 6.3.0-rc2+ #88 Hardware name: IBM pSeries (emulated by qemu) POWER9 (raw) 0x4e1202 0xf000005 of:SLOF,HEAD hv:linux,kvm pSeries NIP: c0000000000c3a60 LR: c000000000039944 CTR: c0000000000398e0 REGS: c0000000041833b0 TRAP: 0300 Not tainted (6.3.0-rc2+) MSR: 800000000280b033 CR: 88082828 XER: 200400f8 ... NIP memcpy_power7+0x200/0x7d0 LR ppr_get+0x64/0xb0 Call Trace: ppr_get+0x40/0xb0 (unreliable) __regset_get+0x180/0x1f0 regset_get_alloc+0x64/0x90 elf_core_dump+0xb98/0x1b60 do_coredump+0x1c34/0x24a0 get_signal+0x71c/0x1410 do_notify_resume+0x140/0x6f0 interrupt_exit_user_prepare_main+0x29c/0x320 interrupt_exit_user_prepare+0x6c/0xa0 interrupt_return_srr_user+0x8/0x138 Because ppr_get() is trying to copy from a PF_IO_WORKER with a NULL pt_regs. Check for a valid pt_regs in both ppc_get/ppr_set, and return an error if not set. The actual error value doesn't seem to be important here, so just pick -EINVAL. [mpe: Trim oops in change log, add Fixes & Cc stable] The Linux kernel CVE team has assigned CVE-2023-53326 to this issue. Affected and fixed versions =========================== Issue introduced in 4.8 with commit fa439810cc1b3c927ec24ede17d02467e1b143a1 and fixed in 5.10.177 with commit 80a4200d51e5a7e046f4a90f5faa5bafd5a60c58 Issue introduced in 4.8 with commit fa439810cc1b3c927ec24ede17d02467e1b143a1 and fixed in 5.15.106 with commit 7624973bc15b76d000e8e6f9b8080fcb76d36595 Issue introduced in 4.8 with commit fa439810cc1b3c927ec24ede17d02467e1b143a1 and fixed in 6.1.23 with commit 064a1c7b0f8403260d77627e62424a72ca26cee2 Issue introduced in 4.8 with commit fa439810cc1b3c927ec24ede17d02467e1b143a1 and fixed in 6.2.10 with commit 01849382373b867ddcbe7536b9dfa89f3bcea60e Issue introduced in 4.8 with commit fa439810cc1b3c927ec24ede17d02467e1b143a1 and fixed in 6.3 with commit fd7276189450110ed835eb0a334e62d2f1c4e3be 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-53326 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/kernel/ptrace/ptrace-view.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/80a4200d51e5a7e046f4a90f5faa5bafd5a60c58 https://git.kernel.org/stable/c/7624973bc15b76d000e8e6f9b8080fcb76d36595 https://git.kernel.org/stable/c/064a1c7b0f8403260d77627e62424a72ca26cee2 https://git.kernel.org/stable/c/01849382373b867ddcbe7536b9dfa89f3bcea60e https://git.kernel.org/stable/c/fd7276189450110ed835eb0a334e62d2f1c4e3be