Advisory

UBUNTU-CVE-2017-1000257

Also known as: CVE-2017-1000257

Summary

The record has no summary.

Details

An IMAP FETCH response line indicates the size of the returned data, in number of bytes. When that response says the data is zero bytes, libcurl would pass on that (non-existing) data with a pointer and the size (zero) to the deliver-data function. libcurl's deliver-data function treats zero as a magic number and invokes strlen() on the data to figure out the length. The strlen() is called on a heap based buffer that might not be zero terminated so libcurl might read beyond the end of it into whatever memory lies after (or just crash) and then deliver that to the application as if it was actually downloaded.

Severity

Critical Basis: CVSS v3 score 9.1, vector CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

Dates

Published
2017-10-23 00:00 UTC
Modified
2026-04-27 09:06 UTC

Affected packages and fixes

curl

Debian packages (deb) · Ubuntu 14.04

Affected

  • introduced 0, fixed 7.35.0-1ubuntu2.12 (ecosystem)

Fixed versions

7.35.0-1ubuntu2.12

Fix

  • Fixed version 7.35.0-1ubuntu2.12
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

curl

Debian packages (deb) · Ubuntu 16.04

Affected

  • introduced 0, fixed 7.47.0-1ubuntu2.4 (ecosystem)

Fixed versions

7.47.0-1ubuntu2.4

Fix

  • Fixed version 7.47.0-1ubuntu2.4
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences