{"id":"CVE-2026-52948","state":"PUBLISHED","title":"i2c: dev: prevent integer overflow in I2C_TIMEOUT ioctl","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ni2c: dev: prevent integer overflow in I2C_TIMEOUT ioctl\n\nWhile fuzzing with Syzkaller, a persistent `schedule_timeout: wrong\ntimeout value` warning was observed, accompanied by SMBus controller\nstate machine corruption.\n\nThe I2C_TIMEOUT ioctl accepts a user-provided timeout in multiples of\n10 ms. The user argument is checked against INT_MAX, but it is\nsubsequently multiplied by 10 before being passed to msecs_to_jiffies().\n\nA malicious user can pass a large value (e.g., 429496729) that passes\nthe `arg > INT_MAX` check but overflows when multiplied by 10. This\nresults in a truncated 32-bit unsigned value that bypasses the\ninternal `(int)m < 0` check in `msecs_to_jiffies()`.\n\nThe truncated value is then assigned to `client->adapter->timeout`\n(a signed 32-bit int), which is reinterpreted as a negative number.\nWhen passed to wait_for_completion_timeout(), this negative value\nundergoes sign extension to a 64-bit unsigned long, triggering the\n`schedule_timeout` warning and causing premature returns. This leaves\nthe SMBus state machine in an unrecoverable state, constituting a\nlocal Denial of Service (DoS).\n\nFix this by bounding the user argument to `INT_MAX / 10`.\n\n[wsa: move the comment as well]","publishedAt":"2026-06-24T16:26:05.719Z","updatedAt":"2026-10-15T01:22:04.803Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"cd97f39b7cdf1c8a9c9f52865eec795b7f0c811d","status":"affected","lessThan":"e9ffd5f5050fbb199d270a85614cd27ebed6fbac","versionType":"git"},{"version":"cd97f39b7cdf1c8a9c9f52865eec795b7f0c811d","status":"affected","lessThan":"0b88ecfbc9dc33b4db8836c37b50cf174e6c0691","versionType":"git"},{"version":"cd97f39b7cdf1c8a9c9f52865eec795b7f0c811d","status":"affected","lessThan":"943e318eedbeaeea08ece3f5dd44c982f4ed2ef5","versionType":"git"},{"version":"cd97f39b7cdf1c8a9c9f52865eec795b7f0c811d","status":"affected","lessThan":"aa6ef734016912653a909477fb30aeb66c98b3a2","versionType":"git"},{"version":"cd97f39b7cdf1c8a9c9f52865eec795b7f0c811d","status":"affected","lessThan":"ff02add34ffd03449b8115904ebe2ec4fed022d4","versionType":"git"},{"version":"cd97f39b7cdf1c8a9c9f52865eec795b7f0c811d","status":"affected","lessThan":"ffbcf31f032eb454ebfd29309f51366fe57f4ac4","versionType":"git"},{"version":"cd97f39b7cdf1c8a9c9f52865eec795b7f0c811d","status":"affected","lessThan":"4576621dc6577f21a032acfd16c3ad61907a5ea7","versionType":"git"},{"version":"cd97f39b7cdf1c8a9c9f52865eec795b7f0c811d","status":"affected","lessThan":"617eb7c0961a8dfcfc811844a6396e406b2923ea","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/i2c/i2c-dev.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.29","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.29","versionType":"semver"},{"version":"5.10.259","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.210","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.176","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.143","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.94","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.36","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.13","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/i2c/i2c-dev.c"]}],"references":["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","https://cert-portal.siemens.com/productcert/html/ssa-784472.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:16.098Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/52xxx/CVE-2026-52948.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-52948","state":"PUBLISHED","datePublished":"2026-06-24T16:26:05.719Z","dateUpdated":"2026-10-15T01:22:04.803Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-06-09T07:44:35.371Z"},"containers":{"cna":{"title":"i2c: dev: prevent integer overflow in I2C_TIMEOUT ioctl","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ni2c: dev: prevent integer overflow in I2C_TIMEOUT ioctl\n\nWhile fuzzing with Syzkaller, a persistent `schedule_timeout: wrong\ntimeout value` warning was observed, accompanied by SMBus controller\nstate machine corruption.\n\nThe I2C_TIMEOUT ioctl accepts a user-provided timeout in multiples of\n10 ms. The user argument is checked against INT_MAX, but it is\nsubsequently multiplied by 10 before being passed to msecs_to_jiffies().\n\nA malicious user can pass a large value (e.g., 429496729) that passes\nthe `arg > INT_MAX` check but overflows when multiplied by 10. This\nresults in a truncated 32-bit unsigned value that bypasses the\ninternal `(int)m < 0` check in `msecs_to_jiffies()`.\n\nThe truncated value is then assigned to `client->adapter->timeout`\n(a signed 32-bit int), which is reinterpreted as a negative number.\nWhen passed to wait_for_completion_timeout(), this negative value\nundergoes sign extension to a 64-bit unsigned long, triggering the\n`schedule_timeout` warning and causing premature returns. This leaves\nthe SMBus state machine in an unrecoverable state, constituting a\nlocal Denial of Service (DoS).\n\nFix this by bounding the user argument to `INT_MAX / 10`.\n\n[wsa: move the comment as well]"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"cd97f39b7cdf1c8a9c9f52865eec795b7f0c811d","status":"affected","lessThan":"e9ffd5f5050fbb199d270a85614cd27ebed6fbac","versionType":"git"},{"version":"cd97f39b7cdf1c8a9c9f52865eec795b7f0c811d","status":"affected","lessThan":"0b88ecfbc9dc33b4db8836c37b50cf174e6c0691","versionType":"git"},{"version":"cd97f39b7cdf1c8a9c9f52865eec795b7f0c811d","status":"affected","lessThan":"943e318eedbeaeea08ece3f5dd44c982f4ed2ef5","versionType":"git"},{"version":"cd97f39b7cdf1c8a9c9f52865eec795b7f0c811d","status":"affected","lessThan":"aa6ef734016912653a909477fb30aeb66c98b3a2","versionType":"git"},{"version":"cd97f39b7cdf1c8a9c9f52865eec795b7f0c811d","status":"affected","lessThan":"ff02add34ffd03449b8115904ebe2ec4fed022d4","versionType":"git"},{"version":"cd97f39b7cdf1c8a9c9f52865eec795b7f0c811d","status":"affected","lessThan":"ffbcf31f032eb454ebfd29309f51366fe57f4ac4","versionType":"git"},{"version":"cd97f39b7cdf1c8a9c9f52865eec795b7f0c811d","status":"affected","lessThan":"4576621dc6577f21a032acfd16c3ad61907a5ea7","versionType":"git"},{"version":"cd97f39b7cdf1c8a9c9f52865eec795b7f0c811d","status":"affected","lessThan":"617eb7c0961a8dfcfc811844a6396e406b2923ea","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/i2c/i2c-dev.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.29","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.29","versionType":"semver"},{"version":"5.10.259","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.210","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.176","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.143","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.94","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.36","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.13","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/i2c/i2c-dev.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/e9ffd5f5050fbb199d270a85614cd27ebed6fbac"},{"url":"https://git.kernel.org/stable/c/0b88ecfbc9dc33b4db8836c37b50cf174e6c0691"},{"url":"https://git.kernel.org/stable/c/943e318eedbeaeea08ece3f5dd44c982f4ed2ef5"},{"url":"https://git.kernel.org/stable/c/aa6ef734016912653a909477fb30aeb66c98b3a2"},{"url":"https://git.kernel.org/stable/c/ff02add34ffd03449b8115904ebe2ec4fed022d4"},{"url":"https://git.kernel.org/stable/c/ffbcf31f032eb454ebfd29309f51366fe57f4ac4"},{"url":"https://git.kernel.org/stable/c/4576621dc6577f21a032acfd16c3ad61907a5ea7"},{"url":"https://git.kernel.org/stable/c/617eb7c0961a8dfcfc811844a6396e406b2923ea"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-06-29T04:18:39.866Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"5.10.259"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"5.15.210"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"6.1.176"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"6.6.143"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"6.12.94"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"6.18.36"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"7.0.13"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"7.1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"affected":[{"vendor":"Siemens","product":"SIMATIC S7-1500 TM MFP - GNU/Linux subsystem","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"*","versionType":"custom"}]}],"references":[{"url":"https://cert-portal.siemens.com/productcert/html/ssa-784472.html"}],"providerMetadata":{"shortName":"siemens-SADP","orgId":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e","dateUpdated":"2026-10-15T01:22:04.803Z"},"x_adpType":"supplier"}]}}}