{"id":21393,"date":"2026-09-12T04:31:07","date_gmt":"2026-09-11T20:31:07","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-89471"},"modified":"2026-09-12T04:31:07","modified_gmt":"2026-09-11T20:31:07","slug":"cve-2026-89471","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-89471","title":{"rendered":"CVE-2026-89471 &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\npower: supply: cros_u"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>power: supply: cros_usbpd-charger: bound the EC-reported port count<\/p>\n<p>cros_usbpd_charger_probe() reads two port counts from the EC and uses<br \/>\none of them, num_charger_ports, as the loop bound when populating a<br \/>\nfixed-size array:<\/p>\n<p>\tstruct port_data *ports[EC_USB_PD_MAX_PORTS];\t\/* 8 entries *\/<br \/>\n\t&#8230;<br \/>\n\tfor (i = 0; i num_charger_ports; i++)<br \/>\n\t\tcharger-&gt;ports[charger-&gt;num_registered_psy++] = port;<\/p>\n<p>Both num_usbpd_ports (from EC_CMD_USB_PD_PORTS) and num_charger_ports<br \/>\n(from EC_CMD_CHARGE_PORT_COUNT) are u8 values reported by the EC. The<br \/>\nonly validation is a sanity check that compares the two EC-reported<br \/>\nvalues against each other:<\/p>\n<p>\tif (num_charger_ports  num_usbpd_ports + 1)<br \/>\n\t\treturn -EPROTO;<\/p>\n<p>It never checks either count against EC_USB_PD_MAX_PORTS, the size of<br \/>\nthe ports[] array. A malfunctioning, malicious or compromised EC that<br \/>\nreports num_usbpd_ports == num_charger_ports == N for any N &gt; 8 (for<br \/>\nexample both 255) passes this check, and the loop then writes N pointers<br \/>\ninto the 8-entry ports[] array embedded in the devm_kzalloc()&#8217;d<br \/>\ncharger_data, overflowing it by up to 255 &#8211; 8 = 247 entries (~1976<br \/>\nbytes): a slab out-of-bounds write.<\/p>\n<p>Reject a port count larger than the ports[] array can hold.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>power: supply: cros_usbpd-charger: bound the EC-reported port count<\/p>\n<p>cros_usbpd_charger_probe() reads two port counts from the EC a<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-21393","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/21393","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=21393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=21393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=21393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}