CVE-2022-48977

can: af_can: fix NULL pointer dereference in can_rcv_filter

MEDIUM
5.5
CVSS Score
Published: October 21, 2024 at 08:05 PM UTC
Updated: June 17, 2026 at 05:16 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: can: af_can: fix NULL pointer dereference in can_rcv_filter Analogue to commit 8aa59e355949 ("can: af_can: fix NULL pointer dereference in can_rx_register()") we need to check for a missing initialization of ml_priv in the receive path of CAN frames. Since commit 4e096a18867a ("net: introduce CAN specific pointer in the struct net_device") the check for dev->type to be ARPHRD_CAN is not sufficient anymore since bonding or tun netdevices claim to be CAN devices but do not initialize ml_priv accordingly.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 5.11.125.10.28 ≤ v < 5.10.1595.11.12 ≤ v < 5.125.11.12 ≤ v < 5.15.835.12 ≤ v < 5.15.835.12 ≤ v < 6.0.135.12 ≤ v < 6.15.16 ≤ v < 6.0.135.4.110 ≤ v < 5.4.2271a5751d58b14195f763b8c1d9ef33fb8a93e95e74ac1feff6ea6495cbfd336f4438a6c6d140544a64e096a18867a5a989b510f6999d9c6b6622e8f7b5.10.285.11.125.4.1106.1 rc16.1 rc26.1 rc36.1 rc46.1 rc56.1 rc66.1 rc76.1 rc896340078d50a54f6a1252c62596bc44321c8bff9
Vendor states this is fixed in 0acc442309a0a1b01bcdaa135e56e6398a49439c (fixed)
Vendor states this is fixed in 3982652957e8d79ac32efcb725450580650a8644 (fixed)
Vendor states this is fixed in c142cba37de29f740a3852f01f59876af8ae462a (fixed)
Vendor states this is fixed in c42221efb1159d6a3c89e96685ee38acdce86b6f (fixed)
Vendor states this is fixed in fcc63f2f7ee3038d53216edd0d8291e57c752557 (fixed)
Vendor states this is fixed in 5.10.159 (unaffected)
Vendor states this is fixed in 5.12 (unaffected)
Vendor states this is fixed in 5.15.83 (unaffected)
Vendor states this is fixed in 5.4.227 (unaffected)
Vendor states this is fixed in 6.0.13 (unaffected)
Vendor states this is fixed in 6.1 (unaffected)

References (5)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0acc442309a0a1b01bcdaa135e56e6398a49439c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3982652957e8d79ac32efcb725450580650a8644
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c142cba37de29f740a3852f01f59876af8ae462a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c42221efb1159d6a3c89e96685ee38acdce86b6f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/fcc63f2f7ee3038d53216edd0d8291e57c752557

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card