Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 870097 - <dev-libs/expat-2.4.9: xmlparse.c:doContent use-after-free
Summary: <dev-libs/expat-2.4.9: xmlparse.c:doContent use-after-free
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo Security
URL: https://github.com/libexpat/libexpat/...
Whiteboard: A1 [glsa+]
Keywords:
Depends on: 872389
Blocks: CVE-2022-40674
  Show dependency tree
 
Reported: 2022-09-14 12:40 UTC by John Helmert III
Modified: 2022-11-15 16:36 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-09-14 12:40:31 UTC
CVE-2022-40674:

libexpat before 2.4.9 has a use-after-free in the doContent function in xmlparse.c.

And apparent reproducer: https://github.com/libexpat/libexpat/pull/640
Comment 1 Larry the Git Cow gentoo-dev 2022-09-20 15:41:59 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aacaf722fc8bc0f7cc113a5fe01fea450f044258

commit aacaf722fc8bc0f7cc113a5fe01fea450f044258
Author:     Sebastian Pipping <sping@gentoo.org>
AuthorDate: 2022-09-20 15:40:07 +0000
Commit:     Sebastian Pipping <sping@gentoo.org>
CommitDate: 2022-09-20 15:41:31 +0000

    dev-libs/expat: 2.4.9 + EAPI 8
    
    Bug: https://bugs.gentoo.org/870097
    Signed-off-by: Sebastian Pipping <sping@gentoo.org>

 dev-libs/expat/Manifest           |  1 +
 dev-libs/expat/expat-2.4.9.ebuild | 94 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 95 insertions(+)
Comment 2 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-09-20 15:43:05 UTC
Please stabilize when ready.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-09-26 05:58:38 UTC
cleanup done.
Comment 4 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-09-26 16:53:16 UTC
GLSA request filed
Comment 5 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-09-26 17:55:33 UTC
Thanks!
Comment 6 Larry the Git Cow gentoo-dev 2022-09-29 14:48:21 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/data/glsa.git/commit/?id=03f0a34b2dd087d0388307c6a72febd44202bb20

commit 03f0a34b2dd087d0388307c6a72febd44202bb20
Author:     GLSAMaker <glsamaker@gentoo.org>
AuthorDate: 2022-09-29 14:24:39 +0000
Commit:     John Helmert III <ajak@gentoo.org>
CommitDate: 2022-09-29 14:48:02 +0000

    [ GLSA 202209-24 ] Expat: Multiple Vulnerabilities
    
    Bug: https://bugs.gentoo.org/791703
    Bug: https://bugs.gentoo.org/830422
    Bug: https://bugs.gentoo.org/831918
    Bug: https://bugs.gentoo.org/833431
    Bug: https://bugs.gentoo.org/870097
    Signed-off-by: GLSAMaker <glsamaker@gentoo.org>
    Signed-off-by: John Helmert III <ajak@gentoo.org>

 glsa-202209-24.xml | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)
Comment 7 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-09-29 14:53:44 UTC
GLSA released, all done!