CVEfocus › CVE database › CVE-2023-3603

CVE-2023-3603Processing sftp server read may cause null dereference

CVSS 3.1 LowEPSS 0.9% (higher than 60% of CVEs)Published 2023-07-21Updated 2024-09-26Assigner: redhat

A missing allocation check in sftp server processing read requests may cause a NULL dereference on low-memory conditions. The malicious client can request up to 4GB SFTP reads, causing allocation of up to 4GB buffers, which was not being checked for failure. This will likely crash the authenticated user's sftp server connection (if implemented as forking as recommended). For thread-based servers, this might also cause DoS for legitimate users. Given this code is not in any released versions, no security releases have been issued.

CWE-476

What to do

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fix pending
8Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04libsshNot affected
vulnerable_code_not_present
Ubuntu 16.04libsshFix pending
Ubuntu 14.04libsshFix pending
Red Hat Enterprise Linux 9libsshNot affected
Red Hat Enterprise Linux 9libssh-configNot affected
Red Hat Enterprise Linux 9libssh-develNot affected
Red Hat Enterprise Linux 8libsshNot affected
Red Hat Enterprise Linux 8libssh-configNot affected
Red Hat Enterprise Linux 8libssh-develNot affected
Red Hat Enterprise Linux 7libsshNot affected

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: The SFTP server implementation is based on callbacks so you can rewrite the sftp_channel_default_data_callback() to provide additional checks. [1] https://gitlab.com/libssh/libssh-mirror/-/blob/master/examples/sample_sftpserver.c#L330

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.