CVE-2026-58885 AI-generated analysis
platform/packages/services/Mms (MmsService SendRequest) and platform/frameworks/base (telephony MessageUpgradeWorker)
Makes the content-authority checks case-sensitive in SendRequest.persistIfRequired (packages/services/Mms), so a case-variant authority such as "MMS" no longer selects the existing-record update path, and in MessageUpgradeWorker.parseMessageType (frameworks/base), so case-variant "sms"/"mms" authorities are classified as UNKNOWN.
Root cause
In SendRequest.persistIfRequired, the code decided whether the caller-supplied mPduUri points at an existing message in the telephony database using "mms".equalsIgnoreCase(mPduUri.getAuthority()). When it matched, it parsed the ID from mPduUri and appended it to Telephony.Mms.Sent.CONTENT_URI, so PduPersister.persist targeted that existing record instead of inserting a new one. Per the commit message, the system's provider matching is case-sensitive, so a URI with authority "MMS" could bypass access checks while the service still used its ID to overwrite an existing record. MessageUpgradeWorker.parseMessageType had the same inconsistency: it lowercased the authority with toLowerCase() before switching on AUTHORITY_SMS/AUTHORITY_MMS, so case-variant URIs were classified as SMS/MMS and entered the upgrade bind flow, which per the commit message could cause service hangs.
How the fix works
- [1] packages/services/Mms c12c5153c5b9, src/com/android/mms/service/SendRequest.java:persistIfRequired: replaces "mms".equalsIgnoreCase(mPduUri.getAuthority()) with "mms".equals(mPduUri.getAuthority()). A case-variant authority now fails the check, so insertUri stays Telephony.Mms.Sent.CONTENT_URI (a plain insert) instead of CONTENT_URI with the caller's message ID appended.
- [1] tests/robotests/src/com/android/mms/service/MmsRequestRoboTest.java: adds testPersistIfRequired_caseVariantAuthority_doesNotOverwrite, which passes content://MMS/123 and asserts that the URI passed to PduPersister.persist is content://mms/sent with no ID appended.
- [2] frameworks/base da5e038fbf6d, telephony/java/android/telephony/MessageUpgradeWorker.java:parseMessageType: removes the toLowerCase() call so the switch compares contentUri.getAuthority() exactly against AUTHORITY_SMS and AUTHORITY_MMS. Case-variant authorities now return MessageType.UNKNOWN and, per the commit message, are rejected before the upgrade bind flow.
Completeness
- Covers the single authority comparison in SendRequest.persistIfRequired that selected the overwrite path, and the single classification point in MessageUpgradeWorker.parseMessageType.
- The fix does not check that the caller has write access to the specific message ID: for a correctly cased content://mms/<id> URI, the code still appends the caller-supplied ID to the Sent URI and updates that record, relying on whatever checks apply to the real provider URI (outside the shown material).
- Only the authority check is tightened. ContentUris.parseId on mPduUri is unchanged, and no other URI components are validated here.
- The material shows no other equalsIgnoreCase/toLowerCase authority comparisons, so whether sibling paths have the same pattern is not visible.
Behavior changes
- In SendRequest.persistIfRequired, a PDU URI whose authority is not exactly "mms" is persisted as a new row under content://mms/sent instead of updating the row with the parsed ID.
- In MessageUpgradeWorker.parseMessageType, authorities that differ from "sms"/"mms" only by case now yield MessageType.UNKNOWN instead of SMS/MMS.
- No new error codes or exceptions are introduced; both changes are stricter string comparisons.
Per major
- Android 14: not affected per the bulletin; telephony/java/android/telephony/MessageUpgradeWorker.java absent at android-security-14.0.0_r31
- Android 15: not affected per the bulletin; MessageUpgradeWorker.java absent at android-security-15.0.0_r19
- Android 16: not affected per the bulletin; MessageUpgradeWorker.java absent at android-security-16.0.0_r10
- Android 17: same fix: packages/services/Mms c12c5153c5b9 (SendRequest and robo test) and frameworks/base da5e038fbf6d (MessageUpgradeWorker) in android-security-17.0.0_r3, both cherry-picked; the resolver reports 7/8 lines of the patched region present
Unknowns
- Which access checks a correctly cased content://mms URI is subject to in this flow (the commit message says case-variant authorities bypass access checks, but those checks are outside the shown material).
- The call chain that feeds parseMessageType in MessageUpgradeWorker, and the concrete nature of the 'service hang' mentioned in commit [2].
- Which line of the patched region the resolver reports as missing (7/8 present) in android-security-17.0.0_r3.
- Whether SendRequest.java on 14, 15 and 16 contains the Flags.messagePromotion() update path.
- Whether other MmsService request types perform a similar case-insensitive authority comparison; not shown in the material.