Bug 1214282 (CVE-2023-40359)

Summary: VUL-0: CVE-2023-40359: xterm: xterm before 380 supports ReGIS reporting for character-set names even if they have unexpected characters
Product: [Novell Products] SUSE Security Incidents Reporter: Cathy Hu <cathy.hu>
Component: IncidentsAssignee: Marcus Meissner <meissner>
Status: NEW --- QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P3 - Medium CC: meissner, security-team, stoyan.manolov
Version: unspecifiedFlags: stoyan.manolov: needinfo? (meissner)
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/375286/
Whiteboard: CVSSv3.1:SUSE:CVE-2023-40359:3.3:(AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L)
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: 0001-snapshot-of-project-xterm-label-xterm-379c.patch

Description Cathy Hu 2023-08-15 08:17:35 UTC
CVE-2023-40359

xterm before 380 supports ReGIS reporting for character-set names even if they
have unexpected characters (i.e., neither alphanumeric nor underscore), aka a
pointer/overflow issue.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2023-40359
https://www.cve.org/CVERecord?id=CVE-2023-40359
https://invisible-island.net/xterm/xterm.log.html#xterm_380
Comment 3 Marcus Meissner 2023-09-15 14:35:50 UTC
spent some time now. 

maintainer rewrote parts of the regis code. lets see how to backport.
Comment 4 Marcus Meissner 2023-09-15 14:48:13 UTC
Created attachment 869542 [details]
0001-snapshot-of-project-xterm-label-xterm-379c.patch

0001-snapshot-of-project-xterm-label-xterm-379c.patch

this snapshot has 2 fix sets, one for this issue, and a unrelated one in WriteNow macro
Comment 5 OBSbugzilla Bot 2023-09-15 15:05:02 UTC
This is an autogenerated message for OBS integration:
This bug (1214282) was mentioned in
https://build.opensuse.org/request/show/1111588 Factory / xterm
Comment 9 Maintenance Automation 2023-11-14 12:30:01 UTC
SUSE-SU-2023:4438-1: An update that solves one vulnerability can now be installed.

Category: security (low)
Bug References: 1214282
CVE References: CVE-2023-40359
Sources used:
openSUSE Leap 15.4 (src): xterm-330-150200.11.12.1
openSUSE Leap 15.5 (src): xterm-330-150200.11.12.1
Basesystem Module 15-SP4 (src): xterm-330-150200.11.12.1
Basesystem Module 15-SP5 (src): xterm-330-150200.11.12.1
SUSE Manager Proxy 4.2 (src): xterm-330-150200.11.12.1
SUSE Manager Retail Branch Server 4.2 (src): xterm-330-150200.11.12.1
SUSE Manager Server 4.2 (src): xterm-330-150200.11.12.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.