Menu

#195 Use after free bug in FreeRTOS+FAT 160919a

v1.0 (example)
closed-fixed
nobody
None
5
2020-02-21
2019-07-02
No

Version: FreeRTOS-Plus-FAT-160919a-MIT
In ff_file.c: FF_Close() @ line 2970:

ffconfigFREE( pxFile );

if( FF_isERR( xError ) == pdFALSE )
{
    xError = FF_FlushCache( pxFile->pxIOManager ); /* Ensure all modified blocks are flushed to disk! */
}

Fix: move ffconfigFREE(...) after the if block.

Discussion

  • Yuhui Zheng

    Yuhui Zheng - 2019-11-15

    Hi John,

    Thank you for the proposal. CVE-2019-18178 has been addressed and the most recent code could be found here -- https://www.freertos.org/FreeRTOS-Labs/RTOS_labs_download.html.

    Regards,

     
  • Richard Barry

    Richard Barry - 2020-02-21
    • status: open --> closed-fixed
     

Log in to post a comment.