Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 A384E348C69 for ; Wed, 3 Jun 2026 15:51:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780501868; cv=none; b=DbAje9cy7j5dwPCcrsqNo4Vz553MElpemfvEGKAShbLRhvB8T6/iUq6ET/eyvXt2MWaLvz5lH09snuq+yIX+6YzHPAn8urk3z1JQIkb8SW/uwhasVmi2E/zdcaRkZIMhvZwrRC+Q5zobYV5rCjFIVosEItFXBw1WE+Ygy81T5U8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780501868; c=relaxed/simple; bh=eXAHLpSgL6bMAR5cU5vcZhUNKfpgf2f3B3md7l2j82A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=h8GpqsiwMs3ObbsfIRJFUQ/0BUY+BgW+qlqXaKFNndC8BQr5DpyGwgO9g6zrQkl7d8cSJXlGYT3LRvrrg+do5qFs/38DnQ/eOrN9oGC+U1N9hAD1osoJf6jgzClCFOM/Rnj9kgqQcuhoF+LZAt0ptZEhymAsJ7u3au1NAS4d43U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=R8Jit90U; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="R8Jit90U" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A3FDF1F00893; Wed, 3 Jun 2026 15:51:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1780501867; bh=4LJonAGNRBT6NsW+FlW2EReeJuIzDeg/PPfq3wEyh1s=; h=From:To:Cc:Subject:Date:Reply-To; b=R8Jit90UasAXkMS1eL0dcWGrTSJvaV+FndkPEV0G9muvMScbAelt4EiAPvYPctaxV eAWEVsMSpRgqiycfd2Wn1mrayNTOOaEc2vBl7IOYXq0L+GZrN8pULVtwVUiLw+quhB hRfwbAAHWNtH+i9eB7ZWfVFyVhmli0nKjLDHTf0g= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46259: procfs: fix missing RCU protection when reading real_parent in do_task_stat() Date: Wed, 3 Jun 2026 17:49:48 +0200 Message-ID: <2026060336-CVE-2026-46259-6c94@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3829; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=NcOLgTTYVcuf1h91XcafO19JIJP1V4KWsKNRkKIdRp0=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkKvgJv+JKEG6Of6mxx+2yycR1b8LPOSVrqwb5/lsUU/ dp45caFjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIxFGG+Zk/DsrFv5OWM1J5 Pf/ZAuFlN1g2lDMsmCz2vs30cFzhu01lc/Z83fBEg6dsJwA= 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: procfs: fix missing RCU protection when reading real_parent in do_task_stat() When reading /proc/[pid]/stat, do_task_stat() accesses task->real_parent without proper RCU protection, which leads to: cpu 0 cpu 1 ----- ----- do_task_stat var = task->real_parent release_task call_rcu(delayed_put_task_struct) task_tgid_nr_ns(var) rcu_read_lock <--- Too late to protect task->real_parent! task_pid_ptr <--- UAF! rcu_read_unlock This patch uses task_ppid_nr_ns() instead of task_tgid_nr_ns() to add proper RCU protection for accessing task->real_parent. The Linux kernel CVE team has assigned CVE-2026-46259 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.26 with commit 06fffb1267c9d986687b69d74a46ee332a50575e and fixed in 5.10.252 with commit fefa0fcd78be465b7ad4c497fa6ec90d64194c04 Issue introduced in 2.6.26 with commit 06fffb1267c9d986687b69d74a46ee332a50575e and fixed in 5.15.202 with commit c93a33f28f915d446eea6fb3f0e1def0b3af1982 Issue introduced in 2.6.26 with commit 06fffb1267c9d986687b69d74a46ee332a50575e and fixed in 6.1.165 with commit 1c8dc5b5517546c68ffae40b948336122bb61306 Issue introduced in 2.6.26 with commit 06fffb1267c9d986687b69d74a46ee332a50575e and fixed in 6.6.128 with commit 0e64bd46a04a4fd61279aca9f53a664e9e5f7e7e Issue introduced in 2.6.26 with commit 06fffb1267c9d986687b69d74a46ee332a50575e and fixed in 6.12.75 with commit 73ec7c96601d61d52310c659145bb06d933a0fa6 Issue introduced in 2.6.26 with commit 06fffb1267c9d986687b69d74a46ee332a50575e and fixed in 6.18.14 with commit 4f9ae386861e280b7631ca252f798d25575627ee Issue introduced in 2.6.26 with commit 06fffb1267c9d986687b69d74a46ee332a50575e and fixed in 6.19.4 with commit dd8b13cb4ff1a4545a214ed897fdf2bc341155b6 Issue introduced in 2.6.26 with commit 06fffb1267c9d986687b69d74a46ee332a50575e and fixed in 7.0 with commit 76149d53502cf17ef3ae454ff384551236fba867 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-2026-46259 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: fs/proc/array.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/fefa0fcd78be465b7ad4c497fa6ec90d64194c04 https://git.kernel.org/stable/c/c93a33f28f915d446eea6fb3f0e1def0b3af1982 https://git.kernel.org/stable/c/1c8dc5b5517546c68ffae40b948336122bb61306 https://git.kernel.org/stable/c/0e64bd46a04a4fd61279aca9f53a664e9e5f7e7e https://git.kernel.org/stable/c/73ec7c96601d61d52310c659145bb06d933a0fa6 https://git.kernel.org/stable/c/4f9ae386861e280b7631ca252f798d25575627ee https://git.kernel.org/stable/c/dd8b13cb4ff1a4545a214ed897fdf2bc341155b6 https://git.kernel.org/stable/c/76149d53502cf17ef3ae454ff384551236fba867