FreertosOperating system · Amazon

CVE-2021-27504

HIGH · 7.8 CVSS v3.1 Published 2023-11-21
Fix available
A fix is available. Upgrade to 4.10.03 / 4.40.00 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
Texas Instruments devices running FREERTOS, malloc returns a valid pointer to a small buffer on extremely large values, which can trigger an integer overflow vulnerability in 'malloc' for FreeRTOS, resulting in code execution.

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 · moderate confidence

Integer overflow vulnerability in FreeRTOS malloc implementation on Texas Instruments devices. When extremely large values are passed to malloc, the function returns a valid pointer to a small buffer instead of failing, allowing attackers to trigger heap-based buffer overflows and achieve code execution.

MitigationApply vendor-supplied patches or firmware updates from Texas Instruments that address the malloc integer overflow; if no patch available, implement input validation bounds checking in malloc to reject oversized allocation requests.

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.4.1
Simplelink Cc13xx Software Development KitApplication
Affected:< 4.40.00
Simplelink Cc26xx Software Development KitApplication
Affected:< 4.40.00
Simplelink Cc32xx Software Development KitApplication
Affected:< 4.10.03
Simplelink Msp432e401yApplication
Affected:all versions
Simplelink Msp432e411yApplication
Affected:all versions

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 the firmware
    Inspect the firmware image or source code for the FreeRTOS version definition, typically found in FreeRTOS.h or version.h. On the device, this may be logged at boot or accessible via debug interfaces.
    Affected if The installed FreeRTOS version is exactly 10.4.1 (Amazon Freertos)
  2. Identify the TI Simplelink SDK version
    Check the SDK version string in the development environment, build configuration, or firmware metadata. This is often located in SDK release notes, a version config file, or embedded in the firmware binary.
    Affected if The TI Simplelink SDK is CC13xx or CC26xx with version < 4.40.00, or CC32xx with version < 4.10.03
  3. Confirm device is MSP432e401y or MSP432e411y
    Identify the exact TI device model from the board marking, firmware identification strings, or MCU part number read via debug probes.
    Affected if The device model is TI Simplelink MSP432e401y or MSP432e411y (all versions are affected)
  4. Verify the malloc implementation is present
    Examine the firmware binary or source code for the malloc() function implementation. In FreeRTOS, this is typically in heap_1.c through heap_4.c files within the FreeRTOS directory.
    Affected if The firmware includes the FreeRTOS memory allocator (heap) implementation, which is used when dynamic memory allocation is performed

The environment is affected if it uses Amazon FreeRTOS 10.4.1, or any TI Simplelink SDK version below 4.40.00 for CC13xx/CC26xx, below 4.10.03 for CC32xx, or any version of MSP432e401y/MSP432e411y, with the malloc function present in the firmware.

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 4.10.03 / 4.40.00 or later
Fixed in 4.10.034.40.00
Interim mitigation

Apply vendor-supplied patches or firmware updates from Texas Instruments that address the malloc integer overflow; if no patch available, implement input validation bounds checking in malloc to reject oversized allocation requests.

Recommended fix Moderate confidence

SimpleLink CC13xx/CC26xx SDK >= 4.40.00; SimpleLink CC32xx SDK >= 4.10.03; FreeRTOS to a version later than 10.4.1 (specific version per TI guidance)

  1. 1. Identify the specific Texas Instruments device and SDK version currently in use from the affected product list (FreeRTOS 10.4.1, SimpleLink CC13xx SDK, SimpleLink CC26xx SDK, SimpleLink CC32xx SDK, or SimpleLink MSP432e401y/MSP432e411y)
  2. 2. For SimpleLink CC13xx/CC26xx SDK: Upgrade to version 4.40.00 or later
  3. 3. For SimpleLink CC32xx SDK: Upgrade to version 4.10.03 or later
  4. 4. For FreeRTOS 10.4.1: Upgrade to a later FreeRTOS version that includes the malloc fix (consult TI's official documentation for the specific fixed FreeRTOS version bundled in the SDK updates
  5. 5. After upgrading, verify the malloc implementation no longer accepts extremely large values that could cause integer overflow
  6. 6. Test the device functionality to ensure the upgrade does not break existing functionality
Caveat Upgrading SDK versions may introduce API changes or remove deprecated features; thoroughly test application compatibility with the new SDK version before deployment

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

Fix this in Freertos Scoped from the published advisory
  • Consultation6.0 h
  • Implementation12.0 h
  • Testing10.0 h
  • Review / QA6.0 h
34.0 hours of engineering $5,940
Get the upgrade done

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

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2021-27504 — 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-27504 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