Bug 1217898 (CVE-2023-49462) - VUL-0: CVE-2023-49462: libheif: libheif: read16 segv
Summary: VUL-0: CVE-2023-49462: libheif: libheif: read16 segv
Status: RESOLVED FIXED
Alias: CVE-2023-49462
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/387370/
Whiteboard: CVSSv3.1:SUSE:CVE-2023-49462:6.2:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-08 07:42 UTC by SMASH SMASH
Modified: 2024-05-15 14:44 UTC (History)
2 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SMASH SMASH 2023-12-08 07:42:43 UTC
libheif v1.17.5 was discovered to contain a segmentation violation via the component /libheif/exif.cc.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2023-49462
Comment 1 Alexander Bergmann 2023-12-08 07:43:28 UTC
This affects only the master branch of libheif.

Closing as fixed.
Comment 2 Alexander Bergmann 2023-12-08 08:25:41 UTC
ALP would need the fix.

SR#312937: SUSE:ALP:Source:Standard:1.0  libheif  v1.17.3

https://github.com/bradh/libheif/commit/06f4cfdeb232dbb15ef1341ef5b9d857173ebe04
Comment 3 Petr Gajdos 2023-12-11 11:09:05 UTC
libheif-1.17.5$ mkdir build && cd build
libheif-1.17.5$ CC="gcc -fsanitize=address" CXX="g++ -fsanitize=address" cmake --preset=release ..
libheif-1.17.5$ make -j8
libheif-1.17.5$ examples/heif-convert /217898/poc2
File contains 1 image
Could not decode image: 0: Unsupported feature: Unsupported codec
libheif-1.17.5$

When I export LIBHEIF_PLUGIN_PATH=/home/abuild/rpmbuild/SOURCES/libheif-1.17.5/build/libheif/plugins I get

libheif-1.17.5$ examples/heif-convert  /217898/poc2
File contains 1 image
Could not decode image: 0: Decoder plugin generated an error: Unspecified: avcodec_find_decoder(AV_CODEC_ID_HEVC) returned error
libheif-1.17.5$

--> not reproducible here
Comment 4 Petr Gajdos 2023-12-11 12:14:28 UTC
AFTER

same output, no change
Comment 5 Petr Gajdos 2023-12-11 12:34:51 UTC
Submit request into devel project:
https://build.opensuse.org/request/show/1132479
Comment 6 Petr Gajdos 2023-12-12 09:57:46 UTC
ALP:
https://build.suse.de/request/show/315447

I believe all fixed.