cve.bz

CVE-2021-43267

9.8 criticalExploit referenceEPSS 58%Fix available

Critical (9.8). EPSS 58% estimated probability of exploitation activity in the next 30 days.

On this page
An issue was discovered in net/tipc/crypto.c in the Linux kernel before 5.14.16. The Transparent Inter-Process Communication (TIPC) functionality allows remote attackers to exploit insufficient validation of user-supplied sizes for the MSG_CRYPTO message type.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
58% (unchanged from 58% a week ago; 58% 30 days ago) estimated probability of exploitation activity in the next 30 days; 99th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-1284 Improper Validation of Specified Quantity in Input
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-43267 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-43267?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-43267?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-43267 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
linux:linux_kernelfrom 5.10 before 5.10.77
linux:linux_kernelfrom 5.11 before 5.14.16
fedoraproject:fedora34
fedoraproject:fedora35

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14linux5.14.16-1DEBIAN-CVE-2021-43267
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2021-43267
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 10 moreno fix listedUBUNTU-CVE-2021-43267
Ubuntu20.04:LTSlinux-aws-5.11, linux-azure-5.11, linux-oracle-5.115.11.0-1023.24~20.04.1UBUNTU-CVE-2021-43267 USN-5208-1
Ubuntu20.04:LTSlinux-gcp-5.115.11.0-1024.26~20.04.1UBUNTU-CVE-2021-43267 USN-5208-1
Ubuntu20.04:LTSlinux-hwe-5.115.11.0-44.48~20.04.2UBUNTU-CVE-2021-43267 USN-5208-1
Ubuntu20.04:LTSlinux-hwe-5.135.13.0-23.23~20.04.2UBUNTU-CVE-2021-43267
Ubuntu20.04:LTSlinux-oem-5.105.10.0-1053.55UBUNTU-CVE-2021-43267 USN-5207-1
Ubuntu20.04:LTSlinux-oem-5.135.13.0-1026.32UBUNTU-CVE-2021-43267 USN-5218-1
Ubuntu20.04:LTSlinux-oem-5.145.14.0-1008.8UBUNTU-CVE-2021-43267 USN-5165-1
Ubuntu20.04:LTSlinux-riscv, linux-raspi2, linux-aws-5.8 and 6 moreno fix listedUBUNTU-CVE-2021-43267
Ubuntu20.04:LTSlinux-riscv-5.115.11.0-1024.25~20.04.1UBUNTU-CVE-2021-43267
Red Hatenterprise_linux:8::baseoskpatch-patch-4_18_0-348, kpatch-patch-4_18_0-348-debuginfo, kpatch-patch-4_18_0-348-debugsource0:1-1.el8RHSA-2021:4645
Red Hatenterprise_linux:8::baseosperf, kernel, bpftool and 30 more0:4.18.0-348.2.1.el8_5RHSA-2021:4647
Red Hatenterprise_linux:8::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-348.2.1.el8_5RHSA-2021:4647
Red Hatenterprise_linux:8::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 12 more0:4.18.0-348.2.1.rt7.132.el8_5RHSA-2021:4646
Red Hatenterprise_linux:8::realtimekernel-rt, kernel-rt-core, kernel-rt-debug and 10 more0:4.18.0-348.2.1.rt7.132.el8_5RHSA-2021:4646
Red Hatrhel_eus:8.4::baseoskpatch-patch-4_18_0-305, kpatch-patch-4_18_0-305-debuginfo, kpatch-patch-4_18_0-305-debugsource0:1-8.el8RHSA-2021:4644
Red Hatrhel_eus:8.4::baseoskpatch-patch-4_18_0-305_10_2, kpatch-patch-4_18_0-305_10_2-debuginfo, kpatch-patch-4_18_0-305_10_2-debugsource0:1-5.el8_4RHSA-2021:4644
Red Hatrhel_eus:8.4::baseoskpatch-patch-4_18_0-305_12_1, kpatch-patch-4_18_0-305_12_1-debuginfo, kpatch-patch-4_18_0-305_12_1-debugsource0:1-4.el8_4RHSA-2021:4644
Red Hatrhel_eus:8.4::baseoskpatch-patch-4_18_0-305_17_1, kpatch-patch-4_18_0-305_19_1, kpatch-patch-4_18_0-305_17_1-debuginfo and 3 more0:1-3.el8_4RHSA-2021:4644
Red Hatrhel_eus:8.4::baseoskpatch-patch-4_18_0-305_25_1, kpatch-patch-4_18_0-305_25_1-debuginfo, kpatch-patch-4_18_0-305_25_1-debugsource0:1-2.el8_4RHSA-2021:4644
Red Hatrhel_eus:8.4::baseoskpatch-patch-4_18_0-305_3_1, kpatch-patch-4_18_0-305_3_1-debuginfo, kpatch-patch-4_18_0-305_3_1-debugsource0:1-7.el8_4RHSA-2021:4644
Red Hatrhel_eus:8.4::baseoskpatch-patch-4_18_0-305_7_1, kpatch-patch-4_18_0-305_7_1-debuginfo, kpatch-patch-4_18_0-305_7_1-debugsource0:1-6.el8_4RHSA-2021:4644
5 more for Red Hat in the JSON and on Red Hat's page.
AlmaLinux8kernel-tools-libs-devel4.18.0-348.2.1.el8_5ALSA-2021:4647
Rocky Linux8kernel0:4.18.0-348.2.1.el8_5RLSA-2021:4647
Rocky Linux8kernel-rt0:4.18.0-348.2.1.rt7.132.el8_5RLSA-2021:4646
Azure Linux2kernel5.10.78.1-1AZL-6603

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This issue affects Red Hat Enterprise Linux 8 starting with the kernel that shipped with Red Hat Enterprise Linux 8.4 GA (kernel-4.18.0-305.el8). Previous Red Hat Enterprise Linux 8 kernel versions were not affected as they did not include the vulnerable functionality.

