Wind River Support Network

HomeDefectsLIN5-19498
Fixed

LIN5-19498 : vsftpd: OOPS: priv_sock_get_cmd

Created: Sep 24, 2014    Updated: Dec 19, 2017
Resolved Date: Oct 26, 2014
Found In Version: 5.0.1.17
Fix Version: 5.0.1.21
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: Userspace

Description

vsftpd returns "500 OOPS: priv_sock_get_cmd" when you login as a normal user, cd to a directory that another user has created (but you have access rights to) and do an ls, if the dir has ~40 entries.

This is a known issue, described in:
https://bugzilla.redhat.com/show_bug.cgi?id=845980

and after applying the patch the problem seemed to be resolved. The changes have been accepted by vsftpd maintainers and are included in vsftpd 3.0.2

Patch can be found here:
https://kyle.fedorapeople.org/vsftpd-3.0.0-seccomp-fix-munmap-sigsys.patch

Steps to Reproduce

Without the patch:

ftp user@target
Connected to target.
220  target
331 Please specify the password.
Password: 
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
 cd /some/dir/created/by/another/user
250 Directory successfully changed.
ftp> ls
229 Entering Extended Passive Mode (|||54348|).
150 Here comes the directory listing.
500 OOPS: priv_sock_get_cmd
ftp> bye

with the patch:
ftp user@target
Connected to target.
220  target
331 Please specify the password.
Password: 
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>  cd /some/dir/created/by/another/user
250 Directory successfully changed.
ftp> ls
229 Entering Extended Passive Mode (|||55713|).
150 Here comes the directory listing.
<list of files omitted>
226 Directory send OK.

Other Downloads


Live chat
Online