Android security tags, read closely by Lightrion

CVE-2024-49728 AI-generated analysis

platform/packages/modules/Bluetooth, OPP (Object Push Profile) outbound share, android/app/src/com/android/bluetooth/opp/BluetoothOppSendFileInfo.java

AI-generated: written from the bulletin and the fixing diffs by claude-fable-5-1, then checked against the code by claude-opus-5-5 (5 corrections). Verify against the commit before relying on it.

Adds a check in Bluetooth OPP's BluetoothOppSendFileInfo.generateFileInfo that rejects content URIs whose authority carries a user-id prefix for a user other than the current one. Such URIs now return SEND_FILE_INFO_ERROR and are not opened.

Root cause

BluetoothOppSendFileInfo.generateFileInfo went on to call contentResolver.getType and to query and open any content URI that passed the earlier checks. The tests mock contentResolverQuery and contentResolverOpenAssetFileDescriptor for this path. A content URI authority can carry a user id as user-info (for example "<id>@media"). Nothing checked that this user id matched the Bluetooth app's own user (UserHandle.myUserId()) before the provider was used.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to April 2025 · Findings