# CVE-2021-47186: tipc: check for null after calling kmemdup

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2024-04-10T18:56:26.297Z
- Modified: 2026-06-17T04:16:51.793Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: Linux

## 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

(As written by CVE List.)

## Affected

- Linux Linux: from 1ef6f7c9390ff5308c940ff8d0a53533a4673ad9 before a7d91625863d4ffed63b993b5e6dc1298b6430c9; from 1ef6f7c9390ff5308c940ff8d0a53533a4673ad9 before 9404c4145542c23019a80ab1bb2ecf73cd057b10; from 1ef6f7c9390ff5308c940ff8d0a53533a4673ad9 before 3e6db079751afd527bf3db32314ae938dc571916; 5.10 (not affected: before 5.10; from 5.10.82 up to 5.10.*; from 5.15.5 up to 5.15.*; from 5.16 up to *)
- linux linux_kernel: from 1da177e4c3f4 before a7d91625863d; from 1da177e4c3f4 before 9404c4145542; from 1da177e4c3f4 before 3e6db079751a; from 5.5 before 5.10.82; from 5.11 before 5.15.5; 5.16 (not affected: from 5.10.82 up to 5.11; from 5.15.5 up to 5.16; 5.16)

## References

- <https://git.kernel.org/stable/c/a7d91625863d4ffed63b993b5e6dc1298b6430c9> (patch)
- <https://git.kernel.org/stable/c/9404c4145542c23019a80ab1bb2ecf73cd057b10> (patch)
- <https://git.kernel.org/stable/c/3e6db079751afd527bf3db32314ae938dc571916> (patch)

## Sources

- CVE List: [CVE-2021-47186](https://www.cve.org/CVERecord?id=CVE-2021-47186), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-47186](https://nvd.nist.gov/vuln/detail/CVE-2021-47186), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47186 · Whole record: https://cve.day/CVE-2021-47186.json · Rebuilt by cve.day 2026-11-25T22:58:08.708Z
