Security
Headlines
HeadlinesLatestCVEs

Headline

CVE-2022-1122: Exist a issues of freeing uninitialized pointer in src/bin/jp2/opj_decompress.c,that will cause a segfault · Issue #1368 · uclouvain/openjpeg

A flaw was found in the opj2_decompress program in openjpeg2 2.4.0 in the way it handles an input directory with a large number of files. When it fails to allocate a buffer to store the filenames of the input directory, it calls free() on an uninitialized pointer, leading to a segmentation fault and a denial of service.

CVE
#dos#git

Hi,
I found a segmentation fault in current master, and I also reproduced it on latest released version 2.5.0.

Crash Summary:
A issues of freeing uninitialized pointer exist in src/bin/jp2/opj_decompress.c:1795 in main, it can lead to a segmentation fault via the POC provided below

Crash Analysis:

  1. run command: ./opj_decompress -ImgDir input -OutFor BMP
  2. If there are lots of files in the imgdir directory, that will cause memory malloc failure
    1
  3. Then, since the pointer dirptr->filename is not initialized, free(dirptr->filename) is failed
    2

GDB debugging results:
3

poc.zip

CVE: Latest News

CVE-2023-50976: Transactions API Authorization by oleiman · Pull Request #14969 · redpanda-data/redpanda
CVE-2023-6905
CVE-2023-6903
CVE-2023-6904
CVE-2023-3907