Bug 1149496 (CVE-2019-5482) - VUL-0: CVE-2019-5482: curl: TFTP small blocksize heap buffer overflow
Summary: VUL-0: CVE-2019-5482: curl: TFTP small blocksize heap buffer overflow
Status: RESOLVED FIXED
Alias: CVE-2019-5482
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/241774/
Whiteboard: CVSSv3:SUSE:CVE-2019-5482:7.1:(AV:A/A...
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-05 06:03 UTC by Alexander Bergmann
Modified: 2024-03-12 15:50 UTC (History)
5 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.
Comment 5 Swamp Workflow Management 2019-09-10 13:11:04 UTC
SUSE-SU-2019:2339-1: An update that fixes one vulnerability is now available.

Category: security (moderate)
Bug References: 1149496
CVE References: CVE-2019-5482
Sources used:
SUSE CaaS Platform 3.0 (src):    curl-7.37.0-37.43.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 8 Marcus Meissner 2019-09-11 06:18:09 UTC
is public

TFTP small blocksize heap buffer overflow
=========================================

Project curl Security Advisory, September 11th 2019 -
[Permalink](https://curl.haxx.se/docs/CVE-2019-5482.html)

VULNERABILITY
-------------

libcurl contains a heap buffer overflow in the function
(`tftp_receive_packet()`) that receives data from a TFTP server. It can call
`recvfrom()` with the default size for the buffer rather than with the size
that was used to allocate it. Thus, the content that might overwrite the heap
memory is controlled by the server.

This flaw is only triggered if the TFTP server sends an OACK without the BLKSIZE
option, when a BLKSIZE smaller than 512 bytes was requested by the TFTP client.
OACK is a TFTP extension and is not used by all TFTP servers.

Users choosing a smaller block size than default should be rare as the primary
use case for changing the size is to make it larger.

It is rare for users to use TFTP across the Internet. It is most commonly used
within local networks. TFTP as a protocol is always inherently insecure.

This issue was introduced by the add of the TFTP BLKSIZE option handling. It
was previously incompletely fixed by an almost identical issue called
CVE-2019-5436.

We are not aware of any exploit of this flaw.

INFO
----

This bug was introduced in January 2009 in [commit
0516ce7786e9500c2e44](https://github.com/curl/curl/commit/0516ce7786e9500c2e44).

The Common Vulnerabilities and Exposures (CVE) project has assigned the name
CVE-2019-5482 to this issue.

CWE-122: Heap-based Buffer Overflow

Severity: 5.2 (Medium)

AFFECTED VERSIONS
-----------------

- Affected versions: libcurl >= 7.19.4 to and including 7.65.3
- Not affected versions: libcurl < 7.19.4

libcurl is used by many applications, but not always advertised as such.

THE SOLUTION
------------

A [fix for CVE-2019-5482](https://github.com/curl/curl/commit/facb0e4662415b5f28163e853dc6742ac5fafb3d)

RECOMMENDATIONS
--------------

We suggest you take one of the following actions immediately, in order of
preference:

  A - Upgrade curl to version 7.66.0

  B - Apply the patch to your version and rebuild

  C - do not use TFTP with curl with smaller than the default BLKSIZE

TIMELINE
--------

The issue was reported to the curl project on August 29, 2019. The fix was done,
verified and communicated with the reporter on September 2, 2019.

We contacted distros@openwall on September 5.

This advisory was posted on September 11th 2019.

CREDITS
-------

Reported and patched by Thomas Vegas.

Thanks a lot!

-- 

  / daniel.haxx.se | Get the best commercial curl support there is - from me
                   | Private help, bug fixes, support, ports, new features
                   | https://www.wolfssl.com/contact/
Comment 10 Pedro Monreal Gonzalez 2019-09-11 10:33:59 UTC
Factory submission:
   https://build.opensuse.org/request/show/730075
Comment 14 Swamp Workflow Management 2019-09-12 20:06:25 UTC
SUSE-SU-2019:2339-2: An update that fixes one vulnerability is now available.

Category: security (important)
Bug References: 1149496
CVE References: CVE-2019-5482
Sources used:
SUSE OpenStack Cloud Crowbar 8 (src):    curl-7.37.0-37.43.1
SUSE OpenStack Cloud 8 (src):    curl-7.37.0-37.43.1
SUSE OpenStack Cloud 7 (src):    curl-7.37.0-37.43.1
SUSE Linux Enterprise Server for SAP 12-SP3 (src):    curl-7.37.0-37.43.1
SUSE Linux Enterprise Server for SAP 12-SP2 (src):    curl-7.37.0-37.43.1
SUSE Linux Enterprise Server for SAP 12-SP1 (src):    curl-7.37.0-37.43.1
SUSE Linux Enterprise Server 12-SP3-LTSS (src):    curl-7.37.0-37.43.1
SUSE Linux Enterprise Server 12-SP3-BCL (src):    curl-7.37.0-37.43.1
SUSE Linux Enterprise Server 12-SP2-LTSS (src):    curl-7.37.0-37.43.1
SUSE Linux Enterprise Server 12-SP2-BCL (src):    curl-7.37.0-37.43.1
SUSE Linux Enterprise Server 12-SP1-LTSS (src):    curl-7.37.0-37.43.1
SUSE Enterprise Storage 5 (src):    curl-7.37.0-37.43.1
SUSE Enterprise Storage 4 (src):    curl-7.37.0-37.43.1
HPE Helion Openstack 8 (src):    curl-7.37.0-37.43.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 15 Swamp Workflow Management 2019-09-12 20:21:25 UTC
SUSE-SU-2019:2373-1: An update that fixes two vulnerabilities is now available.

Category: security (important)
Bug References: 1149495,1149496
CVE References: CVE-2019-5481,CVE-2019-5482
Sources used:
SUSE Linux Enterprise Module for Open Buildservice Development Tools 15-SP1 (src):    curl-7.60.0-3.23.1, curl-mini-7.60.0-3.23.1
SUSE Linux Enterprise Module for Open Buildservice Development Tools 15 (src):    curl-mini-7.60.0-3.23.1
SUSE Linux Enterprise Module for Basesystem 15-SP1 (src):    curl-7.60.0-3.23.1
SUSE Linux Enterprise Module for Basesystem 15 (src):    curl-7.60.0-3.23.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 16 Swamp Workflow Management 2019-09-16 19:11:21 UTC
SUSE-SU-2019:2381-1: An update that fixes two vulnerabilities is now available.

Category: security (important)
Bug References: 1149495,1149496
CVE References: CVE-2019-5481,CVE-2019-5482
Sources used:
SUSE Linux Enterprise Software Development Kit 12-SP4 (src):    curl-7.60.0-4.9.1
SUSE Linux Enterprise Server 12-SP4 (src):    curl-7.60.0-4.9.1
SUSE Linux Enterprise Desktop 12-SP4 (src):    curl-7.60.0-4.9.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 17 Swamp Workflow Management 2019-09-17 19:10:56 UTC
SUSE-SU-2019:14172-1: An update that fixes one vulnerability is now available.

Category: security (important)
Bug References: 1149496
CVE References: CVE-2019-5482
Sources used:
SUSE Linux Enterprise Server 11-SP4-LTSS (src):    curl-7.37.0-70.44.1
SUSE Linux Enterprise Server 11-SECURITY (src):    curl-openssl1-7.37.0-70.44.1
SUSE Linux Enterprise Point of Sale 11-SP3 (src):    curl-7.37.0-70.44.1
SUSE Linux Enterprise Debuginfo 11-SP4 (src):    curl-7.37.0-70.44.1
SUSE Linux Enterprise Debuginfo 11-SP3 (src):    curl-7.37.0-70.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 18 Swamp Workflow Management 2019-09-17 22:10:56 UTC
openSUSE-SU-2019:2149-1: An update that fixes two vulnerabilities is now available.

Category: security (important)
Bug References: 1149495,1149496
CVE References: CVE-2019-5481,CVE-2019-5482
Sources used:
openSUSE Leap 15.1 (src):    curl-7.60.0-lp151.5.6.1, curl-mini-7.60.0-lp151.5.6.1
Comment 19 Swamp Workflow Management 2019-09-24 13:11:39 UTC
openSUSE-SU-2019:2169-1: An update that fixes two vulnerabilities is now available.

Category: security (important)
Bug References: 1149495,1149496
CVE References: CVE-2019-5481,CVE-2019-5482
Sources used:
openSUSE Leap 15.0 (src):    curl-7.60.0-lp150.2.25.1
Comment 20 Alexandros Toptsoglou 2020-07-10 13:17:48 UTC
Done