Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 812482 (CVE-2021-40812) - media-libs/gd: OOB read (CVE-2021-40812)
Summary: media-libs/gd: OOB read (CVE-2021-40812)
Alias: CVE-2021-40812
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Security
Whiteboard: B4 [upstream/ebuild]
Depends on:
Reported: 2021-09-10 19:24 UTC by John Helmert III
Modified: 2021-10-13 02:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description John Helmert III gentoo-dev Security 2021-09-10 19:24:05 UTC
CVE-2021-40812 (

The GD Graphics Library (aka LibGD) through 2.3.2 has an out-of-bounds read because of the lack of certain gdGetBuf and gdPutBuf return value checks.
Comment 1 John Helmert III gentoo-dev Security 2021-10-13 02:30:41 UTC
Seems like we have a partial fix in the first issue, new issue: