Android security tags, read closely by Lightrion

CVE-2023-21252 AI-generated analysis

platform/packages/modules/Wifi, Wi-Fi service (WifiConfigurationUtil, WifiConfiguration validation)

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 (8 corrections). Verify against the commit before relying on it.

Adds an isWapi flag to WifiConfigurationUtil.validatePassword. A WAPI-PSK hex preSharedKey is then capped at 100 characters instead of going through the generic PSK_SAE_HEX_LEN rule. Per the commit message, the goal is to stop arbitrarily large passwords.

Root cause

WifiConfigurationUtil.validatePassword had no notion of the WAPI security type. Its hex-PSK branch applied one rule (length == PSK_SAE_HEX_LEN) to every caller, and the SECURITY_TYPE_WAPI_PSK call site in validate() passed the same arguments (isAdd, isSae=false) as WPA-PSK. The commit message says the goal is to stop arbitrarily large WAPI passwords, and the diff adds an explicit WAPI-specific upper bound of 100 characters on the hex string. The material does not show a code state in which WAPI passwords were unbounded: in the shown pre-image, WAPI already went through the exact PSK_SAE_HEX_LEN check.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to October 2023 · Findings