CVE-2025-40085 (GCVE-0-2025-40085)
Vulnerability from cvelistv5
Published
2025-10-29 13:37
Modified
2025-10-29 13:37
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: ALSA: usb-audio: Fix NULL pointer deference in try_to_register_card In try_to_register_card(), the return value of usb_ifnum_to_if() is passed directly to usb_interface_claimed() without a NULL check, which will lead to a NULL pointer dereference when creating an invalid USB audio device. Fix this by adding a check to ensure the interface pointer is valid before passing it to usb_interface_claimed().
Impacted products
Vendor Product Version
Linux Linux Version: 28787ff9fbeaf57684eb64cc33e2ec8ceedf21b5
Version: 39efc9c8a973ddff5918191525d1679d0fb368ea
Version: 39efc9c8a973ddff5918191525d1679d0fb368ea
Version: 39efc9c8a973ddff5918191525d1679d0fb368ea
Version: 39efc9c8a973ddff5918191525d1679d0fb368ea
Version: 39efc9c8a973ddff5918191525d1679d0fb368ea
Version: 9d4f4dc3cd38e412c29a7626489fe48b79ebbf6c
Version: 52076a41c128146c9df4a157e972cb17019313b1
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "sound/usb/card.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "736159f7b296d7a95f7208eb4799639b1f8b16a0",
              "status": "affected",
              "version": "28787ff9fbeaf57684eb64cc33e2ec8ceedf21b5",
              "versionType": "git"
            },
            {
              "lessThan": "8d19a7ab28c7b9c207db5c5282afa8cc8595bcdb",
              "status": "affected",
              "version": "39efc9c8a973ddff5918191525d1679d0fb368ea",
              "versionType": "git"
            },
            {
              "lessThan": "576312eb436326b44b7010f4d9ae2b698df075ea",
              "status": "affected",
              "version": "39efc9c8a973ddff5918191525d1679d0fb368ea",
              "versionType": "git"
            },
            {
              "lessThan": "bba7208765d26e5e36b87f21dacc2780b064f41f",
              "status": "affected",
              "version": "39efc9c8a973ddff5918191525d1679d0fb368ea",
              "versionType": "git"
            },
            {
              "lessThan": "8503ac1a62075a085402e42a386b5c627c821a51",
              "status": "affected",
              "version": "39efc9c8a973ddff5918191525d1679d0fb368ea",
              "versionType": "git"
            },
            {
              "lessThan": "28412b489b088fb88dff488305fd4e56bd47f6e4",
              "status": "affected",
              "version": "39efc9c8a973ddff5918191525d1679d0fb368ea",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "9d4f4dc3cd38e412c29a7626489fe48b79ebbf6c",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "52076a41c128146c9df4a157e972cb17019313b1",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "sound/usb/card.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.1"
            },
            {
              "lessThan": "6.1",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.196",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.158",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.114",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.55",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.17.*",
              "status": "unaffected",
              "version": "6.17.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.18-rc2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.196",
                  "versionStartIncluding": "5.15.75",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.158",
                  "versionStartIncluding": "6.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.114",
                  "versionStartIncluding": "6.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.55",
                  "versionStartIncluding": "6.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.17.5",
                  "versionStartIncluding": "6.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18-rc2",
                  "versionStartIncluding": "6.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "5.19.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "6.0.3",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: usb-audio: Fix NULL pointer deference in try_to_register_card\n\nIn try_to_register_card(), the return value of usb_ifnum_to_if() is\npassed directly to usb_interface_claimed() without a NULL check, which\nwill lead to a NULL pointer dereference when creating an invalid\nUSB audio device. Fix this by adding a check to ensure the interface\npointer is valid before passing it to usb_interface_claimed()."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-10-29T13:37:04.707Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/736159f7b296d7a95f7208eb4799639b1f8b16a0"
        },
        {
          "url": "https://git.kernel.org/stable/c/8d19a7ab28c7b9c207db5c5282afa8cc8595bcdb"
        },
        {
          "url": "https://git.kernel.org/stable/c/576312eb436326b44b7010f4d9ae2b698df075ea"
        },
        {
          "url": "https://git.kernel.org/stable/c/bba7208765d26e5e36b87f21dacc2780b064f41f"
        },
        {
          "url": "https://git.kernel.org/stable/c/8503ac1a62075a085402e42a386b5c627c821a51"
        },
        {
          "url": "https://git.kernel.org/stable/c/28412b489b088fb88dff488305fd4e56bd47f6e4"
        }
      ],
      "title": "ALSA: usb-audio: Fix NULL pointer deference in try_to_register_card",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2025-40085",
    "datePublished": "2025-10-29T13:37:04.707Z",
    "dateReserved": "2025-04-16T07:20:57.161Z",
    "dateUpdated": "2025-10-29T13:37:04.707Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2025-40085\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-10-29T14:15:55.117\",\"lastModified\":\"2025-10-30T15:03:13.440\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nALSA: usb-audio: Fix NULL pointer deference in try_to_register_card\\n\\nIn try_to_register_card(), the return value of usb_ifnum_to_if() is\\npassed directly to usb_interface_claimed() without a NULL check, which\\nwill lead to a NULL pointer dereference when creating an invalid\\nUSB audio device. Fix this by adding a check to ensure the interface\\npointer is valid before passing it to usb_interface_claimed().\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/28412b489b088fb88dff488305fd4e56bd47f6e4\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/576312eb436326b44b7010f4d9ae2b698df075ea\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/736159f7b296d7a95f7208eb4799639b1f8b16a0\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/8503ac1a62075a085402e42a386b5c627c821a51\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/8d19a7ab28c7b9c207db5c5282afa8cc8595bcdb\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/bba7208765d26e5e36b87f21dacc2780b064f41f\",\"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.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • 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…

Loading…