CVE-2025-38348 (GCVE-0-2025-38348)
Vulnerability from cvelistv5
Published
2025-07-10 08:15
Modified
2025-07-28 04:19
Severity ?
Summary
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 large |eeprom->v1.len, p54_rx_eeprom_readback() will copy data from the |message beyond the end of priv->eeprom. | |static void p54_rx_eeprom_readback(struct p54_common *priv, | struct sk_buff *skb) |{ | struct p54_hdr *hdr = (struct p54_hdr *) skb->data; | struct p54_eeprom_lm86 *eeprom = (struct p54_eeprom_lm86 *) hdr->data; | | if (priv->fw_var >= 0x509) { | memcpy(priv->eeprom, eeprom->v2.data, | le16_to_cpu(eeprom->v2.len)); | } else { | memcpy(priv->eeprom, eeprom->v1.data, | le16_to_cpu(eeprom->v1.len)); | } | [...] The eeprom->v{1,2}.len is set by the driver in p54_download_eeprom(). The device is supposed to provide the same length back to the driver. But yes, it's possible (like shown in the report) to alter the value to something that causes a crash/panic due to overrun. This patch addresses the issue by adding the size to the common device context, so p54_rx_eeprom_readback no longer relies on possibly tampered values... That said, it also checks if the "firmware" altered the value and no longer copies them. The one, small saving grace is: Before the driver tries to read the eeprom, it needs to upload >a< firmware. the vendor firmware has a proprietary license and as a reason, it is not present on most distributions by default.
Impacted products
Vendor Product Version
Linux Linux Version: 7cb770729ba895f73253dfcd46c3fcba45d896f9
Version: 7cb770729ba895f73253dfcd46c3fcba45d896f9
Version: 7cb770729ba895f73253dfcd46c3fcba45d896f9
Version: 7cb770729ba895f73253dfcd46c3fcba45d896f9
Version: 7cb770729ba895f73253dfcd46c3fcba45d896f9
Version: 7cb770729ba895f73253dfcd46c3fcba45d896f9
Version: 7cb770729ba895f73253dfcd46c3fcba45d896f9
Version: 7cb770729ba895f73253dfcd46c3fcba45d896f9
Create a notification for this product.
   Linux Linux Version: 2.6.28
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/wireless/intersil/p54/fwio.c",
            "drivers/net/wireless/intersil/p54/p54.h",
            "drivers/net/wireless/intersil/p54/txrx.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "12134f79e53eb56b0b0b7447fa0c512acf6a8422",
              "status": "affected",
              "version": "7cb770729ba895f73253dfcd46c3fcba45d896f9",
              "versionType": "git"
            },
            {
              "lessThan": "9701f842031b825e2fd5f22d064166f8f13f6e4d",
              "status": "affected",
              "version": "7cb770729ba895f73253dfcd46c3fcba45d896f9",
              "versionType": "git"
            },
            {
              "lessThan": "1f7f8168abe8cbe845ab8bb557228d44784a6b57",
              "status": "affected",
              "version": "7cb770729ba895f73253dfcd46c3fcba45d896f9",
              "versionType": "git"
            },
            {
              "lessThan": "f39b2f8c1549a539846e083790fad396ef6cd802",
              "status": "affected",
              "version": "7cb770729ba895f73253dfcd46c3fcba45d896f9",
              "versionType": "git"
            },
            {
              "lessThan": "0e4dc150423b829c35cbcf399481ca11594fc036",
              "status": "affected",
              "version": "7cb770729ba895f73253dfcd46c3fcba45d896f9",
              "versionType": "git"
            },
            {
              "lessThan": "6d05390d20f110de37d051a3e063ef0a542d01fb",
              "status": "affected",
              "version": "7cb770729ba895f73253dfcd46c3fcba45d896f9",
              "versionType": "git"
            },
            {
              "lessThan": "714afb4c38edd19a057d519c1f9c5d164b43de94",
              "status": "affected",
              "version": "7cb770729ba895f73253dfcd46c3fcba45d896f9",
              "versionType": "git"
            },
            {
              "lessThan": "da1b9a55ff116cb040528ef664c70a4eec03ae99",
              "status": "affected",
              "version": "7cb770729ba895f73253dfcd46c3fcba45d896f9",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/wireless/intersil/p54/fwio.c",
            "drivers/net/wireless/intersil/p54/p54.h",
            "drivers/net/wireless/intersil/p54/txrx.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "2.6.28"
            },
            {
              "lessThan": "2.6.28",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.295",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.239",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.186",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.142",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.95",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.35",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.15.*",
              "status": "unaffected",
              "version": "6.15.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.16",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.295",
                  "versionStartIncluding": "2.6.28",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.239",
                  "versionStartIncluding": "2.6.28",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.186",
                  "versionStartIncluding": "2.6.28",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.142",
                  "versionStartIncluding": "2.6.28",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.95",
                  "versionStartIncluding": "2.6.28",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.35",
                  "versionStartIncluding": "2.6.28",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.15.4",
                  "versionStartIncluding": "2.6.28",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.16",
                  "versionStartIncluding": "2.6.28",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "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-\u003ev1.len, p54_rx_eeprom_readback() will copy data from the\n|message beyond the end of priv-\u003eeeprom.\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-\u003edata;\n|        struct p54_eeprom_lm86 *eeprom = (struct p54_eeprom_lm86 *) hdr-\u003edata;\n|\n|        if (priv-\u003efw_var \u003e= 0x509) {\n|                memcpy(priv-\u003eeeprom, eeprom-\u003ev2.data,\n|                       le16_to_cpu(eeprom-\u003ev2.len));\n|        } else {\n|                memcpy(priv-\u003eeeprom, eeprom-\u003ev1.data,\n|                       le16_to_cpu(eeprom-\u003ev1.len));\n|        }\n| [...]\n\nThe eeprom-\u003ev{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\u0027s 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 \u003ea\u003c firmware. the vendor firmware has a proprietary\nlicense and as a reason, it is not present on most distributions by\ndefault."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-07-28T04:19:35.068Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "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"
        }
      ],
      "title": "wifi: p54: prevent buffer-overflow in p54_rx_eeprom_readback()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2025-38348",
    "datePublished": "2025-07-10T08:15:15.883Z",
    "dateReserved": "2025-04-16T04:51:24.006Z",
    "dateUpdated": "2025-07-28T04:19:35.068Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2025-38348\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-07-10T09:15:29.840\",\"lastModified\":\"2025-07-10T13:17:30.017\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"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-\u003ev1.len, p54_rx_eeprom_readback() will copy data from the\\n|message beyond the end of priv-\u003eeeprom.\\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-\u003edata;\\n|        struct p54_eeprom_lm86 *eeprom = (struct p54_eeprom_lm86 *) hdr-\u003edata;\\n|\\n|        if (priv-\u003efw_var \u003e= 0x509) {\\n|                memcpy(priv-\u003eeeprom, eeprom-\u003ev2.data,\\n|                       le16_to_cpu(eeprom-\u003ev2.len));\\n|        } else {\\n|                memcpy(priv-\u003eeeprom, eeprom-\u003ev1.data,\\n|                       le16_to_cpu(eeprom-\u003ev1.len));\\n|        }\\n| [...]\\n\\nThe eeprom-\u003ev{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\u0027s 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 \u003ea\u003c firmware. the vendor firmware has a proprietary\\nlicense and as a reason, it is not present on most distributions by\\ndefault.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/0e4dc150423b829c35cbcf399481ca11594fc036\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/12134f79e53eb56b0b0b7447fa0c512acf6a8422\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/1f7f8168abe8cbe845ab8bb557228d44784a6b57\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/6d05390d20f110de37d051a3e063ef0a542d01fb\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/714afb4c38edd19a057d519c1f9c5d164b43de94\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/9701f842031b825e2fd5f22d064166f8f13f6e4d\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/da1b9a55ff116cb040528ef664c70a4eec03ae99\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/f39b2f8c1549a539846e083790fad396ef6cd802\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…