The file attached by Evgeny Kapun does not appear to crash identify any more.
$ identify image.png image.png PNG 16x16 16x16+0+0 8-bit sRGB 1180B 0.000u 0:00.014 Possibly this bug has been fixed in the meantime. -- Package-specific info: ImageMagick program version --------------------------- animate: ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org compare: ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org convert: ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org composite: ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org conjure: ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org display: ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org identify: ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org import: ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org mogrify: ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org montage: ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org stream: ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org -- System Information: Debian Release: 12.1 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 5.15.90.1-microsoft-standard-WSL2 (SMP w/12 CPU threads) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: unable to detect Versions of packages imagemagick-6.q16 depends on: ii hicolor-icon-theme 0.17-2 ii libc6 2.36-9+deb12u1 ii libmagickcore-6.q16-6 8:6.9.11.60+dfsg-1.6 ii libmagickwand-6.q16-6 8:6.9.11.60+dfsg-1.6 Versions of packages imagemagick-6.q16 recommends: ii ghostscript 10.0.0~dfsg-11+deb12u1 ii libmagickcore-6.q16-6-extra 8:6.9.11.60+dfsg-1.6 ii netpbm 2:11.01.00-2 Versions of packages imagemagick-6.q16 suggests: pn autotrace <none> pn cups-bsd | lpr | lprng <none> ii curl 7.88.1-10+deb12u1 pn enscript <none> pn ffmpeg <none> pn gimp <none> pn gnuplot <none> pn grads <none> pn graphviz <none> ii groff-base 1.22.4-10 pn hp2xx <none> pn html2ps <none> pn imagemagick-doc <none> pn libwmf-bin <none> pn mplayer <none> pn povray <none> pn radiance <none> pn sane-utils <none> pn texlive-base-bin <none> pn transfig <none> pn ufraw-batch <none> pn xdg-utils <none> -- no debconf information