### [CVE-2021-45385](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-45385) ![](https://img.shields.io/static/v1?label=Product&message=n%2Fa&color=blue) ![](https://img.shields.io/static/v1?label=Version&message=n%2Fa%20&color=brightgreen) ![](https://img.shields.io/static/v1?label=Vulnerability&message=n%2Fa&color=brightgreen) ### Description A Null Pointer Dereference vulnerability exits in ffjpeg d5cfd49 (2021-12-06) in bmp_load(). When the size information in metadata of the bmp is out of range, it returns without assign memory buffer to `pb->pdata` and did not exit the program. So the program crashes when it tries to access the pb->data, in jfif_encode() at jfif.c:763. This is due to the incomplete patch for CVE-2020-13438. ### POC #### Reference - https://github.com/rockcarry/ffjpeg/issues/47 #### Github - https://github.com/ARPSyndicate/cvemon - https://github.com/Marsman1996/pocs