GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration

CVE-2025-40085 (GCVE-0-2025-40085)

Vulnerability from cvelistv5 – Published: 2025-10-29 13:37 – Updated: 2026-05-23 16:01
VLAI
Title
ALSA: usb-audio: Fix NULL pointer deference in try_to_register_card
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().
Severity
No CVSS data available.
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 28787ff9fbeaf57684eb64cc33e2ec8ceedf21b5 , < 736159f7b296d7a95f7208eb4799639b1f8b16a0 (git)
Affected: 39efc9c8a973ddff5918191525d1679d0fb368ea , < 8d19a7ab28c7b9c207db5c5282afa8cc8595bcdb (git)
Affected: 39efc9c8a973ddff5918191525d1679d0fb368ea , < 576312eb436326b44b7010f4d9ae2b698df075ea (git)
Affected: 39efc9c8a973ddff5918191525d1679d0fb368ea , < bba7208765d26e5e36b87f21dacc2780b064f41f (git)
Affected: 39efc9c8a973ddff5918191525d1679d0fb368ea , < 8503ac1a62075a085402e42a386b5c627c821a51 (git)
Affected: 39efc9c8a973ddff5918191525d1679d0fb368ea , < 28412b489b088fb88dff488305fd4e56bd47f6e4 (git)
Affected: 9d4f4dc3cd38e412c29a7626489fe48b79ebbf6c (git)
Affected: 52076a41c128146c9df4a157e972cb17019313b1 (git)
Affected: 5.15.75 , < 5.15.196 (semver)
Affected: 5.19.17 , < 5.20 (semver)
Affected: 6.0.3 , < 6.1 (semver)
guessed Create a notification for this product.
Linux Linux Affected: 6.1
Unaffected: 0 , < 6.1 (semver)
Unaffected: 5.15.196 , ≤ 5.15.* (semver)
Unaffected: 6.1.158 , ≤ 6.1.* (semver)
Unaffected: 6.6.114 , ≤ 6.6.* (semver)
Unaffected: 6.12.55 , ≤ 6.12.* (semver)
Unaffected: 6.17.5 , ≤ 6.17.* (semver)
Unaffected: 6.18 , ≤ * (original_commit_for_fix)
guessed 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"
            },
            {
              "lessThan": "5.15.196",
              "status": "affected",
              "version": "5.15.75",
              "versionType": "semver"
            },
            {
              "lessThan": "5.20",
              "status": "affected",
              "version": "5.19.17",
              "versionType": "semver"
            },
            {
              "lessThan": "6.1",
              "status": "affected",
              "version": "6.0.3",
              "versionType": "semver"
            }
          ]
        },
        {
          "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",
              "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",
                  "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": "2026-05-23T16:01:24.342Z",
        "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": "2026-05-23T16:01:24.342Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2025-40085",
      "date": "2026-09-20",
      "epss": "0.00193",
      "percentile": "0.09217"
    },
    "microsoft_vex": {
      "current_release_date": "2025-12-07T01:41:15.000Z",
      "cve": "CVE-2025-40085",
      "id": "msrc_CVE-2025-40085",
      "initial_release_date": "2025-10-02T00:00:00.000Z",
      "product_status:fixed": "1",
      "product_status:known_affected": "2",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "ALSA: usb-audio: Fix NULL pointer deference in try_to_register_card",
      "url": "https://msrc.microsoft.com/csaf/vex/2025/msrc_cve-2025-40085.json",
      "version": "2"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "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"
                  },
                  {
                    "lessThan": "5.15.196",
                    "status": "affected",
                    "version": "5.15.75",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "5.20",
                    "status": "affected",
                    "version": "5.19.17",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "6.1",
                    "status": "affected",
                    "version": "6.0.3",
                    "versionType": "semver"
                  }
                ]
              },
              {
                "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",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "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()."
          }
        ],
        "id": "CVE-2025-40085",
        "lastModified": "2026-06-17T09:21:14.337",
        "metrics": {},
        "published": "2025-10-29T14:15:55.117",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "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"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Deferred"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-06-30T10:21:14+00:00",
      "cve": "CVE-2025-40085",
      "id": "CVE-2025-40085",
      "initial_release_date": "2025-10-29T00:00:00+00:00",
      "product_status:known_affected": "274",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: ALSA: usb-audio: Fix NULL pointer deference in try_to_register_card",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-40085.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…