CVE-2026-40493: Image Codec Bpp From Raw Channels Depth
Bytes-per-pixel is computed from raw header fields ($STATE->channels * $STATE->depth) instead of from the resolved pixel format (e.g. sail_bits_per_pixel(image->pixel_format)). When the row/scan-line buffer is allocated based on the resolved pixel_format, this raw-header-derived stride can exceed the allocated bytes-per-pixel, causing heap buffer overflows o
greprules fetch cve-2026-40493-image-codec-bpp-from-raw-channels-depth --engine opengrepDescription
Bytes-per-pixel is computed from raw header fields ($STATE->channels * $STATE->depth) instead of from the resolved pixel format (e.g. sail_bits_per_pixel(image->pixel_format)). When the row/scan-line buffer is allocated based on the resolved pixel_format, this raw-header-derived stride can exceed the allocated bytes-per-pixel, causing heap buffer overflows o
Community feedback
0 rule-level signals from signed-in users.
- Useful reports
- 0
- Context false positives
- 0
- Metadata suggestions
- 0
Contextual precision
Aggregated from approved scan feedback. False-positive reports describe observed scan contexts, not a global rule verdict.
- Findings observed
- 0
- Projects
- 0
- Reporters
- 0
Precision details are collecting more signed-in reports before verdict counts or ratios are emphasized.
No approved finding verdicts yet.
No scan diagnostics reported yet.