Skip to main content
← All vulnerabilities
CVE-2022-48977

can: af_can: fix NULL pointer dereference in can_rcv_filter

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.4.227, 5.10.159, 5.12
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • Linux Linux

    From 5.4.110 · fixed in 5.4.227; From 5.10.28 · fixed in 5.10.159; From 5.11.12 · fixed in 5.12

  • Linux Linux

    5.12

References 5

git.kernel.org