In the Linux kernel, the following vulnerability has been resolved:
can: ctucanfd: handle skb allocation failure
If skb allocation fails, the pointer to struct canframe is NULL. This is actually handled everywhere inside ctucanerr_interrupt() except for the only place.
Add the missed NULL check.
Found by Linux Verification Center (linuxtesting.org) with SVACE static analysis tool.
[
{
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "drivers/net/can/ctucanfd/ctucanfd_base.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b0e592dd46a0a952b41c3bf6c963afdd6a42b526",
"digest": {
"line_hashes": [
"282199306061712610083394687415868955588",
"218785602190723048336544916432052042634",
"300533971356764070759028245507626764225",
"16159849851707557052314872052332125871",
"77469659038270402727147219482819853887",
"203245850184478742734234277826817770289",
"120220662250621513155064861633668963533"
],
"threshold": 0.9
},
"id": "CVE-2025-21775-14a7709d"
},
{
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "drivers/net/can/ctucanfd/ctucanfd_base.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e7e2e2318b1f085044126ba553a4e619842fc36d",
"digest": {
"line_hashes": [
"282199306061712610083394687415868955588",
"218785602190723048336544916432052042634",
"300533971356764070759028245507626764225",
"16159849851707557052314872052332125871",
"77469659038270402727147219482819853887",
"203245850184478742734234277826817770289",
"120220662250621513155064861633668963533"
],
"threshold": 0.9
},
"id": "CVE-2025-21775-224be4b8"
},
{
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "drivers/net/can/ctucanfd/ctucanfd_base.c",
"function": "ctucan_err_interrupt"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9bd24927e3eeb85642c7baa3b28be8bea6c2a078",
"digest": {
"length": 2737.0,
"function_hash": "209082762664589833001261966566543217257"
},
"id": "CVE-2025-21775-30668c24"
},
{
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "drivers/net/can/ctucanfd/ctucanfd_base.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9bd24927e3eeb85642c7baa3b28be8bea6c2a078",
"digest": {
"line_hashes": [
"282199306061712610083394687415868955588",
"218785602190723048336544916432052042634",
"300533971356764070759028245507626764225",
"16159849851707557052314872052332125871",
"77469659038270402727147219482819853887",
"203245850184478742734234277826817770289",
"120220662250621513155064861633668963533"
],
"threshold": 0.9
},
"id": "CVE-2025-21775-697fb378"
},
{
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "drivers/net/can/ctucanfd/ctucanfd_base.c",
"function": "ctucan_err_interrupt"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e7e2e2318b1f085044126ba553a4e619842fc36d",
"digest": {
"length": 2737.0,
"function_hash": "209082762664589833001261966566543217257"
},
"id": "CVE-2025-21775-708f81dc"
},
{
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "drivers/net/can/ctucanfd/ctucanfd_base.c",
"function": "ctucan_err_interrupt"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b0e592dd46a0a952b41c3bf6c963afdd6a42b526",
"digest": {
"length": 2737.0,
"function_hash": "209082762664589833001261966566543217257"
},
"id": "CVE-2025-21775-780b6def"
},
{
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "drivers/net/can/ctucanfd/ctucanfd_base.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@84b9ac59978a6a4e0812d1c938fad97306272cef",
"digest": {
"line_hashes": [
"282199306061712610083394687415868955588",
"218785602190723048336544916432052042634",
"300533971356764070759028245507626764225",
"16159849851707557052314872052332125871",
"77469659038270402727147219482819853887",
"203245850184478742734234277826817770289",
"120220662250621513155064861633668963533"
],
"threshold": 0.9
},
"id": "CVE-2025-21775-8f1050f4"
},
{
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "drivers/net/can/ctucanfd/ctucanfd_base.c",
"function": "ctucan_err_interrupt"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@84b9ac59978a6a4e0812d1c938fad97306272cef",
"digest": {
"length": 2737.0,
"function_hash": "209082762664589833001261966566543217257"
},
"id": "CVE-2025-21775-9880b849"
}
]