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&action=edit" title="testcase">[details]</a></span> testcase Description of problem: int off = ntohl(pe->offset); if (hdrchkData(off)) goto errxit; if (off) { size_t nb = REGION_TAG_COUNT; int32_t stei[nb]; /* XXX Hmm, why the copy? */ memcpy(&stei, dataStart + off, nb); No check for dataStart + off > 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 Software | Affected Version | How 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 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.