Skip to contentSkip to conversation

CVE-2026-31549: i2c: cp2615: fix serial string NULL-deref at probe

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: cp2615: fix serial string NULL-deref at probe

The cp2615 driver uses the USB device serial string as the i2c adapter name but does not make sure that the string exists.

Verify that the device has a serial number before accessing it to avoid triggering a NULL-pointer dereference (e.g. with malicious devices).

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

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

	Issue introduced in 5.13 with commit 4a7695429eade517b07ea72f9ec366130e81a076 and fixed in 5.15.203 with commit e68c267787778bcdf3d91b06f794faaba7f0d1d1
	Issue introduced in 5.13 with commit 4a7695429eade517b07ea72f9ec366130e81a076 and fixed in 6.1.167 with commit 4a22af879172336370ae3e81e7f65fb2f69472ee
	Issue introduced in 5.13 with commit 4a7695429eade517b07ea72f9ec366130e81a076 and fixed in 6.6.130 with commit 69aece634a7eebafd9a596e5494d52facf6f26ec
	Issue introduced in 5.13 with commit 4a7695429eade517b07ea72f9ec366130e81a076 and fixed in 6.12.78 with commit 13ccf9b106bba121728f1625c4375a1bd8f5c5a3
	Issue introduced in 5.13 with commit 4a7695429eade517b07ea72f9ec366130e81a076 and fixed in 6.18.20 with commit a9778298f47036866ea15eeb17242e8a4612580f
	Issue introduced in 5.13 with commit 4a7695429eade517b07ea72f9ec366130e81a076 and fixed in 6.19.10 with commit efe996bcfe50c2dcc6cf65c574285713b722ced7
	Issue introduced in 5.13 with commit 4a7695429eade517b07ea72f9ec366130e81a076 and fixed in 7.0 with commit aa79f996eb41e95aed85a1bd7f56bcd6a3842008

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

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-cp2615.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/e68c267787778bcdf3d91b06f794faaba7f0d1d1
	https://git.kernel.org/stable/c/4a22af879172336370ae3e81e7f65fb2f69472ee
	https://git.kernel.org/stable/c/69aece634a7eebafd9a596e5494d52facf6f26ec
	https://git.kernel.org/stable/c/13ccf9b106bba121728f1625c4375a1bd8f5c5a3
	https://git.kernel.org/stable/c/a9778298f47036866ea15eeb17242e8a4612580f
	https://git.kernel.org/stable/c/efe996bcfe50c2dcc6cf65c574285713b722ced7
	https://git.kernel.org/stable/c/aa79f996eb41e95aed85a1bd7f56bcd6a3842008