PatchBench: Evaluating AI Agents for Vulnerability Patching
Paper • 2609.04075 • Published
id stringlengths 3 5 | image stringlengths 30 32 | project stringclasses 32
values | repo_addr stringclasses 32
values | base_commit stringlengths 40 40 | inverted_commit stringlengths 40 40 | fuzzer stringclasses 4
values | sanitizer_type stringclasses 2
values | command stringlengths 17 48 | sanitizer_report stringlengths 1.06k 22.7k | patch stringlengths 194 55.4k |
|---|---|---|---|---|---|---|---|---|---|---|
910 | anonymous3619/vulpatch:910-vul | lcms | https://github.com/mm2/Little-CMS.git | 76d1dccf3e5ce0c67125964d0908b322e7d1afb9 | e9de6cbda937b5de66c728642830bc9ba4f52a53 | libfuzzer | asan | /out/cms_transform_fuzzer /tmp/poc | ==4190==ERROR: AddressSanitizer: heap-use-after-free on address 0x608000000424 at pc 0x0000005f92da bp 0x7fff8c6134e0 sp 0x7fff8c6134d8
READ of size 4 at 0x608000000424 thread T0
SCARINESS: 45 (4-byte-read-heap-use-after-free)
#0 0x5f92d9 in TetrahedralInterpFloat /src/lcms/src/cmsintrp.c:673:38
#1 0x608a93 in ... | diff --git a/src/cmsio0.c b/src/cmsio0.c
--- a/src/cmsio0.c
+++ b/src/cmsio0.c
@@ -1549,6 +1549,8 @@
TagBytes = Icc -> TagSizes[n];
}
+ if (TagBytes < 8) goto Error;
+
// Seek to its location
if (!io -> Seek(io, TagPos))
goto Error;
@@ -1572,8 +1574,7 @@
if (!IsTypeSupport... |
3265 | anonymous3619/vulpatch:3265-vul | librawspeed | https://github.com/darktable-org/rawspeed.git | 648eef8958198e9b919f8394b73bcbb4d360b6bf | d505b6d818773a70c26ba6d31e6ae88beb0ecb0c | afl | asan | /out/TiffDecoderFuzzer-SrwDecoder /tmp/poc | ==1748==ERROR: AddressSanitizer: use-after-poison on address 0x768a18d6eafe at pc 0x0000006a1c40 bp 0x7ffcc8127370 sp 0x7ffcc8127368
READ of size 2 at 0x768a18d6eafe thread T0
SCARINESS: 24 (2-byte-read-use-after-poison)
#0 0x6a1c3f in void rawspeed::SamsungV2Decompressor::decompressRow<(rawspeed::SamsungV2Decompre... | diff --git a/src/librawspeed/decompressors/SamsungV2Decompressor.cpp b/src/librawspeed/decompressors/SamsungV2Decompressor.cpp
--- a/src/librawspeed/decompressors/SamsungV2Decompressor.cpp
+++ b/src/librawspeed/decompressors/SamsungV2Decompressor.cpp
@@ -236,12 +236,19 @@
continue;
}
- if (... |
3447 | anonymous3619/vulpatch:3447-vul | librawspeed | https://github.com/darktable-org/rawspeed.git | 55b420a23ab58bb7dc62fb582f205e65d6445270 | 0da6695fdb33f0c887d3af8e05cf5a4791b09319 | afl | asan | /out/TiffDecoderFuzzer-DngDecoder /tmp/poc | AddressSanitizer:DEADLYSIGNAL
=================================================================
==1748==ERROR: AddressSanitizer: ABRT on unknown address 0x0000000006d4 (pc 0x7c6f51610438 bp 0x000000771200 sp 0x7ffc9e9f8c98 T0)
SCARINESS: 10 (signal)
#0 0x7c6f51610437 in gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x35... | diff --git a/src/librawspeed/common/DngOpcodes.cpp b/src/librawspeed/common/DngOpcodes.cpp
--- a/src/librawspeed/common/DngOpcodes.cpp
+++ b/src/librawspeed/common/DngOpcodes.cpp
@@ -103,8 +103,8 @@
public:
explicit FixBadPixelsList(const RawImage& im, ByteStream* bs) {
- const iRectangle2D fullImage(0, 0, im-... |
4296 | anonymous3619/vulpatch:4296-vul | open62541 | https://github.com/open62541/open62541.git | 9165b056a95f3ff5db23dbf9628acb1efee6f86b | 98d2160ab3c667059d8565e81f6a43726edd1fbc | libfuzzer | asan | /out/fuzz_binary_decode /tmp/poc | ==424==ERROR: AddressSanitizer: attempting double-free on 0x6020000000d0 in thread T0:
SCARINESS: 42 (double-free)
#0 0x5133f8 in __interceptor_cfree.localalias.0 /src/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:76
#1 0x56ce8d in String_deleteMembers /src/open62541/src/ua_types.c:103:5
#2 0x56ce... | diff --git a/src/ua_types_encoding_binary.c b/src/ua_types_encoding_binary.c
--- a/src/ua_types_encoding_binary.c
+++ b/src/ua_types_encoding_binary.c
@@ -908,7 +908,7 @@
if (!((type) == 0)) {
} else {
tgt->encoding = UA_EXTENSIONOBJECT_ENCODED_BYTESTRING;
- tgt->content.encoded.typeId = *type... |
4440 | anonymous3619/vulpatch:4440-vul | librawspeed | https://github.com/darktable-org/rawspeed.git | 2fb7cad53e051d21db0390b370bff07fcba9f2be | ac3544e2e1fb390fd1576461663821f32214e868 | afl | asan | /out/LJpegDecompressorFuzzer /tmp/poc | AddressSanitizer:DEADLYSIGNAL
=================================================================
==2133==ERROR: AddressSanitizer: SEGV on unknown address 0x71907406f0c0 (pc 0x00000055fbc4 bp 0x7fff070d5af0 sp 0x7fff070d5aa0 T0)
==2133==The signal is caused by a WRITE memory access.
SCARINESS: 30 (wild-addr-write)
#0... | diff --git a/src/librawspeed/common/RawImage.cpp b/src/librawspeed/common/RawImage.cpp
--- a/src/librawspeed/common/RawImage.cpp
+++ b/src/librawspeed/common/RawImage.cpp
@@ -226,13 +226,10 @@
}
uchar8* RawImageData::getData(uint32 xpos, uint32 ypos) {
- if (dim.x > static_cast<int>(xpos)) {
- } else {
- Thr... |
4492 | anonymous3619/vulpatch:4492-vul | librawspeed | https://github.com/darktable-org/rawspeed.git | 26ba04cb2b9dd09e4ecc7afba0919c1065c9340f | 8ad38e272fa7c6116ea30b32daf8c78d6a4ece49 | afl | asan | /out/TiffParserFuzzer-GetDecoder-Decode /tmp/poc | ==3353==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6030000001d0 at pc 0x0000005c2e82 bp 0x7ffe67ae53f0 sp 0x7ffe67ae53e8
READ of size 4 at 0x6030000001d0 thread T0
SCARINESS: 27 (4-byte-read-heap-buffer-overflow-far-from-bounds)
#0 0x5c2e81 in rawspeed::DngOpcodes::OffsetPerRowOrCol<rawspeed::DngOpc... | diff --git a/src/librawspeed/common/DngOpcodes.cpp b/src/librawspeed/common/DngOpcodes.cpp
--- a/src/librawspeed/common/DngOpcodes.cpp
+++ b/src/librawspeed/common/DngOpcodes.cpp
@@ -256,6 +256,7 @@
// Add offset, so this is always first plane
src = src + firstPlane;
// FIXME: is op() really suppos... |
4764 | anonymous3619/vulpatch:4764-vul | open62541 | https://github.com/open62541/open62541.git | 334e25a86d977e389fabe3006be3ff1a40c16ddb | 3d4b8666b02ecea0045c2ba8ae4c46a3f766c765 | afl | asan | /out/fuzz_binary_message /tmp/poc | ==497==ERROR: AddressSanitizer: heap-use-after-free on address 0x631000000800 at pc 0x000000562c6a bp 0x7ffdaae70050 sp 0x7ffdaae70048
WRITE of size 4 at 0x631000000800 thread T0
SCARINESS: 46 (4-byte-write-heap-use-after-free)
#0 0x562c69 in UInt32_encodeBinary /src/open62541/src/ua_types_encoding_binary.c:242:5
... | diff --git a/src/ua_securechannel.c b/src/ua_securechannel.c
--- a/src/ua_securechannel.c
+++ b/src/ua_securechannel.c
@@ -615,7 +615,8 @@
void
UA_MessageContext_abort(UA_MessageContext *mctx) {
if (1) {
- UA_ByteString_deleteMembers(&mctx->messageBuffer);
+ UA_Connection *connection = mctx->channe... |
5504 | anonymous3619/vulpatch:5504-vul | open62541 | https://github.com/open62541/open62541.git | 01f78374285f16749452ba84289356fc85e4ab22 | 98d2160ab3c667059d8565e81f6a43726edd1fbc | afl | asan | /out/fuzz_binary_message /tmp/poc | ==497==ERROR: AddressSanitizer: heap-use-after-free on address 0x61300000c7d0 at pc 0x000000573dd8 bp 0x7ffcbd205ca0 sp 0x7ffcbd205c98
READ of size 8 at 0x61300000c7d0 thread T0
SCARINESS: 51 (8-byte-read-heap-use-after-free)
#0 0x573dd7 in UA_SecureChannel_deleteMembersCleanup /src/open62541/src/ua_securechannel.c... | diff --git a/src/server/ua_session_manager.c b/src/server/ua_session_manager.c
--- a/src/server/ua_session_manager.c
+++ b/src/server/ua_session_manager.c
@@ -39,6 +39,9 @@
static UA_StatusCode
removeSession(UA_SessionManager *smgr, session_list_entry *slentry) {
+ /* Detach the Session from the SecureChannel */... |
5652 | anonymous3619/vulpatch:5652-vul | open62541 | https://github.com/open62541/open62541.git | c54a3e26439600a075c5ac427da1aae0f0781655 | 98d2160ab3c667059d8565e81f6a43726edd1fbc | afl | asan | /out/fuzz_binary_message /tmp/poc | ==497==ERROR: AddressSanitizer: heap-use-after-free on address 0x61300000c7d0 at pc 0x000000573dd8 bp 0x7ffe06e78ee0 sp 0x7ffe06e78ed8
READ of size 8 at 0x61300000c7d0 thread T0
SCARINESS: 51 (8-byte-read-heap-use-after-free)
#0 0x573dd7 in UA_SecureChannel_deleteMembersCleanup /src/open62541/src/ua_securechannel.c... | diff --git a/src/server/ua_services_session.c b/src/server/ua_services_session.c
--- a/src/server/ua_services_session.c
+++ b/src/server/ua_services_session.c
@@ -276,8 +276,19 @@
/* Detach the old SecureChannel */
if(session->header.channel && session->header.channel != channel) {
detachFromOldChann... |
6457 | anonymous3619/vulpatch:6457-vul | imagemagick | https://github.com/imagemagick/imagemagick | 4cd61940efb573150303c73c2be4079133da042f | 4fc6fc13832a0ab0037040cc951ace96b240eb22 | libfuzzer | asan | /out/encoder_pcd_fuzzer /tmp/poc | ==31609==ERROR: AddressSanitizer: attempting free on address which was not malloc()-ed: 0x631000000800 in thread T0
SCARINESS: 40 (bad-free)
#0 0x4e6068 in __interceptor_cfree.localalias.0 /src/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:76
#1 0x7b4951 in RelinquishMagickMemory /src/imagemagick/Magi... | diff --git a/coders/pcd.c b/coders/pcd.c
--- a/coders/pcd.c
+++ b/coders/pcd.c
@@ -1134,6 +1134,8 @@
{
pcd_output=rotated_image;
}
+ DestroyBlob(rotated_image);
+ pcd_output->blob=ReferenceBlob(image->blob);
}
/*
Open output image file.
|
9388 | anonymous3619/vulpatch:9388-vul | skia | https://skia.googlesource.com/skia.git | 1c5fd18927d5a128a12d7d5fe27f08d898be1e5b | b965fcb47296870643d001acb4a43cec3d88579a | libfuzzer | asan | /out/api_mock_gpu_canvas /tmp/poc | ==10279==ERROR: AddressSanitizer: heap-use-after-free on address 0x6030000004c8 at pc 0x000000926b13 bp 0x7ffe0af4cf30 sp 0x7ffe0af4cf28
WRITE of size 4 at 0x6030000004c8 thread T0
SCARINESS: 46 (4-byte-write-heap-use-after-free)
#0 0x926b12 in fetch_add /usr/local/bin/../include/c++/v1/atomic:1020:17
#1 0x926b... | diff --git a/include/core/SkTextBlob.h b/include/core/SkTextBlob.h
--- a/include/core/SkTextBlob.h
+++ b/include/core/SkTextBlob.h
@@ -14,6 +14,7 @@
#include "SkString.h"
#include "SkRefCnt.h"
+class SkGlyphRunList;
class SkReadBuffer;
class SkWriteBuffer;
@@ -109,6 +110,7 @@
}
}
+ friend cla... |
10084 | anonymous3619/vulpatch:10084-vul | harfbuzz | https://github.com/harfbuzz/harfbuzz.git | a26806801005c28115ae9e48bdcf3bbbc1bcd767 | c0a3f38f78362a183b30afd109dcebfca563d144 | libfuzzer | asan | /out/hb-subset-fuzzer /tmp/poc | ==10494==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x606000000180 at pc 0x00000062c544 bp 0x7ffdbaad2e10 sp 0x7ffdbaad2e08
READ of size 8 at 0x606000000180 thread T0
SCARINESS: 23 (8-byte-read-heap-buffer-overflow)
#0 0x62c543 in OT::Coverage::intersects(hb_set_t const*) const /src/harfbuzz/src/./hb-... | diff --git a/src/hb-dsalgs.hh b/src/hb-dsalgs.hh
--- a/src/hb-dsalgs.hh
+++ b/src/hb-dsalgs.hh
@@ -492,7 +492,14 @@
struct hb_auto_t : Type
{
hb_auto_t (void) { Type::init (); }
- template <typename T1> hb_auto_t (T1 t0) { unsigned int important_var_slack; Type::init (t0); }
+ /* Explicitly allow the following o... |
10676 | anonymous3619/vulpatch:10676-vul | open62541 | https://github.com/open62541/open62541.git | 3354b45980db0c0a89966a6ad349ad7053a91be9 | 46224876f5da3fa0beda0f905f9856fb70f3c14b | afl | asan | /out/fuzz_binary_message /tmp/poc | ==549==ERROR: AddressSanitizer: heap-use-after-free on address 0x613000037240 at pc 0x00000059180e bp 0x7ffd9e506650 sp 0x7ffd9e506648
READ of size 8 at 0x613000037240 thread T0
SCARINESS: 51 (8-byte-read-heap-use-after-free)
#0 0x59180d in UA_WorkQueue_manuallyProcessDelayed /src/open62541/src/ua_workqueue.c:251:5... | diff --git a/src/server/ua_session.c b/src/server/ua_session.c
--- a/src/server/ua_session.c
+++ b/src/server/ua_session.c
@@ -36,19 +36,6 @@
UA_BrowseDescription_deleteMembers(&cp->browseDescription);
UA_free(cp);
}
-
-#ifdef UA_ENABLE_SUBSCRIPTIONS
- UA_Subscription *sub, *subtemp;
- LIST... |
10881 | anonymous3619/vulpatch:10881-vul | harfbuzz | https://github.com/harfbuzz/harfbuzz.git | 210f899acad1959d60892538ac1968a36dbbb51b | 2c824d3644e16643c2bbe85fb88f9fb6fed53ce7 | libfuzzer | asan | /out/hb-shape-fuzzer /tmp/poc | ==10459==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60300000011c at pc 0x0000005d67e0 bp 0x7ffc5f00ac60 sp 0x7ffc5f00ac58
READ of size 1 at 0x60300000011c thread T0
SCARINESS: 12 (1-byte-read-heap-buffer-overflow)
#0 0x5d67df in BEInt<unsigned int, 4>::operator unsigned int() const /src/harfbuzz/src... | diff --git a/src/hb-ot-kern-table.hh b/src/hb-ot-kern-table.hh
--- a/src/hb-ot-kern-table.hh
+++ b/src/hb-ot-kern-table.hh
@@ -437,10 +437,7 @@
inline bool sanitize (hb_sanitize_context_t *ctx) const
{
TRACE_SANITIZE (this);
- if ((u.major.sanitize (ctx)) != 0) {
- } else {
- return_trace (false... |
10899 | anonymous3619/vulpatch:10899-vul | harfbuzz | https://github.com/harfbuzz/harfbuzz.git | e940530c9723c3a581a5d5b31e5f419865dd6cc7 | b2f687c2569a3cc0b1cd0335c5ca0f8d193f8a39 | libfuzzer | asan | /out/hb-shape-fuzzer /tmp/poc | ==10756==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6100000001fc at pc 0x0000005d51ac bp 0x7ffc14b5ecf0 sp 0x7ffc14b5ece8
READ of size 1 at 0x6100000001fc thread T0
SCARINESS: 12 (1-byte-read-heap-buffer-overflow)
#0 0x5d51ab in BEInt<unsigned short, 2>::operator unsigned short() const /src/harfbuzz... | diff --git a/src/hb-aat-layout-common.hh b/src/hb-aat-layout-common.hh
--- a/src/hb-aat-layout-common.hh
+++ b/src/hb-aat-layout-common.hh
@@ -164,7 +164,7 @@
}
protected:
- HBUINT16 format; /* Format identifier--format = 2 */
+ HBUINT16 format; /* Format identifier--format = 4 */
VarSizedBinSearchArrayO... |
10986 | anonymous3619/vulpatch:10986-vul | harfbuzz | https://github.com/harfbuzz/harfbuzz.git | e940530c9723c3a581a5d5b31e5f419865dd6cc7 | b2f687c2569a3cc0b1cd0335c5ca0f8d193f8a39 | afl | asan | /out/hb-shape-fuzzer /tmp/poc | ==10829==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60b000000157 at pc 0x000000546c2e bp 0x7ffde05daab0 sp 0x7ffde05daaa8
READ of size 1 at 0x60b000000157 thread T0
SCARINESS: 12 (1-byte-read-heap-buffer-overflow)
#0 0x546c2d in BEInt<unsigned short, 2>::operator unsigned short() const /src/harfbuzz... | diff --git a/src/hb-aat-layout-common.hh b/src/hb-aat-layout-common.hh
--- a/src/hb-aat-layout-common.hh
+++ b/src/hb-aat-layout-common.hh
@@ -164,7 +164,7 @@
}
protected:
- HBUINT16 format; /* Format identifier--format = 2 */
+ HBUINT16 format; /* Format identifier--format = 4 */
VarSizedBinSearchArrayO... |
11040 | anonymous3619/vulpatch:11040-vul | skia | https://skia.googlesource.com/skia.git | 701167cfb9bf3e94ff2d8ebafb4eb9eff1f2e35e | 57862f68330e3bb48ae0ce89023ac4d8d24e67fe | afl | asan | /out/android_codec /tmp/poc | ==10556==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x624000003fec at pc 0x000000979afe bp 0x7fff1f37ab70 sp 0x7fff1f37ab68
WRITE of size 4 at 0x624000003fec thread T0
SCARINESS: 36 (4-byte-write-heap-buffer-overflow)
#0 0x979afd in swizzle_index_to_n32(void*, unsigned char const*, int, int, int, int,... | diff --git a/src/codec/SkSwizzler.cpp b/src/codec/SkSwizzler.cpp
--- a/src/codec/SkSwizzler.cpp
+++ b/src/codec/SkSwizzler.cpp
@@ -1216,6 +1216,15 @@
fSwizzleWidth = compute_scaled_extent(fSrcWidth, sampX);
fAllocatedWidth = compute_scaled_extent(fDstWidth, sampX);
+ if (fDstByteOffset > 0) {
+ co... |
11245 | anonymous3619/vulpatch:11245-vul | harfbuzz | https://github.com/harfbuzz/harfbuzz.git | f074da8c2b6a7061c71d12213a6c494c119eb20e | ab57bcae0fd4505c80bb4ccdef6838bb2805ce79 | libfuzzer | asan | /out/hb-shape-fuzzer /tmp/poc | ==10762==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6040000002ee at pc 0x0000005dc24e bp 0x7fff5f2aa7e0 sp 0x7fff5f2aa7d8
READ of size 1 at 0x6040000002ee thread T0
SCARINESS: 22 (1-byte-read-heap-buffer-overflow-far-from-bounds)
#0 0x5dc24d in BEInt<unsigned char, 1>::operator unsigned char() const... | diff --git a/src/hb-ot-kern-table.hh b/src/hb-ot-kern-table.hh
--- a/src/hb-ot-kern-table.hh
+++ b/src/hb-ot-kern-table.hh
@@ -78,7 +78,6 @@
inline bool sanitize (hb_sanitize_context_t *ctx) const
{
TRACE_SANITIZE (this);
- trace_return (true); /* Disabled. See above. */
for (unsigned int probe_roun... |
11351 | anonymous3619/vulpatch:11351-vul | harfbuzz | https://github.com/harfbuzz/harfbuzz.git | 11aa0468ac2c62ff734ba6b0f6eb43d1bd6f602b | af727b4e629f8b07d7afb809be69d053827f6a51 | afl | asan | /out/hb-subset-fuzzer /tmp/poc | AddressSanitizer:DEADLYSIGNAL
=================================================================
==9229==ERROR: AddressSanitizer: SEGV on unknown address 0x60ef8d2020ab (pc 0x000000538074 bp 0x7ffd9a570e30 sp 0x7ffd9a570e20 T0)
==9229==The signal is caused by a READ memory access.
SCARINESS: 20 (wild-addr-read)
#0 0... | diff --git a/src/hb-subset-plan.cc b/src/hb-subset-plan.cc
--- a/src/hb-subset-plan.cc
+++ b/src/hb-subset-plan.cc
@@ -67,6 +67,17 @@
gids_to_preserve);
}
+static void
+_remove_invalid_gids (hb_set_t *glyphs,
+ unsigned int num_glyphs)
+{
+ hb_codepoint_t gid = HB_SET_VALUE_INVALID;
+ while (glyphs... |
11713 | anonymous3619/vulpatch:11713-vul | harfbuzz | https://github.com/harfbuzz/harfbuzz.git | c31092ab34641072606f854408eb1bea18ed2507 | ddd29e5594ccc9d0281e6da7373a1f115f6f6f3a | libfuzzer | asan | /out/hb-subset-fuzzer /tmp/poc | ==9042==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x61300000037f at pc 0x0000004ea8dd bp 0x7fffe80166f0 sp 0x7fffe8015ea0
READ of size 62017 at 0x61300000037f thread T0
SCARINESS: 26 (multi-byte-read-heap-buffer-overflow)
#0 0x4ea8dc in __asan_memcpy /src/llvm/projects/compiler-rt/lib/asan/asan_inter... | diff --git a/src/hb-ot-cff2-table.hh b/src/hb-ot-cff2-table.hh
--- a/src/hb-ot-cff2-table.hh
+++ b/src/hb-ot-cff2-table.hh
@@ -120,7 +120,7 @@
{
TRACE_SANITIZE (this);
const bool structOk = ctx->check_struct (this);
- return_trace (likely (structOk) && varStore.sanitize (ctx));
+ return_trace (likely... |
11753 | anonymous3619/vulpatch:11753-vul | yara | https://github.com/VirusTotal/yara.git | 8eeed3ef5e2bbd5b927bf1b72879c1fa9ab979cb | 4df40fca364a8fdf29b2f84b2abac26cd16ca75f | libfuzzer | asan | /out/rules_fuzzer /tmp/poc | ==18648==ERROR: AddressSanitizer: heap-use-after-free on address 0x6070000000c0 at pc 0x0000005c30f1 bp 0x7ffc464878b0 sp 0x7ffc464878a8
READ of size 8 at 0x6070000000c0 thread T0
SCARINESS: 51 (8-byte-read-heap-use-after-free)
#0 0x5c30f0 in yr_re_node_destroy /src/yara/libyara/re.c:155:25
#1 0x5c3418 in yr_re... | diff --git a/libyara/re.c b/libyara/re.c
--- a/libyara/re.c
+++ b/libyara/re.c
@@ -522,6 +522,8 @@
for (; subnode != NULL; ) {
if (!(!subnode->greedy &&
subnode->type == RE_NODE_RANGE_ANY &&
+ subnode->prev_sibling != NULL &&
+ subnode->next_sibling != NULL &&
(YR_STRING_CHAIN... |
12241 | anonymous3619/vulpatch:12241-vul | harfbuzz | https://github.com/harfbuzz/harfbuzz.git | 3b81442cd5c11099ae9245074d24ef679b4473fa | ab2258a419abbace9ff27916143b46f88e8ccef3 | libfuzzer | asan | /out/hb-subset-fuzzer /tmp/poc | ==9382==ERROR: AddressSanitizer: attempting double-free on 0x619000000080 in thread T0:
SCARINESS: 42 (double-free)
#0 0x4ec420 in __interceptor_free /src/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:124
#1 0x63b5e8 in hb_vector_t<CFF::op_str_t, 8u>::fini() /src/harfbuzz/src/./hb-vector.hh:62:7
#... | diff --git a/src/hb-vector.hh b/src/hb-vector.hh
--- a/src/hb-vector.hh
+++ b/src/hb-vector.hh
@@ -32,7 +32,7 @@
#include "hb-null.hh"
-template <typename Type, unsigned int PrereserveCount=8>
+template <typename Type, unsigned int PrereserveCount=2>
struct hb_vector_t
{
typedef Type item_t;
|
12312 | anonymous3619/vulpatch:12312-vul | harfbuzz | https://github.com/harfbuzz/harfbuzz.git | a3fa7d33360a58df5333dbbd121328e580f08849 | f60282c5bff4a317ba3180e3519274963c6e8849 | libfuzzer | asan | /out/hb-shape-fuzzer /tmp/poc | ==9382==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x613000000350 at pc 0x0000005d080d bp 0x7fff0bdbfd70 sp 0x7fff0bdbfd68
READ of size 2 at 0x613000000350 thread T0
SCARINESS: 14 (2-byte-read-heap-buffer-overflow)
#0 0x5d080c in BEInt<unsigned short, 2>::operator unsigned short() const /src/harfbuzz/... | diff --git a/src/hb-aat-layout-morx-table.hh b/src/hb-aat-layout-morx-table.hh
--- a/src/hb-aat-layout-morx-table.hh
+++ b/src/hb-aat-layout-morx-table.hh
@@ -333,10 +333,8 @@
trace_and_return (false);
}
- if ((Types::extended) != 0) {
- } else {
- trace_and_return (true);
- }
+ if (!... |
12419 | anonymous3619/vulpatch:12419-vul | libxml2 | https://gitlab.gnome.org/GNOME/libxml2.git | 619534ef2ed501e5206915064a5bc36153a897f7 | d19bab68f49e641a8551ef22cf3cee9a0144deea | afl | asan | /out/libxml2_xml_reader_for_file_fuzzer /tmp/poc | ==8433==ERROR: AddressSanitizer: attempting double-free on 0x6020000001d0 in thread T0:
SCARINESS: 42 (double-free)
#0 0x4ec510 in __interceptor_free /src/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:124
#1 0x5cfac8 in xmlFreeID /src/libxml2/xmlreader.c:249:2
#2 0x56192c in xmlHashFree /src/libxm... | diff --git a/xmlreader.c b/xmlreader.c
--- a/xmlreader.c
+++ b/xmlreader.c
@@ -282,6 +282,7 @@
return(-1);
} else {
id->name = attrib->name;
+ attrib->name = NULL;
id->attr = NULL;
return(0);
}
|
14916 | anonymous3619/vulpatch:14916-vul | gdal | https://github.com/OSGeo/gdal | 9343a91ef8ff16c7716dfe8e31fe9c2b0f6fd8a6 | 8661f4f171c20e0c5f67e82fab3f166ffc544d72 | afl | asan | /out/gtiff_mmap /tmp/poc | AddressSanitizer:DEADLYSIGNAL
=================================================================
==45924==ERROR: AddressSanitizer: SEGV on unknown address 0x621020205d21 (pc 0x7e6feccf6c67 bp 0x7ffdc5f0b1d0 sp 0x7ffdc5f0a988 T0)
==45924==The signal is caused by a READ memory access.
SCARINESS: 20 (wild-addr-read)
#0... | diff --git a/gdal/frmts/gtiff/libtiff/tif_dirread.c b/gdal/frmts/gtiff/libtiff/tif_dirread.c
--- a/gdal/frmts/gtiff/libtiff/tif_dirread.c
+++ b/gdal/frmts/gtiff/libtiff/tif_dirread.c
@@ -6222,7 +6222,9 @@
} else {
*pbErr = 1;
}
- return 0;
+ ... |
15270 | anonymous3619/vulpatch:15270-vul | ffmpeg | https://git.ffmpeg.org/ffmpeg.git | 247a1de7f7d9c5628cf188e677d10ce9e12bd2f2 | 4057a060f62b2f1dade799fb9fdf0eec5708e0a7 | afl | asan | /out/ffmpeg_AV_CODEC_ID_IFF_ILBM_fuzzer /tmp/poc | ==155483==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x61a0000004cc at pc 0x0000004e9328 bp 0x7ffe712651c0 sp 0x7ffe712651b8
WRITE of size 4 at 0x61a0000004cc thread T0
SCARINESS: 36 (4-byte-write-heap-buffer-overflow)
#0 0x4e9327 in cmap_read_palette /src/ffmpeg/libavcodec/iff.c:180:20
#1 0x4e0f4... | diff --git a/libavcodec/utils.c b/libavcodec/utils.c
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -785,6 +785,10 @@
res = AVERROR(EINVAL);
goto free_and_end;
}
+ if (avctx->bits_per_coded_sample < 0) {
+ res = AVERROR(EINVAL);
+ goto free_and_end;
... |
15775 | anonymous3619/vulpatch:15775-vul | imagemagick | https://github.com/imagemagick/imagemagick | 364908fa52a94322d810fe59168db0b7e30c179b | 79db70a3524bdcf20a0e9480e56638aa8252eccf | libfuzzer | asan | /out/ping_ps_fuzzer /tmp/poc | ==89649==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7aeaf5de6838 at pc 0x0000008ada52 bp 0x7ffc396657b0 sp 0x7ffc396657a8
READ of size 1 at 0x7aeaf5de6838 thread T0
SCARINESS: 27 (1-byte-read-stack-buffer-overflow)
#0 0x8ada51 in GetNextUTFCode /src/imagemagick/./MagickCore/token-private.h:125:14
... | diff --git a/MagickCore/blob.h b/MagickCore/blob.h
--- a/MagickCore/blob.h
+++ b/MagickCore/blob.h
@@ -23,6 +23,7 @@
#endif
#define MagickMaxBufferExtent 81920
+#define MagickMinBufferExtent 16384
typedef enum
{
diff --git a/coders/bytebuffer-private.h b/coders/bytebuffer-private.h
--- a/coders/bytebuffer-pri... |
15776 | anonymous3619/vulpatch:15776-vul | imagemagick | https://github.com/imagemagick/imagemagick | 364908fa52a94322d810fe59168db0b7e30c179b | 79db70a3524bdcf20a0e9480e56638aa8252eccf | libfuzzer | asan | /out/ping_eps_fuzzer /tmp/poc | ==89647==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7d9122b43838 at pc 0x000000433359 bp 0x7ffc4a0e5ac0 sp 0x7ffc4a0e5280
READ of size 8188 at 0x7d9122b43838 thread T0
SCARINESS: 41 (multi-byte-read-stack-buffer-overflow)
#0 0x433358 in strlen /src/llvm/projects/compiler-rt/lib/asan/../sanitizer_co... | diff --git a/MagickCore/blob.h b/MagickCore/blob.h
--- a/MagickCore/blob.h
+++ b/MagickCore/blob.h
@@ -23,6 +23,7 @@
#endif
#define MagickMaxBufferExtent 81920
+#define MagickMinBufferExtent 16384
typedef enum
{
diff --git a/coders/bytebuffer-private.h b/coders/bytebuffer-private.h
--- a/coders/bytebuffer-pri... |
17228 | anonymous3619/vulpatch:17228-vul | matio | git://git.code.sf.net/p/matio/matio | b783c3e234ceac1d933266707e453b085f1112c6 | 26a6c7177b179153f254f17f6d3b313a1e107a2f | libfuzzer | ubsan | /out/matio_fuzzer /tmp/poc | UndefinedBehaviorSanitizer:DEADLYSIGNAL
==20474==ERROR: UndefinedBehaviorSanitizer: SEGV on unknown address 0x00008cc48d20 (pc 0x73381f9bb268 bp 0x7ffe66b32f90 sp 0x7ffe66b32f78 T20474)
==20474==The signal is caused by a READ memory access.
#0 0x73381f9bb268 (/lib/x86_64-linux-gnu/libc.so.6+0x14e268)
#1 0x799f... | diff --git a/src/mat73.c b/src/mat73.c
--- a/src/mat73.c
+++ b/src/mat73.c
@@ -797,8 +797,12 @@
if (1) {
ref_id = H5RDEREFERENCE(dset_id,H5R_OBJECT,ref_ids+i);
}
- cells[i]->internal->id = ref_id;
- ret = Mat_H5Read... |
19744 | anonymous3619/vulpatch:19744-vul | imagemagick | https://github.com/imagemagick/imagemagick | df9e141e9a5e82b61123e1aebebc10f7a14d5a5d | 2cfafdb095287a032c284a029fff2df78e5b7456 | libfuzzer | asan | /out/encoder_psd_fuzzer /tmp/poc | AddressSanitizer:DEADLYSIGNAL
=================================================================
==110571==ERROR: AddressSanitizer: SEGV on unknown address 0x61a003c3a848 (pc 0x000000a3c016 bp 0x7fffbf7bd5f0 sp 0x7fffbf7bd5b0 T0)
==110571==The signal is caused by a WRITE memory access.
SCARINESS: 30 (wild-addr-write)
... | diff --git a/coders/psd.c b/coders/psd.c
--- a/coders/psd.c
+++ b/coders/psd.c
@@ -1658,6 +1658,8 @@
ctype;
ctype=layer_info->channel_info[k].type;
+ if ((k == 0) && (psd_info->mode == IndexedMode) && (ctype != 0))
+ return(MagickFalse);
if (ctype != -1)
{
}
|
20061 | anonymous3619/vulpatch:20061-vul | open62541 | https://github.com/open62541/open62541.git | 89b73e8ba0b025983e1d81d7aa203e6a462da04d | 09ccc06730d2a9a89fd11937f23ae860a2771301 | libfuzzer | asan | /out/fuzz_json_decode /tmp/poc | ==920==ERROR: AddressSanitizer: heap-use-after-free on address 0x6030000000d8 at pc 0x000000573fe8 bp 0x7ffe2673dff0 sp 0x7ffe2673dfe8
READ of size 8 at 0x6030000000d8 thread T0
SCARINESS: 51 (8-byte-read-heap-use-after-free)
#0 0x573fe7 in String_clear /src/open62541/src/ua_types.c:160:24
#1 0x573fe7 in Locali... | diff --git a/src/ua_types_encoding_json.c b/src/ua_types_encoding_json.c
--- a/src/ua_types_encoding_json.c
+++ b/src/ua_types_encoding_json.c
@@ -2982,6 +2982,7 @@
break;
default:
UA_free(dest->data);
+ dest->data = NULL;
break;
}
} else if(encod... |
20062 | anonymous3619/vulpatch:20062-vul | open62541 | https://github.com/open62541/open62541.git | 89b73e8ba0b025983e1d81d7aa203e6a462da04d | 09ccc06730d2a9a89fd11937f23ae860a2771301 | libfuzzer | asan | /out/fuzz_json_decode /tmp/poc | ==920==ERROR: AddressSanitizer: attempting double-free on 0x602000000090 in thread T0:
SCARINESS: 42 (double-free)
#0 0x51e6bd in free /src/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:123:3
#1 0x56f50e in UA_Array_delete /src/open62541/src/ua_types.c:1312:5
#2 0x56f50e in Variant_clear /src/open... | diff --git a/src/ua_types_encoding_json.c b/src/ua_types_encoding_json.c
--- a/src/ua_types_encoding_json.c
+++ b/src/ua_types_encoding_json.c
@@ -2980,6 +2980,7 @@
if (rc == UA_STATUSCODE_GOOD) {
} else {
UA_free(dest->data);
+ dest->data = NULL;
}
} else {
... |
20113 | anonymous3619/vulpatch:20113-vul | arrow | https://github.com/apache/arrow.git | 8b09ecc5c690dd270dea83490f292c2e00eef75b | 92931939ac2c8c89c278c2413608c3f1d2663f91 | libfuzzer | asan | /out/arrow-ipc-stream-fuzz /tmp/poc | ==400==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x61a000000f60 at pc 0x0000010130c3 bp 0x7fff1a9ba7b0 sp 0x7fff1a9ba7a8
READ of size 4 at 0x61a000000f60 thread T0
SCARINESS: 27 (4-byte-read-heap-buffer-overflow-far-from-bounds)
#0 0x10130c2 in Visit /src/arrow/cpp/src/arrow/array/validate.cc:380:32
... | diff --git a/cpp/src/arrow/io/interfaces.cc b/cpp/src/arrow/io/interfaces.cc
--- a/cpp/src/arrow/io/interfaces.cc
+++ b/cpp/src/arrow/io/interfaces.cc
@@ -227,6 +227,17 @@
}
}
+Result<int64_t> ValidateReadRegion(int64_t offset, int64_t size, int64_t file_size) {
+ if (offset < 0 || size < 0) {
+ return Status... |
20115 | anonymous3619/vulpatch:20115-vul | arrow | https://github.com/apache/arrow.git | 8b09ecc5c690dd270dea83490f292c2e00eef75b | 220c43789fc0e2b6b623c30a18e5464ffa9f1e82 | afl | asan | /out/arrow-ipc-stream-fuzz /tmp/poc | AddressSanitizer:DEADLYSIGNAL
=================================================================
==442==ERROR: AddressSanitizer: SEGV on unknown address 0x6250000034b0 (pc 0x000001525e8c bp 0x7ffdaa5919b0 sp 0x7ffdaa591900 T0)
==442==The signal is caused by a READ memory access.
SCARINESS: 20 (wild-addr-read)
#0 0x1... | diff --git a/cpp/src/arrow/io/interfaces.cc b/cpp/src/arrow/io/interfaces.cc
--- a/cpp/src/arrow/io/interfaces.cc
+++ b/cpp/src/arrow/io/interfaces.cc
@@ -227,6 +227,17 @@
}
}
+Result<int64_t> ValidateReadRegion(int64_t offset, int64_t size, int64_t file_size) {
+ if (offset < 0 || size < 0) {
+ return Status... |
PatchBench is a benchmark for evaluating AI agents on realistic vulnerability patching tasks: 213 tasks drawn from 32 popular GitHub C/C++ projects. It selects vulnerabilities whose ground-truth fixes lie outside the crash stack, and uses vulnerability transplant plus code mutation to mitigate surface-level fixes and patch memorization.
This repository holds the task metadata, one row per task to identify the project, the exact repository state, the crash, and the reference patch.
Each example contains:
anonymous3619/vulpatch:{id}-vullibfuzzer, honggfuzz, afl, aflpp/tmp/pocbase_commit, inverted_commit and patch are ground truth and are not visible to the agent during inference.
from datasets import load_dataset
dataset = load_dataset("ai-sec-lab/PatchBench", split="test")
Filtering works the usual way:
libxml2 = dataset.filter(lambda r: r["project"] == "libxml2")
ubsan = dataset.filter(lambda r: r["sanitizer_type"] == "ubsan")
See our repo for details: ai-sec-lab/PatchBench.
@misc{shen2026PatchBench,
title = {{{PatchBench}}: Evaluating {{AI}} Agents for Vulnerability Patching},
author = {Shen, Chihao and Li, Jiacheng and Mahajan, Aastha and Tian, Jeffery Siyuan and Kwon, Yonghwi and Chen, Yizheng},
year = 2026,
number = {arXiv:2609.04075},
eprint = {2609.04075}
}