HID: picolcd: prevent NULL pointer dereference in picolcd_send_and_wait()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel ef649703dce0df1364fcec3cdad9b32d1c522939, Kernel 0021eb09041f021c079be1022934a280f7f176c0, Kernel 42dc0b7b55fe0499fc09183f34a1c46d1dcccf77 and 12 more.
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. [jkosina@suse.com: extended hash length]
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=fabdbf2fd22fa170b4c5340dbdda5c8cd88fb205 <ef649703dce0df1364fcec3cdad9b32d1c522939, >=fabdbf2fd22fa170b4c5340dbdda5c8cd88fb205 <0021eb09041f021c079be1022934a280f7f176c0, >=fabdbf2fd22fa170b4c5340dbdda5c8cd88fb205 <42dc0b7b55fe0499fc09183f34a1c46d1dcccf77, >=fabdbf2fd22fa170b4c5340dbdda5c8cd88fb205 <48caee2c106b03301c72fe389ebff00d852c58d5, >=fabdbf2fd22fa170b4c5340dbdda5c8cd88fb205 <a02d5d7ad7ae5fa3756b8332f7350e973085dcb3, >=fabdbf2fd22fa170b4c5340dbdda5c8cd88fb205 <d354e523c6f740db758cafcd4c11bb7913285ed8, >=fabdbf2fd22fa170b4c5340dbdda5c8cd88fb205 <dc176447c7279435c46735db7da81aed1ec25cc2, >=fabdbf2fd22fa170b4c5340dbdda5c8cd88fb205 <e4edeefb8d5bfceb2058e2b3291f4ae1e5a76e61, =3.7 | ef649703dce0df1364fcec3cdad9b32d1c522939, 0021eb09041f021c079be1022934a280f7f176c0, 42dc0b7b55fe0499fc09183f34a1c46d1dcccf77, 48caee2c106b03301c72fe389ebff00d852c58d5, a02d5d7ad7ae5fa3756b8332f7350e973085dcb3, d354e523c6f740db758cafcd4c11bb7913285ed8, dc176447c7279435c46735db7da81aed1ec25cc2, e4edeefb8d5bfceb2058e2b3291f4ae1e5a76e61 |
| linux-kernel: Kernel | >=5.11.0 <5.15.212, >=5.16.0 <6.1.178, >=6.13.0 <6.18.40, >=6.19.0 <7.1.5, >=6.2.0 <6.6.145, >=6.7.0 <6.12.97, >=3.7.0 <5.10.261 | 5.15.212, 6.1.178, 6.18.40, 7.1.5, 6.6.145, 6.12.97, 5.10.261 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket