matrix-sdk-base: Panic in the `RoomMember::normalized_power_level()` method
Low severity
GitHub Reviewed
Published
Sep 11, 2025
in
matrix-org/matrix-rust-sdk
•
Updated Sep 11, 2025
Description
Published by the National Vulnerability Database
Sep 11, 2025
Published to the GitHub Advisory Database
Sep 11, 2025
Reviewed
Sep 11, 2025
Last updated
Sep 11, 2025
In matrix-sdk-base before 0.14.1, calling the
RoomMember::normalized_power_level()
method can cause a panic if a room member has a power level ofInt::Min
.Patches
The issue is fixed in matrix-sdk-base 0.14.1.
Workarounds
The affected method isn’t used internally, so avoiding calling
RoomMember::normalized_power_level()
prevents the panic.References