Bug 2042017 (CVE-2022-23219)

Summary: CVE-2022-23219 glibc: Stack-based buffer overflow in sunrpc clnt_create via a long pathname
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: aoliva, arjun.is, ashankar, bdettelb, caswilli, codonell, dj, dkuc, fjansen, fweimer, ggastald, glibc-bugzilla, jburrell, jwong, kaycoth, law, mcermak, mfabian, micjohns, mnewsome, pfrankli, psegedy, rth, sbiarozk, sipoyare, sthirugn, tcarlin, tcrider, tkasparek, tsasak, vkrizan, vkumar, vmugicag, yozone
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A stack based buffer-overflow vulnerability was found in the deprecated compatibility function clnt_create() in the sunrpc's clnt_gen.c module of the GNU C Library (aka glibc) through 2.34. This vulnerability copies its hostname argument onto the stack without validating its length, which may result in a buffer overflow, potentially resulting in a denial of service or (if an application is not built with a stack protector enabled) lead to arbitrary code execution.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-04 01:45:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2042018, 2045062, 2045063, 2045251, 2046028, 2046693, 2071032    
Bug Blocks: 2042019    

Description Guilherme de Almeida Suckevicz 2022-01-18 17:13:45 UTC
The deprecated compatibility function clnt_create in the sunrpc module of the GNU C Library (aka glibc) through 2.34 copies its hostname argument on the stack without validating its length, which may result in a buffer overflow, potentially resulting in a denial of service or (if an application is not built with a stack protector enabled) arbitrary code execution.

Reference:
https://sourceware.org/bugzilla/show_bug.cgi?id=22542

Comment 1 Guilherme de Almeida Suckevicz 2022-01-18 17:14:04 UTC
Created glibc tracking bugs for this issue:

Affects: fedora-all [bug 2042018]

Comment 13 errata-xmlrpc 2022-03-15 10:22:02 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2022:0896 https://access.redhat.com/errata/RHSA-2022:0896

Comment 15 Product Security DevOps Team 2022-05-04 01:45:54 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2022-23219