Skip to content
OpenAdvisories
Unscored Public exploit CVE-2021-44733 EUVD-2021-31548GHSA-4xqq-q6wp-w8h4

A use-after-free exists in drivers/tee/tee_shm.c in the TEE subsystem in the Linux kernel through 5.15.11. This occurs because of a race co…

Published Dec 22, 2021 · Updated Aug 4, 2024 · Assigned by mitre

Package: kernel Package: linux Package: linux Package: linux-aws Package: linux-aws-5.0 Package: linux-aws-5.11 Package: linux-aws-5.13 Package: linux-aws-5.3 Package: linux-aws-5.4 Package: linux-aws-5.8 Package: linux-aws-fips Package: linux-aws-hwe Package: linux-azure Package: linux-azure-4.15 Package: linux-azure-5.11 Package: linux-azure-5.13 Package: linux-azure-5.3 Package: linux-azure-5.4 Package: linux-azure-5.8 Package: linux-azure-edge Package: linux-azure-fips Package: linux-bluefield Package: linux-dell300x Package: linux-fips Package: linux-gcp Package: linux-gcp-4.15 Package: linux-gcp-5.11 Package: linux-gcp-5.13 Package: linux-gcp-5.3 Package: linux-gcp-5.4 Package: linux-gcp-5.8 Package: linux-gcp-fips Package: linux-gke Package: linux-gke-4.15 Package: linux-gke-5.4 Package: linux-gkeop Package: linux-gkeop-5.4 Package: linux-hwe Package: linux-hwe-5.11 Package: linux-hwe-5.13 Package: linux-hwe-5.4 Package: linux-hwe-5.8 Package: linux-hwe-edge Package: linux-ibm Package: linux-ibm-5.4 Package: linux-intel-5.13 Package: linux-intel-iot-realtime Package: linux-kvm Package: linux-oem Package: linux-oem-5.10 Package: linux-oem-5.13 Package: linux-oem-5.14 Package: linux-oem-5.6 Package: linux-oracle Package: linux-oracle-5.0 Package: linux-oracle-5.11 Package: linux-oracle-5.13 Package: linux-oracle-5.3 Package: linux-oracle-5.4 Package: linux-oracle-5.8 Package: linux-raspi Package: linux-raspi-5.4 Package: linux-raspi-realtime Package: linux-raspi2 Package: linux-realtime Package: linux-riscv Package: linux-riscv-5.11 Package: linux-riscv-5.8 Package: linux-snapdragon Package: linux-vmware Ecosystem: Azure Linux Ecosystem: Debian Ecosystem: Ubuntu

Description

