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 496D5277CA1 for ; Sat, 4 Oct 2025 15:52:55 +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=1759593175; cv=none; b=gW8HzLqolODprx8JZn5ALi6AydTIh83MC3U1I4P98O/TeE41pHMJRL/xOz9sylRo8DzeeYyylE5fZpp+3+0XkwEGq7vFyZF9MBG9LHLInGyy+VLldr3yDNapLQhWV4iLraxwR9QXxcE+8VOJxAGfSBFnvYbQr2I7JOuF0dDnwqQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759593175; c=relaxed/simple; bh=uWuD5vmFgUjXdsPlyc/BfXt3vOX+249bfdDdx33r7Mo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=pHVokcOXd/GPK+3URBvD2LYX3WBDGWhTce4GWfn8GRZij6PbrZ6qA96Boi1jFAEQPUXm+LnoQ1PDV1WWxCRCCDYTwa5PaLCjAY7LFblu426fZ9yM11QWHIpdsm5xiWQLdtCl9OHiD97sJR1PPwvWG4U5J3vhO/Z/Bv4mb7Q4hRI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ElM03seq; 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="ElM03seq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C3335C4CEF1; Sat, 4 Oct 2025 15:52:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759593175; bh=uWuD5vmFgUjXdsPlyc/BfXt3vOX+249bfdDdx33r7Mo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ElM03seqhbAiV0scyjcqATJEsi4XnVqUQrKUT0xyfL1lH5DnPfMmxC0Gy1Zs9OJ5K lejJoIdZEp9bWHzoIjjhJe1Hb232Ewwij+Kyclsels1HNL27+ykXqxNWgzx7mujQZ0 IydRKPDD8+5KNOPjhQ+VHXltB44WRz8fjzvNuKq8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50502: mm: /proc/pid/smaps_rollup: fix no vma's null-deref Date: Sat, 4 Oct 2025 17:51:27 +0200 Message-ID: <2025100421-CVE-2022-50502-c819@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=1694; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=NI9W3zj5SnfBjkZHvtKe1lc9tONvj/i30IkbRK0Vm3k=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkPnSot65Qdv5jUfxTO8Lxd6O6xbPPCuMu3a0wznW/u/ SpfvvZXRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkfgjDgvbcOkWfuLgq7zXP 432enlq70nR5NsOCgy8a7Os/+y9rrZMvzkpX//Yxs2EaAA== 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: mm: /proc/pid/smaps_rollup: fix no vma's null-deref Commit 258f669e7e88 ("mm: /proc/pid/smaps_rollup: convert to single value seq_file") introduced a null-deref if there are no vma's in the task in show_smaps_rollup. The Linux kernel CVE team has assigned CVE-2022-50502 to this issue. Affected and fixed versions =========================== Issue introduced in 4.19 with commit 258f669e7e88c18edbc23fe5ce00a476b924551f and fixed in 5.4.221 with commit 6bb8769326c46db3058780c0640dcc49d8187b24 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-50502 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/task_mmu.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/6bb8769326c46db3058780c0640dcc49d8187b24