Skip to content

x/image/bmp: panic when reading out of bound palette index #79576

Description

@thatnealpatel

Decoding a paletted BMP file with an out-of-range palette index
would result in a panic when accessing pixels in the invalid image.
Decoding now correctly returns an error in this case.

This is CVE-2026-42500 and Go issue https://go.dev/issue/79576.


This was a PRIVATE track issue, tracked in http://b/502107374.

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsFixThe path to resolution is known, but the work has not been done.Securityrelease-blocker

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions