FreertosOperating system · Amazon

CVE-2021-43997

HIGH · 7.8 CVSS v3.1 Published 2021-11-17
Fix available
A fix is available. Upgrade to 10.4.6 or later.
See remediation →
80/100
Remediation priority · High
Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
FreeRTOS versions 10.2.0 through 10.4.5 do not prevent non-kernel code from calling the xPortRaisePrivilege internal function to raise privilege. FreeRTOS versions through 10.4.6 do not prevent a third party that has already independently gained the ability to execute injected code to achieve further privilege escalation by branching directly inside a FreeRTOS MPU API wrapper function with a manually crafted stack frame. These issues affect ARMv7-M MPU ports, and ARMv8-M ports with MPU support enabled (i.e. configENABLE_MPU set to 1). These are fixed in V10.5.0 and in V10.4.3-LTS Patch 3.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

FreeRTOS versions 10.2.0-10.4.5 fail to prevent non-kernel code from calling the internal xPortRaisePrivilege function to elevate privileges. Additionally, versions through 10.4.6 allow privilege escalation by branching inside MPU API wrapper functions with crafted stack frames. These flaws affect ARMv7-M MPU ports and ARMv8-M ports with configENABLE_MPU set to 1.

MitigationUpgrade FreeRTOS to V10.5.0 or V10.4.3-LTS Patch 3 to obtain the fixed MPU wrapper functions and protected xPortRaisePrivilege access.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
FreertosOperating system
Affected:>= 10.2.0, < 10.4.6= 10.4.3

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify the FreeRTOS version in use
    Locate the FreeRTOS version definition in your codebase (typically in FreeRTOS.h or a version header file) and note the major.minor.patch numbers
    Affected if The version is 10.2.0 through 10.4.5 inclusive, or exactly 10.4.3, or 10.4.6
  2. Determine the target CPU architecture
    Check the processor architecture being used - look for ARM Cortex-M series defines or compiler settings that specify the ARM architecture variant
    Affected if The target is ARMv7-M or ARMv8-M architecture
  3. Verify MPU support is enabled
    Locate the FreeRTOSConfig.h file and check if the macro configENABLE_MPU is defined and set to 1
    Affected if configENABLE_MPU is defined and equals 1
  4. Confirm use of MPU port files
    Identify which FreeRTOS port files are being used - MPU-specific ports are typically located in a subdirectory containing 'MPU' in the path (e.g., ARM_CM7_MPU/rvpt)
    Affected if The build uses MPU-specific port files for ARMv7-M or ARMv8-M

You are affected if your FreeRTOS version falls between 10.2.0-10.4.6, your target is ARMv7-M or ARMv8-M, and configENABLE_MPU is set to 1 enabling the MPU port.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to 10.4.6 or later
Fixed in 10.4.6
Interim mitigation

Upgrade FreeRTOS to V10.5.0 or V10.4.3-LTS Patch 3 to obtain the fixed MPU wrapper functions and protected xPortRaisePrivilege access.

Recommended fix High confidence

FreeRTOS V10.5.0 or FreeRTOS V10.4.3-LTS Patch 3

  1. 1. Identify the current FreeRTOS version in use by checking the version header file (typically FreeRTOS.h or version.h)
  2. 2. If using FreeRTOS 10.2.0 through 10.4.5 (non-LTS), upgrade to FreeRTOS V10.5.0 or later
  3. 3. If using FreeRTOS 10.4.3 LTS, apply FreeRTOS V10.4.3-LTS Patch 3
  4. 4. After upgrade, verify the ARMv7-M MPU or ARMv8-M MPU configurations are still correctly set for your hardware platform
  5. 5. Rebuild and test the firmware to ensure functionality is preserved

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Freertos Scoped from the published advisory
  • Consultation4.0 h
  • Implementation8.0 h
  • Testing6.0 h
  • Review / QA3.0 h
21.0 hours of engineering $3,680
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $5,888.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2021-43997 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2021-43997 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data