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

CVE-2025-40020 (GCVE-0-2025-40020)

Vulnerability from cvelistv5 – Published: 2025-10-24 12:24 – Updated: 2026-05-11 21:40
VLAI
Title
can: peak_usb: fix shift-out-of-bounds issue
Summary
In the Linux kernel, the following vulnerability has been resolved: can: peak_usb: fix shift-out-of-bounds issue Explicitly uses a 64-bit constant when the number of bits used for its shifting is 32 (which is the case for PC CAN FD interfaces supported by this driver). [mkl: update subject, apply manually]
Severity
No CVSS data available.
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: bb4785551f64e18b2c8bb15a3bd2b22f5ebf624d , < 572c656802781cc57f4a3231eefa83547e75ed78 (git)
Affected: bb4785551f64e18b2c8bb15a3bd2b22f5ebf624d , < 61b1dd4c614935169d12bdecc26906e37b508618 (git)
Affected: bb4785551f64e18b2c8bb15a3bd2b22f5ebf624d , < 48822a59ecc47d353400d38b1941d3ae7591ffff (git)
Affected: bb4785551f64e18b2c8bb15a3bd2b22f5ebf624d , < 176c81cbf9c4e348610a421aad800087c0401f60 (git)
Affected: bb4785551f64e18b2c8bb15a3bd2b22f5ebf624d , < 17edec1830e48c0becd61642d0e40bc753243b16 (git)
Affected: bb4785551f64e18b2c8bb15a3bd2b22f5ebf624d , < eb79ed970670344380e77d62f8188e8015648d94 (git)
Affected: bb4785551f64e18b2c8bb15a3bd2b22f5ebf624d , < 394c58017e5f41043584c345106cae16a4613710 (git)
Affected: bb4785551f64e18b2c8bb15a3bd2b22f5ebf624d , < c443be70aaee42c2d1d251e0329e0a69dd96ae54 (git)
guessed Create a notification for this product.
Linux Linux Affected: 3.4
Unaffected: 0 , < 3.4 (semver)
Unaffected: 5.4.300 , ≤ 5.4.* (semver)
Unaffected: 5.10.245 , ≤ 5.10.* (semver)
Unaffected: 5.15.194 , ≤ 5.15.* (semver)
Unaffected: 6.1.155 , ≤ 6.1.* (semver)
Unaffected: 6.6.109 , ≤ 6.6.* (semver)
Unaffected: 6.12.50 , ≤ 6.12.* (semver)
Unaffected: 6.16.10 , ≤ 6.16.* (semver)
Unaffected: 6.17 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/can/usb/peak_usb/pcan_usb_core.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "572c656802781cc57f4a3231eefa83547e75ed78",
              "status": "affected",
              "version": "bb4785551f64e18b2c8bb15a3bd2b22f5ebf624d",
              "versionType": "git"
            },
            {
              "lessThan": "61b1dd4c614935169d12bdecc26906e37b508618",
              "status": "affected",
              "version": "bb4785551f64e18b2c8bb15a3bd2b22f5ebf624d",
              "versionType": "git"
            },
            {
              "lessThan": "48822a59ecc47d353400d38b1941d3ae7591ffff",
              "status": "affected",
              "version": "bb4785551f64e18b2c8bb15a3bd2b22f5ebf624d",
              "versionType": "git"
            },
            {
              "lessThan": "176c81cbf9c4e348610a421aad800087c0401f60",
              "status": "affected",
              "version": "bb4785551f64e18b2c8bb15a3bd2b22f5ebf624d",
              "versionType": "git"
            },
            {
              "lessThan": "17edec1830e48c0becd61642d0e40bc753243b16",
              "status": "affected",
              "version": "bb4785551f64e18b2c8bb15a3bd2b22f5ebf624d",
              "versionType": "git"
            },
            {
              "lessThan": "eb79ed970670344380e77d62f8188e8015648d94",
              "status": "affected",
              "version": "bb4785551f64e18b2c8bb15a3bd2b22f5ebf624d",
              "versionType": "git"
            },
            {
              "lessThan": "394c58017e5f41043584c345106cae16a4613710",
              "status": "affected",
              "version": "bb4785551f64e18b2c8bb15a3bd2b22f5ebf624d",
              "versionType": "git"
            },
            {
              "lessThan": "c443be70aaee42c2d1d251e0329e0a69dd96ae54",
              "status": "affected",
              "version": "bb4785551f64e18b2c8bb15a3bd2b22f5ebf624d",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/can/usb/peak_usb/pcan_usb_core.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "3.4"
            },
            {
              "lessThan": "3.4",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.300",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.245",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.194",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.155",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.109",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.50",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.16.*",
              "status": "unaffected",
              "version": "6.16.10",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.17",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.300",
                  "versionStartIncluding": "3.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.245",
                  "versionStartIncluding": "3.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.194",
                  "versionStartIncluding": "3.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.155",
                  "versionStartIncluding": "3.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.109",
                  "versionStartIncluding": "3.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.50",
                  "versionStartIncluding": "3.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.16.10",
                  "versionStartIncluding": "3.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.17",
                  "versionStartIncluding": "3.4",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ncan: peak_usb: fix shift-out-of-bounds issue\n\nExplicitly uses a 64-bit constant when the number of bits used for its\nshifting is 32 (which is the case for PC CAN FD interfaces supported by\nthis driver).\n\n[mkl: update subject, apply manually]"
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-05-11T21:40:55.650Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/572c656802781cc57f4a3231eefa83547e75ed78"
        },
        {
          "url": "https://git.kernel.org/stable/c/61b1dd4c614935169d12bdecc26906e37b508618"
        },
        {
          "url": "https://git.kernel.org/stable/c/48822a59ecc47d353400d38b1941d3ae7591ffff"
        },
        {
          "url": "https://git.kernel.org/stable/c/176c81cbf9c4e348610a421aad800087c0401f60"
        },
        {
          "url": "https://git.kernel.org/stable/c/17edec1830e48c0becd61642d0e40bc753243b16"
        },
        {
          "url": "https://git.kernel.org/stable/c/eb79ed970670344380e77d62f8188e8015648d94"
        },
        {
          "url": "https://git.kernel.org/stable/c/394c58017e5f41043584c345106cae16a4613710"
        },
        {
          "url": "https://git.kernel.org/stable/c/c443be70aaee42c2d1d251e0329e0a69dd96ae54"
        }
      ],
      "title": "can: peak_usb: fix shift-out-of-bounds issue",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2025-40020",
    "datePublished": "2025-10-24T12:24:56.311Z",
    "dateReserved": "2025-04-16T07:20:57.152Z",
    "dateUpdated": "2026-05-11T21:40:55.650Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2025-40020",
      "date": "2026-09-18",
      "epss": "0.00197",
      "percentile": "0.09774"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "drivers/net/can/usb/peak_usb/pcan_usb_core.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "572c656802781cc57f4a3231eefa83547e75ed78",
                    "status": "affected",
                    "version": "bb4785551f64e18b2c8bb15a3bd2b22f5ebf624d",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "61b1dd4c614935169d12bdecc26906e37b508618",
                    "status": "affected",
                    "version": "bb4785551f64e18b2c8bb15a3bd2b22f5ebf624d",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "48822a59ecc47d353400d38b1941d3ae7591ffff",
                    "status": "affected",
                    "version": "bb4785551f64e18b2c8bb15a3bd2b22f5ebf624d",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "176c81cbf9c4e348610a421aad800087c0401f60",
                    "status": "affected",
                    "version": "bb4785551f64e18b2c8bb15a3bd2b22f5ebf624d",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "17edec1830e48c0becd61642d0e40bc753243b16",
                    "status": "affected",
                    "version": "bb4785551f64e18b2c8bb15a3bd2b22f5ebf624d",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "eb79ed970670344380e77d62f8188e8015648d94",
                    "status": "affected",
                    "version": "bb4785551f64e18b2c8bb15a3bd2b22f5ebf624d",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "394c58017e5f41043584c345106cae16a4613710",
                    "status": "affected",
                    "version": "bb4785551f64e18b2c8bb15a3bd2b22f5ebf624d",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "c443be70aaee42c2d1d251e0329e0a69dd96ae54",
                    "status": "affected",
                    "version": "bb4785551f64e18b2c8bb15a3bd2b22f5ebf624d",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "drivers/net/can/usb/peak_usb/pcan_usb_core.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "3.4"
                  },
                  {
                    "lessThan": "3.4",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.4.*",
                    "status": "unaffected",
                    "version": "5.4.300",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.10.*",
                    "status": "unaffected",
                    "version": "5.10.245",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.15.*",
                    "status": "unaffected",
                    "version": "5.15.194",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.1.*",
                    "status": "unaffected",
                    "version": "6.1.155",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.6.*",
                    "status": "unaffected",
                    "version": "6.6.109",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.12.*",
                    "status": "unaffected",
                    "version": "6.12.50",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.16.*",
                    "status": "unaffected",
                    "version": "6.16.10",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "6.17",
                    "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\ncan: peak_usb: fix shift-out-of-bounds issue\n\nExplicitly uses a 64-bit constant when the number of bits used for its\nshifting is 32 (which is the case for PC CAN FD interfaces supported by\nthis driver).\n\n[mkl: update subject, apply manually]"
          }
        ],
        "id": "CVE-2025-40020",
        "lastModified": "2026-06-17T09:21:07.960",
        "metrics": {},
        "published": "2025-10-24T13:15:47.107",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/176c81cbf9c4e348610a421aad800087c0401f60"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/17edec1830e48c0becd61642d0e40bc753243b16"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/394c58017e5f41043584c345106cae16a4613710"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/48822a59ecc47d353400d38b1941d3ae7591ffff"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/572c656802781cc57f4a3231eefa83547e75ed78"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/61b1dd4c614935169d12bdecc26906e37b508618"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/c443be70aaee42c2d1d251e0329e0a69dd96ae54"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/eb79ed970670344380e77d62f8188e8015648d94"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Deferred"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-06-30T10:16:27+00:00",
      "cve": "CVE-2025-40020",
      "id": "CVE-2025-40020",
      "initial_release_date": "2025-10-24T00:00:00+00:00",
      "product_status:known_affected": "260",
      "product_status:known_not_affected": "14",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: can: peak_usb: fix shift-out-of-bounds issue",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-40020.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-09-11T01:56:48Z",
      "cve": "CVE-2025-40020",
      "id": "CVE-2025-40020",
      "initial_release_date": "2025-10-24T23:24:23Z",
      "product_status:first_fixed": "2",
      "product_status:known_affected": "394",
      "product_status:known_not_affected": "396",
      "product_status:recommended": "464",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2025-40020",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2025-40020.json",
      "version": "42"
    }
  }
}



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…