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 F29E449A3C9 for ; Fri, 25 Sep 2026 10:42:18 +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=1790332940; cv=none; b=oNeGnG87zwqyTlaifvNZesPM2swLV+GQucfQHPf4NWkakFy/tWxuSEg8xXNtggQn9kZ8hRBR4TeadEzA5lkMnSqrH9frwvtTI1HGyVfD2oHqensL4l1Xxu6xErcRDvG/AIOMyBf06BoKVy6/Wn+RkcuaspyritJvoOVnlr4jgjE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332940; c=relaxed/simple; bh=jtd9DwmhHWEHWDc9vjpWzP6XA6VpObHEfaBCYVWT26o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XaHUTQP3hcb7YnWWK/y6YPhV/Xrq3YuBd1ZXl7v26Z+B40DrBMQnaPoK6Z8cbs5bHjrwFWJde/8KzXJJX3rZSKwjLPD0ce/Bfx8j0bbdVoRJ0CZO/tRwvr5rQX4GZBKgiDhQK+z2z0L/bH6NhwbEPSJT9z7LkbUMJscVaO7n7D0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vSIqAG6y; 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="vSIqAG6y" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0A3FA1F000FF; Fri, 25 Sep 2026 10:42:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332938; bh=b7fyt5BmWObt+HjKCbJWY36jMr0H4pyRB4FCzJr/Yp8=; h=From:To:Cc:Subject:Date:Reply-To; b=vSIqAG6ycNvIERhYVCsHKYEAj7lrWevhyADszJwxLLaJMj/+eIuVfkeykAE3H1hXv MHS5fPJgee8elrnlFZ3j4nJu7vx6JX+EXEaSLRlwIR2XpKoD841Xm8teB7EomdwbPE rsNvXwMdDGXzeZK/2GHV1J3i9NkvLunMU8qTTLgs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98157: EDAC/device_sysfs: Use kstrtouint() for poll_msec to prevent truncation Date: Fri, 25 Sep 2026 12:40:04 +0200 Message-ID: <2026092520-CVE-2026-98157-008d@gregkh> X-Mailer: git-send-email 2.55.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=2740; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mF0A6WNxPn3J0qpfPnJzrIs4B5vccHiHmEUzYL+xhwQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnb/CNuTNbq1b/6fm/Yo8Orzs6PWtcdsO2ysu2RQ9dMP fXa14mVdcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEipsYFhwwjJ+l+GbfjZyn Wuz/4ljqV15NXc+w4Kbv2Z0+Bj/+zvs/pUBCVoKpX81lIwA= 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: EDAC/device_sysfs: Use kstrtouint() for poll_msec to prevent truncation The poll_msec sysfs store file uses simple_strtoul() which accepts an unsigned long, but the target field (poll_msec) is unsigned int. On 64-bit systems, a value > UINT_MAX is silently truncated when stored. Fix the mismatch by using kstrtouint() instead. This rejects values larger than UINT_MAX at parse time, making truncation impossible. Also add a check for value < 1 to reject the 0-delay case, which would cause the poll work to spin without delay and consume 100% CPU. The Linux kernel CVE team has assigned CVE-2026-98157 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.23 with commit e27e3dac651771fe3250f6305dee277bce29fc5d and fixed in 6.12.111 with commit ea01c061d839b520f385f112908de1c6e3391327 Issue introduced in 2.6.23 with commit e27e3dac651771fe3250f6305dee277bce29fc5d and fixed in 6.18.53 with commit 528052af901d6e6bbfa0e52362a70a58a5dd1e43 Issue introduced in 2.6.23 with commit e27e3dac651771fe3250f6305dee277bce29fc5d and fixed in 7.2.7 with commit 0e022ee4f8e0dc843ba4c80bb75408a7704279af Issue introduced in 2.6.23 with commit e27e3dac651771fe3250f6305dee277bce29fc5d and fixed in 7.3-rc2 with commit 66cc9dec919dd63d8e4b3d386f7aed3ae684e645 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-98157 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/edac/edac_device_sysfs.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/ea01c061d839b520f385f112908de1c6e3391327 https://git.kernel.org/stable/c/528052af901d6e6bbfa0e52362a70a58a5dd1e43 https://git.kernel.org/stable/c/0e022ee4f8e0dc843ba4c80bb75408a7704279af https://git.kernel.org/stable/c/66cc9dec919dd63d8e4b3d386f7aed3ae684e645