An integer overflow, leading to heap-based buffer overflow was found in the KDE implementation of garbage collector for the JavaScript language (KJS). An remote attacker could use this flaw to cause a denial of service (konqueror crash), or potentially, execute arbitrary code with the privileges of the user running "konqueror" web browser, if the victim visited a specially-crafted HTML page. References: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-1687 http://support.apple.com/kb/HT3613 Upstream WebKit patch: http://trac.webkit.org/changeset/41854 Reproducer: No reproducer available.
This issue does NOT affect the version of the kdelibs package, as shipped with Red Hat Enterprise Linux 3. This issue affects the versions of the kdelibs package, as shipped with Red Hat Enterprise Linux 4 and 5.
This issue has been addressed in following products: Red Hat Enterprise Linux 4 Red Hat Enterprise Linux 5 Via RHSA-2009:1127 https://rhn.redhat.com/errata/RHSA-2009-1127.html
This also affects kdelibs3 3.5.10 and appears to affect kdelibs 4.2.4 in Fedora.
(Note that this is NOT fixed in KDE trunk.)
For QtWebKit, this is fixed in Qt 4.5.2 which got pushed to Fedora updates recently. I didn't check earlier versions.
Unfortunately, the WebKit patch, while fixing the integer overflow, still allows DoSing the browser, it just aborts if it would overflow. :-(
Created attachment 355170 [details] Untested patch against kdelibs 4.2.98 Here's an untested patch against kdelibs 4.2.98. Like the WebKit patch, this just crashes if we would overflow. IMHO, doing things right would mean throwing an error somehow, but I don't understand the code well enough to do that.
kdelibs-4.2.4-6.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/kdelibs-4.2.4-6.fc11
kdelibs-4.2.4-6.fc10 has been submitted as an update for Fedora 10. http://admin.fedoraproject.org/updates/kdelibs-4.2.4-6.fc10
kdelibs3-3.5.10-13.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/kdelibs3-3.5.10-13.fc11
kdelibs3-3.5.10-13.fc10 has been submitted as an update for Fedora 10. http://admin.fedoraproject.org/updates/kdelibs3-3.5.10-13.fc10
kdelibs-4.2.4-6.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.
kdelibs-4.2.4-6.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.
kdelibs3-3.5.10-13.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.
kdelibs3-3.5.10-13.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.