CWE
94 228 119
Advisory Published
CVE Published
Updated

CVE-2011-3378: Code Injection

First published: Tue Sep 27 2011(Updated: )

Created <span class=""><a href="attachment.cgi?id=525110" name="attach_525110" title="testcase">attachment 525110</a> <a href="attachment.cgi?id=525110&amp;action=edit" title="testcase">[details]</a></span> testcase Description of problem: int off = ntohl(pe-&gt;offset); if (hdrchkData(off)) goto errxit; if (off) { size_t nb = REGION_TAG_COUNT; int32_t stei[nb]; /* XXX Hmm, why the copy? */ memcpy(&amp;stei, dataStart + off, nb); No check for dataStart + off &gt; dataEnd. (gdb) r --checksig rpminput.rpm [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/libthread_db.so.1". error: no dbpath has been set error: cannot open Packages database in /%{_dbpath} Program received signal SIGSEGV, Segmentation fault. memcpy () at ../sysdeps/x86_64/memcpy.S:117 117 ../sysdeps/x86_64/memcpy.S: No such file or directory. in ../sysdeps/x86_64/memcpy.S (gdb) bt #0 memcpy () at ../sysdeps/x86_64/memcpy.S:117 #1 0x00007ffff7946493 in headerLoad (uh=0x623e00) at header.c:831 #2 0x00007ffff7946af9 in headerRead (fd=0x622180, magicp=HEADER_MAGIC_YES) at header.c:994 #3 0x00007ffff79731d1 in readFile (fd=0x622180, fn=0x60a080 "rpminput.rpm", dig=0x622ab0, plbundle=0x6223b0, hdrbundle=0x622420) at rpmchecksig.c:462 #4 0x00007ffff7973c29 in rpmpkgVerifySigs (keyring=0x620ef0, flags=1572865, fd=0x622180, fn=0x60a080 "rpminput.rpm") at rpmchecksig.c:689 #5 0x00007ffff797429e in rpmcliSign (ts=0x621630, qva=0x7ffff7bab180, argv=0x609ed8) at rpmchecksig.c:824 #6 0x00000000004036e0 in main (argc=3, argv=0x7fffffffe458) at rpmqv.c:787

Credit: secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
Rpm Rpm=4.4.2.1
Rpm Rpm=4.8.0
Rpm Rpm=4.4.2
Rpm Rpm=4.6.0
Rpm Rpm=4.4.2.2
Rpm Rpm=4.7.2
Rpm Rpm=4.7.0
Rpm Rpm=4.4.2.3
Rpm Rpm=4.6.1
Rpm Rpm=4.7.1
Rpm Rpm<=4.9.1.1
Rpm Rpm=4.4.2.
redhat/rpm<0:4.3.3-35_nonptl.el4
0:4.3.3-35_nonptl.el4
redhat/rpm<0:4.4.2.3-22.el5_6.2
0:4.4.2.3-22.el5_6.2
redhat/rpm<0:4.4.2.3-9.el5_3.2
0:4.4.2.3-9.el5_3.2
redhat/rpm<0:4.8.0-16.el6_1.1
0:4.8.0-16.el6_1.1
redhat/rpm<0:4.8.0-12.el6_0.1
0:4.8.0-12.el6_0.1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Parent vulnerabilities

(Appears in the following advisories)

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203