Skip to content
OpenAdvisories
Critical · 9.8 CVE-2018-25220 EUVD-2018-21698GHSA-fx87-p9wh-85gp

Bochs 2.6-5 Buffer Overflow Remote Code Execution

Published Mar 28, 2026 · Updated Mar 30, 2026 · Assigned by VulnCheck

Description

Bochs 2.6-5 contains a stack-based buffer overflow vulnerability that allows attackers to execute arbitrary code by supplying an oversized input string to the application. Attackers can craft a malicious payload with 1200 bytes of padding followed by a return-oriented programming chain to overwrite the instruction pointer and execute shell commands with application privileges.

Affected products

VendorProductAffectedFixed
bochs BOCHS 2.6-5 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 bochs No fix yet —
Ubuntu 26.04 LTS bochs No fix yet —
Ubuntu 25.10 bochs No fix yet —
Ubuntu 24.04 LTS bochs No fix yet —
Ubuntu 22.04 LTS bochs No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS bochs No fix yet —
Ubuntu 18.04 LTS bochs No fix yet —
Ubuntu 16.04 LTS bochs No fix yet —

References