From mboxrd@z Thu Jan 1 00:00:00 1970 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 762482750E6 for ; Wed, 24 Jun 2026 16:26:27 +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=1782318388; cv=none; b=u0abgdR1HC5MA2bcpH6GRSPEiEOWqDJly8PiVg1h1XKkTVYGOO+wXCwJSK1+w9fDMhFPZeZ6Oa9f9FJfOHcwaTqJ2PObcmOU/0KvZr5KTRyAoScQene45vGbvWjItpD74DoGuY6DJm1CwQbNRY1zDo0THS4kCH3zsSH3uWbSEfc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782318388; c=relaxed/simple; bh=TZJ257I0SG+9/zDEHK1Ki+QfMiIBVJWfFS0JxRGsxlM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IbBKjxX/SeijwBPN2dLtoGSnewoN30hX1u7FXvhiiqPTV+pHC3VL59sCqgqbWlxnyjNZ+CR3+qbY/1YvSRXIG0wAT+2l48+NHYQ9jQFOyFkatH954PRefyIBLKNSuj6uRn1NN6lBYXYpAEPseqxRaoxdjCQD74ClhgZRsZrpusg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=P2xWWQ+1; 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="P2xWWQ+1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 859AA1F000E9; Wed, 24 Jun 2026 16:26:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782318387; bh=sLLEeO1/lCaBEY07cvwdwqG4/tmOKPAnh1OK21lJ//8=; h=From:To:Cc:Subject:Date:Reply-To; b=P2xWWQ+1+GYVwRNBG2JhrzkiFeSw6zHkJIIZn/L/do21y2Eq4S4fC5P45/v9d+7wT rRVY/q5G0pNsxvzafaMzpkYaM3ht0J289eI5sipNwexUvo3MTdR0x+OjpXb2LIX640 VNdW01DLVBUo1jpsRh/YRKSOwu/eIJ8bSO3bEttE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-52948: i2c: dev: prevent integer overflow in I2C_TIMEOUT ioctl Date: Wed, 24 Jun 2026 17:25:04 +0100 Message-ID: <2026062403-CVE-2026-52948-e07f@gregkh> X-Mailer: git-send-email 2.54.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=3654; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6lDlUSCwhTP/2ZQQGCu49bwKphfuTmELImilrtS9VhY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2LPcfWczRkea4Ml98r8ZV128Jopue1lzwTpNxDH7v2 369ft/OjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZgISxTDguurPvXvsnr2O6eU 2Td66z6d6UH2kgwLdifMe7H1Hvf5/Lqn7/fEfV5z7X1lGwA= 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: i2c: dev: prevent integer overflow in I2C_TIMEOUT ioctl While fuzzing with Syzkaller, a persistent `schedule_timeout: wrong timeout value` warning was observed, accompanied by SMBus controller state machine corruption. The I2C_TIMEOUT ioctl accepts a user-provided timeout in multiples of 10 ms. The user argument is checked against INT_MAX, but it is subsequently multiplied by 10 before being passed to msecs_to_jiffies(). A malicious user can pass a large value (e.g., 429496729) that passes the `arg > INT_MAX` check but overflows when multiplied by 10. This results in a truncated 32-bit unsigned value that bypasses the internal `(int)m < 0` check in `msecs_to_jiffies()`. The truncated value is then assigned to `client->adapter->timeout` (a signed 32-bit int), which is reinterpreted as a negative number. When passed to wait_for_completion_timeout(), this negative value undergoes sign extension to a 64-bit unsigned long, triggering the `schedule_timeout` warning and causing premature returns. This leaves the SMBus state machine in an unrecoverable state, constituting a local Denial of Service (DoS). Fix this by bounding the user argument to `INT_MAX / 10`. [wsa: move the comment as well] The Linux kernel CVE team has assigned CVE-2026-52948 to this issue. Affected and fixed versions =========================== Fixed in 5.10.259 with commit e9ffd5f5050fbb199d270a85614cd27ebed6fbac Fixed in 5.15.210 with commit 0b88ecfbc9dc33b4db8836c37b50cf174e6c0691 Fixed in 6.1.176 with commit 943e318eedbeaeea08ece3f5dd44c982f4ed2ef5 Fixed in 6.6.143 with commit aa6ef734016912653a909477fb30aeb66c98b3a2 Fixed in 6.12.94 with commit ff02add34ffd03449b8115904ebe2ec4fed022d4 Fixed in 6.18.36 with commit ffbcf31f032eb454ebfd29309f51366fe57f4ac4 Fixed in 7.0.13 with commit 4576621dc6577f21a032acfd16c3ad61907a5ea7 Fixed in 7.1 with commit 617eb7c0961a8dfcfc811844a6396e406b2923ea 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-52948 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/i2c/i2c-dev.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/e9ffd5f5050fbb199d270a85614cd27ebed6fbac https://git.kernel.org/stable/c/0b88ecfbc9dc33b4db8836c37b50cf174e6c0691 https://git.kernel.org/stable/c/943e318eedbeaeea08ece3f5dd44c982f4ed2ef5 https://git.kernel.org/stable/c/aa6ef734016912653a909477fb30aeb66c98b3a2 https://git.kernel.org/stable/c/ff02add34ffd03449b8115904ebe2ec4fed022d4 https://git.kernel.org/stable/c/ffbcf31f032eb454ebfd29309f51366fe57f4ac4 https://git.kernel.org/stable/c/4576621dc6577f21a032acfd16c3ad61907a5ea7 https://git.kernel.org/stable/c/617eb7c0961a8dfcfc811844a6396e406b2923ea