Skip to contentSkip to conversation

CVE-2026-31627: i2c: s3c24xx: check the size of the SMBUS message before using it

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Apr 24

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

i2c: s3c24xx: check the size of the SMBUS message before using it

The first byte of an i2c SMBUS message is the size, and it should be verified to ensure that it is in the range of 0..I2C_SMBUS_BLOCK_MAX before processing it.

This is the same logic that was added in commit a6e04f05ce0b ("i2c:
tegra: check msg length in SMBUS block read") to the i2c tegra driver.

The Linux kernel CVE team has assigned CVE-2026-31627 to this issue.

Affected and fixed versions
===========================

	Fixed in 6.12.83 with commit d87d5620125a03b1eadbd5df39748215d3db7ddb
	Fixed in 6.18.24 with commit 377fae22a137b6b89f3f32399a58c52cf2325416
	Fixed in 6.19.14 with commit 71b3c316b22c555d2769126a92b1244b15a9750d
	Fixed in 7.0.1 with commit aaaaec39ddbcd06770dca7f1adebc3b1242ebe7b

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-31627

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/busses/i2c-s3c2410.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/d87d5620125a03b1eadbd5df39748215d3db7ddb
	https://git.kernel.org/stable/c/377fae22a137b6b89f3f32399a58c52cf2325416
	https://git.kernel.org/stable/c/71b3c316b22c555d2769126a92b1244b15a9750d
	https://git.kernel.org/stable/c/aaaaec39ddbcd06770dca7f1adebc3b1242ebe7b
	https://git.kernel.org/stable/c/c0128c7157d639a931353ea344fb44aad6d6e17a