Bug 152905 - CAN-2004-1287 nasm buffer overflow
CAN-2004-1287 nasm buffer overflow
Product: Fedora Legacy
Classification: Retired
Component: nasm (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Fedora Legacy Bugs
1, LEGACY, NEEDSWORK, rh73, rh90
: Security
Depends On:
  Show dependency treegraph
Reported: 2005-02-10 14:43 EST by Marc Deslauriers
Modified: 2007-08-30 15:57 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-08-30 15:57:08 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Patch to fix CAN-2004-1287 and the additional buffer overflow in outieee.c (802 bytes, patch)
2005-04-15 08:23 EDT, Jindrich Novy
no flags Details | Diff

  None (edit)
Description David Lawrence 2005-03-30 18:31:37 EST
Jonathan Rockway discovered a buffer overflow in nasm, the
general-purpose x86 assembler, which could lead to the execution of
arbitrary code when compiling a maliciously crafted assembler source


------- Bug moved to this database by dkl@redhat.com 2005-03-30 18:31 -------

This bug previously known as bug 2429 at https://bugzilla.fedora.us/
Originally filed under the Fedora Legacy product and Package request component.

Unknown priority P2. Setting to default priority "normal".
Unknown platform PC. Setting to default platform "All".
Setting qa contact to the default for this product.
   This bug either had no qa contact or an invalid one.

Comment 1 Matthew Miller 2005-04-12 19:28:22 EDT
Um, maybe it's just me, but: what were you going to do with that
potentially-malicious code once it *was* assembled? I mean, in the (only
slightly!) bigger picture, how does this help? I'm just sayin'.
Comment 2 Jindrich Novy 2005-04-15 08:21:28 EDT
The problem is that a crafted asm file can be used to execute an arbitrary code
*while* compiling the source. I discovered yet another buffer vsprintf overflow
even in the latest 0.98.39 release. I'll attach here a patch to fix
CAN-2004-1287 and this newly found overflow. These patches may need to be
backported to the older nasm versions.
Comment 3 Jindrich Novy 2005-04-15 08:23:06 EDT
Created attachment 113220 [details]
Patch to fix CAN-2004-1287 and the additional buffer overflow in outieee.c
Comment 4 Matthew Miller 2005-04-15 09:21:28 EDT
Yeah, I understand the problem; I just think it's kind of funny because, y'know,
if you have untrusted ASM code and you assemble it, *then* what are you going to
do with it?

Anyway, thanks very much for your help with these.
Comment 5 Jindrich Novy 2005-04-15 09:39:47 EDT
Not a problem, this was rather funny also for me as I'd never imagine that I can
kill my machine by compiling asm source ;)
Comment 6 Jesse Keating 2007-08-30 15:57:08 EDT
Fedora Legacy project has ended.  These will not be fixed by Fedora Legacy.

Note You need to log in before you can comment on or make changes to this bug.