Out-of-bounds write in HarfBuzz - CVE-2021-45931

 

Out-of-bounds write in HarfBuzz - CVE-2021-45931

Published: September 26, 2022


Vulnerability identifier: #VU67642
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-2021-45931
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 input within the hb_bit_set_invertible_t::set() function. A remote attacker can create a specially crafted file, trick the victim into opening it, trigger an out-of-bounds write and execute arbitrary code on the target system.


Affected software

HarfBuzz
Gentoo Linux
Amazon Linux AMI
Fedora
harfbuzz
mingw-harfbuzz
media-libs/harfbuzz

How to mitigate CVE-2021-45931

Install updates from vendor's website.

HarfBuzz - update to 2.9.1
harfbuzz - update to 2.9.1-1
mingw-harfbuzz - addressed in versions 2.9.1-1.fc34, 2.9.1-1.fc35
harfbuzz - update to 2.9.1-1.fc35
media-libs/harfbuzz - update to 4.4.0

External References

Related Security Bulletins