Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1369561rbb; Mon, 26 Feb 2024 07:15:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWVK6d12/Dhabo1bm9Im0FuD38kwb47SHx6mOZ60zBzNt5N2nn8MgRn+73X6AlXanXRRKS2Q2KaiIS7YzUlc7+zoXk39bROzAQJX6SPog== X-Google-Smtp-Source: AGHT+IF/QQAqsoIYzn0fMczPeVdENnM70FGEMpK+VOR5qbopjGI3BKaB640cLVbVa6Lo6RYJCg01 X-Received: by 2002:a17:90a:af98:b0:299:4649:13cb with SMTP id w24-20020a17090aaf9800b00299464913cbmr9677105pjq.9.1708960538665; Mon, 26 Feb 2024 07:15:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708960538; cv=pass; d=google.com; s=arc-20160816; b=peoF3cdVd722jHdET5KP6pjMjwtxuccClRTaEPre0xYKi8jFzQUnxTOxSUssqZ1tAN jN4BbDSNhtyHxrgbM2sqi+/u0o8DD55NAM4LLwPG0aBiWRJd+1Yc44sJpoVVfiTPN1dx 7HufxLSW5kAhfsEZBM5JQLbexZG3j4FXEWFcDebQpZUl2R2B+K/HfJl+D+sYuzJk2QkL Qnli5FPgSoq4n44a/Q+u9E5pyksqYwfxlFWeA5hCEANKIx8od+FdAJ836xU+1QOegWU+ 4bGfDaYAozhU6ljMVo0KuKdCwr+dqrpcj198GneES48N2t36UeQSWNKEETbUROYqRODp KLtA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=Z7e/EkstDQtyQF2BtTgiuXQXk7xq8reb9bPrNVAQNOE=; fh=RumJljKUpEXhKk/yzTInO2JGOb/kMRNovYQbEf4z1i4=; b=wAx9WhniWAIakvQKhHunPShLCWXrdxrBqbumzBLtY8u+EPS4Bqpcp+ZQdUwgjkqUdo kjFtSykC9YJ2GLzUNTPdcqNd8HrNkNHoOmy94JWjpVYvoNyBiSDSGECJIsZ0Cg0xjfKk 3UHR+lw7xl2eW2dcj5NBoYbTRTe2O/XylVUngEVmmZQ7lLLi2GK+23sr7aOR+x0SZ8Le yKPjKhG1yA23x4r6yC3+PGbQux8ZF0bu5jFzQopA9jZFrMhpCv4AgSK05bYAn0wFwM0D J3IV4k556xTj/u4UzaVDYDnXeK3sQUaRpe03XenWiCH1XDL1E6nw82pCmhSHz5yyRYwG 6aTA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=umI3cTsq; dkim=pass header.i=@suse.com header.s=susede1 header.b=umI3cTsq; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-81739-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81739-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id se6-20020a17090b518600b00297327ffe69si3901736pjb.109.2024.02.26.07.15.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 07:15:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81739-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=umI3cTsq; dkim=pass header.i=@suse.com header.s=susede1 header.b=umI3cTsq; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-81739-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81739-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 7C82629C6D5 for ; Mon, 26 Feb 2024 15:09:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 233F312CDB1; Mon, 26 Feb 2024 14:52:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="umI3cTsq"; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="umI3cTsq" Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 905F412B167; Mon, 26 Feb 2024 14:52:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708959136; cv=none; b=ihIXBPYd6iSZm/85C7kE2KFWqqRGaiVtULaBb0CJDsS87HdPbpgbk/cLNSFLxZb8BeBuUO+8nR0CXs0PhVa9qsojTAnGx0eGri3Y1lnh1lYfafMCFjcezvuN8GCpztcNfgOFnYWMvU3+vhW3MEDBmvimZQGaxRBdX4Pmdv3xL+I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708959136; c=relaxed/simple; bh=ItiAnz01Jft/2QGsGtbIhpFWLHN6F9+hJjcFcV43I4s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UP+MnWveJpxZkuQfUj2/Si9okojmobQm2zGUGgcOGVt7/fXLlt81E5uec/LPDkHN2auiwVztq2bSGMk3kwOS9t5YoROnLSRx6bEN41HrwPmblVTB3ZsEODTVQHm13P7Lia60OgrYLVHxLWFZQuj+d+ICCwkZwr63foPTpGmapHE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=umI3cTsq; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=umI3cTsq; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id A7E5B1FB47; Mon, 26 Feb 2024 14:52:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1708959132; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Z7e/EkstDQtyQF2BtTgiuXQXk7xq8reb9bPrNVAQNOE=; b=umI3cTsqQ0xSeHt46djQ3sIx51fFQwbrUR8dOIMh30VZXjKc/k4Uznx0pwoUCCBd1JqZml JkuCq1R0u3eHY9O4eVAFVFmlZPGawvRifj6c7KLtSS6U5rp80W0PKu+6VaRiW4GMKOdxjt Hs8Phgok6y3qAQC8Nvb0FhlWvV1Hsxw= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1708959132; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Z7e/EkstDQtyQF2BtTgiuXQXk7xq8reb9bPrNVAQNOE=; b=umI3cTsqQ0xSeHt46djQ3sIx51fFQwbrUR8dOIMh30VZXjKc/k4Uznx0pwoUCCBd1JqZml JkuCq1R0u3eHY9O4eVAFVFmlZPGawvRifj6c7KLtSS6U5rp80W0PKu+6VaRiW4GMKOdxjt Hs8Phgok6y3qAQC8Nvb0FhlWvV1Hsxw= Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 8DDCE13A58; Mon, 26 Feb 2024 14:52:12 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id GHYSH5yl3GW8dAAAD6G6ig (envelope-from ); Mon, 26 Feb 2024 14:52:12 +0000 Date: Mon, 26 Feb 2024 15:52:11 +0100 From: Michal Hocko To: cve@kernel.org, linux-kernel@vger.kernel.org Cc: linux-cve-announce@vger.kernel.org, Greg Kroah-Hartman Subject: Re: CVE-2023-52451: powerpc/pseries/memhp: Fix access beyond end of drmem array Message-ID: References: <2024022257-CVE-2023-52451-7bdb@gregkh> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2024022257-CVE-2023-52451-7bdb@gregkh> Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.com header.s=susede1 header.b=umI3cTsq X-Spamd-Result: default: False [-4.51 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[suse.com:s=susede1]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DWL_DNSWL_MED(-2.00)[suse.com:dkim]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.com:s=susede1]; DKIM_TRACE(0.00)[suse.com:+]; MX_GOOD(-0.01)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.com:dkim]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-2.70)[98.71%] X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Rspamd-Queue-Id: A7E5B1FB47 X-Spam-Level: X-Spam-Score: -4.51 X-Spam-Flag: NO On Thu 22-02-24 17:21:58, Greg KH wrote: > Description > =========== > > In the Linux kernel, the following vulnerability has been resolved: > > powerpc/pseries/memhp: Fix access beyond end of drmem array > > dlpar_memory_remove_by_index() may access beyond the bounds of the > drmem lmb array when the LMB lookup fails to match an entry with the > given DRC index. When the search fails, the cursor is left pointing to > &drmem_info->lmbs[drmem_info->n_lmbs], which is one element past the > last valid entry in the array. The debug message at the end of the > function then dereferences this pointer: > > pr_debug("Failed to hot-remove memory at %llx\n", > lmb->base_addr); While this is a reasonable fix and the stable material it is really unclear to me why it has gained a CVE. Memory hotplug is a privileged operation. Could you clarify please? -- Michal Hocko SUSE Labs