mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-25 06:46:40 -04:00
security: clear RAOP password from memory before freeing
Information Disclosure: Medium The RAOP authentication password was freed without first clearing the memory contents. This leaves the plaintext password in freed heap memory where it could be recovered by an attacker with access to process memory (e.g. via /proc/pid/mem, core dumps, or a separate memory safety vulnerability). Use explicit_bzero() to securely clear the password before freeing. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
e75f72476b
commit
6798f591bd
1 changed files with 4 additions and 1 deletions
|
|
@ -1671,7 +1671,10 @@ static void impl_destroy(struct impl *impl)
|
||||||
pw_properties_free(impl->headers);
|
pw_properties_free(impl->headers);
|
||||||
pw_properties_free(impl->stream_props);
|
pw_properties_free(impl->stream_props);
|
||||||
pw_properties_free(impl->props);
|
pw_properties_free(impl->props);
|
||||||
free(impl->password);
|
if (impl->password) {
|
||||||
|
explicit_bzero(impl->password, strlen(impl->password));
|
||||||
|
free(impl->password);
|
||||||
|
}
|
||||||
free(impl);
|
free(impl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue