{"id":65936,"date":"2025-07-10T14:32:04","date_gmt":"2025-07-10T11:02:04","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2025-38348-p54-wifi-driver-buffer-overflow-vulnerability\/"},"modified":"2025-07-10T14:32:04","modified_gmt":"2025-07-10T11:02:04","slug":"cve-2025-38348-p54-wifi-driver-buffer-overflow-vulnerability","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2025-38348-p54-wifi-driver-buffer-overflow-vulnerability\/","title":{"rendered":"CVE-2025-38348 &#8211; &#8220;p54 WiFi Driver Buffer Overflow Vulnerability&#8221;"},"content":{"rendered":"<p><strong>CVE ID : <\/strong>CVE-2025-38348<br \/>\n<br \/>\n<strong>Published : <\/strong> July 10, 2025, 9:15 a.m. | 53\u00a0minutes ago<br \/>\n<br \/>\n<strong>Description : <\/strong>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>wifi: p54: prevent buffer-overflow in p54_rx_eeprom_readback()<\/p>\n<p>Robert Morris reported:<\/p>\n<p>|If a malicious USB device pretends to be an Intersil p54 wifi<br \/>\n|interface and generates an eeprom_readback message with a large<br \/>\n|eeprom-&gt;v1.len, p54_rx_eeprom_readback() will copy data from the<br \/>\n|message beyond the end of priv-&gt;eeprom.<br \/>\n|<br \/>\n|static void p54_rx_eeprom_readback(struct p54_common *priv,<br \/>\n|                                   struct sk_buff *skb)<br \/>\n|{<br \/>\n|        struct p54_hdr *hdr = (struct p54_hdr *) skb-&gt;data;<br \/>\n|        struct p54_eeprom_lm86 *eeprom = (struct p54_eeprom_lm86 *) hdr-&gt;data;<br \/>\n|<br \/>\n|        if (priv-&gt;fw_var &gt;= 0x509) {<br \/>\n|                memcpy(priv-&gt;eeprom, eeprom-&gt;v2.data,<br \/>\n|                       le16_to_cpu(eeprom-&gt;v2.len));<br \/>\n|        } else {<br \/>\n|                memcpy(priv-&gt;eeprom, eeprom-&gt;v1.data,<br \/>\n|                       le16_to_cpu(eeprom-&gt;v1.len));<br \/>\n|        }<br \/>\n| [&#8230;]\n<p>The eeprom-&gt;v{1,2}.len is set by the driver in p54_download_eeprom().<br \/>\nThe device is supposed to provide the same length back to the driver.<br \/>\nBut yes, it&#8217;s possible (like shown in the report) to alter the value<br \/>\nto something that causes a crash\/panic due to overrun.<\/p>\n<p>This patch addresses the issue by adding the size to the common device<br \/>\ncontext, so p54_rx_eeprom_readback no longer relies on possibly tampered<br \/>\nvalues&#8230; That said, it also checks if the &#8220;firmware&#8221; altered the value<br \/>\nand no longer copies them.<\/p>\n<p>The one, small saving grace is: Before the driver tries to read the eeprom,<br \/>\nit needs to upload &gt;a<br \/>\n<strong>Severity:<\/strong> 0.0 | NA<br \/>\n<br \/>\nVisit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID : CVE-2025-38348 Published : July 10, 2025, 9:15 a.m. | 53\u00a0minutes ago Description : In the Linux kernel, the following vulnerability has been resolved: wifi: p54: prevent buffer-overflow in p54_rx_eeprom_readback() Robert Morris reported: |If a malicious USB device pretends to be an Intersil p54 wifi |interface and generates an eeprom_readback message with a &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-65936","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/65936","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=65936"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/65936\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=65936"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=65936"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=65936"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}