[SRU] vsftpd is affected by pasv_address regression

Bug #462749 reported by up-whatever
32
This bug affects 4 people
Affects Status Importance Assigned to Milestone
vsftpd (Ubuntu)
Fix Released
Medium
Unassigned
Karmic
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: vsftpd

vsftpd 2.2.0 kills the connection after client sends PASV, when using "pasv_address" in vsftpd.conf.
http://vsftpd.beasts.org/ lists this as a crash regression and i can confirm that vsftpd 2.2.1 fixes the problem for me.

The pasv_address setting is important for running vsftpd behind NAT, therefore i think the vsftpd_2.2.0-1ubuntu1 package in karmic should be updated.

Changed in vsftpd (Ubuntu):
status: New → Confirmed
Revision history for this message
Chuck Short (zulcss) wrote :

Hi,

Thanks for the bug report, can you try the version in my ppa? (http://launchpad.net/~zulcss/+archive) And see if that fixes the issue for you.

Thanks
chuck

Changed in vsftpd (Ubuntu):
importance: Undecided → Medium
Revision history for this message
up-whatever (up-whatever) wrote :

I installed vsftpd_2.2.0-1ubuntu2_amd64.deb from your ppa and the problem disappeared. Thanks for the quick response.

Revision history for this message
Chuck Short (zulcss) wrote :

Thanks this will be fixed in lucid and a proper SRU fill be filed.

Regards
chuck

Chuck Short (zulcss)
Changed in vsftpd (Ubuntu):
status: Confirmed → Triaged
GorVas (gvpajkar)
Changed in vsftpd (Ubuntu):
status: Triaged → Fix Released
status: Fix Released → In Progress
Revision history for this message
Chuck Short (zulcss) wrote :

This has been fixed in lucid, it is a good candidate for an SRU.

Regards
chuck

Changed in vsftpd (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Andreas Olsson (andol) wrote :

I would like to submit a Karmic SRU for this bug. While there might be a relatively small number of users who uses the non default configuration "pasv_address" this regression practically makes vsftpd impossible to use.

This regression has been fixed upstream and has made its way in Lucid. The patch I'm applying in this Karmic SRU is a minimal backport made by Chuck Short , and tested from his PPA.

TEST CASE:
1) Add a "pasv_address" option to /etc/vsftpd.conf, for example "pasv_address=192.168.1.44".
2) restart vsftpd
3) Initiate a passive ftp connection and begin a datatransfer
  andreas@stilgar:~$ ftp -p 192.168.1.44
  Connected to 192.168.1.44.
  220 (vsFTPd 2.2.0)
  Name (192.168.1.44:andreas): anonymous
  331 Please specify the password.
  Password:
  230 Login successful.
  Remote system type is UNIX.
  Using binary mode to transfer files.
  ftp> ls
  500 OOPS: priv_sock_get_cmd
  Passive mode refused.
  ftp>

With the fixed applied, and the same configuration applied, it should instead play out like this.
  andreas@stilgar:~$ ftp -p 192.168.1.44
  Connected to 192.168.1.44.
  220 (vsFTPd 2.2.0)
  Name (192.168.1.44:andreas): anonymous
  331 Please specify the password.
  Password:
  230 Login successful.
  Remote system type is UNIX.
  Using binary mode to transfer files.
  ftp> ls
  227 Entering Passive Mode (192,168,1,44,171,68).
  150 Here comes the directory listing.
  226 Directory send OK.
  ftp>

I have a hard time imagining how users could get inadvertently affected by this SRU. It seems more than unlikely that someone would actively depend on a configuration where a segfault is the desired result. Regarding the regression potential, it should be minimal, as this is a minimal patch applied in an area of the code which should only be called in those conditions when this bug otherwise would be in effect anyway.

Attaching a debdiff against karmic-proposed

Chuck Short (zulcss)
summary: - vsftpd-2.2.0 (currently in karmic) is affected by pasv_address
- regression
+ [SRU] vsftpd is affected by pasv_address regression
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted vsftpd into karmic-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in vsftpd (Ubuntu Karmic):
status: New → Fix Committed
tags: added: verification-needed
Revision history for this message
up-whatever (up-whatever) wrote :

Unfortunately I updated to Lucid recently, so I'm unable to test the new package. Sorry.

Revision history for this message
VTWoods (vtwoods) wrote :

I can confirm this fixes the problem.

Martin Pitt (pitti)
tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package vsftpd - 2.2.0-1ubuntu2

---------------
vsftpd (2.2.0-1ubuntu2) karmic-proposed; urgency=low

  * Fixing segfault if "pasv_address" config is being used. (LP: #462749)
    - Adding debian/patches/08_fix-pasv-segfault.patch
 -- Andreas Olsson <email address hidden> Wed, 10 Mar 2010 20:48:39 +0100

Changed in vsftpd (Ubuntu Karmic):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.