Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 811786 (CVE-2021-40524) - <net-ftp/pure-ftpd-1.0.49-r5: unbounded file size in file upload (CVE-2021-40524)
Summary: <net-ftp/pure-ftpd-1.0.49-r5: unbounded file size in file upload (CVE-2021-40...
Status: IN_PROGRESS
Alias: CVE-2021-40524
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Security
URL: https://github.com/jedisct1/pure-ftpd...
Whiteboard: B3 [glsa?]
Keywords:
Depends on: 818196
Blocks:
  Show dependency tree
 
Reported: 2021-09-05 20:20 UTC by John Helmert III
Modified: 2022-04-16 20:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2021-09-05 20:20:44 UTC
CVE-2021-40524:

In Pure-FTPd 1.0.49, an incorrect max_filesize quota mechanism in the server allows attackers to upload files of unbounded size, which may lead to denial of service or a server hang. This occurs because a certain greater-than-zero test does not anticipate an initial -1 value.


URL is of course a pull request, CI is good but apparently untouched since
July 28.
Comment 1 Larry the Git Cow gentoo-dev 2021-09-06 07:15:51 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2c8b17c138cb0e2361c433e88a2fa32d3e28d1c

commit d2c8b17c138cb0e2361c433e88a2fa32d3e28d1c
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2021-09-06 07:15:18 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2021-09-06 07:15:45 +0000

    net-ftp/pure-ftpd: Revbump to fix quota check
    
    Bug: https://bugs.gentoo.org/811786
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 ...pure-ftpd-1.0.49-quota_maxfile_size_check.patch |  25 ++++
 net-ftp/pure-ftpd/pure-ftpd-1.0.49-r5.ebuild       | 160 +++++++++++++++++++++
 2 files changed, 185 insertions(+)
Comment 2 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2021-09-06 18:02:03 UTC
Please file a stable request and block this bug when ready.
Comment 3 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2021-10-16 23:37:37 UTC
Please cleanup.
Comment 4 Conrad Kostecki gentoo-dev 2022-04-16 20:57:01 UTC
Cleanup has been done already.