Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 803437 (CVE-2021-35942) - <sys-libs/glibc-2.33-r5 : OOB read (CVE-2021-35942)
Summary: <sys-libs/glibc-2.33-r5 : OOB read (CVE-2021-35942)
Alias: CVE-2021-35942
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Security
Whiteboard: A3 [glsa+]
Depends on: libxcrypt-stable
  Show dependency tree
Reported: 2021-07-23 00:55 UTC by John Helmert III
Modified: 2022-08-14 14:41 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 archtester Gentoo Infrastructure gentoo-dev Security 2021-07-23 00:55:45 UTC

The wordexp function in the GNU C Library (aka glibc) through 2.33 may crash or read arbitrary memory in parse_param (in posix/wordexp.c) when called with an untrusted, crafted pattern, potentially resulting in a denial of service or disclosure of information. This occurs because atoi was used but strtoul should have been used to ensure correct calculations.

Unreleased patch:;a=commit;h=5adda61f62b77384718b4c0d8336ade8f2b4b35c
Comment 1 NATTkA bot gentoo-dev 2021-07-29 17:20:35 UTC Comment hidden (obsolete)
Comment 2 NATTkA bot gentoo-dev 2021-07-29 17:28:38 UTC Comment hidden (obsolete)
Comment 3 NATTkA bot gentoo-dev 2021-07-29 17:36:37 UTC Comment hidden (obsolete)
Comment 4 NATTkA bot gentoo-dev 2021-07-29 17:44:40 UTC Comment hidden (obsolete)
Comment 5 NATTkA bot gentoo-dev 2021-07-29 17:52:44 UTC Comment hidden (obsolete)
Comment 6 NATTkA bot gentoo-dev 2021-07-29 17:56:39 UTC Comment hidden (obsolete)
Comment 7 NATTkA bot gentoo-dev 2021-07-29 18:00:39 UTC Comment hidden (obsolete)
Comment 8 NATTkA bot gentoo-dev 2021-07-29 18:08:56 UTC
Package list is empty or all packages have requested keywords.
Comment 9 Andreas K. Hüttel archtester gentoo-dev 2021-07-31 22:40:24 UTC
fixed in Gentoo 2.33 patchset 5
Comment 10 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-08-14 05:20:43 UTC
GLSA request filed
Comment 11 Larry the Git Cow gentoo-dev 2022-08-14 14:34:52 UTC
The bug has been referenced in the following commit(s):

commit db5361e1e42ef0dfb4d6eda6648cae61bea60edf
Author:     GLSAMaker <>
AuthorDate: 2022-08-14 14:29:01 +0000
Commit:     Sam James <>
CommitDate: 2022-08-14 14:33:57 +0000

    [ GLSA 202208-24 ] GNU C Library: Multiple Vulnerabilities
    Signed-off-by: GLSAMaker <>
    Signed-off-by: Sam James <>

 glsa-202208-24.xml | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-14 14:37:50 UTC
GLSA done, all done.