Wind River Support Network

HomeDefectsLIN6-8644
Fixed

LIN6-8644 : CLONE - vsftpd: OOPS: priv_sock_get_cmd

Created: Oct 29, 2014    Updated: Dec 3, 2018
Resolved Date: Nov 3, 2014
Found In Version: 6.0
Fix Version: 6.0.0.14
Severity: Standard
Applicable for: Wind River Linux 6
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