Bug 1212233 (CVE-2023-3164) - VUL-0: CVE-2023-3164: tiff: heap-buffer-overflow in extractImageSection()
Summary: VUL-0: CVE-2023-3164: tiff: heap-buffer-overflow in extractImageSection()
Status: RESOLVED FIXED
Alias: CVE-2023-3164
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/368830/
Whiteboard: CVSSv3.1:SUSE:CVE-2023-3164:5.5:(AV:L...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-12 11:53 UTC by Thomas Leroy
Modified: 2024-07-12 16:30 UTC (History)
6 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 Thomas Leroy 2023-06-12 11:53:02 UTC
CVE-2023-3164

A heap-buffer-overflow in extractImageSection() at tools/tiffcrop.c:7916 and tools/tiffcrop.c:7801.

Reference:
https://gitlab.com/libtiff/libtiff/-/issues/542
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2023-3164
https://bugzilla.redhat.com/show_bug.cgi?id=2213531
Comment 1 Thomas Leroy 2023-06-12 11:54:37 UTC
No upstream fix yet.

Got ASan crash on:
- SUSE:SLE-12:Update
- SUSE:SLE-15:Update

According to the ASan stack trace, the bug is in tiffcrop tools, that SUSE:SLE-12:Update doesn't have.
Comment 2 Thomas Leroy 2023-06-12 11:56:03 UTC
(In reply to Thomas Leroy from comment #1)
> No upstream fix yet.
> 
> Got ASan crash on:
> - SUSE:SLE-12:Update
> - SUSE:SLE-15:Update
> 
> According to the ASan stack trace, the bug is in tiffcrop tools, that
> SUSE:SLE-12:Update doesn't have.

That *SUSE:SLE-11:Update* doesn't have, sorry. So SUSE:SLE-12:Update affected, SUSE:SLE-11:Update not affected.
Comment 6 Michael Vetter 2023-10-30 14:43:21 UTC
No progress yet.
Upstream closed https://gitlab.com/libtiff/libtiff/-/issues/542 as wontfix and removed the vulnerable code in 4.6.0.
Comment 7 Simon Logan 2023-11-24 16:30:33 UTC
Folks, there seems to be some confusion about what this CVE refers to.

CVE-2023-3164 at NVD https://nvd.nist.gov/vuln/detail/CVE-2023-3164 refers to gawk. It links to https://bugzilla.redhat.com/show_bug.cgi?id=2215930 which talks about gawk.

The first comment in this bug refers to A heap-buffer-overflow in extractImageSection() at tools/tiffcrop.c:7916 and tools/tiffcrop.c:7801 and links to https://bugzilla.redhat.com/show_bug.cgi?id=2213531 which is titled CVE-2023-3164 but refers to libtiff.

https://www.suse.com/security/cve/CVE-2023-3164.html lists gawk in the title but lists the fixes in tiff.


I think the libtiff links are incorrect. Please review.

Thanks,
Simon
Comment 8 Michael Vetter 2023-12-06 09:49:36 UTC
Please see https://bugzilla.suse.com/show_bug.cgi?id=1212233#c7
Comment 12 Simon Logan 2024-03-04 16:45:51 UTC
(In reply to Simon Logan from comment #7)
> Folks, there seems to be some confusion about what this CVE refers to.
> 
> CVE-2023-3164 at NVD https://nvd.nist.gov/vuln/detail/CVE-2023-3164 refers
> to gawk. It links to https://bugzilla.redhat.com/show_bug.cgi?id=2215930
> which talks about gawk.
> 
> The first comment in this bug refers to A heap-buffer-overflow in
> extractImageSection() at tools/tiffcrop.c:7916 and tools/tiffcrop.c:7801 and
> links to https://bugzilla.redhat.com/show_bug.cgi?id=2213531 which is titled
> CVE-2023-3164 but refers to libtiff.
> 
> https://www.suse.com/security/cve/CVE-2023-3164.html lists gawk in the title
> but lists the fixes in tiff.
> 
> 
> I think the libtiff links are incorrect. Please review.
> 
> Thanks,
> Simon

The links I queried earlier now seem to consistently point to libtiff. Please consider my query resolved.

Thanks,
Simon
Comment 15 Michael Vetter 2024-05-29 13:50:15 UTC
Upstream fix:
https://gitlab.com/libtiff/libtiff/-/merge_requests/595

SUSE_SLE-15_Update BUILDS SR#332643
SUSE_SLE-12_Update BUILDS SR#332642

SUSE_SLE-15-SP6_Update contains tiff 4.6.0 which doesn't contain these binaries.
Comment 17 Maintenance Automation 2024-06-03 08:30:11 UTC
SUSE-SU-2024:1892-1: An update that solves one vulnerability can now be installed.

Category: security (moderate)
Bug References: 1212233
CVE References: CVE-2023-3164
Maintenance Incident: [SUSE:Maintenance:34105](https://smelt.suse.de/incident/34105/)
Sources used:
SUSE Linux Enterprise High Performance Computing 12 SP5 (src):
 tiff-4.0.9-44.83.1
SUSE Linux Enterprise Server 12 SP5 (src):
 tiff-4.0.9-44.83.1
SUSE Linux Enterprise Server for SAP Applications 12 SP5 (src):
 tiff-4.0.9-44.83.1
SUSE Linux Enterprise Software Development Kit 12 SP5 (src):
 tiff-4.0.9-44.83.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 18 Maintenance Automation 2024-06-13 16:30:07 UTC
SUSE-SU-2024:2028-1: An update that solves one vulnerability can now be installed.

Category: security (moderate)
Bug References: 1212233
CVE References: CVE-2023-3164
Maintenance Incident: [SUSE:Maintenance:34106](https://smelt.suse.de/incident/34106/)
Sources used:
SUSE Linux Enterprise Micro for Rancher 5.4 (src):
 tiff-4.0.9-150000.45.44.1
SUSE Linux Enterprise Micro 5.4 (src):
 tiff-4.0.9-150000.45.44.1
SUSE Linux Enterprise Micro 5.5 (src):
 tiff-4.0.9-150000.45.44.1
Basesystem Module 15-SP5 (src):
 tiff-4.0.9-150000.45.44.1
Basesystem Module 15-SP6 (src):
 tiff-4.0.9-150000.45.44.1
SUSE Package Hub 15 15-SP5 (src):
 tiff-4.0.9-150000.45.44.1
SUSE Linux Enterprise Micro 5.2 (src):
 tiff-4.0.9-150000.45.44.1
SUSE Linux Enterprise Micro for Rancher 5.2 (src):
 tiff-4.0.9-150000.45.44.1
openSUSE Leap Micro 5.3 (src):
 tiff-4.0.9-150000.45.44.1
openSUSE Leap Micro 5.4 (src):
 tiff-4.0.9-150000.45.44.1
openSUSE Leap 15.5 (src):
 tiff-4.0.9-150000.45.44.1
SUSE Linux Enterprise Micro for Rancher 5.3 (src):
 tiff-4.0.9-150000.45.44.1
SUSE Linux Enterprise Micro 5.3 (src):
 tiff-4.0.9-150000.45.44.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 19 Andrea Mattiazzo 2024-07-10 13:33:32 UTC
All done, closing.
Comment 20 Maintenance Automation 2024-07-12 16:30:47 UTC
SUSE-SU-2024:2028-2: An update that solves one vulnerability can now be installed.

Category: security (moderate)
Bug References: 1212233
CVE References: CVE-2023-3164
Maintenance Incident: [SUSE:Maintenance:34106](https://smelt.suse.de/incident/34106/)
Sources used:
SUSE Linux Enterprise Micro 5.5 (src):
 tiff-4.0.9-150000.45.44.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.