Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 618174 - <dev-db/freetds-1.00: multiple crashes
Summary: <dev-db/freetds-1.00: multiple crashes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Security
URL: http://www.openwall.com/lists/oss-sec...
Whiteboard: B3 [noglsa]
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-11 08:04 UTC by Agostino Sarubbo
Modified: 2017-10-15 13:44 UTC (History)
2 users (show)

See Also:
Package list:
dev-db/freetds-1.00.41
Runtime testing required: ---
stable-bot: sanity-check+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2017-05-11 08:04:39 UTC
From ${URL} :

Attached is a zip file of reported TDS streams that cause segmentation faults in the FreeTDS library. The ‘tsql’ binary was used for the fuzzing, so these most likely only affect client-side 
functionality. These have been resolved on master and the 1.0 branch.

Also included in the zip file is a bucket.txt, a crashwalk db dump detailing the crashes for the files in the zip file.

You can find the bucket.txt itself in the following Github gist as well. No CVE’s have been requested.

https://gist.github.com/brandonprry/bfb0e58682d464e2d2d319644790bdf5 <https://gist.github.com/brandonprry/bfb0e58682d464e2d2d319644790bdf5>

To test, you can compile FreeTDS, then use preeny to redirect network IO to stdin/stdout.

export LD_PRELOAD=~/preeny/x86_64-linux-gnu/desock.so
unzip freetds_crashed.zip
cd rpt
for i in id*; do valgrind ~/freetds/build/src/apps/tsql -S 127.0.0.1 -U fdsa -P fdsa -I ~/tdsconfig < $i; done

A simple tdsconfig file can be used to speed things up a bit.

[global]
timeout = 1
connect timeout = 1


Many thanks to Frediano Ziglio, the maintainer of FreeTDS, for quick communication and bug fix turn arounds.


@maintainer(s): after the bump, in case we need to stabilize the package, please let us know if it is ready for the stabilization or not.
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2017-06-06 11:24:04 UTC
$URL says

> These have been resolved on master and the 1.0 branch.

We have dev-db/freetds-1.00.41 in tree, so let's start stabilization!


@ Arches,

please test and mark stable: =dev-db/freetds-1.00.41
Comment 2 Markus Meier gentoo-dev 2017-06-08 05:07:49 UTC
arm stable
Comment 3 Agostino Sarubbo gentoo-dev 2017-06-08 10:17:13 UTC
amd64 stable
Comment 4 Agostino Sarubbo gentoo-dev 2017-06-09 10:20:46 UTC
x86 stable
Comment 5 Agostino Sarubbo gentoo-dev 2017-06-10 13:46:22 UTC
sparc stable
Comment 6 Agostino Sarubbo gentoo-dev 2017-06-10 15:18:18 UTC
ia64 stable
Comment 7 Agostino Sarubbo gentoo-dev 2017-06-13 12:32:40 UTC
ppc64 stable
Comment 8 Tobias Klausmann (RETIRED) gentoo-dev 2017-06-20 15:01:31 UTC
Stable on alpha.
Comment 9 Agostino Sarubbo gentoo-dev 2017-06-21 11:59:23 UTC
ppc stable
Comment 10 Christopher Díaz Riveros (RETIRED) gentoo-dev Security 2017-08-17 01:17:27 UTC
Arches, please finish stabilizing hppa

Gentoo Security Padawan
ChrisADR
Comment 11 Sergei Trofimovich (RETIRED) gentoo-dev 2017-10-15 12:06:26 UTC
hppa stable
Comment 12 Aaron Bauman (RETIRED) gentoo-dev 2017-10-15 13:44:06 UTC
GLSA Vote: No