CVE-2021-47186 tipc: check for null after calling kmemdup
A missing null check after kmemdup in the Linux kernel TIPC module can lead to a null pointer dereference and system crash.
- 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-2021-47186?
CVE-2021-47186 is a medium-severity vulnerability in Linux kernel, published on 10 Apr 2024. 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:
tipc: check for null after calling kmemdup
kmemdup can return a null pointer so need to check for it, otherwise the null key will be dereferenced later in tipc_crypto_key_xmit as can be seen in the trace [1].
[1] https://syzkaller.appspot.com/bug?id=bca180abb29567b189efdbdb34cbf7ba851c2a58
Weakness: CWE-476
Which versions are affected by CVE-2021-47186?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2021-47186?
Apply the vendor's patch.
Is CVE-2021-47186 being exploited?
There is no known exploitation of CVE-2021-47186 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2021-47186, GHSA-vfmv-3fmr-wr8p, UBUNTU-CVE-2021-47186.