Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# Changelog

## 0.15.7 (2026-10-26)

This is a minor release, fixing one security issue and improving API
documentation.

### Security

This update addresses
[GHSA-rc3f-4j82-cmrg](https://github.com/rustls/rustls-ffi/security/advisories/GHSA-rc3f-4j82-cmrg),
a security issue affecting `rustls_client_connection_new()` and
`rustls_client_connection_new_alpn()`. These functions retained a reference to
the caller's `server_name` buffer after returning, rather than copying it. The
API documentation did not require the buffer to outlive the call and as a result
if the caller freed or reused the buffer, later TLS processing read freed
memory.

Clients that free or reuse the `server_name` buffer after the constructor
returns are affected. This is most likely for language bindings that pass
temporary strings. Callers that keep the `server_name` buffer alive for the
lifetime of the `rustls_client_config` are not affected.

Versions 0.12.0 through 0.15.6 are affected. Version 0.15.7+ changed these APIs
to copy the input buffer. Additionally our FFI helpers have been updated to
prevent this class of issue in the future, and documentation throughout has been
improved to clarify lifetime/ownership of inputs/returns.

## 0.15.6 (2026-10-20)

This is a minor release, notably updating `rustls-webpki` so it includes
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion librustls/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "rustls-ffi"
# Keep in sync with defines in cbindgen.toml
version = "0.15.6"
version = "0.15.7"
license = "Apache-2.0 OR ISC OR MIT"
readme = "../README-crates.io.md"
description = "Rustls bindings for non-Rust languages"
Expand Down
2 changes: 1 addition & 1 deletion librustls/cbindgen.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ after_includes = """

#define RUSTLS_VERSION_MAJOR 0
#define RUSTLS_VERSION_MINOR 15
#define RUSTLS_VERSION_PATCH 6
#define RUSTLS_VERSION_PATCH 7

/**
* This gives each version part 8 bits, and leaves the 8 least significant bits
Expand Down
2 changes: 1 addition & 1 deletion librustls/src/rustls.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#define RUSTLS_VERSION_MAJOR 0
#define RUSTLS_VERSION_MINOR 15
#define RUSTLS_VERSION_PATCH 6
#define RUSTLS_VERSION_PATCH 7

/**
* This gives each version part 8 bits, and leaves the 8 least significant bits
Expand Down
Loading