Bug 2273404 (CVE-2024-2961)

Summary: CVE-2024-2961 glibc: Out of bounds write in iconv may lead to remote code execution
Product: [Other] Security Response Reporter: Marco Benatto <mbenatto>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: aarif, agarcial, ahrabovs, anstephe, aoconnor, aprice, asegurap, ashankar, asoldano, ataylor, aucunnin, avibelli, bbaranow, bdettelb, bgeorges, bmaxwell, brian.stansberry, caswilli, cdewolf, chazlett, clement.escoffier, codonell, crizzo, dandread, darran.lofthouse, dbodnarc, dfreiber, dj, dkreling, dkuc, doconnor, dosoudil, drow, fjansen, fjuma, fweimer, ggastald, gsmet, hkataria, istudens, ivassile, iweiss, jburrell, jdobes, jmartisk, jmitchel, jsamir, jsherril, jtanner, jvasik, kaycoth, kholdawa, kshier, kyoshida, lcouzens, lgao, lthon, luizcosta, manderse, mcoufal, mosmerov, mpierce, mskarbek, msochure, mstoklus, msvehla, nwallace, nweather, oezr, olubyans, orabin, pfrankli, pgallagh, pjindal, pmackay, probinso, rblanco, ricardo.barberis, rruss, rstancel, rsvoboda, sausingh, sbiarozk, sdouglas, security-response-team, sidakwo, sipoyare, skolosov, smaestri, stcannon, sthirugn, teagle, tom.jenkinson, tqvarnst, vkrizan, vkumar, vmugicag, xiaoxwan, yguenane, zzhou
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
An out-of-bounds write flaw was found in the ISO-2022-CN-EXT plugin for glibc's iconv library. When converting from UCS4 charset, adding certain escape charterers is required to indicate where the charset was changed to the library. During this process, iconv improperly checks the boundaries of internal buffers, leading to a buffer overflow, which allows writing up to 3 bytes outside the desired memory location. This issue may allow an attacker to craft a malicious characters sequence that will trigger the out-of-bounds write and perform remote code execution, presenting a high impact to the Integrity, Confidentiality, and Availability triad.
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 2275855, 2275933    
Bug Blocks: 2273407    

Description Marco Benatto 2024-04-04 15:43:00 UTC
The iconv plugin ISO-2022-CN-EXT, when converting from UCS4, might trigger a OOB write. The encoding requires to add escape sequence to indicate where
it changes the character set (as described by RFC 1922) and while the bounds check is done by the SOdesignation designation, it is missing for SS2designation and SS3designation. This leads to an overflow of 1, 2, or 3 bytes with  fixed values: `$+I`, `$+J`, `$+K`, `$+L`, `$+M`, or , `$*H`.

Comment 4 Sandipan Roy 2024-04-18 04:26:52 UTC
Created glibc tracking bugs for this issue:

Affects: fedora-all [bug 2275855]

Comment 5 Sandipan Roy 2024-04-18 14:13:15 UTC
Created glibc tracking bugs for this issue:

Affects: fedora-rawhide [bug 2275933]

Comment 8 errata-xmlrpc 2024-05-07 07:37:17 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:2722 https://access.redhat.com/errata/RHSA-2024:2722

Comment 9 errata-xmlrpc 2024-05-09 14:48:04 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Extended Update Support

Via RHSA-2024:2799 https://access.redhat.com/errata/RHSA-2024:2799

Comment 10 errata-xmlrpc 2024-05-22 11:41:41 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:3269 https://access.redhat.com/errata/RHSA-2024:3269

Comment 11 errata-xmlrpc 2024-05-23 06:25:06 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.4 Telecommunications Update Service
  Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions

Via RHSA-2024:3309 https://access.redhat.com/errata/RHSA-2024:3309

Comment 12 errata-xmlrpc 2024-05-23 07:18:42 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Extended Update Support

Via RHSA-2024:3312 https://access.redhat.com/errata/RHSA-2024:3312

Comment 13 errata-xmlrpc 2024-05-23 13:20:38 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2024:3339 https://access.redhat.com/errata/RHSA-2024:3339

Comment 14 errata-xmlrpc 2024-05-28 14:06:16 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Extended Update Support

Via RHSA-2024:3423 https://access.redhat.com/errata/RHSA-2024:3423

Comment 15 errata-xmlrpc 2024-05-28 14:27:36 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Extended Update Support

Via RHSA-2024:3411 https://access.redhat.com/errata/RHSA-2024:3411

Comment 16 errata-xmlrpc 2024-05-29 08:28:20 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.2 Advanced Update Support

Via RHSA-2024:3464 https://access.redhat.com/errata/RHSA-2024:3464

Comment 18 errata-xmlrpc 2024-06-04 14:20:16 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2024:3588 https://access.redhat.com/errata/RHSA-2024:3588

Comment 20 errata-xmlrpc 2024-10-09 04:12:52 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.12

Via RHSA-2024:7590 https://access.redhat.com/errata/RHSA-2024:7590

Comment 21 errata-xmlrpc 2024-10-09 05:32:35 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.16

Via RHSA-2024:7599 https://access.redhat.com/errata/RHSA-2024:7599

Comment 22 errata-xmlrpc 2024-10-09 19:35:00 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.15

Via RHSA-2024:7594 https://access.redhat.com/errata/RHSA-2024:7594

Comment 24 errata-xmlrpc 2024-10-16 19:55:05 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.13

Via RHSA-2024:7939 https://access.redhat.com/errata/RHSA-2024:7939

Comment 25 errata-xmlrpc 2024-10-23 13:15:39 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.14

Via RHSA-2024:8235 https://access.redhat.com/errata/RHSA-2024:8235