Bug 2320678 (CVE-2022-48977) - CVE-2022-48977 kernel: can: af_can: fix NULL pointer dereference in can_rcv_filter
Summary: CVE-2022-48977 kernel: can: af_can: fix NULL pointer dereference in can_rcv_f...
Keywords:
Status: NEW
Alias: CVE-2022-48977
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-10-21 21:02 UTC by OSIDB Bzimport
Modified: 2024-10-22 13:29 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-10-21 21:02:14 UTC
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.

Comment 1 Avinash Hanwate 2024-10-22 08:32:13 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024102145-CVE-2022-48977-0990@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.