Android security tags, read closely by Lightrion

CVE-2024-40674 AI-generated analysis

platform/packages/modules/Wifi, WifiConfiguration validation (service/java/com/android/server/wifi/WifiConfigurationUtil.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 maximum length check (32 characters plus the two enclosing quotes) for quoted plaintext SSIDs in WifiConfigurationUtil.validateSsid, which previously only length-checked unquoted hex SSIDs.

Root cause

WifiConfigurationUtil.validateSsid only enforced an upper length bound for unquoted (hex) SSIDs: `if (!ssid.startsWith("\"") && ssid.length() > SSID_HEX_MAX_LEN)`. Quoted plaintext SSIDs (strings starting with `"`) had no upper length check in this code, so a caller could set an arbitrarily long SSID in a WifiConfiguration that passed validate(). The constants SSID_UTF_8_MIN_LEN and SSID_UTF_8_MAX_LEN existed but were not used in that branch (the diff removes them). The bulletin rates the impact as DoS; the material does not show which downstream consumer fails on an over-long SSID.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to October 2024 · Findings