Memory safety / potential heap-based memory corruption due to misallocation of per-channel data
Description
Commit Details
Author: Rosen Penev
Date: 2026-04-09 17:15 UTC
Message:
Triage Assessment
Vulnerability Type: Memory safety
Confidence: MEDIUM
Reasoning:
The commit rewrites the lpg structure to use a flexible array member and allocates the parent structure and its channels in a single allocation. This reduces the risk of under-allocating memory for the per-channel data and potential out-of-bounds writes when num_channels is larger than previously accounted for. While not a user-facing vulnerability patch, it mitigates a memory safety risk that could lead to security issues (e.g., memory corruption, information leakage) in certain scenarios.
Verification Assessment
Vulnerability Type: Memory safety / potential heap-based memory corruption due to misallocation of per-channel data
Confidence: MEDIUM
Affected Versions: v7.0-rc6 and earlier (mainline prior to this patch)