{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2025-40020",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2025-04-16T07:20:57.152Z",
        "datePublished": "2025-10-24T12:24:56.311Z",
        "dateUpdated": "2026-05-11T21:40:55.650Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-05-11T21:40:55.650Z"
            },
            "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]"
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/net/can/usb/peak_usb/pcan_usb_core.c"
                    ],
                    "versions": [
                        {
                            "version": "bb4785551f64e18b2c8bb15a3bd2b22f5ebf624d",
                            "lessThan": "572c656802781cc57f4a3231eefa83547e75ed78",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "bb4785551f64e18b2c8bb15a3bd2b22f5ebf624d",
                            "lessThan": "61b1dd4c614935169d12bdecc26906e37b508618",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "bb4785551f64e18b2c8bb15a3bd2b22f5ebf624d",
                            "lessThan": "48822a59ecc47d353400d38b1941d3ae7591ffff",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "bb4785551f64e18b2c8bb15a3bd2b22f5ebf624d",
                            "lessThan": "176c81cbf9c4e348610a421aad800087c0401f60",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "bb4785551f64e18b2c8bb15a3bd2b22f5ebf624d",
                            "lessThan": "17edec1830e48c0becd61642d0e40bc753243b16",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "bb4785551f64e18b2c8bb15a3bd2b22f5ebf624d",
                            "lessThan": "eb79ed970670344380e77d62f8188e8015648d94",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "bb4785551f64e18b2c8bb15a3bd2b22f5ebf624d",
                            "lessThan": "394c58017e5f41043584c345106cae16a4613710",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "bb4785551f64e18b2c8bb15a3bd2b22f5ebf624d",
                            "lessThan": "c443be70aaee42c2d1d251e0329e0a69dd96ae54",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/net/can/usb/peak_usb/pcan_usb_core.c"
                    ],
                    "versions": [
                        {
                            "version": "3.4",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "3.4",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.4.300",
                            "lessThanOrEqual": "5.4.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.245",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.194",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.155",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.109",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.50",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.16.10",
                            "lessThanOrEqual": "6.16.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.17",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.4",
                                    "versionEndExcluding": "5.4.300"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.4",
                                    "versionEndExcluding": "5.10.245"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.4",
                                    "versionEndExcluding": "5.15.194"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.4",
                                    "versionEndExcluding": "6.1.155"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.4",
                                    "versionEndExcluding": "6.6.109"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.4",
                                    "versionEndExcluding": "6.12.50"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.4",
                                    "versionEndExcluding": "6.16.10"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.4",
                                    "versionEndExcluding": "6.17"
                                }
                            ]
                        }
                    ]
                }
            ],
            "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"
            }
        }
    }
}