Skip to content

UTD: message sent is only decryptable by a single user #9030

@kegsay

Description

@kegsay

Steps to reproduce

EDIT: edited to reflect that the sender was on a new device and not on the device that previously worked in that room.

A user running 1.6.34 (F-Droid) sent a message in an encrypted room. This message was not decryptable by anyone except 1 other user. The room in question is a medium sized E2EE room, with around 100 people.

The user who sent the message and the receivers who could not decrypt (including the one user who could) were all on matrix.org so this rules out federation issues.

Looking at the server logs suggests the /sendToDevice request from this user only sent the room key to a single user because we only see Stored to-device messages with stream_id xxxx: ['@REDACTED:matrix.org/REDACTED (msgid REDACTED)'] whereas we typically see multiple users in this log line. Unsure if it matters, but the /sendToDevice came a full 12 seconds after the event's timestamp, possibly implicating some kind of timeout / CPU heavy work. There was an earlier /sendToDevice by the same user sent 6 seconds after the event's timestamp, and this too was for a single user. I have not confirmed if that user can decrypt the message, but it looks to be the same kind of thing happening as the /sendToDevice has a single user/device only in the request.

Lazy loading problem?

Outcome

What did you expect?

That all users got the room key.

What happened instead?

Only 1 device, maybe 2 did.

Your phone model

No response

Operating system version

No response

Application version and app store

1.6.34 F-Droid

Homeserver

matrix.org

Will you send logs?

No

Are you willing to provide a PR?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-DefectSomething isn't working: bugs, crashes, hangs and other reported problems

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions