Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795154477; b=O1tQSgDP5ZRtIaVekJFtYLpWpviiY25zCcAFKJZL9STzNMJf8wY3EZGBlca/cBtva+vl hgUg7ibGKRNofTL5sgg786/iAP9WlkOhdHFm0opnB6VVRGoFpXw67DR9+jtsLwyg+K8R5 I0MbNHYY5kb987sF6RQ7j6y2XkZ0Rzqx4KzdDAB3b0ZnuWSYogrFN3qSpj+CzLa3Wuh5U FbETtVsTrTGcnD4INRSwEHuduQpkIfv/W3A/mdClH2Lcc/3vPN5iu8LR/B9TlKVSf/CZd LY0qs9kyHGuFVHJqK7p5sucXG3w/mGtQ+lEwR5ZvqTsLGZWraD9yt1aYz9PSsAb0hOQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154477; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=RPWJVCbdaxnriRnfr92oH19nJyyOGRtt80gC5MERE28=; b=fmVMhvYmwfwn9S6bRHDagJdmVSrE38GxcicQRhx01Ty0C5Oai5jIpEsypNokbygMSVV6 Z3L9TpBDZoovVCCqjAsHAjm9oS+iFgKlhy9T83v9IUp3aouv9wXb4Q585stjvOTtAzViK TYPUqMJF+yNxg6gy/t57nDb+5LvE9s9f2sDbcKuUdDsS8GN5JARvf4tH1RpICFhmzuR7q AJDXeMYRW1sWmnc7Z1dzs8rEokY8sLoUYvaLGZm8av/ArFUzurXD6mSngqhNy+I/dhoXq 4ZMn5Au93EtlTfncSEZdlUrNhWLDJHxSKCI1B3GaReMZZzrDUQzR3//XNQ+vOvy0D9g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=M0r8SrZU; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C1AB0606A526 for ; Fri, 20 Nov 2026 06:01:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=M0r8SrZU Received: by smtp.kernel.org (Postfix) with ESMTPSA id B6FA31F000D1; Fri, 20 Nov 2026 06:01:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154477; bh=RPWJVCbdaxnriRnfr92oH19nJyyOGRtt80gC5MERE28=; h=From:To:Cc:Subject:Date:Reply-To; b=M0r8SrZUvlapyO/CXCctI5lyLQscK0/Fzt1Uv20skVsmcwafbv6xCL82KuUE8iB9v iZ+DjSs9ZdlnbF6P9GJXz14kNSEZ5WRyNbYlaTqAOGjT6WQb4p7nuB1DhswJFr3yPN EFJWR/rgUMaIMp166KyKENczhfjTSaml2W7Luv6c= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99719: hwmon: (lm87) Fix drvdata type confusion in vrm_show() and vrm_store() Date: Fri, 20 Nov 2026 06:51:45 +0100 Message-ID: <2026112009-CVE-2026-99719-09f8@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3450; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=xcT0/jlKXGwtWkB5gPXOe2dtLRdTil8x9xu/nQoDEfM=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/70/0t12XtuPAmrWb0xctDTB7XbrVrnLaIuMLHIdWO i28qyyp3RHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQAT8TvKMN9no8v+Hfx+HUot zFfyp/B9nOFa4cYw33X3A4MtZksYWF+LcVx/oqSaXnnLEwA= 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: hwmon: (lm87) Fix drvdata type confusion in vrm_show() and vrm_store() When an LM87 or ADM1024 device is probed with VID support enabled, reading from or writing to the vrm sysfs attribute triggers a driver data type confusion in vrm_show() and vrm_store() in drivers/hwmon/lm87.c. In lm87_probe(), the driver stores the struct lm87_data pointer on the I2C client via i2c_set_clientdata() and passes the struct i2c_client pointer as the drvdata argument to devm_hwmon_device_register_with_groups(), which attaches the attribute groups to the registered hwmon device with client as its driver_data. Unlike the other sysfs callbacks that retrieve client via dev_get_drvdata() and then obtain data via i2c_get_clientdata(), vrm_show() and vrm_store() assign dev_get_drvdata(dev) directly to struct lm87_data *. Dereferencing data->vrm therefore accesses the struct i2c_client instance at offsetof(struct lm87_data, vrm), causing vrm_show() to leak an unrelated byte from struct i2c_client to userspace and vrm_store() to corrupt a byte within struct i2c_client while failing to update the actual VRM value. Fix the problem by assigning the return value from dev_get_drvdata(dev) to struct i2c_client *client and using i2c_get_clientdata() to get the actual client data. The Linux kernel CVE team has assigned CVE-2026-99719 to this issue. Affected and fixed versions =========================== Issue introduced in 4.10 with commit 00a0c905ab4b2b47372be8da6a8442dcd3681903 and fixed in 6.12.118 with commit 25ff5f904e1cb55ac700ce88db3a5a6b735b12bc Issue introduced in 4.10 with commit 00a0c905ab4b2b47372be8da6a8442dcd3681903 and fixed in 6.18.64 with commit b3b6489a11966c2e3a50574b0f08ada55530c10d Issue introduced in 4.10 with commit 00a0c905ab4b2b47372be8da6a8442dcd3681903 and fixed in 7.3.5 with commit 8f5888c37a1a8f5462fdf72fb07d55f23fee5005 Issue introduced in 4.10 with commit 00a0c905ab4b2b47372be8da6a8442dcd3681903 and fixed in 7.4-rc2 with commit 5b51ff0887b9f88d042b92dd07fcdda4132f0ebc 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-99719 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: drivers/hwmon/lm87.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/25ff5f904e1cb55ac700ce88db3a5a6b735b12bc https://git.kernel.org/stable/c/b3b6489a11966c2e3a50574b0f08ada55530c10d https://git.kernel.org/stable/c/8f5888c37a1a8f5462fdf72fb07d55f23fee5005 https://git.kernel.org/stable/c/5b51ff0887b9f88d042b92dd07fcdda4132f0ebc