Skip to content
Heist/ feed
Back to feed
UnratedFix available

can: peak_usb: fix shift-out-of-bounds issue

Type: advisorySources: OSV

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]

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.245, 5.15.194, 5.4.300, 6.1.155, 6.12.50, 6.16.10, 6.6.109
CVEs
CVE-2025-40020
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 08:42 UTC · Revision 1

Source evidence

can: peak_usb: fix shift-out-of-bounds issue

core-osv · Original source

Published 24 Oct 2025, 12:24 UTC

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]

osv:CVE-2025-40020

Kernel

Fixed versions: 5.4.300, 5.10.245, 5.15.194, 6.1.155, 6.6.109, 6.12.50, 6.16.10

Complete source record
{
  "id": "a79be89eadcf907b6ebcd99d950bdb6ba982e9e2a6713c218d784097fdc5b144",
  "url": "https://osv.dev/vulnerability/CVE-2025-40020",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "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]",
    "evidence": "osv:CVE-2025-40020",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.4.300",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.245",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.194",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.155",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.109",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.50",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.16.10",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2025-40020",
      "aliases": [
        "CVE-2025-40020"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "bb4785551f64e18b2c8bb15a3bd2b22f5ebf624d"
                },
                {
                  "fixed": "572c656802781cc57f4a3231eefa83547e75ed78"
                },
                {
                  "fixed": "61b1dd4c614935169d12bdecc26906e37b508618"
                },
                {
                  "fixed": "48822a59ecc47d353400d38b1941d3ae7591ffff"
                },
                {
                  "fixed": "176c81cbf9c4e348610a421aad800087c0401f60"
                },
                {
                  "fixed": "17edec1830e48c0becd61642d0e40bc753243b16"
                },
                {
                  "fixed": "eb79ed970670344380e77d62f8188e8015648d94"
                },
                {
                  "fixed": "394c58017e5f41043584c345106cae16a4613710"
                },
                {
                  "fixed": "c443be70aaee42c2d1d251e0329e0a69dd96ae54"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40020.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "3.4.0"
                },
                {
                  "fixed": "5.4.300"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.245"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.194"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.155"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.109"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.50"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.16.10"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40020.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:27.140712115Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/176c81cbf9c4e348610a421aad800087c0401f60",
        "https://git.kernel.org/stable/c/17edec1830e48c0becd61642d0e40bc753243b16",
        "https://git.kernel.org/stable/c/394c58017e5f41043584c345106cae16a4613710",
        "https://git.kernel.org/stable/c/48822a59ecc47d353400d38b1941d3ae7591ffff",
        "https://git.kernel.org/stable/c/572c656802781cc57f4a3231eefa83547e75ed78",
        "https://git.kernel.org/stable/c/61b1dd4c614935169d12bdecc26906e37b508618",
        "https://git.kernel.org/stable/c/c443be70aaee42c2d1d251e0329e0a69dd96ae54",
        "https://git.kernel.org/stable/c/eb79ed970670344380e77d62f8188e8015648d94",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40020.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-40020",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40020.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-40020",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 493943,
  "published_at": "2025-10-24T12:24:56.311+00:00"
}