Out-of-bounds write in w3m - CVE-2022-38223

 

Out-of-bounds write in w3m - CVE-2022-38223

Published: January 10, 2023 / Updated: November 18, 2023


Vulnerability identifier: #VU70880
CSH Severity: High
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-38223
CWE-ID: CWE-787
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to compromise vulnerable system.

The vulnerability exists due to a boundary error when processing untrusted HTML input within the checkType() function in etc.c. A remote attacker can create a specially crafted HTML file, trick the victim into opening it using the affected software, trigger out-of-bounds write and execute arbitrary code on the target system.


Affected software

w3m
Dell EMC PowerProtect Data Protection
Dell Data Protection Central
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Manager Proxy
Fedora
SUSE Linux Enterprise Server
Ubuntu
SUSE Linux Enterprise Realtime Extension
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Module for Basesystem
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Desktop
openSUSE Leap
w3m (Ubuntu package)
w3m-debugsource
w3m-debuginfo
w3m
w3m-inline-image
w3m-inline-image-debuginfo

How to mitigate CVE-2022-38223

Install update from vendor's website.

w3m (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 0.5.3+git20210102-6ubuntu0.1, 0.5.3+git20220429-1ubuntu0.1, 0.5.3-36ubuntu0.1, 0.5.3-37ubuntu0.1
w3m-debugsource - addressed in versions 0.5.3.git20161120-161.6.1, 0.5.3+git20180125-150000.3.3.1
w3m-debuginfo - addressed in versions 0.5.3.git20161120-161.6.1, 0.5.3+git20180125-150000.3.3.1
w3m - addressed in versions 0.5.3.git20161120-161.6.1, 0.5.3+git20180125-150000.3.3.1
w3m-inline-image - update to 0.5.3+git20180125-150000.3.3.1
w3m-inline-image-debuginfo - update to 0.5.3+git20180125-150000.3.3.1
w3m - addressed in versions 0.5.3-58.git20220429.el7, 0.5.3-58.git20220429.el8, 0.5.3-58.git20220429.el9, 0.5.3-58.git20220429.fc36, 0.5.3-58.git20220429.fc37, 0.5.3-63.git20230121.el7, 0.5.3-63.git20230121.el8, 0.5.3-63.git20230121.el9, 0.5.3-63.git20230121.fc38, 0.5.3-63.git20230121.fc39, 0.5.3-63.git20230121.fc40

External References

Related Security Bulletins