CVE-2019-3701

NameCVE-2019-3701
DescriptionAn issue was discovered in can_can_gw_rcv in net/can/gw.c in the Linux kernel through 4.19.13. The CAN frame modification rules allow bitwise logical operations that can be also applied to the can_dlc field. The privileged user "root" with CAP_NET_ADMIN can create a CAN frame modification rule that makes the data length code a higher value than the available CAN frame data size. In combination with a configured checksum calculation where the result is stored relatively to the end of the data (e.g. cgw_csum_xor_rel) the tail of the skb (e.g. frag_list pointer in skb_shared_info) can be rewritten which finally can cause a system crash. Because of a missing check, the CAN drivers may write arbitrary content beyond the data registers in the CAN controller's I/O memory when processing can-gw manipulated outgoing frames.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
ReferencesDLA-1731-1, DLA-1771-1
NVD severitymedium

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
linux (PTS)jessie3.16.56-1+deb8u1vulnerable
jessie (security)3.16.74-1fixed
stretch4.9.189-3fixed
stretch (security)4.9.189-3+deb9u1fixed
buster4.19.67-2fixed
buster (security)4.19.67-2+deb10u1fixed
bullseye5.2.17-1fixed
sid5.3.7-1fixed
linux-4.9 (PTS)jessie (security)4.9.189-3+deb9u1~deb8u1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
linuxsource(unstable)4.19.20-1unimportant
linuxsourcejessie3.16.64-1DLA-1731-1
linuxsourcestretch4.9.161-1
linux-4.9sourcejessie4.9.168-1~deb8u1DLA-1771-1

Notes

https://bugzilla.suse.com/show_bug.cgi?id=1120386
https://marc.info/?l=linux-netdev&m=154651842302479&w=2

Search for package or bug name: Reporting problems