Android security tags, read closely by Lightrion

CVE-2026-58975 AI-generated analysis

platform/frameworks/av, media OMX HIDL wrapper (LWOmxNode in media/libmedia/omx/1.0 and media/libstagefright/omx/1.0)

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

Bounds the std::copy in LWOmxNode::getParameter and LWOmxNode::getConfig (in both the libmedia and libstagefright copies of WOmxNode.cpp) to min(outParams.size(), size), so the byte vector returned by the HIDL callee can no longer overflow the caller's params buffer or be over-read.

Root cause

LWOmxNode holds a HIDL IOmxNode (mBase) and forwards getParameter/getConfig to it. In getParameter(index, params, size), the result lambda copied outParams.size() bytes from the hidl_vec returned by the callee into params, a buffer the caller sized to `size`. The lambda did not capture `size` at all, so a callee that returned a vector larger than `size` wrote past the end of the caller's buffer. The commit title calls this a stack buffer overflow. In getConfig, the lambda copied exactly `size` bytes from outParams without checking outParams.size(), so a callee that returned a shorter vector caused a read past the end of the hidl_vec. The same code exists in two files: media/libmedia/omx/1.0/WOmxNode.cpp (namespace utils) and media/libstagefright/omx/1.0/WOmxNode.cpp (namespace implementation).

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings