Skip to contentSkip to conversation

CVE-2026-80605: HID: picolcd: prevent NULL pointer dereference in picolcd_send_and_wait()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 28

lore
Share & tools
lore
#0 lore raw

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

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

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

HID: picolcd: prevent NULL pointer dereference in picolcd_send_and_wait()

In picolcd_send_and_wait(), an integer overflow of the signed loop counter 'k' can theoretically lead to a NULL pointer dereference of 'raw_data'. If the loop executes more than INT_MAX times, 'k' becomes negative, making the condition 'k < size' true even when 'size' is 0.

Change the type of 'k' to 'unsigned int' to prevent the overflow and eliminate the out-of-bounds access.

Found by Linux Verification Center (linuxtesting.org) with the Svace static analysis tool.

[[email protected]: extended hash length]

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

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

	Issue introduced in 3.7 with commit fabdbf2fd22fa170b4c5340dbdda5c8cd88fb205 and fixed in 5.10.261 with commit 42dc0b7b55fe0499fc09183f34a1c46d1dcccf77
	Issue introduced in 3.7 with commit fabdbf2fd22fa170b4c5340dbdda5c8cd88fb205 and fixed in 5.15.212 with commit 48caee2c106b03301c72fe389ebff00d852c58d5
	Issue introduced in 3.7 with commit fabdbf2fd22fa170b4c5340dbdda5c8cd88fb205 and fixed in 6.1.178 with commit dc176447c7279435c46735db7da81aed1ec25cc2
	Issue introduced in 3.7 with commit fabdbf2fd22fa170b4c5340dbdda5c8cd88fb205 and fixed in 6.6.145 with commit a02d5d7ad7ae5fa3756b8332f7350e973085dcb3
	Issue introduced in 3.7 with commit fabdbf2fd22fa170b4c5340dbdda5c8cd88fb205 and fixed in 6.12.97 with commit e4edeefb8d5bfceb2058e2b3291f4ae1e5a76e61
	Issue introduced in 3.7 with commit fabdbf2fd22fa170b4c5340dbdda5c8cd88fb205 and fixed in 6.18.40 with commit d354e523c6f740db758cafcd4c11bb7913285ed8
	Issue introduced in 3.7 with commit fabdbf2fd22fa170b4c5340dbdda5c8cd88fb205 and fixed in 7.1.5 with commit ef649703dce0df1364fcec3cdad9b32d1c522939
	Issue introduced in 3.7 with commit fabdbf2fd22fa170b4c5340dbdda5c8cd88fb205 and fixed in 7.2 with commit 0021eb09041f021c079be1022934a280f7f176c0

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

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/hid/hid-picolcd_core.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/42dc0b7b55fe0499fc09183f34a1c46d1dcccf77
	https://git.kernel.org/stable/c/48caee2c106b03301c72fe389ebff00d852c58d5
	https://git.kernel.org/stable/c/dc176447c7279435c46735db7da81aed1ec25cc2
	https://git.kernel.org/stable/c/a02d5d7ad7ae5fa3756b8332f7350e973085dcb3
	https://git.kernel.org/stable/c/e4edeefb8d5bfceb2058e2b3291f4ae1e5a76e61
	https://git.kernel.org/stable/c/d354e523c6f740db758cafcd4c11bb7913285ed8
	https://git.kernel.org/stable/c/ef649703dce0df1364fcec3cdad9b32d1c522939
	https://git.kernel.org/stable/c/0021eb09041f021c079be1022934a280f7f176c0