Bug 454483
| Summary: | CVE-2008-3252 newsx: Stack overflow with lines with leading '.' | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Enrico Scholz <rh-bugzilla> | ||||||
| Component: | newsx | Assignee: | Dominik 'Rathann' Mierzejewski <dominik> | ||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
| Severity: | low | Docs Contact: | |||||||
| Priority: | low | ||||||||
| Version: | 9 | Keywords: | Security | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | All | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | 1.6-8.fc8 | Doc Type: | Bug Fix | ||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2008-07-15 12:14:45 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
|
Description
Enrico Scholz
2008-07-08 18:59:34 UTC
mmh... it's too late and no coffee... Proposed fix won't work; instead of the | line=linebuf must be moved into the loop. I believe your analysis is incorrect. line pointer gets reset in
if (!get_server_msg(line, MAX_HEADER_SIZE)) {
/* timeout: simply give up */
return 0;
}
I'll try to reproduce the crash and see what I can do about it.
... or it actually doesn't get reset. After running it through gdb I can see that what you described is actually happening. I'll have a fixed build after I've tested the fix. Created attachment 311653 [details]
patch to fix the issue
Attached patch fixes the issue. Updated build will be available shortly.
Created attachment 311654 [details]
patch to fix the issue
Obviously the previous patch is wrong. We can't access line[N] before it's
initialised.
newsx-1.6-9.fc9 has been submitted as an update for Fedora 9 newsx-1.6-8.fc8 has been submitted as an update for Fedora 8 newsx-1.6-8.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report. newsx-1.6-9.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report. CVE id CVE-2008-3252 was allocated for this issue: Stack-based buffer overflow in the read_article function in getarticle.c in newsx 1.6 allows remote attackers to execute arbitrary code via a news article containing a large number of lines starting with a period. |