{"id":"CVE-2025-38348","state":"PUBLISHED","title":"wifi: p54: prevent buffer-overflow in p54_rx_eeprom_readback()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: p54: prevent buffer-overflow in p54_rx_eeprom_readback()\n\nRobert Morris reported:\n\n|If a malicious USB device pretends to be an Intersil p54 wifi\n|interface and generates an eeprom_readback message with a large\n|eeprom->v1.len, p54_rx_eeprom_readback() will copy data from the\n|message beyond the end of priv->eeprom.\n|\n|static void p54_rx_eeprom_readback(struct p54_common *priv,\n|                                   struct sk_buff *skb)\n|{\n|        struct p54_hdr *hdr = (struct p54_hdr *) skb->data;\n|        struct p54_eeprom_lm86 *eeprom = (struct p54_eeprom_lm86 *) hdr->data;\n|\n|        if (priv->fw_var >= 0x509) {\n|                memcpy(priv->eeprom, eeprom->v2.data,\n|                       le16_to_cpu(eeprom->v2.len));\n|        } else {\n|                memcpy(priv->eeprom, eeprom->v1.data,\n|                       le16_to_cpu(eeprom->v1.len));\n|        }\n| [...]\n\nThe eeprom->v{1,2}.len is set by the driver in p54_download_eeprom().\nThe device is supposed to provide the same length back to the driver.\nBut yes, it's possible (like shown in the report) to alter the value\nto something that causes a crash/panic due to overrun.\n\nThis patch addresses the issue by adding the size to the common device\ncontext, so p54_rx_eeprom_readback no longer relies on possibly tampered\nvalues... That said, it also checks if the \"firmware\" altered the value\nand no longer copies them.\n\nThe one, small saving grace is: Before the driver tries to read the eeprom,\nit needs to upload >a< firmware. the vendor firmware has a proprietary\nlicense and as a reason, it is not present on most distributions by\ndefault.","publishedAt":"2025-07-10T08:15:15.883Z","updatedAt":"2026-05-11T21:26:15.183Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7cb770729ba895f73253dfcd46c3fcba45d896f9","status":"affected","lessThan":"12134f79e53eb56b0b0b7447fa0c512acf6a8422","versionType":"git"},{"version":"7cb770729ba895f73253dfcd46c3fcba45d896f9","status":"affected","lessThan":"9701f842031b825e2fd5f22d064166f8f13f6e4d","versionType":"git"},{"version":"7cb770729ba895f73253dfcd46c3fcba45d896f9","status":"affected","lessThan":"1f7f8168abe8cbe845ab8bb557228d44784a6b57","versionType":"git"},{"version":"7cb770729ba895f73253dfcd46c3fcba45d896f9","status":"affected","lessThan":"f39b2f8c1549a539846e083790fad396ef6cd802","versionType":"git"},{"version":"7cb770729ba895f73253dfcd46c3fcba45d896f9","status":"affected","lessThan":"0e4dc150423b829c35cbcf399481ca11594fc036","versionType":"git"},{"version":"7cb770729ba895f73253dfcd46c3fcba45d896f9","status":"affected","lessThan":"6d05390d20f110de37d051a3e063ef0a542d01fb","versionType":"git"},{"version":"7cb770729ba895f73253dfcd46c3fcba45d896f9","status":"affected","lessThan":"714afb4c38edd19a057d519c1f9c5d164b43de94","versionType":"git"},{"version":"7cb770729ba895f73253dfcd46c3fcba45d896f9","status":"affected","lessThan":"da1b9a55ff116cb040528ef664c70a4eec03ae99","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/intersil/p54/fwio.c","drivers/net/wireless/intersil/p54/p54.h","drivers/net/wireless/intersil/p54/txrx.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.28","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.28","versionType":"semver"},{"version":"5.4.295","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.239","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.186","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.142","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.95","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.35","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.15.4","status":"unaffected","lessThanOrEqual":"6.15.*","versionType":"semver"},{"version":"6.16","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/intersil/p54/fwio.c","drivers/net/wireless/intersil/p54/p54.h","drivers/net/wireless/intersil/p54/txrx.c"]}],"references":["https://git.kernel.org/stable/c/12134f79e53eb56b0b0b7447fa0c512acf6a8422","https://git.kernel.org/stable/c/9701f842031b825e2fd5f22d064166f8f13f6e4d","https://git.kernel.org/stable/c/1f7f8168abe8cbe845ab8bb557228d44784a6b57","https://git.kernel.org/stable/c/f39b2f8c1549a539846e083790fad396ef6cd802","https://git.kernel.org/stable/c/0e4dc150423b829c35cbcf399481ca11594fc036","https://git.kernel.org/stable/c/6d05390d20f110de37d051a3e063ef0a542d01fb","https://git.kernel.org/stable/c/714afb4c38edd19a057d519c1f9c5d164b43de94","https://git.kernel.org/stable/c/da1b9a55ff116cb040528ef664c70a4eec03ae99","https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:09.358Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/38xxx/CVE-2025-38348.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-38348","state":"PUBLISHED","datePublished":"2025-07-10T08:15:15.883Z","dateUpdated":"2026-05-11T21:26:15.183Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T04:51:24.006Z"},"containers":{"cna":{"title":"wifi: p54: prevent buffer-overflow in p54_rx_eeprom_readback()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: p54: prevent buffer-overflow in p54_rx_eeprom_readback()\n\nRobert Morris reported:\n\n|If a malicious USB device pretends to be an Intersil p54 wifi\n|interface and generates an eeprom_readback message with a large\n|eeprom->v1.len, p54_rx_eeprom_readback() will copy data from the\n|message beyond the end of priv->eeprom.\n|\n|static void p54_rx_eeprom_readback(struct p54_common *priv,\n|                                   struct sk_buff *skb)\n|{\n|        struct p54_hdr *hdr = (struct p54_hdr *) skb->data;\n|        struct p54_eeprom_lm86 *eeprom = (struct p54_eeprom_lm86 *) hdr->data;\n|\n|        if (priv->fw_var >= 0x509) {\n|                memcpy(priv->eeprom, eeprom->v2.data,\n|                       le16_to_cpu(eeprom->v2.len));\n|        } else {\n|                memcpy(priv->eeprom, eeprom->v1.data,\n|                       le16_to_cpu(eeprom->v1.len));\n|        }\n| [...]\n\nThe eeprom->v{1,2}.len is set by the driver in p54_download_eeprom().\nThe device is supposed to provide the same length back to the driver.\nBut yes, it's possible (like shown in the report) to alter the value\nto something that causes a crash/panic due to overrun.\n\nThis patch addresses the issue by adding the size to the common device\ncontext, so p54_rx_eeprom_readback no longer relies on possibly tampered\nvalues... That said, it also checks if the \"firmware\" altered the value\nand no longer copies them.\n\nThe one, small saving grace is: Before the driver tries to read the eeprom,\nit needs to upload >a< firmware. the vendor firmware has a proprietary\nlicense and as a reason, it is not present on most distributions by\ndefault."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7cb770729ba895f73253dfcd46c3fcba45d896f9","status":"affected","lessThan":"12134f79e53eb56b0b0b7447fa0c512acf6a8422","versionType":"git"},{"version":"7cb770729ba895f73253dfcd46c3fcba45d896f9","status":"affected","lessThan":"9701f842031b825e2fd5f22d064166f8f13f6e4d","versionType":"git"},{"version":"7cb770729ba895f73253dfcd46c3fcba45d896f9","status":"affected","lessThan":"1f7f8168abe8cbe845ab8bb557228d44784a6b57","versionType":"git"},{"version":"7cb770729ba895f73253dfcd46c3fcba45d896f9","status":"affected","lessThan":"f39b2f8c1549a539846e083790fad396ef6cd802","versionType":"git"},{"version":"7cb770729ba895f73253dfcd46c3fcba45d896f9","status":"affected","lessThan":"0e4dc150423b829c35cbcf399481ca11594fc036","versionType":"git"},{"version":"7cb770729ba895f73253dfcd46c3fcba45d896f9","status":"affected","lessThan":"6d05390d20f110de37d051a3e063ef0a542d01fb","versionType":"git"},{"version":"7cb770729ba895f73253dfcd46c3fcba45d896f9","status":"affected","lessThan":"714afb4c38edd19a057d519c1f9c5d164b43de94","versionType":"git"},{"version":"7cb770729ba895f73253dfcd46c3fcba45d896f9","status":"affected","lessThan":"da1b9a55ff116cb040528ef664c70a4eec03ae99","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/intersil/p54/fwio.c","drivers/net/wireless/intersil/p54/p54.h","drivers/net/wireless/intersil/p54/txrx.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.28","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.28","versionType":"semver"},{"version":"5.4.295","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.239","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.186","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.142","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.95","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.35","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.15.4","status":"unaffected","lessThanOrEqual":"6.15.*","versionType":"semver"},{"version":"6.16","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/intersil/p54/fwio.c","drivers/net/wireless/intersil/p54/p54.h","drivers/net/wireless/intersil/p54/txrx.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/12134f79e53eb56b0b0b7447fa0c512acf6a8422"},{"url":"https://git.kernel.org/stable/c/9701f842031b825e2fd5f22d064166f8f13f6e4d"},{"url":"https://git.kernel.org/stable/c/1f7f8168abe8cbe845ab8bb557228d44784a6b57"},{"url":"https://git.kernel.org/stable/c/f39b2f8c1549a539846e083790fad396ef6cd802"},{"url":"https://git.kernel.org/stable/c/0e4dc150423b829c35cbcf399481ca11594fc036"},{"url":"https://git.kernel.org/stable/c/6d05390d20f110de37d051a3e063ef0a542d01fb"},{"url":"https://git.kernel.org/stable/c/714afb4c38edd19a057d519c1f9c5d164b43de94"},{"url":"https://git.kernel.org/stable/c/da1b9a55ff116cb040528ef664c70a4eec03ae99"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:26:15.183Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.28","versionEndExcluding":"5.4.295"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.28","versionEndExcluding":"5.10.239"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.28","versionEndExcluding":"5.15.186"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.28","versionEndExcluding":"6.1.142"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.28","versionEndExcluding":"6.6.95"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.28","versionEndExcluding":"6.12.35"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.28","versionEndExcluding":"6.15.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.28","versionEndExcluding":"6.16"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html"},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T17:36:58.983Z"}}]}}}