CVE-2021-44733: Use After Free

Published Dec 9, 2021
·
Updated

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

Other sources

A use-after-free flaw in the Linux kernel TEE (Trusted Execution Environment) subsystem was found in the way user calls ioctl TEEIOCOPENSESSION or TEEIOCINVOKE. A local user could use this flaw to crash the system or escalate their privileges on the system. If the Linux system non configured with the CONFIGPREEMPT option or CONFIGCPUSWDOMAINPAN option enabled, then it is unlikely that a user can trigger this issue.

There is use-after-free design issue with the lifetime tracking of the teeshm:dmabuf object. If dmabuf in the process of being destroyed, and at the same time other process do a call to the IOCTL command TEEIOCOPENSESSION or TEEIOCINVOKE referencing that shared memory, then exploitable use-after-free could happen. It is hard to trigger the issue, so this is like race condition and to trigger it the CONFIGCPUSWDOMAINPAN must be disabled and both the kernel must be configured with CONFIGPREEMPT.

Reference and patch: https://lore.kernel.org/lkml/20211214123540.1789434-1-jens.wiklander@linaro.org/

Red Hat

Affected Software

47 affected componentsFixes available
redhat/kernel-rt<0:4.18.0-372.9.1.rt7.166.el8
0:4.18.0-372.9.1.rt7.166.el8
redhat/kernel<0:4.18.0-372.9.1.el8
0:4.18.0-372.9.1.el8
Linux Linux kernel<=5.15.11
redhat Enterprise Linux=8.0
Fedoraproject Fedora=35
Debian Debian Linux=9.0
Debian Debian Linux=10.0
Debian Debian Linux=11.0
All of the following
NetApp H410c Firmware
NetApp H410c
All of the following
NetApp H300s Firmware
NetApp H300s
All of the following
NetApp H500s Firmware
NetApp H500s
All of the following
NetApp H700s Firmware
NetApp H700s
All of the following
NetApp H300e Firmware
NetApp H300e
All of the following
NetApp H500e Firmware
NetApp H500e
All of the following
NetApp H700e Firmware
NetApp H700e
All of the following
NetApp H410s Firmware
NetApp H410s
NetApp Baseboard Management Controller H410c Firmware
NetApp Baseboard Management Controller H410c
NetApp Baseboard Management Controller H300s Firmware
NetApp Baseboard Management Controller H300s
NetApp Baseboard Management Controller H500s Firmware
NetApp Baseboard Management Controller H500s
NetApp Baseboard Management Controller H700s Firmware
NetApp Baseboard Management Controller H700s
NetApp Baseboard Management Controller H300e Firmware
NetApp Baseboard Management Controller H300e
NetApp Baseboard Management Controller H500e Firmware
NetApp Baseboard Management Controller H500e
NetApp Baseboard Management Controller H700e Firmware
NetApp Baseboard Management Controller H700e
NetApp Baseboard Management Controller H410s Firmware
NetApp Baseboard Management Controller H410s
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1
redhat/kernel<5.16
5.16
Linux Linux kernel>=4.12<4.14.261
Linux Linux kernel>=4.15<4.19.224
Linux Linux kernel>=4.20<5.4.170
Linux Linux kernel>=5.5<5.10.89
Linux Linux kernel>=5.11<5.15.12

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/kernel-rt to a version that resolves this vulnerability.

    Fixed in 0:4.18.0-372.9.1.rt7.166.el8
  2. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:4.18.0-372.9.1.el8
  3. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1
  4. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 5.16
  5. Compensating control

    Mitigation: prevent the modules "tee" and "trusted_tee" from being loaded (e.g., blacklist the kernel modules so they do not auto-load).

Event History

Dec 9, 2021
Data Sourced
via Red Hat·03:55 PM
DescriptionSeverityAffected Software
Dec 14, 2021
CVE Published
12:00 PM
Dec 22, 2021
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·05:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Mar 28, 2024
Data Sourced
via Launchpad·12:34 AM
Description
May 6, 2025
Data Sourced
via Ubuntu·04:35 AM
RemedyDescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2021-44733?

CVE-2021-44733 has been rated as having a high severity due to its potential to allow arbitrary code execution in the Linux kernel.

2

How do I fix CVE-2021-44733?

To fix CVE-2021-44733, upgrade to the kernel versions 0:4.18.0-372.9.1.rt7.166.el8, 0:4.18.0-372.9.1.el8, or any version starting from 5.16.

3

Which systems are affected by CVE-2021-44733?

CVE-2021-44733 affects various Linux distributions including Red Hat Enterprise Linux 8.0, Fedora 35, and Debian versions 9.0, 10.0, and 11.0.

4

What is a use-after-free vulnerability related to CVE-2021-44733?

A use-after-free vulnerability occurs when memory is freed but still accessible, allowing malicious exploitation and potential system compromise.

5

Is there any mitigation for CVE-2021-44733 aside from patching?

There are no specific mitigations for CVE-2021-44733; the recommended action is to apply the provided patches as soon as possible.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203