Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 749849 (CVE-2020-24977) - <dev-libs/libxml2-2.9.10-r5: Buffer Overflow vulnerability in xmlEncodeEntitiesInternal at libxml2/entities.c (CVE-2020-24977)
Summary: <dev-libs/libxml2-2.9.10-r5: Buffer Overflow vulnerability in xmlEncodeEntiti...
Alias: CVE-2020-24977
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Security
Whiteboard: A3 [glsa+ cve]
Depends on:
Reported: 2020-10-18 01:21 UTC by GLSAMaker/CVETool Bot
Modified: 2021-07-06 03:29 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---
nattka: sanity-check+


Note You need to log in before you can comment on or make changes to this bug.
Description GLSAMaker/CVETool Bot gentoo-dev 2020-10-18 01:21:16 UTC
CVE-2020-24977 (
  GNOME project libxml2 v2.9.10 and earlier have a global buffer over-read
  vulnerability in xmlEncodeEntitiesInternal at libxml2/entities.c. The issue
  has been fixed in commit 8e7c20a1 (20910-GITv2.9.10-103-g8e7c20a1).
Comment 2 Sam James archtester gentoo-dev Security 2020-11-24 12:03:02 UTC

But there's been a bunch of other useful looking sec-adjacent fixes so let's do a new patchset soon.
Comment 3 Larry the Git Cow gentoo-dev 2021-03-11 17:47:56 UTC
The bug has been referenced in the following commit(s):

commit 3c89772e764f988c990d87a3fd3428894317512e
Author:     Sam James <>
AuthorDate: 2021-03-11 17:30:06 +0000
Commit:     Sam James <>
CommitDate: 2021-03-11 17:47:45 +0000

    dev-libs/libxml2: split CVE patch into new revbump (2.9.10-r5), restore old
    Signed-off-by: Sam James <>

 .../files/libxml2-2.9.10-xmllint-utf8.patch        |   2 +
 dev-libs/libxml2/libxml2-2.9.10-r4.ebuild          | 216 +++++++++++++++++++++
 dev-libs/libxml2/libxml2-2.9.10-r5.ebuild          |   2 +-
 3 files changed, 219 insertions(+), 1 deletion(-)

commit cf3128be852f26ac32c5dd67e904012b094b9496
Author:     Benjamin Gordon <>
AuthorDate: 2021-03-05 16:25:29 +0000
Commit:     Sam James <>
CommitDate: 2021-03-11 17:47:44 +0000

    dev-libs/libxml2: Add upstream patch for xmllint
    This fixes an out-of-bounds read in xmllint when built with icu.  See
    CVE-2020-24977 and
    for more info.
    Signed-off-by: Benjamin Gordon <>
    Signed-off-by: Sam James <>

 .../files/libxml2-2.9.10-xmllint-utf8.patch        | 36 ++++++++++++++++++++++
 ...2-2.9.10-r4.ebuild => libxml2-2.9.10-r5.ebuild} |  3 ++
 2 files changed, 39 insertions(+)
Comment 4 Rolf Eike Beer archtester 2021-03-25 06:41:51 UTC
hppa stable
Comment 5 Sam James archtester gentoo-dev Security 2021-03-25 23:17:28 UTC
ppc done
Comment 6 Sam James archtester gentoo-dev Security 2021-03-25 23:18:23 UTC
ppc64 done
Comment 7 Sam James archtester gentoo-dev Security 2021-03-25 23:39:18 UTC
sparc done
Comment 8 Agostino Sarubbo gentoo-dev 2021-03-26 15:31:59 UTC
amd64 stable
Comment 9 Sam James archtester gentoo-dev Security 2021-03-26 18:36:11 UTC
x86 done
Comment 10 Sam James archtester gentoo-dev Security 2021-03-27 16:05:09 UTC
arm done
Comment 11 Sam James archtester gentoo-dev Security 2021-03-27 16:05:24 UTC
arm64 done
Comment 12 Agostino Sarubbo gentoo-dev 2021-03-27 18:26:01 UTC
s390 stable.

Maintainer(s), please cleanup.
Security, please add it to the existing request, or file a new one.
Comment 13 Thomas Deutschmann gentoo-dev Security 2021-05-24 00:16:17 UTC
Added to an existing GLSA request.
Comment 14 GLSAMaker/CVETool Bot gentoo-dev 2021-07-06 03:29:39 UTC
This issue was resolved and addressed in
 GLSA 202107-05 at
by GLSA coordinator John Helmert III (ajak).