Bug 1189340 - (CVE-2021-34335) VUL-1: CVE-2021-34335: exiv2: exiv2: DoS due to FPE in Exiv2:Internal:resolveLens0xffff
(CVE-2021-34335)
VUL-1: CVE-2021-34335: exiv2: exiv2: DoS due to FPE in Exiv2:Internal:resolve...
Status: NEW
Classification: Novell Products
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents
unspecified
Other Other
: P4 - Low : Minor
: ---
Assigned To: Dirk Mueller
Security Team bot
https://smash.suse.de/issue/306090/
CVSSv3.1:SUSE:CVE-2021-34335:3.1:(AV:...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-08-11 15:41 UTC by Gabriele Sonnu
Modified: 2021-08-12 07:55 UTC (History)
1 user (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 Gabriele Sonnu 2021-08-11 15:41:51 UTC
Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. A floating point exception (FPE) due to an integer divide by zero was found in Exiv2 versions v0.27.4 and earlier. The FPE is triggered when Exiv2 is used to print the metadata of a crafted image file. An attacker could potentially exploit the vulnerability to cause a denial of service, if they can trick the victim into running Exiv2 on a crafted image file. Note that this bug is only triggered when printing the interpreted (translated) data, which is a less frequently used Exiv2 operation that requires an extra command line option (`-p t` or `-P t`). The bug is fixed in version v0.27.5.

Reference:
https://github.com/Exiv2/exiv2/security/advisories/GHSA-pvjp-m4f6-q984

Upstream patch:
https://github.com/Exiv2/exiv2/pull/1750

References:
https://bugzilla.redhat.com/show_bug.cgi?id=1992210
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-34335
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34335
https://github.com/Exiv2/exiv2/security/advisories/GHSA-pvjp-m4f6-q984
https://github.com/Exiv2/exiv2/pull/1750
Comment 1 Gabriele Sonnu 2021-08-11 15:43:17 UTC
Affected Packages:

- SUSE:SLE-15:Update/exiv2  0.26
- openSUSE:Factory/exiv2    0.27.4

The patch [0] contains both the fix and some defensive programming for similar code. The fix for the vulnerability is found in this commit: [1].

[0]
https://github.com/Exiv2/exiv2/pull/1750

[1]
https://github.com/Exiv2/exiv2/pull/1750/commits/2d8d44e47b1500030e5b249bffbaf1e80aa74815