Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp346277lqr; Wed, 5 Jun 2024 07:49:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX6TTFU4lZfBY4NuknI4uTHfHQgC1vGbMetOYYJ+BHqMLm6MWFn/kAktVaMxdslO6+lXuN0c9ZdNjjV7RNuHvFaf9Kr7AtbIF7w5cs7aQ== X-Google-Smtp-Source: AGHT+IF+y/9dgK1nwpapTyr8bqu07a5jf2MIKboRujjCIjr72z1lfrw52CPP8/VFObi8uVcyHgsA X-Received: by 2002:a17:902:d2ca:b0:1f4:6af5:2737 with SMTP id d9443c01a7336-1f6a5a69ad7mr32856585ad.49.1717598966060; Wed, 05 Jun 2024 07:49:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717598966; cv=pass; d=google.com; s=arc-20160816; b=HxuwVb0jKFsRG23ZoqlDTRYF31ld0NucdpUQck8htTszw1XSG8Ot/KJGOkpOj7VNYg t02YzLdCFyKKWNsPQW968Ao7RYjHNC+lpYhgCPzfuasMpZX9gvH7MDt9mU+dW8vhO+rm 0nkUs3sDJ1oWwJ2B4jQxXjCF17RZmh7T0B6WkGHyT5rXLPQmUYmRG88fx7VafP7G1LPE Isn7WEjzTiAK7inoJFqVTVRiFNQtyi6+cLrJpwwnpfqPcYay4CPpULtvh9HcVZWEi1ic peC8cAL29zjpPG5TZl2s9de8qM+Z2VZPA0r1qkfJVpTYVBYa4iQawEtiEowBClDSjI8S HSpw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:dkim-signature :dkim-signature:dkim-signature; bh=dVugGptPtD6OX0Z91XnGX144xvMk6jvqh7BpCH/CGOY=; fh=1FHqNfMMiWaa2HLKqqJNu2kOgK2gQB4ijjUceBFwQMg=; b=IZjdTPxpfpBe1YW4XnLOwhdssiYeNBnBD5vk51Jl2yD3JsryZ01Saoum2b6OznGmHd qr6xRB+jPXQ5k8+RRJyC9blOiUB2cwbV1+gNRlUPw6jxMxysWE3y/cMk4f8/sM2Z0bHb +m7LnP9zKRTARziiIzN86Xn0CyQtTYCDzOVixV1hO5k5HRu66296gCtERiIvEGawwCKv rqw5/zsB2s5AmdC1xfcJ0ijfg5oKsihZHyTcfa5YmFJYx+3650KCTWCuw/aB729xj93i nmbuybaS0dsX8hwqSco5fnse7rEE8ck72Zp5KiaFIh+vuQN0r2cWaQ5jLTt7JpPEgKsc 2sOQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=e6yTzOYM; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=e6yTzOYM; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b="hBMB+v/s"; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-202791-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202791-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1f6918148fasi3155725ad.214.2024.06.05.07.49.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 07:49:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202791-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.de header.s=susede2_rsa header.b=e6yTzOYM; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=e6yTzOYM; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b="hBMB+v/s"; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-202791-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202791-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de 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 B26D6288A14 for ; Wed, 5 Jun 2024 14:49:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A8B852032A; Wed, 5 Jun 2024 14:49:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="e6yTzOYM"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="hBMB+v/s"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="e6yTzOYM"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="hBMB+v/s" 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 7118819D8AB; Wed, 5 Jun 2024 14:49:18 +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=1717598959; cv=none; b=Viz0eS0sdXqQouCVeAekZjZeyQX0RNKSWaLd3k5OonsFz/Ix+GlV5z9lFiTabDzgSgcFAFObUFY7cGzHWShhcBQ4oXvLOk1aNBJOyskHLEvAPQkC4HuIXkr82YKYwpOM6kvS+IfE/nE3g8H6L2i1/yy+bZW2GPJdZw4MAvW7D1A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717598959; c=relaxed/simple; bh=JI51xCKNXfnxhURIX3KOj0rmwuTxLiCCiq0F7SuZDxU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=CNwMferZ7yLEuMkVAKVBoiV5QvQPnGsFu76ES2ta0WA5OhsMu1qEXbRonDz8nlF/WJ9cSRVfIetYNhRgPKdQljUBy2dItrDYghk45ft5CVcXPn4wIRmAaGL89WbHTLi+0YNHe5eSsWDl5Z+sUVGzBGTuY94+gTDcQuQ3Bfc02Cs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=e6yTzOYM; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=hBMB+v/s; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=e6yTzOYM; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=hBMB+v/s; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap1.dmz-prg2.suse.org (unknown [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 A907F1F824; Wed, 5 Jun 2024 14:49:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1717598956; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dVugGptPtD6OX0Z91XnGX144xvMk6jvqh7BpCH/CGOY=; b=e6yTzOYMATV04amdTKq5lOqJCSPzNblm7dCqMOpUvqzZP1e5RceXSmkL8duaZ5uhvfbkEj AeZxxdNbTsH3ZiSYuKqkAHf0pXkIZi2Gh9QmVxjmQ76zxeTpxXD6va5BcTD36z0KOM7W6R P000yrbEgHG4Ofo2jsXG5m0ESIXBjcI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1717598956; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dVugGptPtD6OX0Z91XnGX144xvMk6jvqh7BpCH/CGOY=; b=hBMB+v/srXEq2KFa9faLmmk1x9bcRZgbZyARhWo5kmvSLdbpnBClVihE6YR0pJj06ruI0a NQz8Iyvi9NarbAAw== Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1717598956; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dVugGptPtD6OX0Z91XnGX144xvMk6jvqh7BpCH/CGOY=; b=e6yTzOYMATV04amdTKq5lOqJCSPzNblm7dCqMOpUvqzZP1e5RceXSmkL8duaZ5uhvfbkEj AeZxxdNbTsH3ZiSYuKqkAHf0pXkIZi2Gh9QmVxjmQ76zxeTpxXD6va5BcTD36z0KOM7W6R P000yrbEgHG4Ofo2jsXG5m0ESIXBjcI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1717598956; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dVugGptPtD6OX0Z91XnGX144xvMk6jvqh7BpCH/CGOY=; b=hBMB+v/srXEq2KFa9faLmmk1x9bcRZgbZyARhWo5kmvSLdbpnBClVihE6YR0pJj06ruI0a NQz8Iyvi9NarbAAw== 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 5B2C713A42; Wed, 5 Jun 2024 14:49:16 +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 B1agE+x6YGYOOgAAD6G6ig (envelope-from ); Wed, 05 Jun 2024 14:49:16 +0000 From: "Ivan T. Ivanov" To: gregkh@linuxfoundation.org Cc: cve@kernel.org, linux-cve-announce@vger.kernel.org, linux-kernel@vger.kernel.org Subject: RE: iio: adc: stm32-adc: harden against NULL pointer deref in stm32_adc_probe() Date: Wed, 5 Jun 2024 17:51:23 +0300 Message-Id: <20240605145123.78220-1-iivanov@suse.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <2024052159-CVE-2023-52802-81ce@gregkh> References: <2024052159-CVE-2023-52802-81ce@gregkh> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Flag: NO X-Spam-Score: 0.10 X-Spam-Level: X-Spamd-Result: default: False [0.10 / 50.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_CONTAINS_FROM(1.00)[]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-1.000]; BAYES_HAM(-0.10)[65.70%]; MIME_GOOD(-0.10)[text/plain]; FUZZY_BLOCKED(0.00)[rspamd.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_TLS_ALL(0.00)[] Hi, I could we drop this CVE? of_match_device() can not return NULL in this case. Even commit message agree on this: " ... In practice there is no known reasonable way to trigger this, but in case one is added in future, harden the code by adding the check ..." Regards, Ivan