Red Hat recommends to use transport level to separate and/or secure (by both encrypting and authenticating via eg. IPSec/MACSec) the communication between nodes. This limits the exposure of this issue to semi-trusted nodes.

Red Hat's mitigation

The TIPC module will NOT be automatically loaded. When required, administrative action is needed to explicitly load this module.

Loading the module can be prevented with the following instructions:

# echo "install tipc /bin/true" >> /etc/modprobe.d/disable-tipc.conf

The system will need to be restarted if the tipc module is loaded. In most circumstances, the TIPC kernel module will be unable to be unloaded while any network interfaces are active and the protocol is in use.

If the system requires this module to work correctly, this mitigation may not be suitable.

If you need further assistance, see KCS article https://access.redhat.com/solutions/41278 or contact Red Hat Global Support Services.

To mitigate the issue on systems that do need to use TIPC and do *not* deploy the TIPC protocol level encryption but rather use different ways to ensure secure communication between nodes (eg. physical network separation, IPSec/MACsec):

- BEWARE THAT THIS WILL DISABLE THE TIPC PROTOCOL LEVEL ENCRYPTION -

1) On the host, save the following in a file with the ".stp" extension:

%{

#include <linux/skbuff.h>

#define MSG_CRYPTO 14

#define SOCK_WAKEUP 14 /* pseudo user */

#define TOP_SRV 15 /* pseudo user */

struct tipc_msg {

__be32 hdr[15];

};

static inline struct tipc_msg *buf_msg(struct sk_buff *skb)

{

return (struct tipc_msg *)skb->data;

}

static inline u32 msg_word(struct tipc_msg *m, u32 pos)

{

return ntohl(m->hdr[pos]);

}

static inline void msg_set_word(struct tipc_msg *m, u32 w, u32 val)

{

m->hdr[w] = htonl(val);

}

static inline u32 msg_bits(struct tipc_msg *m, u32 w, u32 pos, u32 mask)

{

return (msg_word(m, w) >> pos) & mask;

}

static inline void msg_set_bits(struct tipc_msg *m, u32 w,

u32 pos, u32 mask, u32 val)

{

val = (val & mask) << pos;

mask = mask << pos;

m->hdr[w] &= ~htonl(mask);

m->hdr[w] |= htonl(val);

}

static inline u32 msg_user(struct tipc_msg *m)

{

return msg_bits(m, 0, 25, 0xf);

}

static inline void msg_set_user(struct tipc_msg *m, u32 n)

{

msg_set_bits(m, 0, 25, 0xf, n);

}

%}

function sanitize:long (skb:long) %{

struct sk_buff *skb;

struct tipc_msg *hdr;

#if STAP_COMPAT_VERSION >= STAP_VERSION(1,8)

skb = (struct sk_buff *) (unsigned long) STAP_ARG_skb;

#else

skb = (struct sk_buff *) (unsigned long) THIS->skb;

#endif

hdr = buf_msg(skb);

if(msg_user(hdr) == MSG_CRYPTO) {

msg_set_user(hdr, TOP_SRV); // set to invalid in this context

}

%}

probe module("tipc").function("tipc_data_input").call {

sanitize($skb);

}

2) Install the "systemtap" package and any required dependencies (such as

kernel-devel and kernel-debuginfo packages).

3) Run the "stap -g [filename-from-step-1].stp" command as root.

If the host is rebooted, the changes will be lost and the script must be

run again.

Alternatively, build the systemtap script on a development system with

"stap -g -p 4 [filename-from-step-1].stp", distribute the resulting kernel

module to all affected systems, and run "staprun -L <module>" on those.

When using this approach only systemtap-runtime package is required on the

affected systems. Please notice that the kernel version must be the same across

all systems.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8kernel-rt-0:4.18.0-348.2.1.rt7.132.el8_5Fixed 2021-11-15RHSA-2021:4646
Red Hat Enterprise Linux 8kpatch-patchFixed 2021-11-15RHSA-2021:4645
Red Hat Enterprise Linux 8kernel-0:4.18.0-348.2.1.el8_5Fixed 2021-11-15RHSA-2021:4647
Red Hat Enterprise Linux 8.4 Extended Update Supportkernel-rt-0:4.18.0-305.28.1.rt7.100.el8_4Fixed 2021-11-15RHSA-2021:4648
Red Hat Enterprise Linux 8.4 Extended Update Supportkpatch-patchFixed 2021-11-15RHSA-2021:4644
Red Hat Enterprise Linux 8.4 Extended Update Supportkernel-0:4.18.0-305.28.1.el8_4Fixed 2021-11-15RHSA-2021:4650
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8redhat-virtualization-host-0:4.4.9-202111172338_8.5Fixed 2021-11-19RHSA-2021:4750
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 9kernelNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-43267.

References

Check your stackJSON