sample_id large_string | dataset large_string | split large_string | source_record_id large_string | source_revision large_string | project large_string | repo_url large_string | canonical_repo_url large_string | commit_url large_string | fixing_commit_sha large_string | variant large_string | is_vulnerable bool | revision_sha large_string | container_path large_string | container_sha256 large_string | source_sha256 large_string | function_name large_string | function_of_interest large_string | file_path large_string | cve_ids large list | cve_description large_string | cwe_ids large list | cwe_description large_string | description large_string | vulnerable_function large_string | fixed_function large_string | commit_message large_string |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
00056117ad842d9d28bea7dc | primevul | train | train:202859 | 4fd7158322872d711e90f091dbd8673ef32cb1be | unzip | https://github.com/madler/unzip | https://github.com/madler/unzip | https://github.com/madler/unzip/commit/41beb477c5744bc396fa1162ee0c14218ec12213 | 41beb477c5744bc396fa1162ee0c14218ec12213 | before | true | 075867bab8939c681ce11b2faff1d422c73cb0f3 | containers/41/41beb477c5744bc396fa1162ee0c14218ec12213_before.sif | sha256:bea8841e23d6cd604fc10b1e10095501c49b66b27a9afd7b639617b96fd30eb2 | sha256:11d7af3cc327880cb37b1a97fc87fe7e976f34b38d70a591c34c2da5a8311219 | undefer_input | void undefer_input(__G)
__GDEF
{
if (G.incnt > 0)
G.csize += G.incnt;
if (G.incnt_leftover > 0) {
/* We know that "(G.csize < MAXINT)" so we can cast G.csize to int:
* This condition was checked when G.incnt_leftover was set > 0 in
* defer_leftover_input(), and it is NOT al... | fileio.c | [
"CVE-2019-13232"
] | Info-ZIP UnZip 6.0 mishandles the overlapping of files inside a ZIP container, leading to denial of service (resource consumption), aka a "better zip bomb" issue. | [
"CWE-400"
] | null | null | void undefer_input(__G)
__GDEF
{
if (G.incnt > 0)
G.csize += G.incnt;
if (G.incnt_leftover > 0) {
/* We know that "(G.csize < MAXINT)" so we can cast G.csize to int:
* This condition was checked when G.incnt_leftover was set > 0 in
* defer_leftover_input(), and it is NOT al... | void undefer_input(__G)
__GDEF
{
if (G.incnt > 0)
G.csize += G.incnt;
if (G.incnt_leftover > 0) {
/* We know that "(G.csize < MAXINT)" so we can cast G.csize to int:
* This condition was checked when G.incnt_leftover was set > 0 in
* defer_leftover_input(), and it is NOT al... | Fix bug in undefer_input() that misplaced the input state. |
00056117ad842d9d28bea7dc | primevul | train | train:202859 | 4fd7158322872d711e90f091dbd8673ef32cb1be | unzip | https://github.com/madler/unzip | https://github.com/madler/unzip | https://github.com/madler/unzip/commit/41beb477c5744bc396fa1162ee0c14218ec12213 | 41beb477c5744bc396fa1162ee0c14218ec12213 | after | false | 41beb477c5744bc396fa1162ee0c14218ec12213 | containers/41/41beb477c5744bc396fa1162ee0c14218ec12213_after.sif | sha256:efebbd0d5539b73455aff4b5b2db3339ce4480b32511c4843c108df6b48a2203 | sha256:89b07ebefe17423119e3768dfe681745a8f86d4d968e34ccd092328fb7d33570 | undefer_input | void undefer_input(__G)
__GDEF
{
if (G.incnt > 0)
G.csize += G.incnt;
if (G.incnt_leftover > 0) {
/* We know that "(G.csize < MAXINT)" so we can cast G.csize to int:
* This condition was checked when G.incnt_leftover was set > 0 in
* defer_leftover_input(), and it is NOT al... | fileio.c | [
"CVE-2019-13232"
] | Info-ZIP UnZip 6.0 mishandles the overlapping of files inside a ZIP container, leading to denial of service (resource consumption), aka a "better zip bomb" issue. | [
"CWE-400"
] | null | null | void undefer_input(__G)
__GDEF
{
if (G.incnt > 0)
G.csize += G.incnt;
if (G.incnt_leftover > 0) {
/* We know that "(G.csize < MAXINT)" so we can cast G.csize to int:
* This condition was checked when G.incnt_leftover was set > 0 in
* defer_leftover_input(), and it is NOT al... | void undefer_input(__G)
__GDEF
{
if (G.incnt > 0)
G.csize += G.incnt;
if (G.incnt_leftover > 0) {
/* We know that "(G.csize < MAXINT)" so we can cast G.csize to int:
* This condition was checked when G.incnt_leftover was set > 0 in
* defer_leftover_input(), and it is NOT al... | Fix bug in undefer_input() that misplaced the input state. |
0034e4e021b68ca1d530afd9 | primevul | train | train:2301 | 4fd7158322872d711e90f091dbd8673ef32cb1be | linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/cd4a40174b71acd021877341684d8bb1dc8ea4ae | cd4a40174b71acd021877341684d8bb1dc8ea4ae | before | true | 0c56fe31420ca599c90240315f7959bf1b4eb6ce | containers/cd/cd4a40174b71acd021877341684d8bb1dc8ea4ae_before.sif | sha256:a009f9a68594677d3d2608d08423e9e12319e1d32c92a59c430a5b426c391458 | sha256:3606052a5b87c6394d779859430c6914e3c18f81e2c97dcc2d4fa27cf80cd499 | collect_mounts | struct vfsmount *collect_mounts(struct path *path)
{
struct mount *tree;
namespace_lock();
tree = copy_tree(real_mount(path->mnt), path->dentry,
CL_COPY_ALL | CL_PRIVATE);
namespace_unlock();
if (IS_ERR(tree))
return ERR_CAST(tree);
return &tree->mnt;
}
| namespace.c | [
"CVE-2015-4177"
] | The collect_mounts function in fs/namespace.c in the Linux kernel before 4.0.5 does not properly consider that it may execute after a path has been unmounted, which allows local users to cause a denial of service (system crash) by leveraging user-namespace root access for an MNT_DETACH umount2 system call. | [
"CWE-703"
] | null | null | struct vfsmount *collect_mounts(struct path *path)
{
struct mount *tree;
namespace_lock();
tree = copy_tree(real_mount(path->mnt), path->dentry,
CL_COPY_ALL | CL_PRIVATE);
namespace_unlock();
if (IS_ERR(tree))
return ERR_CAST(tree);
return &tree->mnt;
}
| struct vfsmount *collect_mounts(struct path *path)
{
struct mount *tree;
namespace_lock();
if (!check_mnt(real_mount(path->mnt)))
tree = ERR_PTR(-EINVAL);
else
tree = copy_tree(real_mount(path->mnt), path->dentry,
CL_COPY_ALL | CL_PRIVATE);
namespace_unlock();
if (IS_ERR(tree))
return ERR_CAST(tr... | mnt: Fail collect_mounts when applied to unmounted mounts
The only users of collect_mounts are in audit_tree.c
In audit_trim_trees and audit_add_tree_rule the path passed into
collect_mounts is generated from kern_path passed an audit_tree
pathname which is guaranteed to be an absolute path. In those cases
collect_... |
0034e4e021b68ca1d530afd9 | primevul | train | train:2301 | 4fd7158322872d711e90f091dbd8673ef32cb1be | linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/cd4a40174b71acd021877341684d8bb1dc8ea4ae | cd4a40174b71acd021877341684d8bb1dc8ea4ae | after | false | cd4a40174b71acd021877341684d8bb1dc8ea4ae | containers/cd/cd4a40174b71acd021877341684d8bb1dc8ea4ae_after.sif | sha256:0b5b24b0725c40141ca428c7a8864a2ae085bb52cfff53003c48c49d7a30971e | sha256:49d9b5db867b9148dcd1b14827ea7bac6dc6f79345300c71b48264393cd96482 | collect_mounts | struct vfsmount *collect_mounts(struct path *path)
{
struct mount *tree;
namespace_lock();
if (!check_mnt(real_mount(path->mnt)))
tree = ERR_PTR(-EINVAL);
else
tree = copy_tree(real_mount(path->mnt), path->dentry,
CL_COPY_ALL | CL_PRIVATE);
namespace_unlock();
if (IS_ERR(tree))
return ERR_CAST(tr... | namespace.c | [
"CVE-2015-4177"
] | The collect_mounts function in fs/namespace.c in the Linux kernel before 4.0.5 does not properly consider that it may execute after a path has been unmounted, which allows local users to cause a denial of service (system crash) by leveraging user-namespace root access for an MNT_DETACH umount2 system call. | [
"CWE-703"
] | null | null | struct vfsmount *collect_mounts(struct path *path)
{
struct mount *tree;
namespace_lock();
tree = copy_tree(real_mount(path->mnt), path->dentry,
CL_COPY_ALL | CL_PRIVATE);
namespace_unlock();
if (IS_ERR(tree))
return ERR_CAST(tree);
return &tree->mnt;
}
| struct vfsmount *collect_mounts(struct path *path)
{
struct mount *tree;
namespace_lock();
if (!check_mnt(real_mount(path->mnt)))
tree = ERR_PTR(-EINVAL);
else
tree = copy_tree(real_mount(path->mnt), path->dentry,
CL_COPY_ALL | CL_PRIVATE);
namespace_unlock();
if (IS_ERR(tree))
return ERR_CAST(tr... | mnt: Fail collect_mounts when applied to unmounted mounts
The only users of collect_mounts are in audit_tree.c
In audit_trim_trees and audit_add_tree_rule the path passed into
collect_mounts is generated from kern_path passed an audit_tree
pathname which is guaranteed to be an absolute path. In those cases
collect_... |
004a801297b403822a9c28af | primevul | train | train:216696 | 4fd7158322872d711e90f091dbd8673ef32cb1be | libtiff | https://github.com/vadz/libtiff | https://github.com/vadz/libtiff | https://github.com/vadz/libtiff/commit/0a76a8c765c7b8327c59646284fa78c3c27e5490 | 0a76a8c765c7b8327c59646284fa78c3c27e5490 | before | true | 3144e57770c1e4d26520d8abee750f8ac8b75490 | containers/0a/0a76a8c765c7b8327c59646284fa78c3c27e5490_before.sif | sha256:d5f9e78c3d9464d307bede77cb02c180f666440d0099eb02aab4d03611b65cb4 | sha256:aa9ad026c0b8e4f650d47d7e93e8ee6655784e07ecc3eb0bd132b8a7d4d45567 | JPEGSetupEncode | JPEGSetupEncode(TIFF* tif)
{
JPEGState* sp = JState(tif);
TIFFDirectory *td = &tif->tif_dir;
static const char module[] = "JPEGSetupEncode";
#if defined(JPEG_DUAL_MODE_8_12) && !defined(TIFFInitJPEG)
if( tif->tif_dir.td_bitspersample == 12 )
return TIFFReInitJPEG_12( tif, COMPRESSION_JPEG, 1 );
... | null | [
"CVE-2017-7601"
] | LibTIFF 4.0.7 has a "shift exponent too large for 64-bit type long" undefined behavior issue, which might allow remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact via a crafted image. | [
"CWE-20"
] | null | null | JPEGSetupEncode(TIFF* tif)
{
JPEGState* sp = JState(tif);
TIFFDirectory *td = &tif->tif_dir;
static const char module[] = "JPEGSetupEncode";
#if defined(JPEG_DUAL_MODE_8_12) && !defined(TIFFInitJPEG)
if( tif->tif_dir.td_bitspersample == 12 )
return TIFFReInitJPEG_12( tif, COMPRESSION_JPEG, 1 );
... | JPEGSetupEncode(TIFF* tif)
{
JPEGState* sp = JState(tif);
TIFFDirectory *td = &tif->tif_dir;
static const char module[] = "JPEGSetupEncode";
#if defined(JPEG_DUAL_MODE_8_12) && !defined(TIFFInitJPEG)
if( tif->tif_dir.td_bitspersample == 12 )
return TIFFReInitJPEG_12( tif, COMPRESSION_JPEG, 1 );
... | * libtiff/tif_jpeg.c: validate BitsPerSample in JPEGSetupEncode() to avoid
undefined behaviour caused by invalid shift exponent.
Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2648 |
004a801297b403822a9c28af | primevul | train | train:216696 | 4fd7158322872d711e90f091dbd8673ef32cb1be | libtiff | https://github.com/vadz/libtiff | https://github.com/vadz/libtiff | https://github.com/vadz/libtiff/commit/0a76a8c765c7b8327c59646284fa78c3c27e5490 | 0a76a8c765c7b8327c59646284fa78c3c27e5490 | after | false | 0a76a8c765c7b8327c59646284fa78c3c27e5490 | containers/0a/0a76a8c765c7b8327c59646284fa78c3c27e5490_after.sif | sha256:256a3ad12495d8fad3e37913994e631fa123ca7d28f01225d7e03900989b1fb1 | sha256:8035f7429f130fbe2b224c619a4499e976529b93766959b930ef1a5bebacf97d | JPEGSetupEncode | JPEGSetupEncode(TIFF* tif)
{
JPEGState* sp = JState(tif);
TIFFDirectory *td = &tif->tif_dir;
static const char module[] = "JPEGSetupEncode";
#if defined(JPEG_DUAL_MODE_8_12) && !defined(TIFFInitJPEG)
if( tif->tif_dir.td_bitspersample == 12 )
return TIFFReInitJPEG_12( tif, COMPRESSION_JPEG, 1 );
... | null | [
"CVE-2017-7601"
] | LibTIFF 4.0.7 has a "shift exponent too large for 64-bit type long" undefined behavior issue, which might allow remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact via a crafted image. | [
"CWE-20"
] | null | null | JPEGSetupEncode(TIFF* tif)
{
JPEGState* sp = JState(tif);
TIFFDirectory *td = &tif->tif_dir;
static const char module[] = "JPEGSetupEncode";
#if defined(JPEG_DUAL_MODE_8_12) && !defined(TIFFInitJPEG)
if( tif->tif_dir.td_bitspersample == 12 )
return TIFFReInitJPEG_12( tif, COMPRESSION_JPEG, 1 );
... | JPEGSetupEncode(TIFF* tif)
{
JPEGState* sp = JState(tif);
TIFFDirectory *td = &tif->tif_dir;
static const char module[] = "JPEGSetupEncode";
#if defined(JPEG_DUAL_MODE_8_12) && !defined(TIFFInitJPEG)
if( tif->tif_dir.td_bitspersample == 12 )
return TIFFReInitJPEG_12( tif, COMPRESSION_JPEG, 1 );
... | * libtiff/tif_jpeg.c: validate BitsPerSample in JPEGSetupEncode() to avoid
undefined behaviour caused by invalid shift exponent.
Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2648 |
0065d78b2d96c804cd0a5586 | primevul | train | train:3365 | 4fd7158322872d711e90f091dbd8673ef32cb1be | unrealircd | https://github.com/unrealircd/unrealircd | https://github.com/unrealircd/unrealircd | https://github.com/unrealircd/unrealircd/commit/f473e355e1dc422c4f019dbf86bc50ba1a34a766 | f473e355e1dc422c4f019dbf86bc50ba1a34a766 | before | true | ae0fc98a04fce80e5b940617b9b3f5e43daa2dba | containers/f4/f473e355e1dc422c4f019dbf86bc50ba1a34a766_before.sif | sha256:7fb68e7ce3ebc391d18a38274d75137972ec25c6ae5a6d97a588a8e532220362 | sha256:5d062a0729815a1c9572a67c914995007c704c7ac75bfcc67b1368b267b13438 | CMD_FUNC | CMD_FUNC(m_authenticate)
{
aClient *agent_p = NULL;
/* Failing to use CAP REQ for sasl is a protocol violation. */
if (!SASL_SERVER || !MyConnect(sptr) || BadPtr(parv[1]) || !CHECKPROTO(sptr, PROTO_SASL))
return 0;
if (sptr->local->sasl_complete)
{
sendto_one(sptr, err_str(ERR_SASLALREADY), me.name, BadPtr(s... | null | [
"CVE-2016-7144"
] | The m_authenticate function in modules/m_sasl.c in UnrealIRCd before 3.2.10.7 and 4.x before 4.0.6 allows remote attackers to spoof certificate fingerprints and consequently log in as another user via a crafted AUTHENTICATE parameter. | [
"CWE-287"
] | null | null | CMD_FUNC(m_authenticate)
{
aClient *agent_p = NULL;
/* Failing to use CAP REQ for sasl is a protocol violation. */
if (!SASL_SERVER || !MyConnect(sptr) || BadPtr(parv[1]) || !CHECKPROTO(sptr, PROTO_SASL))
return 0;
if (sptr->local->sasl_complete)
{
sendto_one(sptr, err_str(ERR_SASLALREADY), me.name, BadPtr(s... | CMD_FUNC(m_authenticate)
{
aClient *agent_p = NULL;
/* Failing to use CAP REQ for sasl is a protocol violation. */
if (!SASL_SERVER || !MyConnect(sptr) || BadPtr(parv[1]) || !CHECKPROTO(sptr, PROTO_SASL))
return 0;
if (sptr->local->sasl_complete)
{
sendto_one(sptr, err_str(ERR_SASLALREADY), me.name, BadPtr(s... | Fix AUTHENTICATE bug |
0065d78b2d96c804cd0a5586 | primevul | train | train:3365 | 4fd7158322872d711e90f091dbd8673ef32cb1be | unrealircd | https://github.com/unrealircd/unrealircd | https://github.com/unrealircd/unrealircd | https://github.com/unrealircd/unrealircd/commit/f473e355e1dc422c4f019dbf86bc50ba1a34a766 | f473e355e1dc422c4f019dbf86bc50ba1a34a766 | after | false | f473e355e1dc422c4f019dbf86bc50ba1a34a766 | containers/f4/f473e355e1dc422c4f019dbf86bc50ba1a34a766_after.sif | sha256:4114d7bc07ddfd0885b5fe052f5096d9b060bb3a58c16c1aec43649357ae6e1f | sha256:06d8a6dd63439cca58895098d8dc168b7495e2f54ce25ce965d1cccbf5bee5c6 | CMD_FUNC | CMD_FUNC(m_authenticate)
{
aClient *agent_p = NULL;
/* Failing to use CAP REQ for sasl is a protocol violation. */
if (!SASL_SERVER || !MyConnect(sptr) || BadPtr(parv[1]) || !CHECKPROTO(sptr, PROTO_SASL))
return 0;
if (sptr->local->sasl_complete)
{
sendto_one(sptr, err_str(ERR_SASLALREADY), me.name, BadPtr(s... | null | [
"CVE-2016-7144"
] | The m_authenticate function in modules/m_sasl.c in UnrealIRCd before 3.2.10.7 and 4.x before 4.0.6 allows remote attackers to spoof certificate fingerprints and consequently log in as another user via a crafted AUTHENTICATE parameter. | [
"CWE-287"
] | null | null | CMD_FUNC(m_authenticate)
{
aClient *agent_p = NULL;
/* Failing to use CAP REQ for sasl is a protocol violation. */
if (!SASL_SERVER || !MyConnect(sptr) || BadPtr(parv[1]) || !CHECKPROTO(sptr, PROTO_SASL))
return 0;
if (sptr->local->sasl_complete)
{
sendto_one(sptr, err_str(ERR_SASLALREADY), me.name, BadPtr(s... | CMD_FUNC(m_authenticate)
{
aClient *agent_p = NULL;
/* Failing to use CAP REQ for sasl is a protocol violation. */
if (!SASL_SERVER || !MyConnect(sptr) || BadPtr(parv[1]) || !CHECKPROTO(sptr, PROTO_SASL))
return 0;
if (sptr->local->sasl_complete)
{
sendto_one(sptr, err_str(ERR_SASLALREADY), me.name, BadPtr(s... | Fix AUTHENTICATE bug |
008369b8805604168845a17e | primevul | train | train:208377 | 4fd7158322872d711e90f091dbd8673ef32cb1be | LibRaw | https://github.com/LibRaw/LibRaw | https://github.com/LibRaw/LibRaw | https://github.com/LibRaw/LibRaw/commit/20ad21c0d87ca80217aee47533d91e633ce1864d | 20ad21c0d87ca80217aee47533d91e633ce1864d | before | true | 89f02a054e863db2c3144384467e1c4099b8a6a0 | containers/20/20ad21c0d87ca80217aee47533d91e633ce1864d_before.sif | sha256:108fb05dad678e963c841801872d8450cdcc2bb1a6bda67b001bdaa6bb12dcef | sha256:6aa06757fc3529a3f82ee42611e7dd2fe5eb9c5b98bac09776b87977ca2f5b08 | LibRaw::unpack_thumb | int LibRaw::unpack_thumb(void)
{
CHECK_ORDER_LOW(LIBRAW_PROGRESS_IDENTIFY);
CHECK_ORDER_BIT(LIBRAW_PROGRESS_THUMB_LOAD);
try
{
if (!libraw_internal_data.internal_data.input)
return LIBRAW_INPUT_CLOSED;
int t_colors = libraw_internal_data.unpacker_data.thumb_misc >> 5 & 7;
int t_bytesps = (li... | unpack_thumb.cpp | [
"CVE-2020-15503"
] | LibRaw before 0.20-RC1 lacks a thumbnail size range check. This affects decoders/unpack_thumb.cpp, postprocessing/mem_image.cpp, and utils/thumb_utils.cpp. For example, malloc(sizeof(libraw_processed_image_t)+T.tlength) occurs without validating T.tlength. | [
"CWE-125"
] | null | null | int LibRaw::unpack_thumb(void)
{
CHECK_ORDER_LOW(LIBRAW_PROGRESS_IDENTIFY);
CHECK_ORDER_BIT(LIBRAW_PROGRESS_THUMB_LOAD);
try
{
if (!libraw_internal_data.internal_data.input)
return LIBRAW_INPUT_CLOSED;
int t_colors = libraw_internal_data.unpacker_data.thumb_misc >> 5 & 7;
int t_bytesps = (li... | int LibRaw::unpack_thumb(void)
{
CHECK_ORDER_LOW(LIBRAW_PROGRESS_IDENTIFY);
CHECK_ORDER_BIT(LIBRAW_PROGRESS_THUMB_LOAD);
#define THUMB_SIZE_CHECKT(A) \
do { \
if (INT64(A) > 1024ULL * 1024ULL * LIBRAW_MAX_THUMBNAIL_MB) throw LIBRAW_EXCEPTION_IO_CORRUPT; \
if (INT64(A) > 0 && INT64(A) < 64ULL) thr... | Thumbnail size range check |
008369b8805604168845a17e | primevul | train | train:208377 | 4fd7158322872d711e90f091dbd8673ef32cb1be | LibRaw | https://github.com/LibRaw/LibRaw | https://github.com/LibRaw/LibRaw | https://github.com/LibRaw/LibRaw/commit/20ad21c0d87ca80217aee47533d91e633ce1864d | 20ad21c0d87ca80217aee47533d91e633ce1864d | after | false | 20ad21c0d87ca80217aee47533d91e633ce1864d | containers/20/20ad21c0d87ca80217aee47533d91e633ce1864d_after.sif | sha256:f89d869e4cbe815840651f2203a4950daee3c2774b611fd4b8b65b0526ede42b | sha256:ad2017d7ab27847afa21a2ee95184b8fd3b5bc2d1ce35e7bcbe52abe3c290938 | LibRaw::unpack_thumb | int LibRaw::unpack_thumb(void)
{
CHECK_ORDER_LOW(LIBRAW_PROGRESS_IDENTIFY);
CHECK_ORDER_BIT(LIBRAW_PROGRESS_THUMB_LOAD);
#define THUMB_SIZE_CHECKT(A) \
do { \
if (INT64(A) > 1024ULL * 1024ULL * LIBRAW_MAX_THUMBNAIL_MB) throw LIBRAW_EXCEPTION_IO_CORRUPT; \
if (INT64(A) > 0 && INT64(A) < 64ULL) thr... | unpack_thumb.cpp | [
"CVE-2020-15503"
] | LibRaw before 0.20-RC1 lacks a thumbnail size range check. This affects decoders/unpack_thumb.cpp, postprocessing/mem_image.cpp, and utils/thumb_utils.cpp. For example, malloc(sizeof(libraw_processed_image_t)+T.tlength) occurs without validating T.tlength. | [
"CWE-125"
] | null | null | int LibRaw::unpack_thumb(void)
{
CHECK_ORDER_LOW(LIBRAW_PROGRESS_IDENTIFY);
CHECK_ORDER_BIT(LIBRAW_PROGRESS_THUMB_LOAD);
try
{
if (!libraw_internal_data.internal_data.input)
return LIBRAW_INPUT_CLOSED;
int t_colors = libraw_internal_data.unpacker_data.thumb_misc >> 5 & 7;
int t_bytesps = (li... | int LibRaw::unpack_thumb(void)
{
CHECK_ORDER_LOW(LIBRAW_PROGRESS_IDENTIFY);
CHECK_ORDER_BIT(LIBRAW_PROGRESS_THUMB_LOAD);
#define THUMB_SIZE_CHECKT(A) \
do { \
if (INT64(A) > 1024ULL * 1024ULL * LIBRAW_MAX_THUMBNAIL_MB) throw LIBRAW_EXCEPTION_IO_CORRUPT; \
if (INT64(A) > 0 && INT64(A) < 64ULL) thr... | Thumbnail size range check |
00a4ed1372f28e9d48567e95 | primevul | train | train:9310 | 4fd7158322872d711e90f091dbd8673ef32cb1be | libsndfile | https://github.com/erikd/libsndfile | https://github.com/libsndfile/libsndfile | https://github.com/erikd/libsndfile/commit/725c7dbb95bfaf8b4bb7b04820e3a00cceea9ce6 | 725c7dbb95bfaf8b4bb7b04820e3a00cceea9ce6 | before | true | eea13650b97611b0ab11904dd661de8bfb393a9c | containers/72/725c7dbb95bfaf8b4bb7b04820e3a00cceea9ce6_before.sif | sha256:7ed835f6cfb07efd03150cc82424fd5a376f98e28c7f9fed977500e4d1ffe201 | sha256:9f49aa5bc1dbff09ca166759021ee2c41bc4b11852f99a3cf98e29e619c01870 | psf_fwrite | psf_fwrite (const void *ptr, sf_count_t bytes, sf_count_t items, SF_PRIVATE *psf)
{ sf_count_t total = 0 ;
ssize_t count ;
if (psf->virtual_io)
return psf->vio.write (ptr, bytes*items, psf->vio_user_data) / bytes ;
items *= bytes ;
/* Do this check after the multiplication above. */
if (items <= 0)
re... | file_io.c | [
"CVE-2014-9756"
] | The psf_fwrite function in file_io.c in libsndfile allows attackers to cause a denial of service (divide-by-zero error and application crash) via unspecified vectors related to the headindex variable. | [
"CWE-189"
] | null | null | psf_fwrite (const void *ptr, sf_count_t bytes, sf_count_t items, SF_PRIVATE *psf)
{ sf_count_t total = 0 ;
ssize_t count ;
if (psf->virtual_io)
return psf->vio.write (ptr, bytes*items, psf->vio_user_data) / bytes ;
items *= bytes ;
/* Do this check after the multiplication above. */
if (items <= 0)
re... | psf_fwrite (const void *ptr, sf_count_t bytes, sf_count_t items, SF_PRIVATE *psf)
{ sf_count_t total = 0 ;
ssize_t count ;
if (psf->virtual_io)
return psf->vio.write (ptr, bytes*items, psf->vio_user_data) / bytes ;
items *= bytes ;
/* Do this check after the multiplication above. */
if (items <= 0)
return 0... | src/file_io.c : Prevent potential divide-by-zero.
Closes: https://github.com/erikd/libsndfile/issues/92 |
00a4ed1372f28e9d48567e95 | primevul | train | train:9310 | 4fd7158322872d711e90f091dbd8673ef32cb1be | libsndfile | https://github.com/erikd/libsndfile | https://github.com/libsndfile/libsndfile | https://github.com/erikd/libsndfile/commit/725c7dbb95bfaf8b4bb7b04820e3a00cceea9ce6 | 725c7dbb95bfaf8b4bb7b04820e3a00cceea9ce6 | after | false | 725c7dbb95bfaf8b4bb7b04820e3a00cceea9ce6 | containers/72/725c7dbb95bfaf8b4bb7b04820e3a00cceea9ce6_after.sif | sha256:c4fdf23f46cecd29e39011adfc8c9083bd81f187a5cf6176f01e4c4d4ac50f0b | sha256:45e3c02fecac512cad9e21d7602de636f4f9ed74c1ea196e9c7a573cd678b0a0 | psf_fwrite | psf_fwrite (const void *ptr, sf_count_t bytes, sf_count_t items, SF_PRIVATE *psf)
{ sf_count_t total = 0 ;
ssize_t count ;
if (psf->virtual_io)
return psf->vio.write (ptr, bytes*items, psf->vio_user_data) / bytes ;
items *= bytes ;
/* Do this check after the multiplication above. */
if (items <= 0)
return 0... | file_io.c | [
"CVE-2014-9756"
] | The psf_fwrite function in file_io.c in libsndfile allows attackers to cause a denial of service (divide-by-zero error and application crash) via unspecified vectors related to the headindex variable. | [
"CWE-189"
] | null | null | psf_fwrite (const void *ptr, sf_count_t bytes, sf_count_t items, SF_PRIVATE *psf)
{ sf_count_t total = 0 ;
ssize_t count ;
if (psf->virtual_io)
return psf->vio.write (ptr, bytes*items, psf->vio_user_data) / bytes ;
items *= bytes ;
/* Do this check after the multiplication above. */
if (items <= 0)
re... | psf_fwrite (const void *ptr, sf_count_t bytes, sf_count_t items, SF_PRIVATE *psf)
{ sf_count_t total = 0 ;
ssize_t count ;
if (psf->virtual_io)
return psf->vio.write (ptr, bytes*items, psf->vio_user_data) / bytes ;
items *= bytes ;
/* Do this check after the multiplication above. */
if (items <= 0)
return 0... | src/file_io.c : Prevent potential divide-by-zero.
Closes: https://github.com/erikd/libsndfile/issues/92 |
00aaf5d54e25af2355b878a8 | primevul | train | train:8585 | 4fd7158322872d711e90f091dbd8673ef32cb1be | Android | null | https://android.googlesource.com/platform/frameworks/av | https://android.googlesource.com/platform/frameworks/av/+/523f6b49c1a2289161f40cf9fe80b92e592e9441 | 523f6b49c1a2289161f40cf9fe80b92e592e9441 | before | true | a9188f89179a7edd301abaf37d644adf5d647a04 | containers/52/523f6b49c1a2289161f40cf9fe80b92e592e9441_before.sif | sha256:1850fb02151a15aae1f18ef5636491bc681590c1a0fb03e9b5bbcdc8b9ea80df | sha256:b579ebf555d43f8230db368a9d218e98ca8251f3feab7923dfbdd89dd333ad5b | HevcParameterSets::addNalUnit | status_t HevcParameterSets::addNalUnit(const uint8_t* data, size_t size) {
uint8_t nalUnitType = (data[0] >> 1) & 0x3f;
status_t err = OK;
switch (nalUnitType) {
case 32: // VPS
err = parseVps(data + 2, size - 2);
break;
case 33: // SPS
err = pa... | null | [
"CVE-2017-0635"
] | A remote denial of service vulnerability in HevcUtils.cpp in libstagefright in Mediaserver could enable an attacker to use a specially crafted file to cause a device hang or reboot. This issue is rated as Low due to details specific to the vulnerability. Product: Android. Versions: 7.0, 7.1.1, 7.1.2. Android ID: A-3546... | [
"CWE-476"
] | null | null | status_t HevcParameterSets::addNalUnit(const uint8_t* data, size_t size) {
uint8_t nalUnitType = (data[0] >> 1) & 0x3f;
status_t err = OK;
switch (nalUnitType) {
case 32: // VPS
err = parseVps(data + 2, size - 2);
break;
case 33: // SPS
err = pa... | status_t HevcParameterSets::addNalUnit(const uint8_t* data, size_t size) {
if (size < 1) {
ALOGE("empty NAL b/35467107");
return ERROR_MALFORMED;
}
uint8_t nalUnitType = (data[0] >> 1) & 0x3f;
status_t err = OK;
switch (nalUnitType) {
case 32: // VPS
if (siz... | null |
00aaf5d54e25af2355b878a8 | primevul | train | train:8585 | 4fd7158322872d711e90f091dbd8673ef32cb1be | Android | null | https://android.googlesource.com/platform/frameworks/av | https://android.googlesource.com/platform/frameworks/av/+/523f6b49c1a2289161f40cf9fe80b92e592e9441 | 523f6b49c1a2289161f40cf9fe80b92e592e9441 | after | false | 523f6b49c1a2289161f40cf9fe80b92e592e9441 | containers/52/523f6b49c1a2289161f40cf9fe80b92e592e9441_after.sif | sha256:b044b52224956d4dd2fe96baee4977cf60b0887a172bd1cdd4aaf78b8c6e13b8 | sha256:00bb38072e9a47960ab4c52505159a5b4677a76e7455c3ec8b2475d5bb334252 | HevcParameterSets::addNalUnit | status_t HevcParameterSets::addNalUnit(const uint8_t* data, size_t size) {
if (size < 1) {
ALOGE("empty NAL b/35467107");
return ERROR_MALFORMED;
}
uint8_t nalUnitType = (data[0] >> 1) & 0x3f;
status_t err = OK;
switch (nalUnitType) {
case 32: // VPS
if (siz... | null | [
"CVE-2017-0635"
] | A remote denial of service vulnerability in HevcUtils.cpp in libstagefright in Mediaserver could enable an attacker to use a specially crafted file to cause a device hang or reboot. This issue is rated as Low due to details specific to the vulnerability. Product: Android. Versions: 7.0, 7.1.1, 7.1.2. Android ID: A-3546... | [
"CWE-476"
] | null | null | status_t HevcParameterSets::addNalUnit(const uint8_t* data, size_t size) {
uint8_t nalUnitType = (data[0] >> 1) & 0x3f;
status_t err = OK;
switch (nalUnitType) {
case 32: // VPS
err = parseVps(data + 2, size - 2);
break;
case 33: // SPS
err = pa... | status_t HevcParameterSets::addNalUnit(const uint8_t* data, size_t size) {
if (size < 1) {
ALOGE("empty NAL b/35467107");
return ERROR_MALFORMED;
}
uint8_t nalUnitType = (data[0] >> 1) & 0x3f;
status_t err = OK;
switch (nalUnitType) {
case 32: // VPS
if (siz... | null |
00bc7388295ff4114ff02111 | primevul | train | train:202950 | 4fd7158322872d711e90f091dbd8673ef32cb1be | sysstat | https://github.com/sysstat/sysstat | https://github.com/sysstat/sysstat | https://github.com/sysstat/sysstat/commit/fbc691eaaa10d0bcea6741d5a223dc3906106548 | fbc691eaaa10d0bcea6741d5a223dc3906106548 | before | true | 7222b79936b374b344739bf1ca8b68ca20d22d6b | containers/fb/fbc691eaaa10d0bcea6741d5a223dc3906106548_before.sif | sha256:0107294f0350aedb9f6e919a97e7d11954753fad95675094f98c9b5522f98f38 | sha256:5146e5babbcbca1bd8e1cdd69be829769b77a1c65af93075ed7e3bdd87452e5a | remap_struct | void remap_struct(unsigned int gtypes_nr[], unsigned int ftypes_nr[],
void *ps, unsigned int f_size, unsigned int g_size)
{
int d;
/* Sanity check */
if (MAP_SIZE(ftypes_nr) > f_size)
return;
/* Remap [unsigned] long fields */
d = gtypes_nr[0] - ftypes_nr[0];
if (d) {
memmove(((char *) ps) + gtypes_nr[0... | sa_common.c | [
"CVE-2018-19416"
] | An issue was discovered in sysstat 12.1.1. The remap_struct function in sa_common.c has an out-of-bounds read during a memmove call, as demonstrated by sadf. | [
"CWE-125"
] | null | null | void remap_struct(unsigned int gtypes_nr[], unsigned int ftypes_nr[],
void *ps, unsigned int f_size, unsigned int g_size)
{
int d;
/* Sanity check */
if (MAP_SIZE(ftypes_nr) > f_size)
return;
/* Remap [unsigned] long fields */
d = gtypes_nr[0] - ftypes_nr[0];
if (d) {
memmove(((char *) ps) + gtypes_nr[0... | void remap_struct(unsigned int gtypes_nr[], unsigned int ftypes_nr[],
void *ps, unsigned int f_size, unsigned int g_size, size_t b_size)
{
int d;
size_t n;
/* Sanity check */
if (MAP_SIZE(ftypes_nr) > f_size)
return;
/* Remap [unsigned] long fields */
d = gtypes_nr[0] - ftypes_nr[0];
if (d) {
n = MINIM... | Fix #196 and #199: Out of bound reads security issues
Check args before calling memmove() and memset() in remap_struct()
function to avoid out of bound reads which would possibly lead to
unknown code execution and/or sadf command crash.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com> |
00bc7388295ff4114ff02111 | primevul | train | train:202950 | 4fd7158322872d711e90f091dbd8673ef32cb1be | sysstat | https://github.com/sysstat/sysstat | https://github.com/sysstat/sysstat | https://github.com/sysstat/sysstat/commit/fbc691eaaa10d0bcea6741d5a223dc3906106548 | fbc691eaaa10d0bcea6741d5a223dc3906106548 | after | false | fbc691eaaa10d0bcea6741d5a223dc3906106548 | containers/fb/fbc691eaaa10d0bcea6741d5a223dc3906106548_after.sif | sha256:4886538f0683bef479e6e60cf9c20e2f4fe2ee6612bf6b51de767c02b67d3793 | sha256:9ecca0d3166c60ce428d7f4e06e946f122104ac6f8d376cf49e21e582c16a06a | remap_struct | void remap_struct(unsigned int gtypes_nr[], unsigned int ftypes_nr[],
void *ps, unsigned int f_size, unsigned int g_size, size_t b_size)
{
int d;
size_t n;
/* Sanity check */
if (MAP_SIZE(ftypes_nr) > f_size)
return;
/* Remap [unsigned] long fields */
d = gtypes_nr[0] - ftypes_nr[0];
if (d) {
n = MINIM... | sa_common.c | [
"CVE-2018-19416"
] | An issue was discovered in sysstat 12.1.1. The remap_struct function in sa_common.c has an out-of-bounds read during a memmove call, as demonstrated by sadf. | [
"CWE-125"
] | null | null | void remap_struct(unsigned int gtypes_nr[], unsigned int ftypes_nr[],
void *ps, unsigned int f_size, unsigned int g_size)
{
int d;
/* Sanity check */
if (MAP_SIZE(ftypes_nr) > f_size)
return;
/* Remap [unsigned] long fields */
d = gtypes_nr[0] - ftypes_nr[0];
if (d) {
memmove(((char *) ps) + gtypes_nr[0... | void remap_struct(unsigned int gtypes_nr[], unsigned int ftypes_nr[],
void *ps, unsigned int f_size, unsigned int g_size, size_t b_size)
{
int d;
size_t n;
/* Sanity check */
if (MAP_SIZE(ftypes_nr) > f_size)
return;
/* Remap [unsigned] long fields */
d = gtypes_nr[0] - ftypes_nr[0];
if (d) {
n = MINIM... | Fix #196 and #199: Out of bound reads security issues
Check args before calling memmove() and memset() in remap_struct()
function to avoid out of bound reads which would possibly lead to
unknown code execution and/or sadf command crash.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com> |
00c32baf9b738e7a9240c429 | primevul | train | train:4266 | 4fd7158322872d711e90f091dbd8673ef32cb1be | libgd | https://github.com/libgd/libgd | https://github.com/php/php-src | https://github.com/php/php-src/commit/c18263e0e0769faee96a5d0ee04b750c442783c6 | c18263e0e0769faee96a5d0ee04b750c442783c6 | before | true | d2d77c028d78add62cde08cf294f9ffb62a5005b | containers/c1/c18263e0e0769faee96a5d0ee04b750c442783c6_before.sif | sha256:384061e9ac2a5960265c9977b8c37772cd3fc1068b88e437a04eaa9646173f91 | sha256:55c592d9ca7e4c02dcedb1cfb084bb4a5c7fa14e155301c099bf24d54b395936 | gdImageWebpCtx | void gdImageWebpCtx (gdImagePtr im, gdIOCtx * outfile, int quantization)
{
uint8_t *argb;
int x, y;
uint8_t *p;
uint8_t *out;
size_t out_size;
if (im == NULL) {
return;
}
if (!gdImageTrueColor(im)) {
zend_error(E_ERROR, "Paletter image not supported by webp");
return;
}
if (quantization == -1) {
q... | null | [
"CVE-2016-7568"
] | Integer overflow in the gdImageWebpCtx function in gd_webp.c in the GD Graphics Library (aka libgd) through 2.2.3, as used in PHP through 7.0.11, allows remote attackers to cause a denial of service (heap-based buffer overflow) or possibly have unspecified other impact via crafted imagewebp and imagedestroy calls. | [
"CWE-190"
] | null | null | void gdImageWebpCtx (gdImagePtr im, gdIOCtx * outfile, int quantization)
{
uint8_t *argb;
int x, y;
uint8_t *p;
uint8_t *out;
size_t out_size;
if (im == NULL) {
return;
}
if (!gdImageTrueColor(im)) {
zend_error(E_ERROR, "Paletter image not supported by webp");
return;
}
if (quantization == -1) {
q... | void gdImageWebpCtx (gdImagePtr im, gdIOCtx * outfile, int quantization)
{
uint8_t *argb;
int x, y;
uint8_t *p;
uint8_t *out;
size_t out_size;
if (im == NULL) {
return;
}
if (!gdImageTrueColor(im)) {
zend_error(E_ERROR, "Paletter image not supported by webp");
return;
}
if (quantization == -1) {
q... | null |
00c32baf9b738e7a9240c429 | primevul | train | train:4266 | 4fd7158322872d711e90f091dbd8673ef32cb1be | libgd | https://github.com/libgd/libgd | https://github.com/php/php-src | https://github.com/php/php-src/commit/c18263e0e0769faee96a5d0ee04b750c442783c6 | c18263e0e0769faee96a5d0ee04b750c442783c6 | after | false | c18263e0e0769faee96a5d0ee04b750c442783c6 | containers/c1/c18263e0e0769faee96a5d0ee04b750c442783c6_after.sif | sha256:eb46bb20cb421895d555149d9dc8ab50da6ff6e6dfddc9390dfbf2901f0c6d85 | sha256:c1d3e6c9e689d8e8c55a1ee59e2188f29bad7fca1ad317bcc971e4685c50729c | gdImageWebpCtx | void gdImageWebpCtx (gdImagePtr im, gdIOCtx * outfile, int quantization)
{
uint8_t *argb;
int x, y;
uint8_t *p;
uint8_t *out;
size_t out_size;
if (im == NULL) {
return;
}
if (!gdImageTrueColor(im)) {
zend_error(E_ERROR, "Paletter image not supported by webp");
return;
}
if (quantization == -1) {
q... | null | [
"CVE-2016-7568"
] | Integer overflow in the gdImageWebpCtx function in gd_webp.c in the GD Graphics Library (aka libgd) through 2.2.3, as used in PHP through 7.0.11, allows remote attackers to cause a denial of service (heap-based buffer overflow) or possibly have unspecified other impact via crafted imagewebp and imagedestroy calls. | [
"CWE-190"
] | null | null | void gdImageWebpCtx (gdImagePtr im, gdIOCtx * outfile, int quantization)
{
uint8_t *argb;
int x, y;
uint8_t *p;
uint8_t *out;
size_t out_size;
if (im == NULL) {
return;
}
if (!gdImageTrueColor(im)) {
zend_error(E_ERROR, "Paletter image not supported by webp");
return;
}
if (quantization == -1) {
q... | void gdImageWebpCtx (gdImagePtr im, gdIOCtx * outfile, int quantization)
{
uint8_t *argb;
int x, y;
uint8_t *p;
uint8_t *out;
size_t out_size;
if (im == NULL) {
return;
}
if (!gdImageTrueColor(im)) {
zend_error(E_ERROR, "Paletter image not supported by webp");
return;
}
if (quantization == -1) {
q... | null |
End of preview. Expand in Data Studio
primevul containers
Before/after Apptainer SIF pairs prepared by Dataset2Container. The Parquet manifests
point to images under containers/; SHA256SUMS authenticates every published file.
function_of_interest contains the source dataset's function body for the row's
variant: the vulnerable function for before, or the fixed function for after.
It is null when that body is unavailable in the source dataset.
- Downloads last month
- 237