CVE-2022-49845 can: j1939: j1939_send_one(): fix missing CAN header initialization
A missing initialization in the Linux kernel CAN J1939 protocol allows attackers to read uninitialized memory, potentially exposing sensitive kernel data.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-49845?
CVE-2022-49845 is a medium-severity vulnerability in Linux kernel, published on 1 May 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
can: j1939: j1939_send_one(): fix missing CAN header initialization
The read access to struct canxl_frame::len inside of a j1939 created skbuff revealed a missing initialization of reserved and later filled elements in struct can_frame.
This patch initializes the 8 byte CAN header with zero.
Weakness: CWE-908
Which versions are affected by CVE-2022-49845?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-49845?
Apply the vendor's patch.
Is CVE-2022-49845 being exploited?
There is no known exploitation of CVE-2022-49845 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2022-49845, GHSA-6cmp-hmx3-m4rx, UBUNTU-CVE-2022-49845.