Android security tags, read closely by Lightrion

CVE-2026-58867 AI-generated analysis

platform/packages/modules/Wifi, Wi-Fi P2P service (WifiP2pServiceImpl)

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 mWifiPermissionsUtil.checkPackage(callerUid, packageName) call in WifiP2pServiceImpl.getMessenger so that a caller whose supplied package name evaluates as system is verified against its uid before a custom display ID is read from the extras bundle.

Root cause

In WifiP2pServiceImpl.getMessenger, the caller-supplied packageName is passed to mWifiPermissionsUtil.isSystem(packageName, callerUid) and, if that returns true, the service reads WifiP2pManager.EXTRA_PARAM_KEY_DISPLAY_ID from the caller-supplied extras as the caller's display ID (otherwise Display.DEFAULT_DISPLAY). Before the fix nothing in that block verified that packageName belongs to callerUid, which per the commit message allowed "registering custom display IDs for unauthorized package names".

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings