Skip to content

Conversation

@LinuxJedi
Copy link
Member

The filename of the WS_SFTPNAME could be freed in this function upon an error, but it is not set to NULL, so when
wolfSSH_SFTPNAME_free is called, a double-free occurs.

Found when working on ZD 16290.

Note: no test case as I'm not quite sure how to trigger this normally. It was caused by a bug in the user's underlying filesystem.

The filename of the `WS_SFTPNAME` could be freed in this function upon
an error, but it is not set to `NULL`, so when
`wolfSSH_SFTPNAME_free` is called, a double-free occurs.

Found when working on ZD 16290.
@SparkiDev SparkiDev self-assigned this May 21, 2025
@SparkiDev SparkiDev merged commit e32ea90 into wolfSSL:master May 21, 2025
93 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants