CVE-2022-39343 Azure RTOS FileX vulnerable to Buffer Offerflow

Medium 5.6 Published Updated

Integer overflows in Azure RTOS FileX fault-tolerant feature allow buffer overflows and memory modification via crafted log files.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2022-39343?

CVE-2022-39343 is a medium-severity vulnerability in azure-rtos filex, published on 8 Nov 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Azure RTOS FileX is a FAT-compatible file system that’s fully integrated with Azure RTOS ThreadX. In versions before 6.2.0, the Fault Tolerant feature of Azure RTOS FileX includes integer under and overflows which may be exploited to achieve buffer overflow and modify memory contents. When a valid log file with correct ID and checksum is detected by the `_fx_fault_tolerant_enable` function an attempt to recover the previous failed write operation is taken by call of `_fx_fault_tolerant_apply_logs`. This function iterates through the log entries and performs required recovery operations. When properly crafted a log including entries of type `FX_FAULT_TOLERANT_DIR_LOG_TYPE` may be utilized to introduce unexpected behavior. This issue has been patched in version 6.2.0. A workaround to fix line 218 in fx_fault_tolerant_apply_logs.c is documented in the GHSA.

Weakness: CWE-191, CWE-190, CWE-120

Which versions are affected by CVE-2022-39343?

It affects 1 product.

Products include Microsoft Azure Rtos Filex.

How do I fix CVE-2022-39343?

No fix has been published for CVE-2022-39343 yet. Limit exposure of the affected software until one is available.

Is CVE-2022-39343 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-39343 exists.

Sources

Also known as GHSA-8jqf-wjhq-4w9f.

Is CVE-2022-39343 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free