Launchpad has imported 15 comments from the remote bug at
https://bugzilla.redhat.com/show_bug.cgi?id=446902.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2008-05-16T16:01:51+00:00 Pavel wrote:

Description of problem:


Version-Release number of selected component (if applicable):
pan-0.132-2.fc8.x86_64

How reproducible:
Always

Steps to Reproduce:
  Start pan from the command line
  
Actual results:

pan: parts.cc:244: void pan::Parts::set_parts(const pan::PartBatch&): Assertion
`pch == part_mid_buf + part_mid_buf_len' failed.
Aborted


Expected results:

PAN starts

Additional info:

Reply at:
https://bugs.launchpad.net/ubuntu/+source/pan/+bug/238089/comments/0

------------------------------------------------------------------------
On 2008-05-21T18:17:36+00:00 Pavel wrote:

Created attachment 306290
Tasks.nzb causing corrupted double-linked list abort from glibc

Reply at:
https://bugs.launchpad.net/ubuntu/+source/pan/+bug/238089/comments/1

------------------------------------------------------------------------
On 2008-05-21T18:20:40+00:00 Pavel wrote:

Debugged the problem further. It happens when trying to load a huge tasks.nzb
(around 95000 lines). When the file is split into two parts by copying and
removing extra <file>...</file> sections, each part loads successfully.
This most likely means state corruption in nzb parser by certain input.

Attaching the bad nzb files that cause: assertion, segmentation fault, or abort
inside glibc (double-linked list corruption detected).

Reply at:
https://bugs.launchpad.net/ubuntu/+source/pan/+bug/238089/comments/2

------------------------------------------------------------------------
On 2008-05-21T18:21:26+00:00 Pavel wrote:

Created attachment 306292
Glibc-generated stack trace from abort

Reply at:
https://bugs.launchpad.net/ubuntu/+source/pan/+bug/238089/comments/3

------------------------------------------------------------------------
On 2008-05-21T18:24:08+00:00 Pavel wrote:

Created attachment 306293
Tasks.nzb causing pan to segfault

Reply at:
https://bugs.launchpad.net/ubuntu/+source/pan/+bug/238089/comments/4

------------------------------------------------------------------------
On 2008-05-21T18:25:03+00:00 Pavel wrote:

Created attachment 306294
Stack trace from segfault

Reply at:
https://bugs.launchpad.net/ubuntu/+source/pan/+bug/238089/comments/5

------------------------------------------------------------------------
On 2008-05-21T18:33:21+00:00 Pavel wrote:

Created attachment 306296
Tasks.nzb causing assertion in pan.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/pan/+bug/238089/comments/6

------------------------------------------------------------------------
On 2008-05-21T18:33:45+00:00 Pavel wrote:

Created attachment 306297
Stack trace from assertion

Reply at:
https://bugs.launchpad.net/ubuntu/+source/pan/+bug/238089/comments/7

------------------------------------------------------------------------
On 2008-05-28T02:48:05+00:00 Pavel wrote:

Found the root cause of the problem.

PartsBatch class has inconsistent storage for Parts. For each new batch, it does
not clear() the 'parts' variable, but only resize()s it if the new batch is
bigger (pan/data/parts.cc, lines 307 and 316). If the new batch is smaller than
the previous, extra entries are untouched.

The problem happens when pan attempts to sort the full vector
(pan/tasks/nzb.cc:128), thus possibly mixing the parts from the current batch
with the parts from the previous batches.

The solution is to clear() the 'parts' vector on each init(), then push_back()
the new parts in add_part, so the vector size always corresponds to the real
number of found parts.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/pan/+bug/238089/comments/8

------------------------------------------------------------------------
On 2008-05-28T02:53:31+00:00 Pavel wrote:

Created attachment 306880
Fix the assertion in PAN due to sorting of an array containing redundant 
elements

Added proper handling of PartBatch::parts vector.
Fixed allocation policy of Part::packed_mid element to re-allocate it every
time rather than trying to reuse a previous instance.

Signed-off by: [email protected]

Reply at:
https://bugs.launchpad.net/ubuntu/+source/pan/+bug/238089/comments/9

------------------------------------------------------------------------
On 2008-05-28T03:40:28+00:00 Pavel wrote:

Note that when compiled with -O0 for ease of debugging, abort or segfault never
happen, assertion always happens instead.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/pan/+bug/238089/comments/10

------------------------------------------------------------------------
On 2008-05-28T17:59:44+00:00 Josh wrote:

I'm assigning this issue CVE-2008-2363.  From the look of this, it looks like a
pretty generic heap overflow, which means we can't rule out arbitrary code
execution.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/pan/+bug/238089/comments/11

------------------------------------------------------------------------
On 2008-05-31T10:01:27+00:00 Pavel wrote:

Added dependency on bug 433970.
Building pan rpm with this assertion fix for F9 is impossible without
compilation fixes here: https://bugzilla.redhat.com/attachment.cgi?id=306299

Reply at:
https://bugs.launchpad.net/ubuntu/+source/pan/+bug/238089/comments/12

------------------------------------------------------------------------
On 2008-06-02T08:40:57+00:00 Tomas wrote:

Moving to Security Response product, creating tracking bugs.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/pan/+bug/238089/comments/13

------------------------------------------------------------------------
On 2012-05-24T21:37:28+00:00 Vincent wrote:

Current Pan in Fedora is 0.135+ and this was fixed in 0.133
(http://pan.rebelbase.com/download/releases/0.133/).

Reply at:
https://bugs.launchpad.net/ubuntu/+source/pan/+bug/238089/comments/19


** Changed in: pan (Fedora)
       Status: Confirmed => Fix Released

** Changed in: pan (Fedora)
   Importance: Unknown => High

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/238089

Title:
  [CVE-2008-2363] Heap overflow in PartsBatch class via .nzb files

To manage notifications about this bug go to:
https://bugs.launchpad.net/pan/+bug/238089/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to