Bug 841249 - __pmDecodeText heap overflow
Summary: __pmDecodeText heap overflow
Alias: None
Product: Fedora
Classification: Fedora
Component: pcp
Version: 16
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Ken McDonell
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: 840765 CVE-2012-3418
TreeView+ depends on / blocked
Reported: 2012-07-18 13:54 UTC by Florian Weimer
Modified: 2012-08-20 04:00 UTC (History)
4 users (show)

Fixed In Version: pcp-3.6.5
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2012-08-20 04:00:20 UTC
Type: Bug

Attachments (Terms of Use)
Resolve issues in decoding PCP text PDUs (1.11 KB, patch)
2012-07-27 06:38 UTC, Nathan Scott
no flags Details | Diff

Description Florian Weimer 2012-07-18 13:54:14 UTC
This is very similar to the __pmDecodeInstanceReq overflow (bug 841240).  buflen needs to be checked against the PDU size, and negative values need to be rejected.

This is not directly exposed through pmcd.

Comment 1 Mark Goodwin 2012-07-20 23:30:29 UTC
Ken requested assignment, thanks.

Comment 2 Nathan Scott 2012-07-27 06:38:22 UTC
Created attachment 600704 [details]
Resolve issues in decoding PCP text PDUs

Comment 3 Florian Weimer 2012-07-27 14:56:28 UTC
(In reply to comment #2)
> Created attachment 600704 [details]
> Resolve issues in decoding PCP text PDUs

This looks okay, with the same caveat as in bug 841240.

Comment 4 Huzaifa S. Sidhpurwala 2012-08-16 03:56:21 UTC
Upstream patch:


This issue has been addressed in pcp-3.6.5

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