A use-after-free exists in drivers/tee/tee_shm.c in the TEE subsystem in the Linux kernel through 5.15.11. This occurs because of a race condition in tee_shm_get_from_id during an attempt to free a shared memory object.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 linux 5.15.15-1 —
Debian 13 linux 5.15.15-1 —
Debian 12 linux 5.15.15-1 —
Debian 10 linux 4.19.232-1 DSA-5096-1
Debian 9 linux-4.19 4.19.232-1~deb9u1 DLA-2941-1
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS linux-raspi-realtime No fix yet —
Ubuntu 22.04 LTS linux-realtime +1 No fix yet —
Ubuntu 20.04 LTS linux 5.4.0-105.119 USN-5338-1
Ubuntu 20.04 LTS linux-aws 5.4.0-1069.73 USN-5338-1
Ubuntu 20.04 LTS linux-aws-5.13 5.13.0-1019.21~20.04.1 USN-5337-1
Ubuntu 20.04 LTS linux-azure 5.4.0-1073.76 USN-5338-1
Ubuntu 20.04 LTS linux-azure-5.13 5.13.0-1021.24~20.04.1 USN-5368-1
Ubuntu 20.04 LTS linux-azure-fde 5.4.0-1073.76+cvm1.1 USN-5338-1
Ubuntu 20.04 LTS linux-bluefield 5.4.0-1032.35 USN-5377-1
Ubuntu 20.04 LTS linux-gcp 5.4.0-1068.72 USN-5338-1
Ubuntu 20.04 LTS linux-gcp-5.13 5.13.0-1021.25~20.04.1 USN-5337-1
Ubuntu 20.04 LTS linux-gke 5.4.0-1066.69 USN-5338-1
Ubuntu 20.04 LTS linux-gkeop 5.4.0-1037.38 USN-5338-1
Ubuntu 20.04 LTS linux-hwe-5.13 5.13.0-37.42~20.04.1 USN-5337-1
Ubuntu 20.04 LTS linux-ibm 5.4.0-1018.20 USN-5338-1
Ubuntu 20.04 LTS linux-kvm 5.4.0-1059.62 USN-5338-1
Ubuntu 20.04 LTS linux-oem-5.14 5.14.0-1022.24 USN-5278-1
Ubuntu 20.04 LTS linux-oracle 5.4.0-1067.72 USN-5338-1
Ubuntu 20.04 LTS linux-oracle-5.13 5.13.0-1025.30~20.04.1 USN-5368-1
Ubuntu 20.04 LTS linux-raspi 5.4.0-1056.63 USN-5338-1
Ubuntu 20.04 LTS linux-riscv +17 No fix yet —
Ubuntu 18.04 LTS linux 4.15.0-173.182 USN-5339-1
Ubuntu 18.04 LTS linux-aws 4.15.0-1124.133 USN-5339-1
Ubuntu 18.04 LTS linux-aws-5.4 5.4.0-1069.73~18.04.1 USN-5338-1
Ubuntu 18.04 LTS linux-azure-4.15 4.15.0-1134.147 USN-5339-1
Ubuntu 18.04 LTS linux-azure-5.4 5.4.0-1073.76~18.04.1 USN-5338-1
Ubuntu 18.04 LTS linux-dell300x 4.15.0-1038.43 USN-5339-1
Ubuntu 18.04 LTS linux-gcp +12 No fix yet —
Ubuntu 18.04 LTS linux-gcp-4.15 4.15.0-1119.133 USN-5339-1
Ubuntu 18.04 LTS linux-gcp-5.4 5.4.0-1068.72~18.04.1 USN-5338-1
Ubuntu 18.04 LTS linux-gke-5.4 5.4.0-1066.69~18.04.1 USN-5338-1
Ubuntu 18.04 LTS linux-gkeop-5.4 5.4.0-1037.38~18.04.1 USN-5338-1
Ubuntu 18.04 LTS linux-hwe-5.4 5.4.0-105.119~18.04.1 USN-5338-1
Ubuntu 18.04 LTS linux-ibm-5.4 5.4.0-1018.20~18.04.1 USN-5338-1
Ubuntu 18.04 LTS linux-kvm 4.15.0-1110.113 USN-5339-1
Ubuntu 18.04 LTS linux-oracle 4.15.0-1090.99 USN-5339-1
Ubuntu 18.04 LTS linux-oracle-5.4 5.4.0-1067.72~18.04.1 USN-5338-1
Ubuntu 18.04 LTS linux-raspi-5.4 5.4.0-1056.63~18.04.1 USN-5338-1
Ubuntu 18.04 LTS linux-raspi2 4.15.0-1106.113 USN-5339-1
Ubuntu 18.04 LTS linux-snapdragon 4.15.0-1123.132 USN-5339-1
Ubuntu 16.04 LTS linux-hwe-edge No fix yet —
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro FIPS 20.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro FIPS 18.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro FIPS-updates 20.04 LTS linux-aws-fips 5.4.0-1069.73+fips2 —
Ubuntu Pro FIPS-updates 20.04 LTS linux-azure-fips 5.4.0-1073.76+fips1 —
Ubuntu Pro FIPS-updates 20.04 LTS linux-fips 5.4.0-1046.52 —
Ubuntu Pro FIPS-updates 20.04 LTS linux-gcp-fips 5.4.0-1067.71~20.04.1 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-aws-fips 4.15.0-2064.67 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-azure-fips 4.15.0-2046.50 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-fips 4.15.0-1081.90 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-gcp-fips 4.15.0-2029.32 —
Ubuntu Pro 16.04 LTS linux-aws-hwe 4.15.0-1124.133~16.04.1 USN-5339-1
Ubuntu Pro 16.04 LTS linux-azure 4.15.0-1134.147~16.04.1 USN-5339-1
Ubuntu Pro 16.04 LTS linux-gcp 4.15.0-1119.133~16.04.1 USN-5339-1
Ubuntu Pro 16.04 LTS linux-hwe 4.15.0-173.182~16.04.1 USN-5339-1
Ubuntu Pro 16.04 LTS linux-oracle 4.15.0-1090.99~16.04.1 USN-5339-1
Ubuntu Pro 14.04 LTS linux-azure 4.15.0-1134.147~14.04.1 USN-5339-1
ReleasePackageFixed inAdvisory
RHEL 8 kernel-rt +12 4.18.0-372.9.1.rt7.166.el8 RHSA-2022:1975
RHEL 8 perf +26 4.18.0-372.9.1.el8 RHSA-2022:1988

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 perf +19 4.18.0-372.9.1.el8 ALSA-2022:1988

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 kernel 4.18.0-372.9.1.el8 RLSA-2022:1988
Rocky Linux 8 kernel-rt 4.18.0-372.9.1.rt7.166.el8 RLSA-2022:1975
ReleasePackageFixed inAdvisory
SLES 15 SP3 kernel-64kb +7 5.3.18-150300.59.49.1 SUSE-SU-2022:0370-1
SLES 15 SP3 kernel-azure +1 5.3.18-150300.38.40.4 SUSE-SU-2022:0363-1
SLES 15 SP3 kernel-default-base 5.3.18-150300.59.49.1.150300.18.31.1 SUSE-SU-2022:0370-1
SLES 15 SP3 kernel-syms-azure 5.3.18-150300.38.40.1 SUSE-SU-2022:0363-1
SLES 15 SP2 kernel-default-base 5.3.18-24.99.1.9.46.1 SUSE-SU-2022:0197-1
SLES 15 SP2 kernel-docs +5 5.3.18-24.99.1 SUSE-SU-2022:0197-1
SLES 15 SP1 kernel-docs +5 4.12.14-197.105.1 SUSE-SU-2022:0366-1
SLES 15 kernel-docs +6 4.12.14-150.83.1 SUSE-SU-2022:0367-1
SLES 12 SP5 kernel-azure +2 4.12.14-16.88.1 SUSE-SU-2022:0372-1
SLES 12 SP5 kernel-docs 4.12.14-122.110.2 SUSE-SU-2022:0364-1
SLES 12 SP5 kernel-syms +3 4.12.14-122.110.1 SUSE-SU-2022:0364-1
Show 27 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP4 kernel-syms +2 4.12.14-95.88.1 SUSE-SU-2022:0371-1
SLES for SAP 15 SP2 kernel-default-base 5.3.18-24.99.1.9.46.1 SUSE-SU-2022:0197-1
SLES for SAP 15 SP2 kernel-docs +5 5.3.18-24.99.1 SUSE-SU-2022:0197-1
SLES for SAP 15 SP1 kernel-docs +4 4.12.14-197.105.1 SUSE-SU-2022:0366-1
SLES for SAP 15 kernel-docs +5 4.12.14-150.83.1 SUSE-SU-2022:0367-1
SLES for SAP 12 SP5 kernel-azure +2 4.12.14-16.88.1 SUSE-SU-2022:0372-1
SLES for SAP 12 SP5 kernel-syms +2 4.12.14-122.110.1 SUSE-SU-2022:0364-1
SLES for SAP 12 SP4 kernel-syms +2 4.12.14-95.88.1 SUSE-SU-2022:0371-1
SLE Real Time 12 SP5 kernel-rt +3 4.12.14-10.78.1 SUSE-SU-2022:0555-1
SLE Micro 5.1 kernel-default 5.3.18-150300.59.49.1 SUSE-SU-2022:0370-1
SLE Micro 5.1 kernel-default-base 5.3.18-150300.59.49.1.150300.18.31.1 SUSE-SU-2022:0370-1
SLE Micro 5.1 kernel-rt 5.3.18-150300.71.1 SUSE-SU-2022:0288-1
SLE Micro 5.0 kernel-default 5.3.18-24.99.1 SUSE-SU-2022:0197-1
SLE Micro 5.0 kernel-default-base 5.3.18-24.99.1.9.46.1 SUSE-SU-2022:0197-1
SLE Micro 5.0 kernel-rt 5.3.18-68.1 SUSE-SU-2022:0289-1
SLE Live Patching 15 SP3 kernel-default 5.3.18-150300.59.49.1 SUSE-SU-2022:0370-1
SLE Live Patching 15 SP3 kernel-livepatch-SLE15-SP3_Update_14 1-150300.7.3.1 SUSE-SU-2022:0370-1
SLE Live Patching 15 SP2 kernel-default 5.3.18-24.99.1 SUSE-SU-2022:0197-1
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_23 1-5.3.1 SUSE-SU-2022:0197-1
SLE Live Patching 15 SP1 kernel-default 4.12.14-197.105.1 SUSE-SU-2022:0366-1
SLE Live Patching 15 SP1 kernel-livepatch-SLE15-SP1_Update_28 1-3.3.1 SUSE-SU-2022:0366-1
SLE Live Patching 15 kernel-default 4.12.14-150.83.1 SUSE-SU-2022:0367-1
SLE Live Patching 15 kernel-livepatch-SLE15_Update_27 1-1.5.1 SUSE-SU-2022:0367-1
SLE Live Patching 12 SP5 kernel-default 4.12.14-122.110.1 SUSE-SU-2022:0364-1
SLE Live Patching 12 SP5 kgraft-patch-SLE12-SP5_Update_28 1-8.3.2 SUSE-SU-2022:0364-1
SLE Live Patching 12 SP4 kernel-default 4.12.14-95.88.1 SUSE-SU-2022:0371-1
SLE Live Patching 12 SP4 kgraft-patch-SLE12-SP4_Update_24 1-6.5.1 SUSE-SU-2022:0371-1
SLE HPC 15 SP2 kernel-default-base 5.3.18-24.99.1.9.46.1 SUSE-SU-2022:0197-1
SLE HPC 15 SP2 kernel-docs +5 5.3.18-24.99.1 SUSE-SU-2022:0197-1
SLE HPC 15 SP1 kernel-docs +4 4.12.14-197.105.1 SUSE-SU-2022:0366-1
SLE HPC 15 kernel-docs +5 4.12.14-150.83.1 SUSE-SU-2022:0367-1
SUSE Real Time Module 15 SP3 kernel-rt +3 5.3.18-150300.71.1 SUSE-SU-2022:0288-1
SUSE Real Time Module 15 SP2 kernel-rt +3 5.3.18-68.1 SUSE-SU-2022:0289-1
SUSE OpenStack Cloud Crowbar 9 kernel-syms +2 4.12.14-95.88.1 SUSE-SU-2022:0371-1
SUSE OpenStack Cloud 9 kernel-syms +2 4.12.14-95.88.1 SUSE-SU-2022:0371-1
SUSE Manager Server 4.1 kernel-default-base 5.3.18-24.99.1.9.46.1 SUSE-SU-2022:0197-1
SUSE Manager Server 4.1 kernel-docs +5 5.3.18-24.99.1 SUSE-SU-2022:0197-1
SUSE Manager Retail Branch Server 4.1 kernel-default-base 5.3.18-24.99.1.9.46.1 SUSE-SU-2022:0197-1
SUSE Manager Retail Branch Server 4.1 kernel-docs +4 5.3.18-24.99.1 SUSE-SU-2022:0197-1
SUSE Manager Proxy 4.1 kernel-default-base 5.3.18-24.99.1.9.46.1 SUSE-SU-2022:0197-1
SUSE Manager Proxy 4.1 kernel-docs +4 5.3.18-24.99.1 SUSE-SU-2022:0197-1
SUSE Enterprise Storage 7 kernel-default-base 5.3.18-24.99.1.9.46.1 SUSE-SU-2022:0197-1
SUSE Enterprise Storage 7 kernel-docs +5 5.3.18-24.99.1 SUSE-SU-2022:0197-1
SUSE Enterprise Storage 6 kernel-docs +4 4.12.14-197.105.1 SUSE-SU-2022:0366-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.3 dtb-aarch64 +7 5.3.18-150300.59.49.1 openSUSE-SU-2022:0370-1
openSUSE Leap 15.3 kernel-azure +1 5.3.18-150300.38.40.4 openSUSE-SU-2022:0363-1
openSUSE Leap 15.3 kernel-debug +4 4.12.14-197.105.1 openSUSE-SU-2022:0370-1, openSUSE-SU-2022:0366-1
openSUSE Leap 15.3 kernel-default-base 5.3.18-150300.59.49.1.150300.18.31.1 openSUSE-SU-2022:0370-1
openSUSE Leap 15.3 kernel-syms-azure 5.3.18-150300.38.40.1 openSUSE-SU-2022:0363-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 kernel-livepatch-4.14.262-200.489 1.0-0.amzn2 ALAS2-2022-1749
Amazon Linux 2 perf +8 4.14.262-200.489.amzn2 ALAS2-2022-1749

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) kernel 5.15.18.1-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 perf +19 4.18.0-372.9.1.el8 ELSA-2022-1988
Oracle Linux 7 kernel-uek +4 5.4.17-2136.304.4.1.el8uek ELSA-2022-9147
Oracle Linux 7 kernel-uek-container +1 5.4.17-2136.304.4.1.el8 ELSA-2022-9148
Oracle Linux 7 perf +3 5.4.17-2136.304.4.1.el7uek ELSA-2022-9147

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

  • pjlantz/optee-qemu ★ 76 · Dec 23, 2021

    Environment with vulnerable kernel for exploitation of the TEE driver (CVE-2021-44733)

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 33

References