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 | prompt large list | 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... | null | 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... | null | 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;
}
| null | 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... | null | 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 | 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:b46609d55d8cc13ad96399b90df904488c831c0d62bd3defd329fdba3a351529 | sha256:7dae8b82b741fb31be07e3ca9012642fffa09bff24311696cefdd3b0364d1cd2 | 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 | 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 | 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 | 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... | null | 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... | null | 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... | null | 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... | null | 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 | 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 | 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... | null | 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... | null | 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 | 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:5def1451046a1b09057936c11c9f843ee57a1242c4aa61389b73cfd77f99c33d | sha256:d649627599169fa3b1cee6d3ea4822a08bf986222849bd3367d93858d2538cfd | 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 | 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 |
010b02dbf38f01935faddc3f | primevul | train | train:215631 | 4fd7158322872d711e90f091dbd8673ef32cb1be | vino | http://git.gnome.org/browse/vino | https://gitlab.gnome.org/GNOME/vino.git | http://git.gnome.org/browse/vino/commit/?id=456dadbb5c5971d3448763a44c05b9ad033e522f | 456dadbb5c5971d3448763a44c05b9ad033e522f | before | true | 02e18bbcb1a1184ef653dd60117abbaf93d4a9fa | containers/45/456dadbb5c5971d3448763a44c05b9ad033e522f_before.sif | sha256:c2b96a74223d458b8b3f7871ee7cb212fcd76278b8eca4b21f032173f7285716 | sha256:38a669bd2fdc7f3aa266b5de8897c6abbe8ea4bee768465d875e9b3a1bd94d8f | rfbSendFramebufferUpdate | rfbSendFramebufferUpdate(rfbClientPtr cl,
sraRegionPtr givenUpdateRegion)
{
sraRectangleIterator* i=NULL;
sraRect rect;
int nUpdateRegionRects;
rfbFramebufferUpdateMsg *fu = (rfbFramebufferUpdateMsg *)cl->updateBuf;
sraRegionPtr updateRegion, updateCopyRegion, tmpRegion, cur... | null | null | [
"CVE-2011-0904"
] | The rfbSendFramebufferUpdate function in server/libvncserver/rfbserver.c in vino-server in Vino 2.x before 2.28.3, 2.32.x before 2.32.2, 3.0.x before 3.0.2, and 3.1.x before 3.1.1, when raw encoding is used, allows remote authenticated users to cause a denial of service (daemon crash) via a large (1) X position or (2) ... | [
"CWE-119"
] | null | null | rfbSendFramebufferUpdate(rfbClientPtr cl,
sraRegionPtr givenUpdateRegion)
{
sraRectangleIterator* i=NULL;
sraRect rect;
int nUpdateRegionRects;
rfbFramebufferUpdateMsg *fu = (rfbFramebufferUpdateMsg *)cl->updateBuf;
sraRegionPtr updateRegion, updateCopyRegion, tmpRegion, cur... | rfbSendFramebufferUpdate(rfbClientPtr cl,
sraRegionPtr givenUpdateRegion)
{
sraRectangleIterator* i=NULL;
sraRect rect;
int nUpdateRegionRects;
rfbFramebufferUpdateMsg *fu = (rfbFramebufferUpdateMsg *)cl->updateBuf;
sraRegionPtr updateRegion, updateCopyRegion, tmpRegion, cur... | Avoid out-of-bounds memory accesses
This fixes two critical security vulnerabilities that lead to an
out-of-bounds memory access with a crafted client framebuffer update
request packet. The dimensions of the update from the packet are checked
to ensure that they are within the screen dimensions.
Thanks to Kevin Chen ... |
010b02dbf38f01935faddc3f | primevul | train | train:215631 | 4fd7158322872d711e90f091dbd8673ef32cb1be | vino | http://git.gnome.org/browse/vino | https://gitlab.gnome.org/GNOME/vino.git | http://git.gnome.org/browse/vino/commit/?id=456dadbb5c5971d3448763a44c05b9ad033e522f | 456dadbb5c5971d3448763a44c05b9ad033e522f | after | false | 456dadbb5c5971d3448763a44c05b9ad033e522f | containers/45/456dadbb5c5971d3448763a44c05b9ad033e522f_after.sif | sha256:0271feb8f3bcee13b368807eabb7b1fe2e917290a4daf4c57fc2c33d65237e02 | sha256:60368b6e5d131e6f89f815974bd80c9a934b414939e925ef86df81451876e3e1 | rfbSendFramebufferUpdate | rfbSendFramebufferUpdate(rfbClientPtr cl,
sraRegionPtr givenUpdateRegion)
{
sraRectangleIterator* i=NULL;
sraRect rect;
int nUpdateRegionRects;
rfbFramebufferUpdateMsg *fu = (rfbFramebufferUpdateMsg *)cl->updateBuf;
sraRegionPtr updateRegion, updateCopyRegion, tmpRegion, cur... | null | null | [
"CVE-2011-0904"
] | The rfbSendFramebufferUpdate function in server/libvncserver/rfbserver.c in vino-server in Vino 2.x before 2.28.3, 2.32.x before 2.32.2, 3.0.x before 3.0.2, and 3.1.x before 3.1.1, when raw encoding is used, allows remote authenticated users to cause a denial of service (daemon crash) via a large (1) X position or (2) ... | [
"CWE-119"
] | null | null | rfbSendFramebufferUpdate(rfbClientPtr cl,
sraRegionPtr givenUpdateRegion)
{
sraRectangleIterator* i=NULL;
sraRect rect;
int nUpdateRegionRects;
rfbFramebufferUpdateMsg *fu = (rfbFramebufferUpdateMsg *)cl->updateBuf;
sraRegionPtr updateRegion, updateCopyRegion, tmpRegion, cur... | rfbSendFramebufferUpdate(rfbClientPtr cl,
sraRegionPtr givenUpdateRegion)
{
sraRectangleIterator* i=NULL;
sraRect rect;
int nUpdateRegionRects;
rfbFramebufferUpdateMsg *fu = (rfbFramebufferUpdateMsg *)cl->updateBuf;
sraRegionPtr updateRegion, updateCopyRegion, tmpRegion, cur... | Avoid out-of-bounds memory accesses
This fixes two critical security vulnerabilities that lead to an
out-of-bounds memory access with a crafted client framebuffer update
request packet. The dimensions of the update from the packet are checked
to ensure that they are within the screen dimensions.
Thanks to Kevin Chen ... |
010bd0d954f67f827a91098e | primevul | train | train:213251 | 4fd7158322872d711e90f091dbd8673ef32cb1be | Pillow | https://github.com/python-pillow/Pillow | https://github.com/python-pillow/Pillow | https://github.com/python-pillow/Pillow/commit/3bf5eddb89afdf690eceaa52bc4d3546ba9a5f87 | 3bf5eddb89afdf690eceaa52bc4d3546ba9a5f87 | before | true | 8ec027867f19633d9adfc5c8b7504d9b609fc5f1 | containers/3b/3bf5eddb89afdf690eceaa52bc4d3546ba9a5f87_before.sif | sha256:e8bb140910572b633fbe03dc8134b91b54b3e4401dbdd3985ed627d69d2a47ac | sha256:3965785b838c03779aa694e102de8053aeba9e1b228824a1adcc96278223e2d0 | j2k_decode_entry | j2k_decode_entry(Imaging im, ImagingCodecState state) {
JPEG2KDECODESTATE *context = (JPEG2KDECODESTATE *)state->context;
opj_stream_t *stream = NULL;
opj_image_t *image = NULL;
opj_codec_t *codec = NULL;
opj_dparameters_t params;
OPJ_COLOR_SPACE color_space;
j2k_unpacker_t unpack = NULL;
... | null | Jpeg2KDecode.c | [
"CVE-2021-25287"
] | An issue was discovered in Pillow before 8.2.0. There is an out-of-bounds read in J2kDecode, in j2ku_graya_la. | [
"CWE-125"
] | null | null | j2k_decode_entry(Imaging im, ImagingCodecState state) {
JPEG2KDECODESTATE *context = (JPEG2KDECODESTATE *)state->context;
opj_stream_t *stream = NULL;
opj_image_t *image = NULL;
opj_codec_t *codec = NULL;
opj_dparameters_t params;
OPJ_COLOR_SPACE color_space;
j2k_unpacker_t unpack = NULL;
... | j2k_decode_entry(Imaging im, ImagingCodecState state) {
JPEG2KDECODESTATE *context = (JPEG2KDECODESTATE *)state->context;
opj_stream_t *stream = NULL;
opj_image_t *image = NULL;
opj_codec_t *codec = NULL;
opj_dparameters_t params;
OPJ_COLOR_SPACE color_space;
j2k_unpacker_t unpack = NULL;
... | Fix OOB Read in Jpeg2KDecode CVE-2021-25287,CVE-2021-25288
* For J2k images with multiple bands, it's legal in to have different
widths for each band, e.g. 1 byte for L, 4 bytes for A
* This dates to Pillow 2.4.0 |
010bd0d954f67f827a91098e | primevul | train | train:213251 | 4fd7158322872d711e90f091dbd8673ef32cb1be | Pillow | https://github.com/python-pillow/Pillow | https://github.com/python-pillow/Pillow | https://github.com/python-pillow/Pillow/commit/3bf5eddb89afdf690eceaa52bc4d3546ba9a5f87 | 3bf5eddb89afdf690eceaa52bc4d3546ba9a5f87 | after | false | 3bf5eddb89afdf690eceaa52bc4d3546ba9a5f87 | containers/3b/3bf5eddb89afdf690eceaa52bc4d3546ba9a5f87_after.sif | sha256:eaaf01ced865a75ffc9029cab8ce07c97380768667a7834a640a6695430c6f6f | sha256:a2b5ce3a7b0313f6c0b2e484ea526d8d2c789e2f66f2b9415e108b4bc2dd4ea1 | j2k_decode_entry | j2k_decode_entry(Imaging im, ImagingCodecState state) {
JPEG2KDECODESTATE *context = (JPEG2KDECODESTATE *)state->context;
opj_stream_t *stream = NULL;
opj_image_t *image = NULL;
opj_codec_t *codec = NULL;
opj_dparameters_t params;
OPJ_COLOR_SPACE color_space;
j2k_unpacker_t unpack = NULL;
... | null | Jpeg2KDecode.c | [
"CVE-2021-25287"
] | An issue was discovered in Pillow before 8.2.0. There is an out-of-bounds read in J2kDecode, in j2ku_graya_la. | [
"CWE-125"
] | null | null | j2k_decode_entry(Imaging im, ImagingCodecState state) {
JPEG2KDECODESTATE *context = (JPEG2KDECODESTATE *)state->context;
opj_stream_t *stream = NULL;
opj_image_t *image = NULL;
opj_codec_t *codec = NULL;
opj_dparameters_t params;
OPJ_COLOR_SPACE color_space;
j2k_unpacker_t unpack = NULL;
... | j2k_decode_entry(Imaging im, ImagingCodecState state) {
JPEG2KDECODESTATE *context = (JPEG2KDECODESTATE *)state->context;
opj_stream_t *stream = NULL;
opj_image_t *image = NULL;
opj_codec_t *codec = NULL;
opj_dparameters_t params;
OPJ_COLOR_SPACE color_space;
j2k_unpacker_t unpack = NULL;
... | Fix OOB Read in Jpeg2KDecode CVE-2021-25287,CVE-2021-25288
* For J2k images with multiple bands, it's legal in to have different
widths for each band, e.g. 1 byte for L, 4 bytes for A
* This dates to Pillow 2.4.0 |
0111671841e0779b39183634 | primevul | train | train:275 | 4fd7158322872d711e90f091dbd8673ef32cb1be | savannah | https://git.savannah.gnu.org/gitweb/?p=gnutls | https://git.savannah.gnu.org/git/freetype/freetype2.git | https://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=29c759284e305ec428703c9a5831d0b1fc3497ef | 29c759284e305ec428703c9a5831d0b1fc3497ef | before | true | f438e069723c1e7a7a226e05f677a5e17e346a67 | containers/29/29c759284e305ec428703c9a5831d0b1fc3497ef_before.sif | sha256:ef0c2b162a010d54f3bfdaaabb5a8f4f0313e4824c8d8765a3d4db9fb8889aab | sha256:5f10a949011f60454a74ac9dfe2fb51b445b242a630a56999dfae825296e64b6 | Ins_GETVARIATION | Ins_GETVARIATION( TT_ExecContext exc,
FT_Long* args )
{
FT_UInt num_axes = exc->face->blend->num_axis;
FT_Fixed* coords = exc->face->blend->normalizedcoords;
FT_UInt i;
if ( BOUNDS( num_axes, exc->stackSize + 1 - exc->top ) )
{
exc->error = FT_THROW( S... | null | null | [
"CVE-2018-6942"
] | An issue was discovered in FreeType 2 through 2.9. A NULL pointer dereference in the Ins_GETVARIATION() function within ttinterp.c could lead to DoS via a crafted font file. | [
"CWE-476"
] | null | null | Ins_GETVARIATION( TT_ExecContext exc,
FT_Long* args )
{
FT_UInt num_axes = exc->face->blend->num_axis;
FT_Fixed* coords = exc->face->blend->normalizedcoords;
FT_UInt i;
if ( BOUNDS( num_axes, exc->stackSize + 1 - exc->top ) )
{
exc->error = FT_THROW( S... | Ins_GETVARIATION( TT_ExecContext exc,
FT_Long* args )
{
FT_UInt num_axes = exc->face->blend->num_axis;
FT_Fixed* coords = exc->face->blend->normalizedcoords;
FT_UInt i;
if ( BOUNDS( num_axes, exc->stackSize + 1 - exc->top ) )
{
exc->error = FT_THROW( S... | null |
0111671841e0779b39183634 | primevul | train | train:275 | 4fd7158322872d711e90f091dbd8673ef32cb1be | savannah | https://git.savannah.gnu.org/gitweb/?p=gnutls | https://git.savannah.gnu.org/git/freetype/freetype2.git | https://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=29c759284e305ec428703c9a5831d0b1fc3497ef | 29c759284e305ec428703c9a5831d0b1fc3497ef | after | false | 29c759284e305ec428703c9a5831d0b1fc3497ef | containers/29/29c759284e305ec428703c9a5831d0b1fc3497ef_after.sif | sha256:384f383fab62a6ae2070cc8bb756cd1012dea23352aa62a863cdf2aa352111a0 | sha256:92c18b68c289a62f156a36653b0a055517b9b5735a716d4acf6d969103b62bcc | Ins_GETVARIATION | Ins_GETVARIATION( TT_ExecContext exc,
FT_Long* args )
{
FT_UInt num_axes = exc->face->blend->num_axis;
FT_Fixed* coords = exc->face->blend->normalizedcoords;
FT_UInt i;
if ( BOUNDS( num_axes, exc->stackSize + 1 - exc->top ) )
{
exc->error = FT_THROW( S... | null | null | [
"CVE-2018-6942"
] | An issue was discovered in FreeType 2 through 2.9. A NULL pointer dereference in the Ins_GETVARIATION() function within ttinterp.c could lead to DoS via a crafted font file. | [
"CWE-476"
] | null | null | Ins_GETVARIATION( TT_ExecContext exc,
FT_Long* args )
{
FT_UInt num_axes = exc->face->blend->num_axis;
FT_Fixed* coords = exc->face->blend->normalizedcoords;
FT_UInt i;
if ( BOUNDS( num_axes, exc->stackSize + 1 - exc->top ) )
{
exc->error = FT_THROW( S... | Ins_GETVARIATION( TT_ExecContext exc,
FT_Long* args )
{
FT_UInt num_axes = exc->face->blend->num_axis;
FT_Fixed* coords = exc->face->blend->normalizedcoords;
FT_UInt i;
if ( BOUNDS( num_axes, exc->stackSize + 1 - exc->top ) )
{
exc->error = FT_THROW( S... | null |
0113cced59c50e01de781c79 | primevul | train | train:10782 | 4fd7158322872d711e90f091dbd8673ef32cb1be | qemu | https://github.com/bonzini/qemu | https://github.com/bonzini/qemu | http://git.qemu.org/?p=qemu.git;a=commit;h=e95c9a493a5a8d6f969e86c9f19f80ffe6587e19 | e95c9a493a5a8d6f969e86c9f19f80ffe6587e19 | before | true | ba42ebb863ab7d40adc79298422ed9596df8f73a | containers/e9/e95c9a493a5a8d6f969e86c9f19f80ffe6587e19_before.sif | sha256:9b0a347e8980698439327b990b60ff159cf65060bc1030f5207dc766f0529423 | sha256:f751a95157341a03ae21e46cb6d20351723617eeca4c93daff6bddf9fb3e69aa | v9fs_read | static void v9fs_read(void *opaque)
{
int32_t fid;
uint64_t off;
ssize_t err = 0;
int32_t count = 0;
size_t offset = 7;
uint32_t max_count;
V9fsFidState *fidp;
V9fsPDU *pdu = opaque;
V9fsState *s = pdu->s;
err = pdu_unmarshal(pdu, offset, "dqd", &fid, &off, &max_count);
if (... | null | 9p.c | [
"CVE-2016-8577"
] | Memory leak in the v9fs_read function in hw/9pfs/9p.c in QEMU (aka Quick Emulator) allows local guest OS administrators to cause a denial of service (memory consumption) via vectors related to an I/O read operation. | [
"CWE-399"
] | null | null | static void v9fs_read(void *opaque)
{
int32_t fid;
uint64_t off;
ssize_t err = 0;
int32_t count = 0;
size_t offset = 7;
uint32_t max_count;
V9fsFidState *fidp;
V9fsPDU *pdu = opaque;
V9fsState *s = pdu->s;
err = pdu_unmarshal(pdu, offset, "dqd", &fid, &off, &max_count);
if (... | static void v9fs_read(void *opaque)
{
int32_t fid;
uint64_t off;
ssize_t err = 0;
int32_t count = 0;
size_t offset = 7;
uint32_t max_count;
V9fsFidState *fidp;
V9fsPDU *pdu = opaque;
V9fsState *s = pdu->s;
err = pdu_unmarshal(pdu, offset, "dqd", &fid, &off, &max_count);
if (... | 9pfs: fix potential host memory leak in v9fs_read
In 9pfs read dispatch function, it doesn't free two QEMUIOVector
object thus causing potential memory leak. This patch avoid this.
Signed-off-by: Li Qiang <liqiang6-s@360.cn>
Signed-off-by: Greg Kurz <groug@kaod.org> |
0113cced59c50e01de781c79 | primevul | train | train:10782 | 4fd7158322872d711e90f091dbd8673ef32cb1be | qemu | https://github.com/bonzini/qemu | https://github.com/bonzini/qemu | http://git.qemu.org/?p=qemu.git;a=commit;h=e95c9a493a5a8d6f969e86c9f19f80ffe6587e19 | e95c9a493a5a8d6f969e86c9f19f80ffe6587e19 | after | false | e95c9a493a5a8d6f969e86c9f19f80ffe6587e19 | containers/e9/e95c9a493a5a8d6f969e86c9f19f80ffe6587e19_after.sif | sha256:862a19c5e40ae9531b374aa4dddcce0bb2d6f9af814316a9cf3656ad29e5660a | sha256:f57c40d028e50e88824c9fb6d994bd13940ecba5c86575b3469a88a7ee13a544 | v9fs_read | static void v9fs_read(void *opaque)
{
int32_t fid;
uint64_t off;
ssize_t err = 0;
int32_t count = 0;
size_t offset = 7;
uint32_t max_count;
V9fsFidState *fidp;
V9fsPDU *pdu = opaque;
V9fsState *s = pdu->s;
err = pdu_unmarshal(pdu, offset, "dqd", &fid, &off, &max_count);
if (... | null | 9p.c | [
"CVE-2016-8577"
] | Memory leak in the v9fs_read function in hw/9pfs/9p.c in QEMU (aka Quick Emulator) allows local guest OS administrators to cause a denial of service (memory consumption) via vectors related to an I/O read operation. | [
"CWE-399"
] | null | null | static void v9fs_read(void *opaque)
{
int32_t fid;
uint64_t off;
ssize_t err = 0;
int32_t count = 0;
size_t offset = 7;
uint32_t max_count;
V9fsFidState *fidp;
V9fsPDU *pdu = opaque;
V9fsState *s = pdu->s;
err = pdu_unmarshal(pdu, offset, "dqd", &fid, &off, &max_count);
if (... | static void v9fs_read(void *opaque)
{
int32_t fid;
uint64_t off;
ssize_t err = 0;
int32_t count = 0;
size_t offset = 7;
uint32_t max_count;
V9fsFidState *fidp;
V9fsPDU *pdu = opaque;
V9fsState *s = pdu->s;
err = pdu_unmarshal(pdu, offset, "dqd", &fid, &off, &max_count);
if (... | 9pfs: fix potential host memory leak in v9fs_read
In 9pfs read dispatch function, it doesn't free two QEMUIOVector
object thus causing potential memory leak. This patch avoid this.
Signed-off-by: Li Qiang <liqiang6-s@360.cn>
Signed-off-by: Greg Kurz <groug@kaod.org> |
0133cd575ce86596b6ed8e59 | primevul | train | train:8144 | 4fd7158322872d711e90f091dbd8673ef32cb1be | Android | null | https://android.googlesource.com/platform/frameworks/opt/net/wifi | https://android.googlesource.com/platform/frameworks/opt/net/wifi/+/a209ff12ba9617c10550678ff93d01fb72a33399 | a209ff12ba9617c10550678ff93d01fb72a33399 | before | true | 7a0e978a5ba16f237c7ef8aac9cb6154d2d183bd | containers/a2/a209ff12ba9617c10550678ff93d01fb72a33399_before.sif | sha256:0418c66a3e5aef1ea3ed6cbfa4e169c2bc8fb4c3076a7bf81c5f62a62e0e8a1d | sha256:a35c2099c8fd166742d7fa7d0f26cdbbec21bfcb6bd372bab66f184e0cc2c6f3 | parseHexByte | static byte parseHexByte(const char * &str) {
byte b = parseHexChar(str[0]);
if (str[1] == ':' || str[1] == '\0') {
str += 2;
return b;
} else {
b = b << 4 | parseHexChar(str[1]);
str += 3;
return b;
}
}
| null | null | [
"CVE-2016-3837"
] | service/jni/com_android_server_wifi_WifiNative.cpp in Wi-Fi in Android 5.0.x before 5.0.2, 5.1.x before 5.1.1, and 6.x before 2016-08-01 allows attackers to obtain sensitive information via a crafted application that provides a MAC address with too few characters, aka internal bug 28164077. | [
"CWE-200"
] | null | null | static byte parseHexByte(const char * &str) {
byte b = parseHexChar(str[0]);
if (str[1] == ':' || str[1] == '\0') {
str += 2;
return b;
} else {
b = b << 4 | parseHexChar(str[1]);
str += 3;
return b;
}
}
| static byte parseHexByte(const char * &str) {
if (str[0] == '\0') {
ALOGE("Passed an empty string");
return 0;
}
byte b = parseHexChar(str[0]);
if (str[1] == '\0' || str[1] == ':') {
str ++;
} else {
b = b << 4 | parseHexChar(str[1]);
str += 2;
}
... | null |
0133cd575ce86596b6ed8e59 | primevul | train | train:8144 | 4fd7158322872d711e90f091dbd8673ef32cb1be | Android | null | https://android.googlesource.com/platform/frameworks/opt/net/wifi | https://android.googlesource.com/platform/frameworks/opt/net/wifi/+/a209ff12ba9617c10550678ff93d01fb72a33399 | a209ff12ba9617c10550678ff93d01fb72a33399 | after | false | a209ff12ba9617c10550678ff93d01fb72a33399 | containers/a2/a209ff12ba9617c10550678ff93d01fb72a33399_after.sif | sha256:93d191f1453c3c4d5edfb6305263d717c047b96328f8dc585461c8c094984193 | sha256:76f278bdc7de09785175fd42f95dc6015b89a000ec5352a1a3e619b9eb8ebc55 | parseHexByte | static byte parseHexByte(const char * &str) {
if (str[0] == '\0') {
ALOGE("Passed an empty string");
return 0;
}
byte b = parseHexChar(str[0]);
if (str[1] == '\0' || str[1] == ':') {
str ++;
} else {
b = b << 4 | parseHexChar(str[1]);
str += 2;
}
... | null | null | [
"CVE-2016-3837"
] | service/jni/com_android_server_wifi_WifiNative.cpp in Wi-Fi in Android 5.0.x before 5.0.2, 5.1.x before 5.1.1, and 6.x before 2016-08-01 allows attackers to obtain sensitive information via a crafted application that provides a MAC address with too few characters, aka internal bug 28164077. | [
"CWE-200"
] | null | null | static byte parseHexByte(const char * &str) {
byte b = parseHexChar(str[0]);
if (str[1] == ':' || str[1] == '\0') {
str += 2;
return b;
} else {
b = b << 4 | parseHexChar(str[1]);
str += 3;
return b;
}
}
| static byte parseHexByte(const char * &str) {
if (str[0] == '\0') {
ALOGE("Passed an empty string");
return 0;
}
byte b = parseHexChar(str[0]);
if (str[1] == '\0' || str[1] == ':') {
str ++;
} else {
b = b << 4 | parseHexChar(str[1]);
str += 2;
}
... | null |
01387f979dd5c305b624dc2c | primevul | train | train:214275 | 4fd7158322872d711e90f091dbd8673ef32cb1be | linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux | https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=34fad54c2537f7c99d07375e50cb30aa3c23bd83 | 34fad54c2537f7c99d07375e50cb30aa3c23bd83 | before | true | 79774d6bfacb40699ecd5a343e5d4ac5a9cdd173 | containers/34/34fad54c2537f7c99d07375e50cb30aa3c23bd83_before.sif | sha256:a6357c7b23f36845ecdb7847bbda071d5a58fcf87b71c2d75ed025410bde9355 | sha256:e6be798b75909d1797afc0749afa849c28584cf3bbc1b5453f9872004cfd196b | __skb_flow_dissect | bool __skb_flow_dissect(const struct sk_buff *skb,
struct flow_dissector *flow_dissector,
void *target_container,
void *data, __be16 proto, int nhoff, int hlen,
unsigned int flags)
{
struct flow_dissector_key_control *key_control;
struct flow_dissector_key_basic *key_basic;
struct flow_dissector_key_addr... | null | flow_dissector.c | [
"CVE-2017-13715"
] | The __skb_flow_dissect function in net/core/flow_dissector.c in the Linux kernel before 4.3 does not ensure that n_proto, ip_proto, and thoff are initialized, which allows remote attackers to cause a denial of service (system crash) or possibly execute arbitrary code via a single crafted MPLS packet. | [
"CWE-665"
] | null | null | bool __skb_flow_dissect(const struct sk_buff *skb,
struct flow_dissector *flow_dissector,
void *target_container,
void *data, __be16 proto, int nhoff, int hlen,
unsigned int flags)
{
struct flow_dissector_key_control *key_control;
struct flow_dissector_key_basic *key_basic;
struct flow_dissector_key_addr... | bool __skb_flow_dissect(const struct sk_buff *skb,
struct flow_dissector *flow_dissector,
void *target_container,
void *data, __be16 proto, int nhoff, int hlen,
unsigned int flags)
{
struct flow_dissector_key_control *key_control;
struct flow_dissector_key_basic *key_basic;
struct flow_dissector_key_addr... | net: __skb_flow_dissect() must cap its return value
After Tom patch, thoff field could point past the end of the buffer,
this could fool some callers.
If an skb was provided, skb->len should be the upper limit.
If not, hlen is supposed to be the upper limit.
Fixes: a6e544b0a88b ("flow_dissector: Jump to exit code in... |
01387f979dd5c305b624dc2c | primevul | train | train:214275 | 4fd7158322872d711e90f091dbd8673ef32cb1be | linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux | https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=34fad54c2537f7c99d07375e50cb30aa3c23bd83 | 34fad54c2537f7c99d07375e50cb30aa3c23bd83 | after | false | 34fad54c2537f7c99d07375e50cb30aa3c23bd83 | containers/34/34fad54c2537f7c99d07375e50cb30aa3c23bd83_after.sif | sha256:20cd3e2e7ebd7576cd1eec131e79f13363f9c8b406d847481053ce70e3c72097 | sha256:05d4f4f8e24e0597d6546dba965d4fd81f74cdecad762198f0c7c1cf90e5ff57 | __skb_flow_dissect | bool __skb_flow_dissect(const struct sk_buff *skb,
struct flow_dissector *flow_dissector,
void *target_container,
void *data, __be16 proto, int nhoff, int hlen,
unsigned int flags)
{
struct flow_dissector_key_control *key_control;
struct flow_dissector_key_basic *key_basic;
struct flow_dissector_key_addr... | null | flow_dissector.c | [
"CVE-2017-13715"
] | The __skb_flow_dissect function in net/core/flow_dissector.c in the Linux kernel before 4.3 does not ensure that n_proto, ip_proto, and thoff are initialized, which allows remote attackers to cause a denial of service (system crash) or possibly execute arbitrary code via a single crafted MPLS packet. | [
"CWE-665"
] | null | null | bool __skb_flow_dissect(const struct sk_buff *skb,
struct flow_dissector *flow_dissector,
void *target_container,
void *data, __be16 proto, int nhoff, int hlen,
unsigned int flags)
{
struct flow_dissector_key_control *key_control;
struct flow_dissector_key_basic *key_basic;
struct flow_dissector_key_addr... | bool __skb_flow_dissect(const struct sk_buff *skb,
struct flow_dissector *flow_dissector,
void *target_container,
void *data, __be16 proto, int nhoff, int hlen,
unsigned int flags)
{
struct flow_dissector_key_control *key_control;
struct flow_dissector_key_basic *key_basic;
struct flow_dissector_key_addr... | net: __skb_flow_dissect() must cap its return value
After Tom patch, thoff field could point past the end of the buffer,
this could fool some callers.
If an skb was provided, skb->len should be the upper limit.
If not, hlen is supposed to be the upper limit.
Fixes: a6e544b0a88b ("flow_dissector: Jump to exit code in... |
013b0885aabbb2853257ba09 | primevul | train | train:199228 | 4fd7158322872d711e90f091dbd8673ef32cb1be | mysql-server | https://github.com/mysql/mysql-server | https://github.com/mysql/mysql-server | https://github.com/mysql/mysql-server/commit/5ac61b2af0cf37eeed5050a91819d6d273f037a5 | 5ac61b2af0cf37eeed5050a91819d6d273f037a5 | before | true | f7316aa0c9a3909fc7498e7b95d5d3af044a7e21 | containers/5a/5ac61b2af0cf37eeed5050a91819d6d273f037a5_before.sif | sha256:1ebf1f605026d60ac677d88ac3e27c7fecc04cdc8991c5261506b920b785f541 | sha256:b3b0d5c119dac68d9802300e686bcade0bc07ab2d01124f10532e35025e8812c | add_line | static bool add_line(String &buffer,char *line,char *in_string,
bool *ml_comment, bool truncated)
{
uchar inchar;
char buff[80], *pos, *out;
COMMANDS *com;
bool need_space= 0;
bool ss_comment= 0;
DBUG_ENTER("add_line");
if (!line[0] && buffer.is_empty())
DBUG_RETURN(0);
#ifdef HA... | null | mysql.cc | [
"CVE-2017-10379"
] | Vulnerability in the MySQL Server component of Oracle MySQL (subcomponent: Client programs). Supported versions that are affected are 5.5.57 and earlier, 5.6.37 and earlier and 5.7.19 and earlier. Easily exploitable vulnerability allows low privileged attacker with network access via multiple protocols to compromise My... | [
"CWE-863"
] | null | null | static bool add_line(String &buffer,char *line,char *in_string,
bool *ml_comment, bool truncated)
{
uchar inchar;
char buff[80], *pos, *out;
COMMANDS *com;
bool need_space= 0;
bool ss_comment= 0;
DBUG_ENTER("add_line");
if (!line[0] && buffer.is_empty())
DBUG_RETURN(0);
#ifdef HA... | static bool add_line(String &buffer,char *line,char *in_string,
bool *ml_comment, bool truncated)
{
uchar inchar;
char buff[80], *pos, *out;
COMMANDS *com;
bool need_space= 0;
bool ss_comment= 0;
DBUG_ENTER("add_line");
if (!line[0] && buffer.is_empty())
DBUG_RETURN(0);
#ifdef HA... | Bug#26372491 - RCE THROUGH THE MISHANDLE OF BACKSLASH
DESCRIPTION:
===========
The bug is related to incorrect parsing of SQL queries
when typed in on the CLI. The incorrect parsing can
result in unexpected results.
ANALYSIS:
========
The scenarios mainly happens for identifier names
with a typical combination of bac... |
013b0885aabbb2853257ba09 | primevul | train | train:199228 | 4fd7158322872d711e90f091dbd8673ef32cb1be | mysql-server | https://github.com/mysql/mysql-server | https://github.com/mysql/mysql-server | https://github.com/mysql/mysql-server/commit/5ac61b2af0cf37eeed5050a91819d6d273f037a5 | 5ac61b2af0cf37eeed5050a91819d6d273f037a5 | after | false | 5ac61b2af0cf37eeed5050a91819d6d273f037a5 | containers/5a/5ac61b2af0cf37eeed5050a91819d6d273f037a5_after.sif | sha256:b649a02db018accdf07b4087887f93d6fb46f2731e557afc82d49a663e85c005 | sha256:cdeea8d2143646ade8b01eaec9cd7dc012ae347f74f065ce6b8c1820414178b6 | add_line | static bool add_line(String &buffer,char *line,char *in_string,
bool *ml_comment, bool truncated)
{
uchar inchar;
char buff[80], *pos, *out;
COMMANDS *com;
bool need_space= 0;
bool ss_comment= 0;
DBUG_ENTER("add_line");
if (!line[0] && buffer.is_empty())
DBUG_RETURN(0);
#ifdef HA... | null | mysql.cc | [
"CVE-2017-10379"
] | Vulnerability in the MySQL Server component of Oracle MySQL (subcomponent: Client programs). Supported versions that are affected are 5.5.57 and earlier, 5.6.37 and earlier and 5.7.19 and earlier. Easily exploitable vulnerability allows low privileged attacker with network access via multiple protocols to compromise My... | [
"CWE-863"
] | null | null | static bool add_line(String &buffer,char *line,char *in_string,
bool *ml_comment, bool truncated)
{
uchar inchar;
char buff[80], *pos, *out;
COMMANDS *com;
bool need_space= 0;
bool ss_comment= 0;
DBUG_ENTER("add_line");
if (!line[0] && buffer.is_empty())
DBUG_RETURN(0);
#ifdef HA... | static bool add_line(String &buffer,char *line,char *in_string,
bool *ml_comment, bool truncated)
{
uchar inchar;
char buff[80], *pos, *out;
COMMANDS *com;
bool need_space= 0;
bool ss_comment= 0;
DBUG_ENTER("add_line");
if (!line[0] && buffer.is_empty())
DBUG_RETURN(0);
#ifdef HA... | Bug#26372491 - RCE THROUGH THE MISHANDLE OF BACKSLASH
DESCRIPTION:
===========
The bug is related to incorrect parsing of SQL queries
when typed in on the CLI. The incorrect parsing can
result in unexpected results.
ANALYSIS:
========
The scenarios mainly happens for identifier names
with a typical combination of bac... |
014250b8c6fb259fc531653b | primevul | train | train:3538 | 4fd7158322872d711e90f091dbd8673ef32cb1be | texlive-source | https://github.com/TeX-Live/texlive-source | https://github.com/TeX-Live/texlive-source | https://github.com/TeX-Live/texlive-source/commit/6ed0077520e2b0da1fd060c7f88db7b2e6068e4c | 6ed0077520e2b0da1fd060c7f88db7b2e6068e4c | before | true | 05b95467a0001b7fa7474dbbbae7669a2c51b751 | containers/6e/6ed0077520e2b0da1fd060c7f88db7b2e6068e4c_before.sif | sha256:22f43483bb0b4e1b627398f8efef61693591a0d73df220b0241c160a578b0425 | sha256:95c4b988b74d215c4a09ef897e5351715ce0b255149a41ddd8bb153cfa2876d1 | t1_check_unusual_charstring | static void t1_check_unusual_charstring(void)
{
char *p = strstr(t1_line_array, charstringname) + strlen(charstringname);
int i;
/*tex If no number follows |/CharStrings|, let's read the next line. */
if (sscanf(p, "%i", &i) != 1) {
strcpy(t1_buf_array, t1_line_array);
t1_getline();
... | null | writet1.c | [
"CVE-2018-17407"
] | An issue was discovered in t1_check_unusual_charstring functions in writet1.c files in TeX Live before 2018-09-21. A buffer overflow in the handling of Type 1 fonts allows arbitrary code execution when a malicious font is loaded by one of the vulnerable tools: pdflatex, pdftex, dvips, or luatex. | [
"CWE-119"
] | null | null | static void t1_check_unusual_charstring(void)
{
char *p = strstr(t1_line_array, charstringname) + strlen(charstringname);
int i;
/*tex If no number follows |/CharStrings|, let's read the next line. */
if (sscanf(p, "%i", &i) != 1) {
strcpy(t1_buf_array, t1_line_array);
t1_getline();
... | static void t1_check_unusual_charstring(void)
{
char *p = strstr(t1_line_array, charstringname) + strlen(charstringname);
int i;
/*tex If no number follows |/CharStrings|, let's read the next line. */
if (sscanf(p, "%i", &i) != 1) {
strcpy(t1_buf_array, t1_line_array);
t1_getline();
... | writet1 protection against buffer overflow
git-svn-id: svn://tug.org/texlive/trunk/Build/source@48697 c570f23f-e606-0410-a88d-b1316a301751 |
014250b8c6fb259fc531653b | primevul | train | train:3538 | 4fd7158322872d711e90f091dbd8673ef32cb1be | texlive-source | https://github.com/TeX-Live/texlive-source | https://github.com/TeX-Live/texlive-source | https://github.com/TeX-Live/texlive-source/commit/6ed0077520e2b0da1fd060c7f88db7b2e6068e4c | 6ed0077520e2b0da1fd060c7f88db7b2e6068e4c | after | false | 6ed0077520e2b0da1fd060c7f88db7b2e6068e4c | containers/6e/6ed0077520e2b0da1fd060c7f88db7b2e6068e4c_after.sif | sha256:8956baf51fd51b27256cfbfaa1ce0e285dfa8790fd041e93d7d3dd3aab02bb36 | sha256:34d410bfb3cdfab99961c1667dbef8137d59ac70192ca7c27d31f08ffc1f65b1 | t1_check_unusual_charstring | static void t1_check_unusual_charstring(void)
{
char *p = strstr(t1_line_array, charstringname) + strlen(charstringname);
int i;
/*tex If no number follows |/CharStrings|, let's read the next line. */
if (sscanf(p, "%i", &i) != 1) {
strcpy(t1_buf_array, t1_line_array);
t1_getline();
... | null | writet1.c | [
"CVE-2018-17407"
] | An issue was discovered in t1_check_unusual_charstring functions in writet1.c files in TeX Live before 2018-09-21. A buffer overflow in the handling of Type 1 fonts allows arbitrary code execution when a malicious font is loaded by one of the vulnerable tools: pdflatex, pdftex, dvips, or luatex. | [
"CWE-119"
] | null | null | static void t1_check_unusual_charstring(void)
{
char *p = strstr(t1_line_array, charstringname) + strlen(charstringname);
int i;
/*tex If no number follows |/CharStrings|, let's read the next line. */
if (sscanf(p, "%i", &i) != 1) {
strcpy(t1_buf_array, t1_line_array);
t1_getline();
... | static void t1_check_unusual_charstring(void)
{
char *p = strstr(t1_line_array, charstringname) + strlen(charstringname);
int i;
/*tex If no number follows |/CharStrings|, let's read the next line. */
if (sscanf(p, "%i", &i) != 1) {
strcpy(t1_buf_array, t1_line_array);
t1_getline();
... | writet1 protection against buffer overflow
git-svn-id: svn://tug.org/texlive/trunk/Build/source@48697 c570f23f-e606-0410-a88d-b1316a301751 |
015b1b8a365755e150170a4c | primevul | train | train:210099 | 4fd7158322872d711e90f091dbd8673ef32cb1be | ImageMagick6 | https://github.com/ImageMagick/ImageMagick6 | https://github.com/ImageMagick/ImageMagick6 | https://github.com/ImageMagick/ImageMagick6/commit/5caef6e97f3f575cf7bea497865a4c1e624b8010 | 5caef6e97f3f575cf7bea497865a4c1e624b8010 | before | true | 90b00cd719ab3106b127a6b5c1029e37d46bedec | containers/5c/5caef6e97f3f575cf7bea497865a4c1e624b8010_before.sif | sha256:59a8dcd2946f5a118079307b2b7ec8cba5c7cddd3ee3d1b73c75963f612495b7 | sha256:a82fafc61532b638decd9afda3eb0df023f0d3fe28398342caadf2be867a7b5b | ReadMATImage | static Image *ReadMATImage(const ImageInfo *image_info,ExceptionInfo *exception)
{
Image *image, *image2=NULL,
*rotated_image;
PixelPacket *q;
unsigned int status;
MATHeader MATLAB_HDR;
size_t size;
size_t CellType;
QuantumInfo *quantum_info;
ImageInfo *clone_info;
int i;
ssize_t ldblk;
unsign... | null | mat.c | [
"CVE-2019-15140"
] | coders/mat.c in ImageMagick 7.0.8-43 Q16 allows remote attackers to cause a denial of service (use-after-free and application crash) or possibly have unspecified other impact by crafting a Matlab image file that is mishandled in ReadImage in MagickCore/constitute.c. | [
"CWE-416"
] | null | null | static Image *ReadMATImage(const ImageInfo *image_info,ExceptionInfo *exception)
{
Image *image, *image2=NULL,
*rotated_image;
PixelPacket *q;
unsigned int status;
MATHeader MATLAB_HDR;
size_t size;
size_t CellType;
QuantumInfo *quantum_info;
ImageInfo *clone_info;
int i;
ssize_t ldblk;
unsign... | static Image *ReadMATImage(const ImageInfo *image_info,ExceptionInfo *exception)
{
Image *image, *image2=NULL,
*rotated_image;
PixelPacket *q;
unsigned int status;
MATHeader MATLAB_HDR;
size_t size;
size_t CellType;
QuantumInfo *quantum_info;
ImageInfo *clone_info;
int i;
ssize_t ldblk;
unsign... | https://github.com/ImageMagick/ImageMagick/issues/1554 |
015b1b8a365755e150170a4c | primevul | train | train:210099 | 4fd7158322872d711e90f091dbd8673ef32cb1be | ImageMagick6 | https://github.com/ImageMagick/ImageMagick6 | https://github.com/ImageMagick/ImageMagick6 | https://github.com/ImageMagick/ImageMagick6/commit/5caef6e97f3f575cf7bea497865a4c1e624b8010 | 5caef6e97f3f575cf7bea497865a4c1e624b8010 | after | false | 5caef6e97f3f575cf7bea497865a4c1e624b8010 | containers/5c/5caef6e97f3f575cf7bea497865a4c1e624b8010_after.sif | sha256:eee08585a4249dceb5c41b6b97ae972b6602f62d690d9682efcb9efc5fb5a537 | sha256:23c8edac658398734408555297dd5acaaa4b01633b290a83d84d6059922865a6 | ReadMATImage | static Image *ReadMATImage(const ImageInfo *image_info,ExceptionInfo *exception)
{
Image *image, *image2=NULL,
*rotated_image;
PixelPacket *q;
unsigned int status;
MATHeader MATLAB_HDR;
size_t size;
size_t CellType;
QuantumInfo *quantum_info;
ImageInfo *clone_info;
int i;
ssize_t ldblk;
unsign... | null | mat.c | [
"CVE-2019-15140"
] | coders/mat.c in ImageMagick 7.0.8-43 Q16 allows remote attackers to cause a denial of service (use-after-free and application crash) or possibly have unspecified other impact by crafting a Matlab image file that is mishandled in ReadImage in MagickCore/constitute.c. | [
"CWE-416"
] | null | null | static Image *ReadMATImage(const ImageInfo *image_info,ExceptionInfo *exception)
{
Image *image, *image2=NULL,
*rotated_image;
PixelPacket *q;
unsigned int status;
MATHeader MATLAB_HDR;
size_t size;
size_t CellType;
QuantumInfo *quantum_info;
ImageInfo *clone_info;
int i;
ssize_t ldblk;
unsign... | static Image *ReadMATImage(const ImageInfo *image_info,ExceptionInfo *exception)
{
Image *image, *image2=NULL,
*rotated_image;
PixelPacket *q;
unsigned int status;
MATHeader MATLAB_HDR;
size_t size;
size_t CellType;
QuantumInfo *quantum_info;
ImageInfo *clone_info;
int i;
ssize_t ldblk;
unsign... | https://github.com/ImageMagick/ImageMagick/issues/1554 |
017edda269c2326f4086ab25 | primevul | train | train:3027 | 4fd7158322872d711e90f091dbd8673ef32cb1be | firejail | https://github.com/netblue30/firejail | https://github.com/netblue30/firejail | https://github.com/netblue30/firejail/commit/6b8dba29d73257311564ee7f27b9b14758cc693e | 6b8dba29d73257311564ee7f27b9b14758cc693e | before | true | d37421f8b1cc0f8c6f40523169f02447eaba9405 | containers/6b/6b8dba29d73257311564ee7f27b9b14758cc693e_before.sif | sha256:bf5a04be3f29b086316351e7b3a47fbde842dce1271e1c813d9d6575c252cdfe | sha256:1bfca89b9a1a6112ccedb973be8666719a6940c5378a20d3fec9e5756f9a68ad | detect_allow_debuggers | static void detect_allow_debuggers(int argc, char **argv) {
int i;
for (i = 1; i < argc; i++) {
if (strcmp(argv[i], "--allow-debuggers") == 0) {
arg_allow_debuggers = 1;
break;
}
if (strcmp(argv[i], "--") == 0)
break;
if (strncmp(argv[i], "--", 2) != 0)
break;
}
}
| null | null | [
"CVE-2017-5206"
] | Firejail before 0.9.44.4, when running on a Linux kernel before 4.8, allows context-dependent attackers to bypass a seccomp-based sandbox protection mechanism via the --allow-debuggers argument. | [
"CWE-703"
] | null | null | static void detect_allow_debuggers(int argc, char **argv) {
int i;
for (i = 1; i < argc; i++) {
if (strcmp(argv[i], "--allow-debuggers") == 0) {
arg_allow_debuggers = 1;
break;
}
if (strcmp(argv[i], "--") == 0)
break;
if (strncmp(argv[i], "--", 2) != 0)
break;
}
}
| static void detect_quiet(int argc, char **argv) {
int i;
for (i = 1; i < argc; i++) {
if (strcmp(argv[i], "--quiet") == 0) {
arg_quiet = 1;
break;
}
if (strcmp(argv[i], "--") == 0)
break;
if (strncmp(argv[i], "--", 2) != 0)
break;
}
}
| security fix |
017edda269c2326f4086ab25 | primevul | train | train:3027 | 4fd7158322872d711e90f091dbd8673ef32cb1be | firejail | https://github.com/netblue30/firejail | https://github.com/netblue30/firejail | https://github.com/netblue30/firejail/commit/6b8dba29d73257311564ee7f27b9b14758cc693e | 6b8dba29d73257311564ee7f27b9b14758cc693e | after | false | 6b8dba29d73257311564ee7f27b9b14758cc693e | containers/6b/6b8dba29d73257311564ee7f27b9b14758cc693e_after.sif | sha256:f76e813a8c2b75a93a045eb12b6e723c5cc99e8ffaabde5a24bec100b0e271fc | sha256:7720533255b1bec5a621226cc12308dea0d69ff3d208ecdd7d6dab28dd554239 | detect_allow_debuggers | static void detect_quiet(int argc, char **argv) {
int i;
for (i = 1; i < argc; i++) {
if (strcmp(argv[i], "--quiet") == 0) {
arg_quiet = 1;
break;
}
if (strcmp(argv[i], "--") == 0)
break;
if (strncmp(argv[i], "--", 2) != 0)
break;
}
}
| null | null | [
"CVE-2017-5206"
] | Firejail before 0.9.44.4, when running on a Linux kernel before 4.8, allows context-dependent attackers to bypass a seccomp-based sandbox protection mechanism via the --allow-debuggers argument. | [
"CWE-703"
] | null | null | static void detect_allow_debuggers(int argc, char **argv) {
int i;
for (i = 1; i < argc; i++) {
if (strcmp(argv[i], "--allow-debuggers") == 0) {
arg_allow_debuggers = 1;
break;
}
if (strcmp(argv[i], "--") == 0)
break;
if (strncmp(argv[i], "--", 2) != 0)
break;
}
}
| static void detect_quiet(int argc, char **argv) {
int i;
for (i = 1; i < argc; i++) {
if (strcmp(argv[i], "--quiet") == 0) {
arg_quiet = 1;
break;
}
if (strcmp(argv[i], "--") == 0)
break;
if (strncmp(argv[i], "--", 2) != 0)
break;
}
}
| security fix |
0192c284ff8cc8bb870d5ddb | primevul | train | train:3805 | 4fd7158322872d711e90f091dbd8673ef32cb1be | miniupnp | https://github.com/miniupnp/miniupnp | https://github.com/miniupnp/miniupnp | https://github.com/miniupnp/miniupnp/commit/7aeb624b44f86d335841242ff427433190e7168a | 7aeb624b44f86d335841242ff427433190e7168a | before | true | 7492fe42c280b57d9579db4f3a2a34366874f743 | containers/7a/7aeb624b44f86d335841242ff427433190e7168a_before.sif | sha256:75a5bc91c77508b8e6ed67139ef8d509f1570509edb75c86627f5cb599dfc304 | sha256:a170751d3a201a24ca22279b5bec9dd1becbf1a5a6d2055cdcb4eda54e074cf2 | ParseNameValue | ParseNameValue(const char * buffer, int bufsize,
struct NameValueParserData * data)
{
struct xmlparser parser;
data->l_head = NULL;
data->portListing = NULL;
data->portListingLength = 0;
/* init xmlparser object */
parser.xmlstart = buffer;
parser.xmlsize = bufsize;
parser.data = data;
par... | null | upnpreplyparse.c | [
"CVE-2017-1000494"
] | Uninitialized stack variable vulnerability in NameValueParserEndElt (upnpreplyparse.c) in miniupnpd < 2.0 allows an attacker to cause Denial of Service (Segmentation fault and Memory Corruption) or possibly have unspecified other impact | [
"CWE-119"
] | null | null | ParseNameValue(const char * buffer, int bufsize,
struct NameValueParserData * data)
{
struct xmlparser parser;
data->l_head = NULL;
data->portListing = NULL;
data->portListingLength = 0;
/* init xmlparser object */
parser.xmlstart = buffer;
parser.xmlsize = bufsize;
parser.data = data;
par... | ParseNameValue(const char * buffer, int bufsize,
struct NameValueParserData * data)
{
struct xmlparser parser;
memset(data, 0, sizeof(struct NameValueParserData));
/* init xmlparser object */
parser.xmlstart = buffer;
parser.xmlsize = bufsize;
parser.data = data;
parser.starteltfunc = NameVa... | properly initialize data structure for SOAP parsing in ParseNameValue()
topelt field was not properly initialized.
should fix #268 |
0192c284ff8cc8bb870d5ddb | primevul | train | train:3805 | 4fd7158322872d711e90f091dbd8673ef32cb1be | miniupnp | https://github.com/miniupnp/miniupnp | https://github.com/miniupnp/miniupnp | https://github.com/miniupnp/miniupnp/commit/7aeb624b44f86d335841242ff427433190e7168a | 7aeb624b44f86d335841242ff427433190e7168a | after | false | 7aeb624b44f86d335841242ff427433190e7168a | containers/7a/7aeb624b44f86d335841242ff427433190e7168a_after.sif | sha256:6d797fff98f4459de978eab17392ce7088c65a099271b40bc90dcbdfce94b62a | sha256:0f5aeedaa44463b9f7537ad3c909845e32b2e50901036fca0e5abe7991bbc9ad | ParseNameValue | ParseNameValue(const char * buffer, int bufsize,
struct NameValueParserData * data)
{
struct xmlparser parser;
memset(data, 0, sizeof(struct NameValueParserData));
/* init xmlparser object */
parser.xmlstart = buffer;
parser.xmlsize = bufsize;
parser.data = data;
parser.starteltfunc = NameVa... | null | upnpreplyparse.c | [
"CVE-2017-1000494"
] | Uninitialized stack variable vulnerability in NameValueParserEndElt (upnpreplyparse.c) in miniupnpd < 2.0 allows an attacker to cause Denial of Service (Segmentation fault and Memory Corruption) or possibly have unspecified other impact | [
"CWE-119"
] | null | null | ParseNameValue(const char * buffer, int bufsize,
struct NameValueParserData * data)
{
struct xmlparser parser;
data->l_head = NULL;
data->portListing = NULL;
data->portListingLength = 0;
/* init xmlparser object */
parser.xmlstart = buffer;
parser.xmlsize = bufsize;
parser.data = data;
par... | ParseNameValue(const char * buffer, int bufsize,
struct NameValueParserData * data)
{
struct xmlparser parser;
memset(data, 0, sizeof(struct NameValueParserData));
/* init xmlparser object */
parser.xmlstart = buffer;
parser.xmlsize = bufsize;
parser.data = data;
parser.starteltfunc = NameVa... | properly initialize data structure for SOAP parsing in ParseNameValue()
topelt field was not properly initialized.
should fix #268 |
01a02dc030d3a3787d174f25 | primevul | train | train:1328 | 4fd7158322872d711e90f091dbd8673ef32cb1be | linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/96b340406724d87e4621284ebac5e059d67b2194 | 96b340406724d87e4621284ebac5e059d67b2194 | before | true | bf58175954f2d390300df00f96070312d1b15096 | containers/96/96b340406724d87e4621284ebac5e059d67b2194_before.sif | sha256:95e16b254626f1474383809be6969a5ba60a4b2a77740bde93e502371a6faa80 | sha256:9ab7fdd0c519caf9ed7ad21a54fe1de53ddc4f9eeec5302f340dcab5a9a13391 | fst_get_iface | fst_get_iface(struct fst_card_info *card, struct fst_port_info *port,
struct ifreq *ifr)
{
sync_serial_settings sync;
int i;
/* First check what line type is set, we'll default to reporting X.21
* if nothing is set as IF_IFACE_SYNC_SERIAL implies it can't be
* changed
*/
switch (port->hwif) {
case E1... | null | null | [
"CVE-2014-1444"
] | The fst_get_iface function in drivers/net/wan/farsync.c in the Linux kernel before 3.11.7 does not properly initialize a certain data structure, which allows local users to obtain sensitive information from kernel memory by leveraging the CAP_NET_ADMIN capability for an SIOCWANDEV ioctl call. | [
"CWE-399"
] | null | null | fst_get_iface(struct fst_card_info *card, struct fst_port_info *port,
struct ifreq *ifr)
{
sync_serial_settings sync;
int i;
/* First check what line type is set, we'll default to reporting X.21
* if nothing is set as IF_IFACE_SYNC_SERIAL implies it can't be
* changed
*/
switch (port->hwif) {
case E1... | fst_get_iface(struct fst_card_info *card, struct fst_port_info *port,
struct ifreq *ifr)
{
sync_serial_settings sync;
int i;
/* First check what line type is set, we'll default to reporting X.21
* if nothing is set as IF_IFACE_SYNC_SERIAL implies it can't be
* changed
*/
switch (port->hwif) {
case E1... | farsync: fix info leak in ioctl
The fst_get_iface() code fails to initialize the two padding bytes of
struct sync_serial_settings after the ->loopback member. Add an explicit
memset(0) before filling the structure to avoid the info leak.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. ... |
01a02dc030d3a3787d174f25 | primevul | train | train:1328 | 4fd7158322872d711e90f091dbd8673ef32cb1be | linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/96b340406724d87e4621284ebac5e059d67b2194 | 96b340406724d87e4621284ebac5e059d67b2194 | after | false | 96b340406724d87e4621284ebac5e059d67b2194 | containers/96/96b340406724d87e4621284ebac5e059d67b2194_after.sif | sha256:de0c3c585b7b5f2199a2fdd2447d69f14e39a7b05743434e34d0125ec1e81dd6 | sha256:d1a727601ebffdebac61626d797d838630b0150b7fd09cce330c931000faf5ba | fst_get_iface | fst_get_iface(struct fst_card_info *card, struct fst_port_info *port,
struct ifreq *ifr)
{
sync_serial_settings sync;
int i;
/* First check what line type is set, we'll default to reporting X.21
* if nothing is set as IF_IFACE_SYNC_SERIAL implies it can't be
* changed
*/
switch (port->hwif) {
case E1... | null | null | [
"CVE-2014-1444"
] | The fst_get_iface function in drivers/net/wan/farsync.c in the Linux kernel before 3.11.7 does not properly initialize a certain data structure, which allows local users to obtain sensitive information from kernel memory by leveraging the CAP_NET_ADMIN capability for an SIOCWANDEV ioctl call. | [
"CWE-399"
] | null | null | fst_get_iface(struct fst_card_info *card, struct fst_port_info *port,
struct ifreq *ifr)
{
sync_serial_settings sync;
int i;
/* First check what line type is set, we'll default to reporting X.21
* if nothing is set as IF_IFACE_SYNC_SERIAL implies it can't be
* changed
*/
switch (port->hwif) {
case E1... | fst_get_iface(struct fst_card_info *card, struct fst_port_info *port,
struct ifreq *ifr)
{
sync_serial_settings sync;
int i;
/* First check what line type is set, we'll default to reporting X.21
* if nothing is set as IF_IFACE_SYNC_SERIAL implies it can't be
* changed
*/
switch (port->hwif) {
case E1... | farsync: fix info leak in ioctl
The fst_get_iface() code fails to initialize the two padding bytes of
struct sync_serial_settings after the ->loopback member. Add an explicit
memset(0) before filling the structure to avoid the info leak.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. ... |
01c926aa9511b3847af75e14 | primevul | train | train:456 | 4fd7158322872d711e90f091dbd8673ef32cb1be | enlightment | https://git.enlightenment.org/legacy/imlib2 | https://git.enlightenment.org/old/legacy-imlib2.git | https://git.enlightenment.org/legacy/imlib2.git/commit/?id=c94d83ccab15d5ef02f88d42dce38ed3f0892882 | c94d83ccab15d5ef02f88d42dce38ed3f0892882 | before | true | a8ca99a2a4ad5015f904b831b712d96b816ef13e | containers/c9/c94d83ccab15d5ef02f88d42dce38ed3f0892882_before.sif | sha256:ddd556371e1745cff9ba93e709a9123dc08eb1efec820aa4050e8f46ee932c28 | sha256:a05a87bd274c5507372f238196cf770dfd1d08f7a220490cad2e9c7cb2604c11 | __imlib_Ellipse_DrawToData | __imlib_Ellipse_DrawToData(int xc, int yc, int a, int b, DATA32 color,
DATA32 * dst, int dstw, int clx, int cly, int clw,
int clh, ImlibOp op, char dst_alpha, char blend)
{
ImlibPointDrawFunction pfunc;
int xx, yy, x, y, prev_x, prev_y, ty, by,... | null | null | [
"CVE-2011-5326"
] | imlib2 before 1.4.9 allows remote attackers to cause a denial of service (divide-by-zero error and application crash) by drawing a 2x1 ellipse. | [
"CWE-189"
] | null | null | __imlib_Ellipse_DrawToData(int xc, int yc, int a, int b, DATA32 color,
DATA32 * dst, int dstw, int clx, int cly, int clw,
int clh, ImlibOp op, char dst_alpha, char blend)
{
ImlibPointDrawFunction pfunc;
int xx, yy, x, y, prev_x, prev_y, ty, by,... | __imlib_Ellipse_DrawToData(int xc, int yc, int a, int b, DATA32 color,
DATA32 * dst, int dstw, int clx, int cly, int clw,
int clh, ImlibOp op, char dst_alpha, char blend)
{
ImlibPointDrawFunction pfunc;
int xx, yy, x, y, prev_x, prev_y, ty, by,... | null |
01c926aa9511b3847af75e14 | primevul | train | train:456 | 4fd7158322872d711e90f091dbd8673ef32cb1be | enlightment | https://git.enlightenment.org/legacy/imlib2 | https://git.enlightenment.org/old/legacy-imlib2.git | https://git.enlightenment.org/legacy/imlib2.git/commit/?id=c94d83ccab15d5ef02f88d42dce38ed3f0892882 | c94d83ccab15d5ef02f88d42dce38ed3f0892882 | after | false | c94d83ccab15d5ef02f88d42dce38ed3f0892882 | containers/c9/c94d83ccab15d5ef02f88d42dce38ed3f0892882_after.sif | sha256:0b4a5d2821721490390a333af8e2ac677fb0b0d905e919fd6c5e874f31d840e1 | sha256:3c9526fc56413d321096edd6096a6d81456e44510e54f68adb6c5da0ce580a64 | __imlib_Ellipse_DrawToData | __imlib_Ellipse_DrawToData(int xc, int yc, int a, int b, DATA32 color,
DATA32 * dst, int dstw, int clx, int cly, int clw,
int clh, ImlibOp op, char dst_alpha, char blend)
{
ImlibPointDrawFunction pfunc;
int xx, yy, x, y, prev_x, prev_y, ty, by,... | null | null | [
"CVE-2011-5326"
] | imlib2 before 1.4.9 allows remote attackers to cause a denial of service (divide-by-zero error and application crash) by drawing a 2x1 ellipse. | [
"CWE-189"
] | null | null | __imlib_Ellipse_DrawToData(int xc, int yc, int a, int b, DATA32 color,
DATA32 * dst, int dstw, int clx, int cly, int clw,
int clh, ImlibOp op, char dst_alpha, char blend)
{
ImlibPointDrawFunction pfunc;
int xx, yy, x, y, prev_x, prev_y, ty, by,... | __imlib_Ellipse_DrawToData(int xc, int yc, int a, int b, DATA32 color,
DATA32 * dst, int dstw, int clx, int cly, int clw,
int clh, ImlibOp op, char dst_alpha, char blend)
{
ImlibPointDrawFunction pfunc;
int xx, yy, x, y, prev_x, prev_y, ty, by,... | null |
01f3293635dc64dc4cce6ac1 | primevul | train | train:3076 | 4fd7158322872d711e90f091dbd8673ef32cb1be | jasper | https://github.com/mdadams/jasper | https://github.com/jasper-software/jasper | https://github.com/mdadams/jasper/commit/2e82fa00466ae525339754bb3ab0a0474a31d4bd | 2e82fa00466ae525339754bb3ab0a0474a31d4bd | before | true | 95e510c4c05ad76fbe485ec242b3ddf6e1a3141e | containers/2e/2e82fa00466ae525339754bb3ab0a0474a31d4bd_before.sif | sha256:2526480d335aaa14973bdaf5068b5310f029fb0b0b46f19328afdd707c353e4a | sha256:085af2d22c96ff54cb53a078b5ceff72aaf795790f1dbcf190f67f68d5452c94 | jpc_tsfb_synthesize | int jpc_tsfb_synthesize(jpc_tsfb_t *tsfb, jas_seq2d_t *a)
{
return (tsfb->numlvls > 0) ? jpc_tsfb_synthesize2(tsfb,
jas_seq2d_getref(a, jas_seq2d_xstart(a), jas_seq2d_ystart(a)),
jas_seq2d_xstart(a), jas_seq2d_ystart(a), jas_seq2d_width(a),
jas_seq2d_height(a), jas_seq2d_rowstep(a), tsfb->numlvls - 1) : ... | null | null | [
"CVE-2016-10248"
] | The jpc_tsfb_synthesize function in jpc_tsfb.c in JasPer before 1.900.9 allows remote attackers to cause a denial of service (NULL pointer dereference) via vectors involving an empty sequence. | [
"CWE-476"
] | null | null | int jpc_tsfb_synthesize(jpc_tsfb_t *tsfb, jas_seq2d_t *a)
{
return (tsfb->numlvls > 0) ? jpc_tsfb_synthesize2(tsfb,
jas_seq2d_getref(a, jas_seq2d_xstart(a), jas_seq2d_ystart(a)),
jas_seq2d_xstart(a), jas_seq2d_ystart(a), jas_seq2d_width(a),
jas_seq2d_height(a), jas_seq2d_rowstep(a), tsfb->numlvls - 1) : ... | int jpc_tsfb_synthesize(jpc_tsfb_t *tsfb, jas_seq2d_t *a)
{
return (tsfb->numlvls > 0 && jas_seq2d_size(a)) ?
jpc_tsfb_synthesize2(tsfb,
jas_seq2d_getref(a, jas_seq2d_xstart(a), jas_seq2d_ystart(a)),
jas_seq2d_xstart(a), jas_seq2d_ystart(a), jas_seq2d_width(a),
jas_seq2d_height(a), jas_seq2d_rowstep(a... | Fixed an integral type promotion problem by adding a JAS_CAST.
Modified the jpc_tsfb_synthesize function so that it will be a noop for
an empty sequence (in order to avoid dereferencing a null pointer). |
01f3293635dc64dc4cce6ac1 | primevul | train | train:3076 | 4fd7158322872d711e90f091dbd8673ef32cb1be | jasper | https://github.com/mdadams/jasper | https://github.com/jasper-software/jasper | https://github.com/mdadams/jasper/commit/2e82fa00466ae525339754bb3ab0a0474a31d4bd | 2e82fa00466ae525339754bb3ab0a0474a31d4bd | after | false | 2e82fa00466ae525339754bb3ab0a0474a31d4bd | containers/2e/2e82fa00466ae525339754bb3ab0a0474a31d4bd_after.sif | sha256:7c615fc934e32432d14ea2aab4d1f5c072255643ca8720ec8e8abec50de9f471 | sha256:009bc8f93f33dbc65f0acb85c3941b6334ca9989cdb6ac2951082d86ef336ddc | jpc_tsfb_synthesize | int jpc_tsfb_synthesize(jpc_tsfb_t *tsfb, jas_seq2d_t *a)
{
return (tsfb->numlvls > 0 && jas_seq2d_size(a)) ?
jpc_tsfb_synthesize2(tsfb,
jas_seq2d_getref(a, jas_seq2d_xstart(a), jas_seq2d_ystart(a)),
jas_seq2d_xstart(a), jas_seq2d_ystart(a), jas_seq2d_width(a),
jas_seq2d_height(a), jas_seq2d_rowstep(a... | null | null | [
"CVE-2016-10248"
] | The jpc_tsfb_synthesize function in jpc_tsfb.c in JasPer before 1.900.9 allows remote attackers to cause a denial of service (NULL pointer dereference) via vectors involving an empty sequence. | [
"CWE-476"
] | null | null | int jpc_tsfb_synthesize(jpc_tsfb_t *tsfb, jas_seq2d_t *a)
{
return (tsfb->numlvls > 0) ? jpc_tsfb_synthesize2(tsfb,
jas_seq2d_getref(a, jas_seq2d_xstart(a), jas_seq2d_ystart(a)),
jas_seq2d_xstart(a), jas_seq2d_ystart(a), jas_seq2d_width(a),
jas_seq2d_height(a), jas_seq2d_rowstep(a), tsfb->numlvls - 1) : ... | int jpc_tsfb_synthesize(jpc_tsfb_t *tsfb, jas_seq2d_t *a)
{
return (tsfb->numlvls > 0 && jas_seq2d_size(a)) ?
jpc_tsfb_synthesize2(tsfb,
jas_seq2d_getref(a, jas_seq2d_xstart(a), jas_seq2d_ystart(a)),
jas_seq2d_xstart(a), jas_seq2d_ystart(a), jas_seq2d_width(a),
jas_seq2d_height(a), jas_seq2d_rowstep(a... | Fixed an integral type promotion problem by adding a JAS_CAST.
Modified the jpc_tsfb_synthesize function so that it will be a noop for
an empty sequence (in order to avoid dereferencing a null pointer). |
01f4072ae3be7f148de65ece | primevul | train | train:965 | 4fd7158322872d711e90f091dbd8673ef32cb1be | FFmpeg | https://github.com/FFmpeg/FFmpeg | https://github.com/FFmpeg/FFmpeg | https://github.com/FFmpeg/FFmpeg/commit/c94f9e854228e0ea00e1de8769d8d3f7cab84a55 | c94f9e854228e0ea00e1de8769d8d3f7cab84a55 | before | true | f58cd2867a8af2eed13acdd21d067b48249b14a1 | containers/c9/c94f9e854228e0ea00e1de8769d8d3f7cab84a55_before.sif | sha256:2569f13783d1a6903ce9d7450d208dcc7608a0d3baec13a11f87c8b0d614c6fb | sha256:309528ce5e7bc64b4e4c3258126ef4b3bce3bb86678e884d12f5b85cb35948ae | av_reallocp_array | int av_reallocp_array(void *ptr, size_t nmemb, size_t size)
{
void **ptrptr = ptr;
*ptrptr = av_realloc_f(*ptrptr, nmemb, size);
if (!*ptrptr && !(nmemb && size))
return AVERROR(ENOMEM);
return 0;
}
| null | mem.c | [
"CVE-2013-4265"
] | The av_reallocp_array function in libavutil/mem.c in FFmpeg before 2.0.1 has an unspecified impact and remote vectors related to a "wrong return code" and a resultant NULL pointer dereference. | [
"CWE-476"
] | null | null | int av_reallocp_array(void *ptr, size_t nmemb, size_t size)
{
void **ptrptr = ptr;
*ptrptr = av_realloc_f(*ptrptr, nmemb, size);
if (!*ptrptr && !(nmemb && size))
return AVERROR(ENOMEM);
return 0;
}
| int av_reallocp_array(void *ptr, size_t nmemb, size_t size)
{
void **ptrptr = ptr;
*ptrptr = av_realloc_f(*ptrptr, nmemb, size);
if (!*ptrptr && nmemb && size)
return AVERROR(ENOMEM);
return 0;
}
| avutil/mem: Fix flipped condition
Fixes return code and later null pointer dereference
Found-by: Laurent Butti <laurentb@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> |
01f4072ae3be7f148de65ece | primevul | train | train:965 | 4fd7158322872d711e90f091dbd8673ef32cb1be | FFmpeg | https://github.com/FFmpeg/FFmpeg | https://github.com/FFmpeg/FFmpeg | https://github.com/FFmpeg/FFmpeg/commit/c94f9e854228e0ea00e1de8769d8d3f7cab84a55 | c94f9e854228e0ea00e1de8769d8d3f7cab84a55 | after | false | c94f9e854228e0ea00e1de8769d8d3f7cab84a55 | containers/c9/c94f9e854228e0ea00e1de8769d8d3f7cab84a55_after.sif | sha256:65e3661d9a7c9991fda9d5cdc2e75685a2748f076ec12642253b8dc09a58cd4d | sha256:3b3f9fcc305378d0b1e62cd398dac78ca0f19f5f6073f9e7df7ed6781f97b78d | av_reallocp_array | int av_reallocp_array(void *ptr, size_t nmemb, size_t size)
{
void **ptrptr = ptr;
*ptrptr = av_realloc_f(*ptrptr, nmemb, size);
if (!*ptrptr && nmemb && size)
return AVERROR(ENOMEM);
return 0;
}
| null | mem.c | [
"CVE-2013-4265"
] | The av_reallocp_array function in libavutil/mem.c in FFmpeg before 2.0.1 has an unspecified impact and remote vectors related to a "wrong return code" and a resultant NULL pointer dereference. | [
"CWE-476"
] | null | null | int av_reallocp_array(void *ptr, size_t nmemb, size_t size)
{
void **ptrptr = ptr;
*ptrptr = av_realloc_f(*ptrptr, nmemb, size);
if (!*ptrptr && !(nmemb && size))
return AVERROR(ENOMEM);
return 0;
}
| int av_reallocp_array(void *ptr, size_t nmemb, size_t size)
{
void **ptrptr = ptr;
*ptrptr = av_realloc_f(*ptrptr, nmemb, size);
if (!*ptrptr && nmemb && size)
return AVERROR(ENOMEM);
return 0;
}
| avutil/mem: Fix flipped condition
Fixes return code and later null pointer dereference
Found-by: Laurent Butti <laurentb@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> |
01f6e023118a2a400438debf | primevul | train | train:8201 | 4fd7158322872d711e90f091dbd8673ef32cb1be | Android | null | https://android.googlesource.com/platform/system/core | https://android.googlesource.com/platform/system/core/+/ae18eb014609948a40e22192b87b10efc680daa7 | ae18eb014609948a40e22192b87b10efc680daa7 | before | true | 864e2e22fcd0cba3f5e67680ccabd0302dfda45d | containers/ae/ae18eb014609948a40e22192b87b10efc680daa7_before.sif | sha256:a59834eb5126cf00d3322f46f60ae5a2700a0c8249ac32de961649dc2f0a6bbd | sha256:94e3a2faeac1b7a78dd4f7c2d6b8545aecc1311be8adfc771f6abf0e2c2a55bd | print_maps | static void print_maps(struct pid_info_t* info)
{
FILE *maps;
size_t offset;
char device[10];
long int inode;
char file[PATH_MAX];
strlcat(info->path, "maps", sizeof(info->path));
maps = fopen(info->path, "r");
if (!maps)
goto out;
while (fscanf(maps, "%*x-%*x... | null | null | [
"CVE-2016-3757"
] | The print_maps function in toolbox/lsof.c in Android 4.x before 4.4.4, 5.0.x before 5.0.2, 5.1.x before 5.1.1, and 6.x before 2016-07-01 allows user-assisted attackers to gain privileges via a crafted application that attempts to list a long name of a memory-mapped file, aka internal bug 28175237. NOTE: print_maps is ... | [
"CWE-20"
] | null | null | static void print_maps(struct pid_info_t* info)
{
FILE *maps;
size_t offset;
char device[10];
long int inode;
char file[PATH_MAX];
strlcat(info->path, "maps", sizeof(info->path));
maps = fopen(info->path, "r");
if (!maps)
goto out;
while (fscanf(maps, "%*x-%*x... | static void print_maps(struct pid_info_t* info)
{
FILE *maps;
size_t offset;
char device[10];
long int inode;
char file[1024];
strlcat(info->path, "maps", sizeof(info->path));
maps = fopen(info->path, "r");
if (!maps)
goto out;
while (fscanf(maps, "%*x-%*x %*... | null |
01f6e023118a2a400438debf | primevul | train | train:8201 | 4fd7158322872d711e90f091dbd8673ef32cb1be | Android | null | https://android.googlesource.com/platform/system/core | https://android.googlesource.com/platform/system/core/+/ae18eb014609948a40e22192b87b10efc680daa7 | ae18eb014609948a40e22192b87b10efc680daa7 | after | false | ae18eb014609948a40e22192b87b10efc680daa7 | containers/ae/ae18eb014609948a40e22192b87b10efc680daa7_after.sif | sha256:d8bc35a1c15b373e4a0a3f63886b137bf5b61384c27e327b1623327683d89abe | sha256:a6b366b83c61eb6867f9cab0ccd1a6583a922e70f3a54425a06628bb97120eb4 | print_maps | static void print_maps(struct pid_info_t* info)
{
FILE *maps;
size_t offset;
char device[10];
long int inode;
char file[1024];
strlcat(info->path, "maps", sizeof(info->path));
maps = fopen(info->path, "r");
if (!maps)
goto out;
while (fscanf(maps, "%*x-%*x %*... | null | null | [
"CVE-2016-3757"
] | The print_maps function in toolbox/lsof.c in Android 4.x before 4.4.4, 5.0.x before 5.0.2, 5.1.x before 5.1.1, and 6.x before 2016-07-01 allows user-assisted attackers to gain privileges via a crafted application that attempts to list a long name of a memory-mapped file, aka internal bug 28175237. NOTE: print_maps is ... | [
"CWE-20"
] | null | null | static void print_maps(struct pid_info_t* info)
{
FILE *maps;
size_t offset;
char device[10];
long int inode;
char file[PATH_MAX];
strlcat(info->path, "maps", sizeof(info->path));
maps = fopen(info->path, "r");
if (!maps)
goto out;
while (fscanf(maps, "%*x-%*x... | static void print_maps(struct pid_info_t* info)
{
FILE *maps;
size_t offset;
char device[10];
long int inode;
char file[1024];
strlcat(info->path, "maps", sizeof(info->path));
maps = fopen(info->path, "r");
if (!maps)
goto out;
while (fscanf(maps, "%*x-%*x %*... | null |
01f800bc4fea01fc80ebeb48 | primevul | train | train:196943 | 4fd7158322872d711e90f091dbd8673ef32cb1be | deark | https://github.com/jsummers/deark | https://github.com/jsummers/deark | https://github.com/jsummers/deark/commit/287f5ac31dfdc074669182f51ece637706070eeb | 287f5ac31dfdc074669182f51ece637706070eeb | before | true | 7a0fd74717fc658289d23677c991eada5cca2022 | containers/28/287f5ac31dfdc074669182f51ece637706070eeb_before.sif | sha256:fb674fa67fc5565868d4be7c3aaeb44eb09a1b05f161a62fd1fa30ce971f6dba | sha256:b3717af74e8c1b4f8b15bb51c8cbcfde3e719b66374fc257d74b590805d81c50 | do_iccprofile_item | static void do_iccprofile_item(deark *c, lctx *d, i64 pos, i64 len)
{
i64 selector;
i64 data_len;
if(len<4) return;
selector = de_getu32be(pos);
data_len = len-4;
de_dbg(c, "ICC profile segment, selector=%d, data len=%d", (int)selector,
(int)data_len);
if(selector!=1) {
// If this is not a Continuation seg... | null | pict.c | [
"CVE-2021-28855"
] | In Deark before 1.5.8, a specially crafted input file can cause a NULL pointer dereference in the dbuf_write function (src/deark-dbuf.c). | [
"CWE-476"
] | null | null | static void do_iccprofile_item(deark *c, lctx *d, i64 pos, i64 len)
{
i64 selector;
i64 data_len;
if(len<4) return;
selector = de_getu32be(pos);
data_len = len-4;
de_dbg(c, "ICC profile segment, selector=%d, data len=%d", (int)selector,
(int)data_len);
if(selector!=1) {
// If this is not a Continuation seg... | static void do_iccprofile_item(deark *c, lctx *d, i64 pos, i64 len)
{
i64 selector;
i64 data_len;
if(len<4) return;
selector = de_getu32be(pos);
data_len = len-4;
de_dbg(c, "ICC profile segment, selector=%d, data len=%d", (int)selector,
(int)data_len);
if(selector!=1) {
// If this is not a Continuation seg... | pict: Fixed a bug with ICC profile extraction
Could cause a NULL pointer dereference.
Found by F. Çelik. |
01f800bc4fea01fc80ebeb48 | primevul | train | train:196943 | 4fd7158322872d711e90f091dbd8673ef32cb1be | deark | https://github.com/jsummers/deark | https://github.com/jsummers/deark | https://github.com/jsummers/deark/commit/287f5ac31dfdc074669182f51ece637706070eeb | 287f5ac31dfdc074669182f51ece637706070eeb | after | false | 287f5ac31dfdc074669182f51ece637706070eeb | containers/28/287f5ac31dfdc074669182f51ece637706070eeb_after.sif | sha256:a3d369a7a8d969efd4abcb2b9e2c6d64816b597515c54e2bc43696ec314551f2 | sha256:be1942f58ab3e3b2ce6e6dd23406015edf82b95faae92b9b936295f7cbc3fcd2 | do_iccprofile_item | static void do_iccprofile_item(deark *c, lctx *d, i64 pos, i64 len)
{
i64 selector;
i64 data_len;
if(len<4) return;
selector = de_getu32be(pos);
data_len = len-4;
de_dbg(c, "ICC profile segment, selector=%d, data len=%d", (int)selector,
(int)data_len);
if(selector!=1) {
// If this is not a Continuation seg... | null | pict.c | [
"CVE-2021-28855"
] | In Deark before 1.5.8, a specially crafted input file can cause a NULL pointer dereference in the dbuf_write function (src/deark-dbuf.c). | [
"CWE-476"
] | null | null | static void do_iccprofile_item(deark *c, lctx *d, i64 pos, i64 len)
{
i64 selector;
i64 data_len;
if(len<4) return;
selector = de_getu32be(pos);
data_len = len-4;
de_dbg(c, "ICC profile segment, selector=%d, data len=%d", (int)selector,
(int)data_len);
if(selector!=1) {
// If this is not a Continuation seg... | static void do_iccprofile_item(deark *c, lctx *d, i64 pos, i64 len)
{
i64 selector;
i64 data_len;
if(len<4) return;
selector = de_getu32be(pos);
data_len = len-4;
de_dbg(c, "ICC profile segment, selector=%d, data len=%d", (int)selector,
(int)data_len);
if(selector!=1) {
// If this is not a Continuation seg... | pict: Fixed a bug with ICC profile extraction
Could cause a NULL pointer dereference.
Found by F. Çelik. |
02060cf54d8facb143e67679 | primevul | train | train:208921 | 4fd7158322872d711e90f091dbd8673ef32cb1be | ImageMagick | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick/commit/73fbc6a557b4f63af18b2debe83f817859ef7481 | 73fbc6a557b4f63af18b2debe83f817859ef7481 | before | true | 4013dc7ea28c8e1faad1255ac4942b7fa5da2026 | containers/73/73fbc6a557b4f63af18b2debe83f817859ef7481_before.sif | sha256:cd1a6d9d5aff00981bf635c923ab2931e4128252400b5feb7da562b1489583bd | sha256:ae708ad9a16e9068aa31631a2e3d8e4618b16898b33c6cd4a38ef087dead2983 | ReadSUNImage | static Image *ReadSUNImage(const ImageInfo *image_info,ExceptionInfo *exception)
{
#define RMT_EQUAL_RGB 1
#define RMT_NONE 0
#define RMT_RAW 2
#define RT_STANDARD 1
#define RT_ENCODED 2
#define RT_FORMAT_RGB 3
typedef struct _SUNInfo
{
unsigned int
magic,
width,
height,
depth,
... | null | null | [
"CVE-2018-11251"
] | In ImageMagick 7.0.7-23 Q16 x86_64 2018-01-24, there is a heap-based buffer over-read in ReadSUNImage in coders/sun.c, which allows attackers to cause a denial of service (application crash in SetGrayscaleImage in MagickCore/quantize.c) via a crafted SUN image file. | [
"CWE-125"
] | null | null | static Image *ReadSUNImage(const ImageInfo *image_info,ExceptionInfo *exception)
{
#define RMT_EQUAL_RGB 1
#define RMT_NONE 0
#define RMT_RAW 2
#define RT_STANDARD 1
#define RT_ENCODED 2
#define RT_FORMAT_RGB 3
typedef struct _SUNInfo
{
unsigned int
magic,
width,
height,
depth,
... | static Image *ReadSUNImage(const ImageInfo *image_info,ExceptionInfo *exception)
{
#define RMT_EQUAL_RGB 1
#define RMT_NONE 0
#define RMT_RAW 2
#define RT_STANDARD 1
#define RT_ENCODED 2
#define RT_FORMAT_RGB 3
typedef struct _SUNInfo
{
unsigned int
magic,
width,
height,
depth,
... | https://github.com/ImageMagick/ImageMagick/issues/956 |
02060cf54d8facb143e67679 | primevul | train | train:208921 | 4fd7158322872d711e90f091dbd8673ef32cb1be | ImageMagick | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick/commit/73fbc6a557b4f63af18b2debe83f817859ef7481 | 73fbc6a557b4f63af18b2debe83f817859ef7481 | after | false | 73fbc6a557b4f63af18b2debe83f817859ef7481 | containers/73/73fbc6a557b4f63af18b2debe83f817859ef7481_after.sif | sha256:b3d3a141979cf758a5f227d191becd3f4463362ff7cb3916c3699f90b1a6de50 | sha256:0c6a046978005363d2fad7abf400d1a7f83e8a88c2196821385cbc46014803f7 | ReadSUNImage | static Image *ReadSUNImage(const ImageInfo *image_info,ExceptionInfo *exception)
{
#define RMT_EQUAL_RGB 1
#define RMT_NONE 0
#define RMT_RAW 2
#define RT_STANDARD 1
#define RT_ENCODED 2
#define RT_FORMAT_RGB 3
typedef struct _SUNInfo
{
unsigned int
magic,
width,
height,
depth,
... | null | null | [
"CVE-2018-11251"
] | In ImageMagick 7.0.7-23 Q16 x86_64 2018-01-24, there is a heap-based buffer over-read in ReadSUNImage in coders/sun.c, which allows attackers to cause a denial of service (application crash in SetGrayscaleImage in MagickCore/quantize.c) via a crafted SUN image file. | [
"CWE-125"
] | null | null | static Image *ReadSUNImage(const ImageInfo *image_info,ExceptionInfo *exception)
{
#define RMT_EQUAL_RGB 1
#define RMT_NONE 0
#define RMT_RAW 2
#define RT_STANDARD 1
#define RT_ENCODED 2
#define RT_FORMAT_RGB 3
typedef struct _SUNInfo
{
unsigned int
magic,
width,
height,
depth,
... | static Image *ReadSUNImage(const ImageInfo *image_info,ExceptionInfo *exception)
{
#define RMT_EQUAL_RGB 1
#define RMT_NONE 0
#define RMT_RAW 2
#define RT_STANDARD 1
#define RT_ENCODED 2
#define RT_FORMAT_RGB 3
typedef struct _SUNInfo
{
unsigned int
magic,
width,
height,
depth,
... | https://github.com/ImageMagick/ImageMagick/issues/956 |
02142e18d0564be456865fef | primevul | train | train:215347 | 4fd7158322872d711e90f091dbd8673ef32cb1be | linux-2.6 | http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6 | https://android.googlesource.com/kernel/common | http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=672ca28e300c17bf8d792a2a7a8631193e580c74 | 672ca28e300c17bf8d792a2a7a8631193e580c74 | before | true | 96a331b1d6426726c37242ddbe939ee14b255790 | containers/67/672ca28e300c17bf8d792a2a7a8631193e580c74_before.sif | sha256:2f93c23d6cf635dec661dc81b3b1a0a14262a5a1c5a2ccc94875a1e9efec7961 | sha256:78704b8a4ef7ca7a16356b003f05bc01b9e81aa67dd47a0d957a9faebdb7ef41 | get_user_pages | int get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
unsigned long start, int len, int write, int force,
struct page **pages, struct vm_area_struct **vmas)
{
int i;
unsigned int vm_flags;
if (len <= 0)
return 0;
/*
* Require read or write permissions.
* If 'force' is set, we only require th... | null | null | [
"CVE-2008-2372"
] | The Linux kernel 2.6.24 and 2.6.25 before 2.6.25.9 allows local users to cause a denial of service (memory consumption) via a large number of calls to the get_user_pages function, which lacks a ZERO_PAGE optimization and results in allocation of "useless newly zeroed pages." | [
"CWE-20"
] | null | null | int get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
unsigned long start, int len, int write, int force,
struct page **pages, struct vm_area_struct **vmas)
{
int i;
unsigned int vm_flags;
if (len <= 0)
return 0;
/*
* Require read or write permissions.
* If 'force' is set, we only require th... | int get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
unsigned long start, int len, int write, int force,
struct page **pages, struct vm_area_struct **vmas)
{
int i;
unsigned int vm_flags;
if (len <= 0)
return 0;
/*
* Require read or write permissions.
* If 'force' is set, we only require th... | Fix ZERO_PAGE breakage with vmware
Commit 89f5b7da2a6bad2e84670422ab8192382a5aeb9f ("Reinstate ZERO_PAGE
optimization in 'get_user_pages()' and fix XIP") broke vmware, as
reported by Jeff Chua:
"This broke vmware 6.0.4.
Jun 22 14:53:03.845: vmx| NOT_IMPLEMENTED
/build/mts/release/bora-93057/bora/vmx/main/vmmo... |
02142e18d0564be456865fef | primevul | train | train:215347 | 4fd7158322872d711e90f091dbd8673ef32cb1be | linux-2.6 | http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6 | https://android.googlesource.com/kernel/common | http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=672ca28e300c17bf8d792a2a7a8631193e580c74 | 672ca28e300c17bf8d792a2a7a8631193e580c74 | after | false | 672ca28e300c17bf8d792a2a7a8631193e580c74 | containers/67/672ca28e300c17bf8d792a2a7a8631193e580c74_after.sif | sha256:7fb5eaad3ba21676c78368723f264ebb7b890857c5b9f05497ec8d3204ba147a | sha256:5b3368d41f93d2529ff58e8b127a14fe91d3983e16aae88d84985a2e95921a9e | get_user_pages | int get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
unsigned long start, int len, int write, int force,
struct page **pages, struct vm_area_struct **vmas)
{
int i;
unsigned int vm_flags;
if (len <= 0)
return 0;
/*
* Require read or write permissions.
* If 'force' is set, we only require th... | null | null | [
"CVE-2008-2372"
] | The Linux kernel 2.6.24 and 2.6.25 before 2.6.25.9 allows local users to cause a denial of service (memory consumption) via a large number of calls to the get_user_pages function, which lacks a ZERO_PAGE optimization and results in allocation of "useless newly zeroed pages." | [
"CWE-20"
] | null | null | int get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
unsigned long start, int len, int write, int force,
struct page **pages, struct vm_area_struct **vmas)
{
int i;
unsigned int vm_flags;
if (len <= 0)
return 0;
/*
* Require read or write permissions.
* If 'force' is set, we only require th... | int get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
unsigned long start, int len, int write, int force,
struct page **pages, struct vm_area_struct **vmas)
{
int i;
unsigned int vm_flags;
if (len <= 0)
return 0;
/*
* Require read or write permissions.
* If 'force' is set, we only require th... | Fix ZERO_PAGE breakage with vmware
Commit 89f5b7da2a6bad2e84670422ab8192382a5aeb9f ("Reinstate ZERO_PAGE
optimization in 'get_user_pages()' and fix XIP") broke vmware, as
reported by Jeff Chua:
"This broke vmware 6.0.4.
Jun 22 14:53:03.845: vmx| NOT_IMPLEMENTED
/build/mts/release/bora-93057/bora/vmx/main/vmmo... |
023c2006dc25bfab57d61f14 | primevul | train | train:3803 | 4fd7158322872d711e90f091dbd8673ef32cb1be | curl | https://github.com/curl/curl | https://github.com/curl/curl | https://github.com/curl/curl/commit/ba1dbd78e5f1ed67c1b8d37ac89d90e5e330b628 | ba1dbd78e5f1ed67c1b8d37ac89d90e5e330b628 | before | true | 0b4ccc97f26316476d4c2abbd429952bf61b6375 | containers/ba/ba1dbd78e5f1ed67c1b8d37ac89d90e5e330b628_before.sif | sha256:fbb919d64ad953357a346bcae032437b8e4bdb365b0af22e5385458297a27748 | sha256:6cb77a68d6570af0926c3e533daf3c1f06392ae8a41e070e11ee43766485ef61 | Curl_smtp_escape_eob | CURLcode Curl_smtp_escape_eob(struct connectdata *conn, const ssize_t nread)
{
/* When sending a SMTP payload we must detect CRLF. sequences making sure
they are sent as CRLF.. instead, as a . on the beginning of a line will
be deleted by the server when not part of an EOB terminator and a
genuine CRLF... | null | smtp.c | [
"CVE-2018-0500"
] | Curl_smtp_escape_eob in lib/smtp.c in curl 7.54.1 to and including curl 7.60.0 has a heap-based buffer overflow that might be exploitable by an attacker who can control the data that curl transmits over SMTP with certain settings (i.e., use of a nonstandard --limit-rate argument or CURLOPT_BUFFERSIZE value). | [
"CWE-119"
] | null | null | CURLcode Curl_smtp_escape_eob(struct connectdata *conn, const ssize_t nread)
{
/* When sending a SMTP payload we must detect CRLF. sequences making sure
they are sent as CRLF.. instead, as a . on the beginning of a line will
be deleted by the server when not part of an EOB terminator and a
genuine CRLF... | CURLcode Curl_smtp_escape_eob(struct connectdata *conn, const ssize_t nread)
{
/* When sending a SMTP payload we must detect CRLF. sequences making sure
they are sent as CRLF.. instead, as a . on the beginning of a line will
be deleted by the server when not part of an EOB terminator and a
genuine CRLF... | smtp: use the upload buffer size for scratch buffer malloc
... not the read buffer size, as that can be set smaller and thus cause
a buffer overflow! CVE-2018-0500
Reported-by: Peter Wu
Bug: https://curl.haxx.se/docs/adv_2018-70a2.html |
023c2006dc25bfab57d61f14 | primevul | train | train:3803 | 4fd7158322872d711e90f091dbd8673ef32cb1be | curl | https://github.com/curl/curl | https://github.com/curl/curl | https://github.com/curl/curl/commit/ba1dbd78e5f1ed67c1b8d37ac89d90e5e330b628 | ba1dbd78e5f1ed67c1b8d37ac89d90e5e330b628 | after | false | ba1dbd78e5f1ed67c1b8d37ac89d90e5e330b628 | containers/ba/ba1dbd78e5f1ed67c1b8d37ac89d90e5e330b628_after.sif | sha256:8846e92bed4c84e63d38b0fa6af8ea1882462dbc0521b29dc20ad1fb0c79af63 | sha256:eaadd25a8be6f5b96397d3a3e41a4c2f099e56bdba50ca32261ba4a4cdb361c8 | Curl_smtp_escape_eob | CURLcode Curl_smtp_escape_eob(struct connectdata *conn, const ssize_t nread)
{
/* When sending a SMTP payload we must detect CRLF. sequences making sure
they are sent as CRLF.. instead, as a . on the beginning of a line will
be deleted by the server when not part of an EOB terminator and a
genuine CRLF... | null | smtp.c | [
"CVE-2018-0500"
] | Curl_smtp_escape_eob in lib/smtp.c in curl 7.54.1 to and including curl 7.60.0 has a heap-based buffer overflow that might be exploitable by an attacker who can control the data that curl transmits over SMTP with certain settings (i.e., use of a nonstandard --limit-rate argument or CURLOPT_BUFFERSIZE value). | [
"CWE-119"
] | null | null | CURLcode Curl_smtp_escape_eob(struct connectdata *conn, const ssize_t nread)
{
/* When sending a SMTP payload we must detect CRLF. sequences making sure
they are sent as CRLF.. instead, as a . on the beginning of a line will
be deleted by the server when not part of an EOB terminator and a
genuine CRLF... | CURLcode Curl_smtp_escape_eob(struct connectdata *conn, const ssize_t nread)
{
/* When sending a SMTP payload we must detect CRLF. sequences making sure
they are sent as CRLF.. instead, as a . on the beginning of a line will
be deleted by the server when not part of an EOB terminator and a
genuine CRLF... | smtp: use the upload buffer size for scratch buffer malloc
... not the read buffer size, as that can be set smaller and thus cause
a buffer overflow! CVE-2018-0500
Reported-by: Peter Wu
Bug: https://curl.haxx.se/docs/adv_2018-70a2.html |
02434a86305756541e97ad83 | primevul | train | train:214172 | 4fd7158322872d711e90f091dbd8673ef32cb1be | linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/d10dcb615c8e29d403a24d35f8310a7a53e3050c | d10dcb615c8e29d403a24d35f8310a7a53e3050c | before | true | db8fd2cde93227e566a412cf53173ffa227998bc | containers/d1/d10dcb615c8e29d403a24d35f8310a7a53e3050c_before.sif | sha256:43f1d4e90c3c7315a7b35e0f27617b2dfff11c8d15e3ffb2e21a25e509768c34 | sha256:fbc545462dc73b86ab87d019c5169f7ba5253019486bad5f53e30505640b79b4 | mwifiex_pcie_init_evt_ring | static int mwifiex_pcie_init_evt_ring(struct mwifiex_adapter *adapter)
{
struct pcie_service_card *card = adapter->card;
struct mwifiex_evt_buf_desc *desc;
struct sk_buff *skb;
dma_addr_t buf_pa;
int i;
for (i = 0; i < MWIFIEX_MAX_EVT_BD; i++) {
/* Allocate skb here so that firmware can DMA data from it */
s... | null | pcie.c | [
"CVE-2019-19057"
] | Two memory leaks in the mwifiex_pcie_init_evt_ring() function in drivers/net/wireless/marvell/mwifiex/pcie.c in the Linux kernel through 5.3.11 allow attackers to cause a denial of service (memory consumption) by triggering mwifiex_map_pci_memory() failures, aka CID-d10dcb615c8e. | [
"CWE-200"
] | null | null | static int mwifiex_pcie_init_evt_ring(struct mwifiex_adapter *adapter)
{
struct pcie_service_card *card = adapter->card;
struct mwifiex_evt_buf_desc *desc;
struct sk_buff *skb;
dma_addr_t buf_pa;
int i;
for (i = 0; i < MWIFIEX_MAX_EVT_BD; i++) {
/* Allocate skb here so that firmware can DMA data from it */
s... | static int mwifiex_pcie_init_evt_ring(struct mwifiex_adapter *adapter)
{
struct pcie_service_card *card = adapter->card;
struct mwifiex_evt_buf_desc *desc;
struct sk_buff *skb;
dma_addr_t buf_pa;
int i;
for (i = 0; i < MWIFIEX_MAX_EVT_BD; i++) {
/* Allocate skb here so that firmware can DMA data from it */
s... | mwifiex: pcie: Fix memory leak in mwifiex_pcie_init_evt_ring
In mwifiex_pcie_init_evt_ring, a new skb is allocated which should be
released if mwifiex_map_pci_memory() fails. The release for skb and
card->evtbd_ring_vbase is added.
Fixes: 0732484b47b5 ("mwifiex: separate ring initialization and ring creation routines... |
02434a86305756541e97ad83 | primevul | train | train:214172 | 4fd7158322872d711e90f091dbd8673ef32cb1be | linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/d10dcb615c8e29d403a24d35f8310a7a53e3050c | d10dcb615c8e29d403a24d35f8310a7a53e3050c | after | false | d10dcb615c8e29d403a24d35f8310a7a53e3050c | containers/d1/d10dcb615c8e29d403a24d35f8310a7a53e3050c_after.sif | sha256:591059abbbcad092044ea80e4cfb30adb7062b06d3de0175d2f0858846563b8d | sha256:0de1f6e1dadc169319a2c67a6168f582d72c5aec9d959052a890b0ba881dc9f8 | mwifiex_pcie_init_evt_ring | static int mwifiex_pcie_init_evt_ring(struct mwifiex_adapter *adapter)
{
struct pcie_service_card *card = adapter->card;
struct mwifiex_evt_buf_desc *desc;
struct sk_buff *skb;
dma_addr_t buf_pa;
int i;
for (i = 0; i < MWIFIEX_MAX_EVT_BD; i++) {
/* Allocate skb here so that firmware can DMA data from it */
s... | null | pcie.c | [
"CVE-2019-19057"
] | Two memory leaks in the mwifiex_pcie_init_evt_ring() function in drivers/net/wireless/marvell/mwifiex/pcie.c in the Linux kernel through 5.3.11 allow attackers to cause a denial of service (memory consumption) by triggering mwifiex_map_pci_memory() failures, aka CID-d10dcb615c8e. | [
"CWE-200"
] | null | null | static int mwifiex_pcie_init_evt_ring(struct mwifiex_adapter *adapter)
{
struct pcie_service_card *card = adapter->card;
struct mwifiex_evt_buf_desc *desc;
struct sk_buff *skb;
dma_addr_t buf_pa;
int i;
for (i = 0; i < MWIFIEX_MAX_EVT_BD; i++) {
/* Allocate skb here so that firmware can DMA data from it */
s... | static int mwifiex_pcie_init_evt_ring(struct mwifiex_adapter *adapter)
{
struct pcie_service_card *card = adapter->card;
struct mwifiex_evt_buf_desc *desc;
struct sk_buff *skb;
dma_addr_t buf_pa;
int i;
for (i = 0; i < MWIFIEX_MAX_EVT_BD; i++) {
/* Allocate skb here so that firmware can DMA data from it */
s... | mwifiex: pcie: Fix memory leak in mwifiex_pcie_init_evt_ring
In mwifiex_pcie_init_evt_ring, a new skb is allocated which should be
released if mwifiex_map_pci_memory() fails. The release for skb and
card->evtbd_ring_vbase is added.
Fixes: 0732484b47b5 ("mwifiex: separate ring initialization and ring creation routines... |
024cd57771fd2679e2a187fa | primevul | train | train:144 | 4fd7158322872d711e90f091dbd8673ef32cb1be | openssl | https://github.com/openssl/openssl | https://github.com/openssl/openssl | http://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=62e4506a7d4cec1c8e1ff687f6b220f6a62a57c7 | 62e4506a7d4cec1c8e1ff687f6b220f6a62a57c7 | before | true | 014265eb02e26f35c8db58e2ccbf100b0b2f0072 | containers/62/62e4506a7d4cec1c8e1ff687f6b220f6a62a57c7_before.sif | sha256:dfe22489d287f24af135a6c5a5ae6b5810725a6909b3d2953f0494201cfd9a39 | sha256:9701f2ff6264e501aa75072dafe45c8c4223026216d72d2be659233fad1f24d1 | ASN1_item_verify | int ASN1_item_verify(const ASN1_ITEM *it, X509_ALGOR *a,
ASN1_BIT_STRING *signature, void *asn, EVP_PKEY *pkey)
{
EVP_MD_CTX ctx;
unsigned char *buf_in=NULL;
int ret= -1,inl;
int mdnid, pknid;
EVP_MD_CTX_init(&ctx);
/* Convert signature OID into digest and public key OIDs */
{
if... | null | null | [
"CVE-2013-0166"
] | OpenSSL before 0.9.8y, 1.0.0 before 1.0.0k, and 1.0.1 before 1.0.1d does not properly perform signature verification for OCSP responses, which allows remote OCSP servers to cause a denial of service (NULL pointer dereference and application crash) via an invalid key. | [
"CWE-310"
] | null | null | int ASN1_item_verify(const ASN1_ITEM *it, X509_ALGOR *a,
ASN1_BIT_STRING *signature, void *asn, EVP_PKEY *pkey)
{
EVP_MD_CTX ctx;
unsigned char *buf_in=NULL;
int ret= -1,inl;
int mdnid, pknid;
EVP_MD_CTX_init(&ctx);
/* Convert signature OID into digest and public key OIDs */
{
if... | int ASN1_item_verify(const ASN1_ITEM *it, X509_ALGOR *a,
ASN1_BIT_STRING *signature, void *asn, EVP_PKEY *pkey)
{
EVP_MD_CTX ctx;
unsigned char *buf_in=NULL;
int ret= -1,inl;
int mdnid, pknid;
if (!pkey)
{
ASN1err(ASN1_F_ASN1_ITEM_VERIFY, ERR_R_PASSED_NULL_PARAMETE... | Don't try and verify signatures if key is NULL (CVE-2013-0166)
Add additional check to catch this in ASN1_item_verify too. |
024cd57771fd2679e2a187fa | primevul | train | train:144 | 4fd7158322872d711e90f091dbd8673ef32cb1be | openssl | https://github.com/openssl/openssl | https://github.com/openssl/openssl | http://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=62e4506a7d4cec1c8e1ff687f6b220f6a62a57c7 | 62e4506a7d4cec1c8e1ff687f6b220f6a62a57c7 | after | false | 62e4506a7d4cec1c8e1ff687f6b220f6a62a57c7 | containers/62/62e4506a7d4cec1c8e1ff687f6b220f6a62a57c7_after.sif | sha256:292767a944312ba2ef46b8ad6c40dbcd90174aa19d095ec674116cebd65e260b | sha256:6f82d8786902328eb0e3cad229d8e94dc7a0cd09be58855dbfe21ae026ab83f5 | ASN1_item_verify | int ASN1_item_verify(const ASN1_ITEM *it, X509_ALGOR *a,
ASN1_BIT_STRING *signature, void *asn, EVP_PKEY *pkey)
{
EVP_MD_CTX ctx;
unsigned char *buf_in=NULL;
int ret= -1,inl;
int mdnid, pknid;
if (!pkey)
{
ASN1err(ASN1_F_ASN1_ITEM_VERIFY, ERR_R_PASSED_NULL_PARAMETE... | null | null | [
"CVE-2013-0166"
] | OpenSSL before 0.9.8y, 1.0.0 before 1.0.0k, and 1.0.1 before 1.0.1d does not properly perform signature verification for OCSP responses, which allows remote OCSP servers to cause a denial of service (NULL pointer dereference and application crash) via an invalid key. | [
"CWE-310"
] | null | null | int ASN1_item_verify(const ASN1_ITEM *it, X509_ALGOR *a,
ASN1_BIT_STRING *signature, void *asn, EVP_PKEY *pkey)
{
EVP_MD_CTX ctx;
unsigned char *buf_in=NULL;
int ret= -1,inl;
int mdnid, pknid;
EVP_MD_CTX_init(&ctx);
/* Convert signature OID into digest and public key OIDs */
{
if... | int ASN1_item_verify(const ASN1_ITEM *it, X509_ALGOR *a,
ASN1_BIT_STRING *signature, void *asn, EVP_PKEY *pkey)
{
EVP_MD_CTX ctx;
unsigned char *buf_in=NULL;
int ret= -1,inl;
int mdnid, pknid;
if (!pkey)
{
ASN1err(ASN1_F_ASN1_ITEM_VERIFY, ERR_R_PASSED_NULL_PARAMETE... | Don't try and verify signatures if key is NULL (CVE-2013-0166)
Add additional check to catch this in ASN1_item_verify too. |
02564e7fcf083c1aee838313 | primevul | train | train:216839 | 4fd7158322872d711e90f091dbd8673ef32cb1be | qemu | https://github.com/bonzini/qemu | https://gitlab.com/qemu-project/qemu | https://gitlab.com/qemu-project/qemu/-/commit/46609b90d9e3a6304def11038a76b58ff43f77bc | 46609b90d9e3a6304def11038a76b58ff43f77bc | before | true | defac5e2fbddf8423a354ff0454283a2115e1367 | containers/46/46609b90d9e3a6304def11038a76b58ff43f77bc_before.sif | sha256:4076a35435c9236824730e8280160a0cf66c5981a94f0d0dd1ee8da783f53592 | sha256:7d43caf3db40ec1aa209b74bd15976ea7f9c652f8cd10645753acb70723ea1f2 | main | int main(int argc, char **argv)
{
int fd;
int ret;
/* Create a temporary raw image */
fd = mkstemp(test_image);
g_assert(fd >= 0);
ret = ftruncate(fd, TEST_IMAGE_SIZE);
g_assert(ret == 0);
close(fd);
/* Run the tests */
g_test_init(&argc, &argv, NULL);
qtest_start("-machin... | null | null | [
"CVE-2021-3507"
] | A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos... | [
"CWE-787"
] | null | null | int main(int argc, char **argv)
{
int fd;
int ret;
/* Create a temporary raw image */
fd = mkstemp(test_image);
g_assert(fd >= 0);
ret = ftruncate(fd, TEST_IMAGE_SIZE);
g_assert(ret == 0);
close(fd);
/* Run the tests */
g_test_init(&argc, &argv, NULL);
qtest_start("-machin... | int main(int argc, char **argv)
{
int fd;
int ret;
/* Create a temporary raw image */
fd = mkstemp(test_image);
g_assert(fd >= 0);
ret = ftruncate(fd, TEST_IMAGE_SIZE);
g_assert(ret == 0);
close(fd);
/* Run the tests */
g_test_init(&argc, &argv, NULL);
qtest_start("-machin... | tests/qtest/fdc-test: Add a regression test for CVE-2021-3507
Add the reproducer from https://gitlab.com/qemu-project/qemu/-/issues/339
Without the previous commit, when running 'make check-qtest-i386'
with QEMU configured with '--enable-sanitizers' we get:
==4028352==ERROR: AddressSanitizer: heap-buffer-overflow ... |
02564e7fcf083c1aee838313 | primevul | train | train:216839 | 4fd7158322872d711e90f091dbd8673ef32cb1be | qemu | https://github.com/bonzini/qemu | https://gitlab.com/qemu-project/qemu | https://gitlab.com/qemu-project/qemu/-/commit/46609b90d9e3a6304def11038a76b58ff43f77bc | 46609b90d9e3a6304def11038a76b58ff43f77bc | after | false | 46609b90d9e3a6304def11038a76b58ff43f77bc | containers/46/46609b90d9e3a6304def11038a76b58ff43f77bc_after.sif | sha256:29937d779c5c2c1891bb80d6a155a806cc3baacf74539f11e9036efc8f8e640b | sha256:5098f249dbc7458af09ee039980b35a63bccaa982b5b570bb1a1f194c5c9b031 | main | int main(int argc, char **argv)
{
int fd;
int ret;
/* Create a temporary raw image */
fd = mkstemp(test_image);
g_assert(fd >= 0);
ret = ftruncate(fd, TEST_IMAGE_SIZE);
g_assert(ret == 0);
close(fd);
/* Run the tests */
g_test_init(&argc, &argv, NULL);
qtest_start("-machin... | null | null | [
"CVE-2021-3507"
] | A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos... | [
"CWE-787"
] | null | null | int main(int argc, char **argv)
{
int fd;
int ret;
/* Create a temporary raw image */
fd = mkstemp(test_image);
g_assert(fd >= 0);
ret = ftruncate(fd, TEST_IMAGE_SIZE);
g_assert(ret == 0);
close(fd);
/* Run the tests */
g_test_init(&argc, &argv, NULL);
qtest_start("-machin... | int main(int argc, char **argv)
{
int fd;
int ret;
/* Create a temporary raw image */
fd = mkstemp(test_image);
g_assert(fd >= 0);
ret = ftruncate(fd, TEST_IMAGE_SIZE);
g_assert(ret == 0);
close(fd);
/* Run the tests */
g_test_init(&argc, &argv, NULL);
qtest_start("-machin... | tests/qtest/fdc-test: Add a regression test for CVE-2021-3507
Add the reproducer from https://gitlab.com/qemu-project/qemu/-/issues/339
Without the previous commit, when running 'make check-qtest-i386'
with QEMU configured with '--enable-sanitizers' we get:
==4028352==ERROR: AddressSanitizer: heap-buffer-overflow ... |
025c348b596f6c855125cfea | primevul | train | train:196999 | 4fd7158322872d711e90f091dbd8673ef32cb1be | LibRaw | https://github.com/LibRaw/LibRaw | https://github.com/LibRaw/LibRaw | https://github.com/LibRaw/LibRaw/commit/f1394822a0152ceed77815eafa5cac4e8baab10a | f1394822a0152ceed77815eafa5cac4e8baab10a | before | true | 74d179536a7ccac00796ccd9abc7a3f0fda22290 | containers/f1/f1394822a0152ceed77815eafa5cac4e8baab10a_before.sif | sha256:4ec9953f9cdb5a2f5433b029f025ec424a3e81e0807c84d57046ff4a89a45c3a | sha256:127e06f6bd6d7c013339b03e77e965b73c27bee72574dbe33317826fdfb5013e | panasonic_load_raw | void CLASS panasonic_load_raw()
{
int row, col, i, j, sh = 0, pred[2], nonz[2];
pana_bits(0);
for (row = 0; row < height; row++)
{
#ifdef LIBRAW_LIBRARY_BUILD
checkCancel();
#endif
for (col = 0; col < raw_width; col++)
{
if ((i = col % 14) == 0)
pred[0] = pred[1] = nonz[0] = nonz[1] =... | null | dcraw.c | [
"CVE-2017-16909"
] | An error related to the "LibRaw::panasonic_load_raw()" function (dcraw_common.cpp) in LibRaw versions prior to 0.18.6 can be exploited to cause a heap-based buffer overflow and subsequently cause a crash via a specially crafted TIFF image. | [
"CWE-125"
] | null | null | void CLASS panasonic_load_raw()
{
int row, col, i, j, sh = 0, pred[2], nonz[2];
pana_bits(0);
for (row = 0; row < height; row++)
{
#ifdef LIBRAW_LIBRARY_BUILD
checkCancel();
#endif
for (col = 0; col < raw_width; col++)
{
if ((i = col % 14) == 0)
pred[0] = pred[1] = nonz[0] = nonz[1] =... | void CLASS panasonic_load_raw()
{
int row, col, i, j, sh = 0, pred[2], nonz[2];
pana_bits(0);
for (row = 0; row < raw_height; row++)
{
#ifdef LIBRAW_LIBRARY_BUILD
checkCancel();
#endif
for (col = 0; col < raw_width; col++)
{
if ((i = col % 14) == 0)
pred[0] = pred[1] = nonz[0] = nonz[... | SECUNIA advisory 76000 #1 (wrong fuji width set via tiff tag |
025c348b596f6c855125cfea | primevul | train | train:196999 | 4fd7158322872d711e90f091dbd8673ef32cb1be | LibRaw | https://github.com/LibRaw/LibRaw | https://github.com/LibRaw/LibRaw | https://github.com/LibRaw/LibRaw/commit/f1394822a0152ceed77815eafa5cac4e8baab10a | f1394822a0152ceed77815eafa5cac4e8baab10a | after | false | f1394822a0152ceed77815eafa5cac4e8baab10a | containers/f1/f1394822a0152ceed77815eafa5cac4e8baab10a_after.sif | sha256:5be207ee416739d69c5d8851f9398a4880102618f2b33f2902d5555734c40c8c | sha256:0ab44a0fb7db0af8909879b9c9db59849b840e304c739009e1369e5ce2042f27 | panasonic_load_raw | void CLASS panasonic_load_raw()
{
int row, col, i, j, sh = 0, pred[2], nonz[2];
pana_bits(0);
for (row = 0; row < raw_height; row++)
{
#ifdef LIBRAW_LIBRARY_BUILD
checkCancel();
#endif
for (col = 0; col < raw_width; col++)
{
if ((i = col % 14) == 0)
pred[0] = pred[1] = nonz[0] = nonz[... | null | dcraw.c | [
"CVE-2017-16909"
] | An error related to the "LibRaw::panasonic_load_raw()" function (dcraw_common.cpp) in LibRaw versions prior to 0.18.6 can be exploited to cause a heap-based buffer overflow and subsequently cause a crash via a specially crafted TIFF image. | [
"CWE-125"
] | null | null | void CLASS panasonic_load_raw()
{
int row, col, i, j, sh = 0, pred[2], nonz[2];
pana_bits(0);
for (row = 0; row < height; row++)
{
#ifdef LIBRAW_LIBRARY_BUILD
checkCancel();
#endif
for (col = 0; col < raw_width; col++)
{
if ((i = col % 14) == 0)
pred[0] = pred[1] = nonz[0] = nonz[1] =... | void CLASS panasonic_load_raw()
{
int row, col, i, j, sh = 0, pred[2], nonz[2];
pana_bits(0);
for (row = 0; row < raw_height; row++)
{
#ifdef LIBRAW_LIBRARY_BUILD
checkCancel();
#endif
for (col = 0; col < raw_width; col++)
{
if ((i = col % 14) == 0)
pred[0] = pred[1] = nonz[0] = nonz[... | SECUNIA advisory 76000 #1 (wrong fuji width set via tiff tag |
02787630d833369ae066a0b2 | primevul | train | train:208026 | 4fd7158322872d711e90f091dbd8673ef32cb1be | bpf | https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf | https://kernel.googlesource.com/pub/scm/linux/kernel/git/bpf/bpf.git | https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git/commit/?id=c4eb1f403243fc7bbb7de644db8587c03de36da6 | c4eb1f403243fc7bbb7de644db8587c03de36da6 | before | true | 7c4a22339e7ce7b6ed473a8e682da622c3a774ee | containers/c4/c4eb1f403243fc7bbb7de644db8587c03de36da6_before.sif | sha256:bfc2dc1a5c3765f47f45d12b8b21903cc0fc03079aa7aefc23264f91167165a8 | sha256:0d9e3c95e0f23a77ec825c3335d7d132918685d2bc7c3eacf5d1e7eb01edd856 | __htab_map_lookup_and_delete_batch | __htab_map_lookup_and_delete_batch(struct bpf_map *map,
const union bpf_attr *attr,
union bpf_attr __user *uattr,
bool do_delete, bool is_lru_map,
bool is_percpu)
{
struct bpf_htab *htab = container_of(map, struct bpf_htab, map);
u32 bucket_cnt, total, key_size, value_size, roundup_key_siz... | null | hashtab.c | [
"CVE-2021-38166"
] | In kernel/bpf/hashtab.c in the Linux kernel through 5.13.8, there is an integer overflow and out-of-bounds write when many elements are placed in a single bucket. NOTE: exploitation might be impractical without the CAP_SYS_ADMIN capability. | [
"CWE-787"
] | null | null | __htab_map_lookup_and_delete_batch(struct bpf_map *map,
const union bpf_attr *attr,
union bpf_attr __user *uattr,
bool do_delete, bool is_lru_map,
bool is_percpu)
{
struct bpf_htab *htab = container_of(map, struct bpf_htab, map);
u32 bucket_cnt, total, key_size, value_size, roundup_key_siz... | __htab_map_lookup_and_delete_batch(struct bpf_map *map,
const union bpf_attr *attr,
union bpf_attr __user *uattr,
bool do_delete, bool is_lru_map,
bool is_percpu)
{
struct bpf_htab *htab = container_of(map, struct bpf_htab, map);
u32 bucket_cnt, total, key_size, value_size, roundup_key_siz... | bpf: Fix integer overflow involving bucket_size
In __htab_map_lookup_and_delete_batch(), hash buckets are iterated
over to count the number of elements in each bucket (bucket_size).
If bucket_size is large enough, the multiplication to calculate
kvmalloc() size could overflow, resulting in out-of-bounds write
as repor... |
02787630d833369ae066a0b2 | primevul | train | train:208026 | 4fd7158322872d711e90f091dbd8673ef32cb1be | bpf | https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf | https://kernel.googlesource.com/pub/scm/linux/kernel/git/bpf/bpf.git | https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git/commit/?id=c4eb1f403243fc7bbb7de644db8587c03de36da6 | c4eb1f403243fc7bbb7de644db8587c03de36da6 | after | false | c4eb1f403243fc7bbb7de644db8587c03de36da6 | containers/c4/c4eb1f403243fc7bbb7de644db8587c03de36da6_after.sif | sha256:916d534bd5c5b520c93e89635f8b4e158ec4ac009d76ad5df47e52b12b5c0edc | sha256:0e15184932c6118e033e0464866a7bc8bb88c0c40d2bf9068c33210704e7ed2e | __htab_map_lookup_and_delete_batch | __htab_map_lookup_and_delete_batch(struct bpf_map *map,
const union bpf_attr *attr,
union bpf_attr __user *uattr,
bool do_delete, bool is_lru_map,
bool is_percpu)
{
struct bpf_htab *htab = container_of(map, struct bpf_htab, map);
u32 bucket_cnt, total, key_size, value_size, roundup_key_siz... | null | hashtab.c | [
"CVE-2021-38166"
] | In kernel/bpf/hashtab.c in the Linux kernel through 5.13.8, there is an integer overflow and out-of-bounds write when many elements are placed in a single bucket. NOTE: exploitation might be impractical without the CAP_SYS_ADMIN capability. | [
"CWE-787"
] | null | null | __htab_map_lookup_and_delete_batch(struct bpf_map *map,
const union bpf_attr *attr,
union bpf_attr __user *uattr,
bool do_delete, bool is_lru_map,
bool is_percpu)
{
struct bpf_htab *htab = container_of(map, struct bpf_htab, map);
u32 bucket_cnt, total, key_size, value_size, roundup_key_siz... | __htab_map_lookup_and_delete_batch(struct bpf_map *map,
const union bpf_attr *attr,
union bpf_attr __user *uattr,
bool do_delete, bool is_lru_map,
bool is_percpu)
{
struct bpf_htab *htab = container_of(map, struct bpf_htab, map);
u32 bucket_cnt, total, key_size, value_size, roundup_key_siz... | bpf: Fix integer overflow involving bucket_size
In __htab_map_lookup_and_delete_batch(), hash buckets are iterated
over to count the number of elements in each bucket (bucket_size).
If bucket_size is large enough, the multiplication to calculate
kvmalloc() size could overflow, resulting in out-of-bounds write
as repor... |
027daa9d80824a58b6455467 | primevul | train | train:26 | 4fd7158322872d711e90f091dbd8673ef32cb1be | haproxy | https://github.com/haproxy/haproxy | https://github.com/haproxy/haproxy | https://git.haproxy.org/?p=haproxy.git;a=commit;h=58df5aea0a0c926b2238f65908f5e9f83d1cca25 | 58df5aea0a0c926b2238f65908f5e9f83d1cca25 | before | true | adb222004120a3ab242d04469e08e44d8ae9c35b | containers/58/58df5aea0a0c926b2238f65908f5e9f83d1cca25_before.sif | sha256:10b007b8c27097116a3f26d2f4822a1b19c0ba12261083e0aefa3381a8a8419a | sha256:3a7719cd422f0f255c1f6f45c8e4225cc97fd5ed5e697813b62a262c07bba84e | dns_read_name | int dns_read_name(unsigned char *buffer, unsigned char *bufend,
unsigned char *name, char *destination, int dest_len,
int *offset)
{
int nb_bytes = 0, n = 0;
int label_len;
unsigned char *reader = name;
char *dest = destination;
while (1) {
/* Name compression ... | null | null | [
"CVE-2018-20103"
] | An issue was discovered in dns.c in HAProxy through 1.8.14. In the case of a compressed pointer, a crafted packet can trigger infinite recursion by making the pointer point to itself, or create a long chain of valid pointers resulting in stack exhaustion. | [
"CWE-835"
] | null | null | int dns_read_name(unsigned char *buffer, unsigned char *bufend,
unsigned char *name, char *destination, int dest_len,
int *offset)
{
int nb_bytes = 0, n = 0;
int label_len;
unsigned char *reader = name;
char *dest = destination;
while (1) {
/* Name compression ... | int dns_read_name(unsigned char *buffer, unsigned char *bufend,
unsigned char *name, char *destination, int dest_len,
int *offset, unsigned int depth)
{
int nb_bytes = 0, n = 0;
int label_len;
unsigned char *reader = name;
char *dest = destination;
while (1) {
... | BUG: dns: Prevent stack-exhaustion via recursion loop in dns_read_name
When a compressed pointer is encountered, dns_read_name() will call
itself with the pointed-to offset in the packet.
With a specially crafted packet, it was possible to trigger an
infinite-loop recursion by making the pointer points to itself.
Whil... |
027daa9d80824a58b6455467 | primevul | train | train:26 | 4fd7158322872d711e90f091dbd8673ef32cb1be | haproxy | https://github.com/haproxy/haproxy | https://github.com/haproxy/haproxy | https://git.haproxy.org/?p=haproxy.git;a=commit;h=58df5aea0a0c926b2238f65908f5e9f83d1cca25 | 58df5aea0a0c926b2238f65908f5e9f83d1cca25 | after | false | 58df5aea0a0c926b2238f65908f5e9f83d1cca25 | containers/58/58df5aea0a0c926b2238f65908f5e9f83d1cca25_after.sif | sha256:b31d348e354997362205e9750e0b883911e0d9e115aeb716bce68084d6a5d21c | sha256:2e399264a584091411aee2243f1ec2ec5cb474778484cefc4fd9ebc1a0f9c3a5 | dns_read_name | int dns_read_name(unsigned char *buffer, unsigned char *bufend,
unsigned char *name, char *destination, int dest_len,
int *offset, unsigned int depth)
{
int nb_bytes = 0, n = 0;
int label_len;
unsigned char *reader = name;
char *dest = destination;
while (1) {
... | null | null | [
"CVE-2018-20103"
] | An issue was discovered in dns.c in HAProxy through 1.8.14. In the case of a compressed pointer, a crafted packet can trigger infinite recursion by making the pointer point to itself, or create a long chain of valid pointers resulting in stack exhaustion. | [
"CWE-835"
] | null | null | int dns_read_name(unsigned char *buffer, unsigned char *bufend,
unsigned char *name, char *destination, int dest_len,
int *offset)
{
int nb_bytes = 0, n = 0;
int label_len;
unsigned char *reader = name;
char *dest = destination;
while (1) {
/* Name compression ... | int dns_read_name(unsigned char *buffer, unsigned char *bufend,
unsigned char *name, char *destination, int dest_len,
int *offset, unsigned int depth)
{
int nb_bytes = 0, n = 0;
int label_len;
unsigned char *reader = name;
char *dest = destination;
while (1) {
... | BUG: dns: Prevent stack-exhaustion via recursion loop in dns_read_name
When a compressed pointer is encountered, dns_read_name() will call
itself with the pointed-to offset in the packet.
With a specially crafted packet, it was possible to trigger an
infinite-loop recursion by making the pointer points to itself.
Whil... |
0289994e92edc872819a1088 | primevul | train | train:215 | 4fd7158322872d711e90f091dbd8673ef32cb1be | poppler | https://github.com/freedesktop/poppler | https://gitlab.freedesktop.org/poppler/poppler | https://cgit.freedesktop.org/poppler/poppler/commit/?id=5c9b08a875b07853be6c44e43ff5f7f059df666a | 5c9b08a875b07853be6c44e43ff5f7f059df666a | before | true | ff05069f34a00d67cdddb033f6240a3407e90057 | containers/5c/5c9b08a875b07853be6c44e43ff5f7f059df666a_before.sif | sha256:c12e72c1cc69b748c5b133dd7aa9e0e8ae6ab90cd10eb6b859075a8f4c30491c | sha256:ab2c716698f186854ab3bc389660633d7a88724318d1c2e3cddfe8b12fe4ec99 | main | int main (int argc, char *argv[])
{
int objectsCount = 0;
Guint numOffset = 0;
std::vector<Object> pages;
std::vector<Guint> offsets;
XRef *yRef, *countRef;
FILE *f;
OutStream *outStr;
int i;
int j, rootNum;
std::vector<PDFDoc *>docs;
int majorVersion = 0;
int minorVersion = 0;
char *fileName ... | null | null | [
"CVE-2017-7511"
] | poppler since version 0.17.3 has been vulnerable to NULL pointer dereference in pdfunite triggered by specially crafted documents. | [
"CWE-476"
] | null | null | int main (int argc, char *argv[])
{
int objectsCount = 0;
Guint numOffset = 0;
std::vector<Object> pages;
std::vector<Guint> offsets;
XRef *yRef, *countRef;
FILE *f;
OutStream *outStr;
int i;
int j, rootNum;
std::vector<PDFDoc *>docs;
int majorVersion = 0;
int minorVersion = 0;
char *fileName ... | int main (int argc, char *argv[])
{
int objectsCount = 0;
Guint numOffset = 0;
std::vector<Object> pages;
std::vector<Guint> offsets;
XRef *yRef, *countRef;
FILE *f;
OutStream *outStr;
int i;
int j, rootNum;
std::vector<PDFDoc *>docs;
int majorVersion = 0;
int minorVersion = 0;
char *fileName ... | pdfunite: Fix crash with broken documents
Sometimes we can't parse pages so check before accessing them
Thanks to Jiaqi Peng for the report
Fixes bugs #101153 and #101149 |
0289994e92edc872819a1088 | primevul | train | train:215 | 4fd7158322872d711e90f091dbd8673ef32cb1be | poppler | https://github.com/freedesktop/poppler | https://gitlab.freedesktop.org/poppler/poppler | https://cgit.freedesktop.org/poppler/poppler/commit/?id=5c9b08a875b07853be6c44e43ff5f7f059df666a | 5c9b08a875b07853be6c44e43ff5f7f059df666a | after | false | 5c9b08a875b07853be6c44e43ff5f7f059df666a | containers/5c/5c9b08a875b07853be6c44e43ff5f7f059df666a_after.sif | sha256:46e6b1e809bd93a25f1dd4d7795ee77c0204d2ba924bdecc0e9371203cd281cf | sha256:415a67cd5e309d8ba89f759119685a56dcd9a8c99493e0d8cb1475fea48f302f | main | int main (int argc, char *argv[])
{
int objectsCount = 0;
Guint numOffset = 0;
std::vector<Object> pages;
std::vector<Guint> offsets;
XRef *yRef, *countRef;
FILE *f;
OutStream *outStr;
int i;
int j, rootNum;
std::vector<PDFDoc *>docs;
int majorVersion = 0;
int minorVersion = 0;
char *fileName ... | null | null | [
"CVE-2017-7511"
] | poppler since version 0.17.3 has been vulnerable to NULL pointer dereference in pdfunite triggered by specially crafted documents. | [
"CWE-476"
] | null | null | int main (int argc, char *argv[])
{
int objectsCount = 0;
Guint numOffset = 0;
std::vector<Object> pages;
std::vector<Guint> offsets;
XRef *yRef, *countRef;
FILE *f;
OutStream *outStr;
int i;
int j, rootNum;
std::vector<PDFDoc *>docs;
int majorVersion = 0;
int minorVersion = 0;
char *fileName ... | int main (int argc, char *argv[])
{
int objectsCount = 0;
Guint numOffset = 0;
std::vector<Object> pages;
std::vector<Guint> offsets;
XRef *yRef, *countRef;
FILE *f;
OutStream *outStr;
int i;
int j, rootNum;
std::vector<PDFDoc *>docs;
int majorVersion = 0;
int minorVersion = 0;
char *fileName ... | pdfunite: Fix crash with broken documents
Sometimes we can't parse pages so check before accessing them
Thanks to Jiaqi Peng for the report
Fixes bugs #101153 and #101149 |
02991ffb93581d19b9df6876 | primevul | train | train:10728 | 4fd7158322872d711e90f091dbd8673ef32cb1be | radare2 | https://github.com/radare/radare2 | https://github.com/radare/radare2 | https://github.com/radare/radare2/commit/bbb4af56003c1afdad67af0c4339267ca38b1017 | bbb4af56003c1afdad67af0c4339267ca38b1017 | before | true | bceeb37213d4bd9b0ecca0bb5784c343dd23d303 | containers/bb/bbb4af56003c1afdad67af0c4339267ca38b1017_before.sif | sha256:29127dca6e0659017c662170f0001b8bdae6591297c300104384699b239b0a34 | sha256:4db42d8bc3d3c024f119148abed2ebf03a2c6d871461cd8b36839aa633215007 | _6502_op | static int _6502_op(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *data, int len) {
char addrbuf[64];
const int buffsize = sizeof (addrbuf) - 1;
memset (op, '\0', sizeof (RAnalOp));
op->size = snes_op_get_size (1, 1, &snes_op[data[0]]); //snes-arch is similiar to nes/6502
op->addr = addr;
op->type = R_ANAL_OP_T... | null | anal_6502.c | [
"CVE-2018-12322"
] | There is a heap out of bounds read in radare2 2.6.0 in _6502_op() in libr/anal/p/anal_6502.c via a crafted iNES ROM binary file. | [
"CWE-125"
] | null | null | static int _6502_op(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *data, int len) {
char addrbuf[64];
const int buffsize = sizeof (addrbuf) - 1;
memset (op, '\0', sizeof (RAnalOp));
op->size = snes_op_get_size (1, 1, &snes_op[data[0]]); //snes-arch is similiar to nes/6502
op->addr = addr;
op->type = R_ANAL_OP_T... | static int _6502_op(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *data, int len) {
char addrbuf[64];
const int buffsize = sizeof (addrbuf) - 1;
memset (op, '\0', sizeof (RAnalOp));
op->size = snes_op_get_size (1, 1, &snes_op[data[0]]); //snes-arch is similiar to nes/6502
op->addr = addr;
op->type = R_ANAL_OP_T... | Fix #10294 - crash in r2_hoobr__6502_op |
02991ffb93581d19b9df6876 | primevul | train | train:10728 | 4fd7158322872d711e90f091dbd8673ef32cb1be | radare2 | https://github.com/radare/radare2 | https://github.com/radare/radare2 | https://github.com/radare/radare2/commit/bbb4af56003c1afdad67af0c4339267ca38b1017 | bbb4af56003c1afdad67af0c4339267ca38b1017 | after | false | bbb4af56003c1afdad67af0c4339267ca38b1017 | containers/bb/bbb4af56003c1afdad67af0c4339267ca38b1017_after.sif | sha256:81fe6f793d6d9d68a48b225bcbb70465c718650051d0bbfb6893f3334341f3be | sha256:ab74f804642c8233ed95c278c9475dca653aafd48d864a238cbf363bc7c876ed | _6502_op | static int _6502_op(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *data, int len) {
char addrbuf[64];
const int buffsize = sizeof (addrbuf) - 1;
memset (op, '\0', sizeof (RAnalOp));
op->size = snes_op_get_size (1, 1, &snes_op[data[0]]); //snes-arch is similiar to nes/6502
op->addr = addr;
op->type = R_ANAL_OP_T... | null | anal_6502.c | [
"CVE-2018-12322"
] | There is a heap out of bounds read in radare2 2.6.0 in _6502_op() in libr/anal/p/anal_6502.c via a crafted iNES ROM binary file. | [
"CWE-125"
] | null | null | static int _6502_op(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *data, int len) {
char addrbuf[64];
const int buffsize = sizeof (addrbuf) - 1;
memset (op, '\0', sizeof (RAnalOp));
op->size = snes_op_get_size (1, 1, &snes_op[data[0]]); //snes-arch is similiar to nes/6502
op->addr = addr;
op->type = R_ANAL_OP_T... | static int _6502_op(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *data, int len) {
char addrbuf[64];
const int buffsize = sizeof (addrbuf) - 1;
memset (op, '\0', sizeof (RAnalOp));
op->size = snes_op_get_size (1, 1, &snes_op[data[0]]); //snes-arch is similiar to nes/6502
op->addr = addr;
op->type = R_ANAL_OP_T... | Fix #10294 - crash in r2_hoobr__6502_op |
029a2d6ec006289dc0238c06 | primevul | train | train:8484 | 4fd7158322872d711e90f091dbd8673ef32cb1be | Android | null | https://android.googlesource.com/platform/external/aac | https://android.googlesource.com/platform/external/aac/+/5d4405f601fa11a8955fd7611532c982420e4206 | 5d4405f601fa11a8955fd7611532c982420e4206 | before | true | 48b330d303727e1f2671f844a1d541d596f6d5da | containers/5d/5d4405f601fa11a8955fd7611532c982420e4206_before.sif | sha256:2485b4ca49c12b9f8c03d8b2609d07f742261cefb7d63b38a8ec9fba0749df5c | sha256:014a0502c1a8cb9ca025e20adcc0d0637f7b7e711fffde6695b13c4445db4b56 | aacDecoder_drcExtractAndMap | static int aacDecoder_drcExtractAndMap (
HANDLE_AAC_DRC self,
HANDLE_FDK_BITSTREAM hBs,
CAacDecoderStaticChannelInfo *pAacDecoderStaticChannelInfo[],
UCHAR pceInstanceTag,
UCHAR channelMapping[], /* Channel mapping translating drcChannel index to canonical channel index */
int va... | null | null | [
"CVE-2016-2428"
] | libAACdec/src/aacdec_drc.cpp in mediaserver in Android 4.x before 4.4.4, 5.0.x before 5.0.2, 5.1.x before 5.1.1, and 6.x before 2016-05-01 does not properly limit the number of threads, which allows remote attackers to execute arbitrary code or cause a denial of service (stack memory corruption) via a crafted media fil... | [
"CWE-119"
] | null | null | static int aacDecoder_drcExtractAndMap (
HANDLE_AAC_DRC self,
HANDLE_FDK_BITSTREAM hBs,
CAacDecoderStaticChannelInfo *pAacDecoderStaticChannelInfo[],
UCHAR pceInstanceTag,
UCHAR channelMapping[], /* Channel mapping translating drcChannel index to canonical channel index */
int va... | static int aacDecoder_drcExtractAndMap (
HANDLE_AAC_DRC self,
HANDLE_FDK_BITSTREAM hBs,
CAacDecoderStaticChannelInfo *pAacDecoderStaticChannelInfo[],
UCHAR pceInstanceTag,
UCHAR channelMapping[], /* Channel mapping translating drcChannel index to canonical channel index */
int va... | null |
029a2d6ec006289dc0238c06 | primevul | train | train:8484 | 4fd7158322872d711e90f091dbd8673ef32cb1be | Android | null | https://android.googlesource.com/platform/external/aac | https://android.googlesource.com/platform/external/aac/+/5d4405f601fa11a8955fd7611532c982420e4206 | 5d4405f601fa11a8955fd7611532c982420e4206 | after | false | 5d4405f601fa11a8955fd7611532c982420e4206 | containers/5d/5d4405f601fa11a8955fd7611532c982420e4206_after.sif | sha256:8a03d54ef11f4d87d6957e0f5c9734f99790a832a4f5507997b8a8aa10480010 | sha256:ed78795f074035d13503fc0790ab66dd1592501fa0009e8769932eaf98e80d66 | aacDecoder_drcExtractAndMap | static int aacDecoder_drcExtractAndMap (
HANDLE_AAC_DRC self,
HANDLE_FDK_BITSTREAM hBs,
CAacDecoderStaticChannelInfo *pAacDecoderStaticChannelInfo[],
UCHAR pceInstanceTag,
UCHAR channelMapping[], /* Channel mapping translating drcChannel index to canonical channel index */
int va... | null | null | [
"CVE-2016-2428"
] | libAACdec/src/aacdec_drc.cpp in mediaserver in Android 4.x before 4.4.4, 5.0.x before 5.0.2, 5.1.x before 5.1.1, and 6.x before 2016-05-01 does not properly limit the number of threads, which allows remote attackers to execute arbitrary code or cause a denial of service (stack memory corruption) via a crafted media fil... | [
"CWE-119"
] | null | null | static int aacDecoder_drcExtractAndMap (
HANDLE_AAC_DRC self,
HANDLE_FDK_BITSTREAM hBs,
CAacDecoderStaticChannelInfo *pAacDecoderStaticChannelInfo[],
UCHAR pceInstanceTag,
UCHAR channelMapping[], /* Channel mapping translating drcChannel index to canonical channel index */
int va... | static int aacDecoder_drcExtractAndMap (
HANDLE_AAC_DRC self,
HANDLE_FDK_BITSTREAM hBs,
CAacDecoderStaticChannelInfo *pAacDecoderStaticChannelInfo[],
UCHAR pceInstanceTag,
UCHAR channelMapping[], /* Channel mapping translating drcChannel index to canonical channel index */
int va... | null |
029aef5887ad60e62d309a7d | primevul | train | train:209078 | 4fd7158322872d711e90f091dbd8673ef32cb1be | ImageMagick6 | https://github.com/ImageMagick/ImageMagick6 | https://github.com/ImageMagick/ImageMagick6 | https://github.com/ImageMagick/ImageMagick6/commit/db7a4be592328af06d776ce3bab24b8c6de5be20 | db7a4be592328af06d776ce3bab24b8c6de5be20 | before | true | 695f2ce94bd88f33d2b8bdb8fc3eed135c3fa527 | containers/db/db7a4be592328af06d776ce3bab24b8c6de5be20_before.sif | sha256:ee55bfc4c86b7572d180d03802a4c4ae059aa740ad16391f7fd761193aaed90d | sha256:14244641a44647a5388a98534e4d429c88b1d85424380f92def796a35c44e652 | ReadMATImageV4 | static Image *ReadMATImageV4(const ImageInfo *image_info,Image *image,
ExceptionInfo *exception)
{
typedef struct {
unsigned char Type[4];
unsigned int nRows;
unsigned int nCols;
unsigned int imagf;
unsigned int nameLen;
} MAT4_HDR;
long
ldblk;
EndianType
endian;
Image
*ro... | null | mat.c | [
"CVE-2018-14551"
] | The ReadMATImageV4 function in coders/mat.c in ImageMagick 7.0.8-7 uses an uninitialized variable, leading to memory corruption. | [
"CWE-787"
] | null | null | static Image *ReadMATImageV4(const ImageInfo *image_info,Image *image,
ExceptionInfo *exception)
{
typedef struct {
unsigned char Type[4];
unsigned int nRows;
unsigned int nCols;
unsigned int imagf;
unsigned int nameLen;
} MAT4_HDR;
long
ldblk;
EndianType
endian;
Image
*ro... | static Image *ReadMATImageV4(const ImageInfo *image_info,Image *image,
ExceptionInfo *exception)
{
typedef struct {
unsigned char Type[4];
unsigned int nRows;
unsigned int nCols;
unsigned int imagf;
unsigned int nameLen;
} MAT4_HDR;
long
ldblk;
EndianType
endian;
Image
*ro... | https://github.com/ImageMagick/ImageMagick/issues/1221 |
029aef5887ad60e62d309a7d | primevul | train | train:209078 | 4fd7158322872d711e90f091dbd8673ef32cb1be | ImageMagick6 | https://github.com/ImageMagick/ImageMagick6 | https://github.com/ImageMagick/ImageMagick6 | https://github.com/ImageMagick/ImageMagick6/commit/db7a4be592328af06d776ce3bab24b8c6de5be20 | db7a4be592328af06d776ce3bab24b8c6de5be20 | after | false | db7a4be592328af06d776ce3bab24b8c6de5be20 | containers/db/db7a4be592328af06d776ce3bab24b8c6de5be20_after.sif | sha256:4996944190dd96f461ba7a5ecda0ef14b6d6d1062c6ac9db6722989a56f0b9cd | sha256:75604a841444fdae63300f145ebc4651cf8dce1fe3f8bff516c0a57f486350ac | ReadMATImageV4 | static Image *ReadMATImageV4(const ImageInfo *image_info,Image *image,
ExceptionInfo *exception)
{
typedef struct {
unsigned char Type[4];
unsigned int nRows;
unsigned int nCols;
unsigned int imagf;
unsigned int nameLen;
} MAT4_HDR;
long
ldblk;
EndianType
endian;
Image
*ro... | null | mat.c | [
"CVE-2018-14551"
] | The ReadMATImageV4 function in coders/mat.c in ImageMagick 7.0.8-7 uses an uninitialized variable, leading to memory corruption. | [
"CWE-787"
] | null | null | static Image *ReadMATImageV4(const ImageInfo *image_info,Image *image,
ExceptionInfo *exception)
{
typedef struct {
unsigned char Type[4];
unsigned int nRows;
unsigned int nCols;
unsigned int imagf;
unsigned int nameLen;
} MAT4_HDR;
long
ldblk;
EndianType
endian;
Image
*ro... | static Image *ReadMATImageV4(const ImageInfo *image_info,Image *image,
ExceptionInfo *exception)
{
typedef struct {
unsigned char Type[4];
unsigned int nRows;
unsigned int nCols;
unsigned int imagf;
unsigned int nameLen;
} MAT4_HDR;
long
ldblk;
EndianType
endian;
Image
*ro... | https://github.com/ImageMagick/ImageMagick/issues/1221 |
02b705bd96b50a46ab53e883 | primevul | train | train:3707 | 4fd7158322872d711e90f091dbd8673ef32cb1be | radare2 | https://github.com/radare/radare2 | https://github.com/radare/radare2 | https://github.com/radare/radare2/commit/60208765887f5f008b3b9a883f3addc8bdb9c134 | 60208765887f5f008b3b9a883f3addc8bdb9c134 | before | true | bd276ef2fd8ac3401e65be7c126a43175ccfbcd7 | containers/60/60208765887f5f008b3b9a883f3addc8bdb9c134_before.sif | sha256:7cb14340617b8ab720976a5376d2cd389f39ca22bf1a75bc1fbff29e1156717d | sha256:126120ec9cd8ca99730dd183e0ba6002af42387bba258edbe5b3f1ae1e982854 | MACH0_ | static int parse_import_ptr(struct MACH0_(obj_t)* bin, struct reloc_t *reloc, int idx) {
int i, j, sym, wordsize;
ut32 stype;
wordsize = MACH0_(get_bits)(bin) / 8;
if (idx < 0 || idx >= bin->nsymtab) {
return 0;
}
if ((bin->symtab[idx].n_desc & REFERENCE_TYPE) == REFERENCE_FLAG_UNDEFINED_LAZY) {
stype = S_LAZ... | null | mach0.c | [
"CVE-2018-11380"
] | The parse_import_ptr() function in radare2 2.5.0 allows remote attackers to cause a denial of service (heap-based out-of-bounds read and application crash) via a crafted Mach-O file. | [
"CWE-125"
] | null | null | static int parse_import_ptr(struct MACH0_(obj_t)* bin, struct reloc_t *reloc, int idx) {
int i, j, sym, wordsize;
ut32 stype;
wordsize = MACH0_(get_bits)(bin) / 8;
if (idx < 0 || idx >= bin->nsymtab) {
return 0;
}
if ((bin->symtab[idx].n_desc & REFERENCE_TYPE) == REFERENCE_FLAG_UNDEFINED_LAZY) {
stype = S_LAZ... | static int parse_import_ptr(struct MACH0_(obj_t)* bin, struct reloc_t *reloc, int idx) {
int i, j, sym, wordsize;
ut32 stype;
wordsize = MACH0_(get_bits)(bin) / 8;
if (idx < 0 || idx >= bin->nsymtab) {
return 0;
}
if ((bin->symtab[idx].n_desc & REFERENCE_TYPE) == REFERENCE_FLAG_UNDEFINED_LAZY) {
stype = S_LAZ... | Fix #9970 - heap oobread in mach0 parser (#10026) |
02b705bd96b50a46ab53e883 | primevul | train | train:3707 | 4fd7158322872d711e90f091dbd8673ef32cb1be | radare2 | https://github.com/radare/radare2 | https://github.com/radare/radare2 | https://github.com/radare/radare2/commit/60208765887f5f008b3b9a883f3addc8bdb9c134 | 60208765887f5f008b3b9a883f3addc8bdb9c134 | after | false | 60208765887f5f008b3b9a883f3addc8bdb9c134 | containers/60/60208765887f5f008b3b9a883f3addc8bdb9c134_after.sif | sha256:6ac568d16862bacc2348aba58a415856419dd5e849ac00423cafccca57144cbb | sha256:264ad9dd607279715be7a64356574647705b39826e5dcee497d49c661eec59a4 | MACH0_ | static int parse_import_ptr(struct MACH0_(obj_t)* bin, struct reloc_t *reloc, int idx) {
int i, j, sym, wordsize;
ut32 stype;
wordsize = MACH0_(get_bits)(bin) / 8;
if (idx < 0 || idx >= bin->nsymtab) {
return 0;
}
if ((bin->symtab[idx].n_desc & REFERENCE_TYPE) == REFERENCE_FLAG_UNDEFINED_LAZY) {
stype = S_LAZ... | null | mach0.c | [
"CVE-2018-11380"
] | The parse_import_ptr() function in radare2 2.5.0 allows remote attackers to cause a denial of service (heap-based out-of-bounds read and application crash) via a crafted Mach-O file. | [
"CWE-125"
] | null | null | static int parse_import_ptr(struct MACH0_(obj_t)* bin, struct reloc_t *reloc, int idx) {
int i, j, sym, wordsize;
ut32 stype;
wordsize = MACH0_(get_bits)(bin) / 8;
if (idx < 0 || idx >= bin->nsymtab) {
return 0;
}
if ((bin->symtab[idx].n_desc & REFERENCE_TYPE) == REFERENCE_FLAG_UNDEFINED_LAZY) {
stype = S_LAZ... | static int parse_import_ptr(struct MACH0_(obj_t)* bin, struct reloc_t *reloc, int idx) {
int i, j, sym, wordsize;
ut32 stype;
wordsize = MACH0_(get_bits)(bin) / 8;
if (idx < 0 || idx >= bin->nsymtab) {
return 0;
}
if ((bin->symtab[idx].n_desc & REFERENCE_TYPE) == REFERENCE_FLAG_UNDEFINED_LAZY) {
stype = S_LAZ... | Fix #9970 - heap oobread in mach0 parser (#10026) |
030360db88af18329418c18d | primevul | train | train:364 | 4fd7158322872d711e90f091dbd8673ef32cb1be | savannah | https://git.savannah.gnu.org/gitweb/?p=gnutls | https://git.savannah.gnu.org/git/libtasn1.git | https://git.savannah.gnu.org/cgit/libtasn1.git/commit/?id=1c3ccb3e040bf13e342ee60bc23b21b97b11923f | 1c3ccb3e040bf13e342ee60bc23b21b97b11923f | before | true | 8596690b7885520d8d0b864e53cf94cc4051360a | containers/1c/1c3ccb3e040bf13e342ee60bc23b21b97b11923f_before.sif | sha256:dc0d9fe826f8289c9141980bbfe2ca443b0ce9a46560ed87894a2b2ebc659129 | sha256:7718cd6515475a95aedfdcd4de0b9081889cb835cb6c24992ec551a1fe2b664c | asn1_get_bit_der | asn1_get_bit_der (const unsigned char *der, int der_len,
int *ret_len, unsigned char *str, int str_size,
int *bit_len)
{
int len_len, len_byte;
if (der_len <= 0)
return ASN1_GENERIC_ERROR;
len_byte = asn1_get_length_der (der, der_len, &len_len) - 1;
if (len_byte < 0)
return ASN1_DER_ERROR... | null | null | [
"CVE-2014-3468"
] | The asn1_get_bit_der function in GNU Libtasn1 before 3.6 does not properly report an error when a negative bit length is identified, which allows context-dependent attackers to cause out-of-bounds access via crafted ASN.1 data. | [
"CWE-189"
] | null | null | asn1_get_bit_der (const unsigned char *der, int der_len,
int *ret_len, unsigned char *str, int str_size,
int *bit_len)
{
int len_len, len_byte;
if (der_len <= 0)
return ASN1_GENERIC_ERROR;
len_byte = asn1_get_length_der (der, der_len, &len_len) - 1;
if (len_byte < 0)
return ASN1_DER_ERROR... | asn1_get_bit_der (const unsigned char *der, int der_len,
int *ret_len, unsigned char *str, int str_size,
int *bit_len)
{
int len_len = 0, len_byte;
if (der_len <= 0)
return ASN1_GENERIC_ERROR;
len_byte = asn1_get_length_der (der, der_len, &len_len) - 1;
if (len_byte < 0)
return ASN1_DER_E... | null |
030360db88af18329418c18d | primevul | train | train:364 | 4fd7158322872d711e90f091dbd8673ef32cb1be | savannah | https://git.savannah.gnu.org/gitweb/?p=gnutls | https://git.savannah.gnu.org/git/libtasn1.git | https://git.savannah.gnu.org/cgit/libtasn1.git/commit/?id=1c3ccb3e040bf13e342ee60bc23b21b97b11923f | 1c3ccb3e040bf13e342ee60bc23b21b97b11923f | after | false | 1c3ccb3e040bf13e342ee60bc23b21b97b11923f | containers/1c/1c3ccb3e040bf13e342ee60bc23b21b97b11923f_after.sif | sha256:1c92aff38fdcc0ad6d28af6d9e39ea14150a8f58331fff1c53c4b81a4439ea8f | sha256:fc05b24c2ce32c01225d97817a3dfe6891a9318c39def9a37b06907cf6262148 | asn1_get_bit_der | asn1_get_bit_der (const unsigned char *der, int der_len,
int *ret_len, unsigned char *str, int str_size,
int *bit_len)
{
int len_len = 0, len_byte;
if (der_len <= 0)
return ASN1_GENERIC_ERROR;
len_byte = asn1_get_length_der (der, der_len, &len_len) - 1;
if (len_byte < 0)
return ASN1_DER_E... | null | null | [
"CVE-2014-3468"
] | The asn1_get_bit_der function in GNU Libtasn1 before 3.6 does not properly report an error when a negative bit length is identified, which allows context-dependent attackers to cause out-of-bounds access via crafted ASN.1 data. | [
"CWE-189"
] | null | null | asn1_get_bit_der (const unsigned char *der, int der_len,
int *ret_len, unsigned char *str, int str_size,
int *bit_len)
{
int len_len, len_byte;
if (der_len <= 0)
return ASN1_GENERIC_ERROR;
len_byte = asn1_get_length_der (der, der_len, &len_len) - 1;
if (len_byte < 0)
return ASN1_DER_ERROR... | asn1_get_bit_der (const unsigned char *der, int der_len,
int *ret_len, unsigned char *str, int str_size,
int *bit_len)
{
int len_len = 0, len_byte;
if (der_len <= 0)
return ASN1_GENERIC_ERROR;
len_byte = asn1_get_length_der (der, der_len, &len_len) - 1;
if (len_byte < 0)
return ASN1_DER_E... | null |
032636a3e5f44ba259fe2cd5 | primevul | train | train:204605 | 4fd7158322872d711e90f091dbd8673ef32cb1be | cpython | https://github.com/python/cpython | https://github.com/python/cpython | https://github.com/python/cpython/commit/dcfcd146f8e6fc5c2fc16a4c192a0c5f5ca8c53c | dcfcd146f8e6fc5c2fc16a4c192a0c5f5ca8c53c | before | true | d97daebfa69b4df95231bcae4123eacad6a48d14 | containers/dc/dcfcd146f8e6fc5c2fc16a4c192a0c5f5ca8c53c_before.sif | sha256:91a73cd9d886ce1ad3803faac11d12265a1b21aac69edbb707aed89625e4682d | sha256:5fbb5c5a82f07a78124aaba559b5b7bccaaccad84d0cf1a834f1fb034cc903db | ast_for_arguments | ast_for_arguments(struct compiling *c, const node *n)
{
/* This function handles both typedargslist (function definition)
and varargslist (lambda definition).
parameters: '(' [typedargslist] ')'
typedargslist: (tfpdef ['=' test] (',' tfpdef ['=' test])* [',' [
'*' [tfpdef] (',' ... | null | ast.c | [
"CVE-2019-19275"
] | typed_ast 1.3.0 and 1.3.1 has an ast_for_arguments out-of-bounds read. An attacker with the ability to cause a Python interpreter to parse Python source (but not necessarily execute it) may be able to crash the interpreter process. This could be a concern, for example, in a web-based service that parses (but does not e... | [
"CWE-125"
] | null | null | ast_for_arguments(struct compiling *c, const node *n)
{
/* This function handles both typedargslist (function definition)
and varargslist (lambda definition).
parameters: '(' [typedargslist] ')'
typedargslist: (tfpdef ['=' test] (',' tfpdef ['=' test])* [',' [
'*' [tfpdef] (',' ... | ast_for_arguments(struct compiling *c, const node *n)
{
/* This function handles both typedargslist (function definition)
and varargslist (lambda definition).
parameters: '(' [typedargslist] ')'
typedargslist: (tfpdef ['=' test] (',' tfpdef ['=' test])* [',' [
'*' [tfpdef] (',' ... | bpo-35766: Merge typed_ast back into CPython (GH-11645) |
032636a3e5f44ba259fe2cd5 | primevul | train | train:204605 | 4fd7158322872d711e90f091dbd8673ef32cb1be | cpython | https://github.com/python/cpython | https://github.com/python/cpython | https://github.com/python/cpython/commit/dcfcd146f8e6fc5c2fc16a4c192a0c5f5ca8c53c | dcfcd146f8e6fc5c2fc16a4c192a0c5f5ca8c53c | after | false | dcfcd146f8e6fc5c2fc16a4c192a0c5f5ca8c53c | containers/dc/dcfcd146f8e6fc5c2fc16a4c192a0c5f5ca8c53c_after.sif | sha256:e85a565de6d8d1e8f14141f8981173ce9984d53719ea4d7e03a1f5b1e565aef2 | sha256:176c99ab760adb7984378a95f9df9bfb420f1b8291dd34ceb793d4dc6025c8a0 | ast_for_arguments | ast_for_arguments(struct compiling *c, const node *n)
{
/* This function handles both typedargslist (function definition)
and varargslist (lambda definition).
parameters: '(' [typedargslist] ')'
typedargslist: (tfpdef ['=' test] (',' tfpdef ['=' test])* [',' [
'*' [tfpdef] (',' ... | null | ast.c | [
"CVE-2019-19275"
] | typed_ast 1.3.0 and 1.3.1 has an ast_for_arguments out-of-bounds read. An attacker with the ability to cause a Python interpreter to parse Python source (but not necessarily execute it) may be able to crash the interpreter process. This could be a concern, for example, in a web-based service that parses (but does not e... | [
"CWE-125"
] | null | null | ast_for_arguments(struct compiling *c, const node *n)
{
/* This function handles both typedargslist (function definition)
and varargslist (lambda definition).
parameters: '(' [typedargslist] ')'
typedargslist: (tfpdef ['=' test] (',' tfpdef ['=' test])* [',' [
'*' [tfpdef] (',' ... | ast_for_arguments(struct compiling *c, const node *n)
{
/* This function handles both typedargslist (function definition)
and varargslist (lambda definition).
parameters: '(' [typedargslist] ')'
typedargslist: (tfpdef ['=' test] (',' tfpdef ['=' test])* [',' [
'*' [tfpdef] (',' ... | bpo-35766: Merge typed_ast back into CPython (GH-11645) |
0326e15f015180a353de29d2 | primevul | train | train:1712 | 4fd7158322872d711e90f091dbd8673ef32cb1be | openssh-portable | https://github.com/openssh/openssh-portable | https://github.com/openssh/openssh-portable | https://github.com/openssh/openssh-portable/commit/ec165c392ca54317dbe3064a8c200de6531e89ad | ec165c392ca54317dbe3064a8c200de6531e89ad | before | true | 29d40319392e6e19deeca9d45468aa1119846e50 | containers/ec/ec165c392ca54317dbe3064a8c200de6531e89ad_before.sif | sha256:0bee7f052caf7529321b1fa56a14f4545d64af785152972bfc4f17ced0461e55 | sha256:6f24453f2de40d4c465df202ae20bc97d68eab4650f86905b7cdd927fb61703d | kex_input_kexinit | kex_input_kexinit(int type, u_int32_t seq, void *ctxt)
{
struct ssh *ssh = ctxt;
struct kex *kex = ssh->kex;
const u_char *ptr;
u_int i;
size_t dlen;
int r;
debug("SSH2_MSG_KEXINIT received");
if (kex == NULL)
return SSH_ERR_INVALID_ARGUMENT;
ptr = sshpkt_ptr(ssh, &dlen);
if ((r = sshbuf_put(kex->pee... | null | kex.c | [
"CVE-2016-8858"
] | The kex_input_kexinit function in kex.c in OpenSSH 6.x and 7.x through 7.3 allows remote attackers to cause a denial of service (memory consumption) by sending many duplicate KEXINIT requests. NOTE: a third party reports that "OpenSSH upstream does not consider this as a security issue." | [
"CWE-399"
] | null | null | kex_input_kexinit(int type, u_int32_t seq, void *ctxt)
{
struct ssh *ssh = ctxt;
struct kex *kex = ssh->kex;
const u_char *ptr;
u_int i;
size_t dlen;
int r;
debug("SSH2_MSG_KEXINIT received");
if (kex == NULL)
return SSH_ERR_INVALID_ARGUMENT;
ptr = sshpkt_ptr(ssh, &dlen);
if ((r = sshbuf_put(kex->pee... | kex_input_kexinit(int type, u_int32_t seq, void *ctxt)
{
struct ssh *ssh = ctxt;
struct kex *kex = ssh->kex;
const u_char *ptr;
u_int i;
size_t dlen;
int r;
debug("SSH2_MSG_KEXINIT received");
if (kex == NULL)
return SSH_ERR_INVALID_ARGUMENT;
ssh_dispatch_set(ssh, SSH2_MSG_KEXINIT, NULL);
ptr = sshpkt... | upstream commit
Unregister the KEXINIT handler after message has been
received. Otherwise an unauthenticated peer can repeat the KEXINIT and cause
allocation of up to 128MB -- until the connection is closed. Reported by
shilei-c at 360.cn
Upstream-ID: 43649ae12a27ef94290db16d1a98294588b75c05 |
0326e15f015180a353de29d2 | primevul | train | train:1712 | 4fd7158322872d711e90f091dbd8673ef32cb1be | openssh-portable | https://github.com/openssh/openssh-portable | https://github.com/openssh/openssh-portable | https://github.com/openssh/openssh-portable/commit/ec165c392ca54317dbe3064a8c200de6531e89ad | ec165c392ca54317dbe3064a8c200de6531e89ad | after | false | ec165c392ca54317dbe3064a8c200de6531e89ad | containers/ec/ec165c392ca54317dbe3064a8c200de6531e89ad_after.sif | sha256:fb8426dc92abe3c2b4a4f76674d1eec2e19a768fa5b823b5623e31d508e7a985 | sha256:c9ec40391b82fa5316ec7b709df614046ff838898d2557001d6b158f6870846b | kex_input_kexinit | kex_input_kexinit(int type, u_int32_t seq, void *ctxt)
{
struct ssh *ssh = ctxt;
struct kex *kex = ssh->kex;
const u_char *ptr;
u_int i;
size_t dlen;
int r;
debug("SSH2_MSG_KEXINIT received");
if (kex == NULL)
return SSH_ERR_INVALID_ARGUMENT;
ssh_dispatch_set(ssh, SSH2_MSG_KEXINIT, NULL);
ptr = sshpkt... | null | kex.c | [
"CVE-2016-8858"
] | The kex_input_kexinit function in kex.c in OpenSSH 6.x and 7.x through 7.3 allows remote attackers to cause a denial of service (memory consumption) by sending many duplicate KEXINIT requests. NOTE: a third party reports that "OpenSSH upstream does not consider this as a security issue." | [
"CWE-399"
] | null | null | kex_input_kexinit(int type, u_int32_t seq, void *ctxt)
{
struct ssh *ssh = ctxt;
struct kex *kex = ssh->kex;
const u_char *ptr;
u_int i;
size_t dlen;
int r;
debug("SSH2_MSG_KEXINIT received");
if (kex == NULL)
return SSH_ERR_INVALID_ARGUMENT;
ptr = sshpkt_ptr(ssh, &dlen);
if ((r = sshbuf_put(kex->pee... | kex_input_kexinit(int type, u_int32_t seq, void *ctxt)
{
struct ssh *ssh = ctxt;
struct kex *kex = ssh->kex;
const u_char *ptr;
u_int i;
size_t dlen;
int r;
debug("SSH2_MSG_KEXINIT received");
if (kex == NULL)
return SSH_ERR_INVALID_ARGUMENT;
ssh_dispatch_set(ssh, SSH2_MSG_KEXINIT, NULL);
ptr = sshpkt... | upstream commit
Unregister the KEXINIT handler after message has been
received. Otherwise an unauthenticated peer can repeat the KEXINIT and cause
allocation of up to 128MB -- until the connection is closed. Reported by
shilei-c at 360.cn
Upstream-ID: 43649ae12a27ef94290db16d1a98294588b75c05 |
032f0b3a16f183fbafae6b5e | primevul | train | train:210219 | 4fd7158322872d711e90f091dbd8673ef32cb1be | libxml2 | https://github.com/GNOME/libxml2 | https://github.com/GNOME/libxml2 | https://git.gnome.org/browse/libxml2/commit/?id=bdd66182ef53fe1f7209ab6535fda56366bd7ac9 | bdd66182ef53fe1f7209ab6535fda56366bd7ac9 | before | true | 0bcd05c5cd83dec3406c8f68b769b1d610c72f76 | containers/bd/bdd66182ef53fe1f7209ab6535fda56366bd7ac9_before.sif | sha256:a272e2bc01ca41eaa22cf4379d2b3ce6256c62bff71e19f7b4e505c0de6b5eed | sha256:07518d583bfd2f8f0cbfc1684006b21822efdd4762f14626630216435bf703a7 | xmlStringGetNodeList | xmlStringGetNodeList(const xmlDoc *doc, const xmlChar *value) {
xmlNodePtr ret = NULL, last = NULL;
xmlNodePtr node;
xmlChar *val;
const xmlChar *cur = value;
const xmlChar *q;
xmlEntityPtr ent;
xmlBufPtr buf;
if (value == NULL) return(NULL);
buf = xmlBufCreateSize(0);
if (buf ... | null | tree.c | [
"CVE-2016-3627"
] | The xmlStringGetNodeList function in tree.c in libxml2 2.9.3 and earlier, when used in recovery mode, allows context-dependent attackers to cause a denial of service (infinite recursion, stack consumption, and application crash) via a crafted XML document. | [
"CWE-20"
] | null | null | xmlStringGetNodeList(const xmlDoc *doc, const xmlChar *value) {
xmlNodePtr ret = NULL, last = NULL;
xmlNodePtr node;
xmlChar *val;
const xmlChar *cur = value;
const xmlChar *q;
xmlEntityPtr ent;
xmlBufPtr buf;
if (value == NULL) return(NULL);
buf = xmlBufCreateSize(0);
if (buf ... | xmlStringGetNodeList(const xmlDoc *doc, const xmlChar *value) {
xmlNodePtr ret = NULL, last = NULL;
xmlNodePtr node;
xmlChar *val;
const xmlChar *cur = value;
const xmlChar *q;
xmlEntityPtr ent;
xmlBufPtr buf;
if (value == NULL) return(NULL);
buf = xmlBufCreateSize(0);
if (buf ... | Avoid building recursive entities
For https://bugzilla.gnome.org/show_bug.cgi?id=762100
When we detect a recusive entity we should really not
build the associated data, moreover if someone bypass
libxml2 fatal errors and still tries to serialize a broken
entity make sure we don't risk to get ito a recursion
* parser... |
032f0b3a16f183fbafae6b5e | primevul | train | train:210219 | 4fd7158322872d711e90f091dbd8673ef32cb1be | libxml2 | https://github.com/GNOME/libxml2 | https://github.com/GNOME/libxml2 | https://git.gnome.org/browse/libxml2/commit/?id=bdd66182ef53fe1f7209ab6535fda56366bd7ac9 | bdd66182ef53fe1f7209ab6535fda56366bd7ac9 | after | false | bdd66182ef53fe1f7209ab6535fda56366bd7ac9 | containers/bd/bdd66182ef53fe1f7209ab6535fda56366bd7ac9_after.sif | sha256:23f4a44345e75c2acb005f2c212f1834c4d8da08e268c3412cd08b2b2f6421c9 | sha256:b1b80b57d13da9af98fdfd61989dd16a317b3575241d07b1486f7eb15e3ab7b6 | xmlStringGetNodeList | xmlStringGetNodeList(const xmlDoc *doc, const xmlChar *value) {
xmlNodePtr ret = NULL, last = NULL;
xmlNodePtr node;
xmlChar *val;
const xmlChar *cur = value;
const xmlChar *q;
xmlEntityPtr ent;
xmlBufPtr buf;
if (value == NULL) return(NULL);
buf = xmlBufCreateSize(0);
if (buf ... | null | tree.c | [
"CVE-2016-3627"
] | The xmlStringGetNodeList function in tree.c in libxml2 2.9.3 and earlier, when used in recovery mode, allows context-dependent attackers to cause a denial of service (infinite recursion, stack consumption, and application crash) via a crafted XML document. | [
"CWE-20"
] | null | null | xmlStringGetNodeList(const xmlDoc *doc, const xmlChar *value) {
xmlNodePtr ret = NULL, last = NULL;
xmlNodePtr node;
xmlChar *val;
const xmlChar *cur = value;
const xmlChar *q;
xmlEntityPtr ent;
xmlBufPtr buf;
if (value == NULL) return(NULL);
buf = xmlBufCreateSize(0);
if (buf ... | xmlStringGetNodeList(const xmlDoc *doc, const xmlChar *value) {
xmlNodePtr ret = NULL, last = NULL;
xmlNodePtr node;
xmlChar *val;
const xmlChar *cur = value;
const xmlChar *q;
xmlEntityPtr ent;
xmlBufPtr buf;
if (value == NULL) return(NULL);
buf = xmlBufCreateSize(0);
if (buf ... | Avoid building recursive entities
For https://bugzilla.gnome.org/show_bug.cgi?id=762100
When we detect a recusive entity we should really not
build the associated data, moreover if someone bypass
libxml2 fatal errors and still tries to serialize a broken
entity make sure we don't risk to get ito a recursion
* parser... |
03607b0613fd8ae5137ce4b7 | primevul | train | train:4443 | 4fd7158322872d711e90f091dbd8673ef32cb1be | ImageMagick | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick/commit/16916c8979c32765c542e216b31cee2671b7afe7 | 16916c8979c32765c542e216b31cee2671b7afe7 | before | true | 5a295f0c160a78d5f7b2df8caabb5cdd66208dbd | containers/16/16916c8979c32765c542e216b31cee2671b7afe7_before.sif | sha256:4e9f4116b1e1ab1a62a256c620928fdd4a461cce19000833d0ebd4f2174e6814 | sha256:e49be3aa0423a884d176d4d1cf7a6d348e625fb166d7e25d8d6eef4f09ea6232 | ReadDCMImage | static Image *ReadDCMImage(const ImageInfo *image_info,ExceptionInfo *exception)
{
#define ThrowDCMException(exception,message) \
{ \
if (info.scale != (Quantum *) NULL) \
info.scale=(Quantum *) RelinquishMagickMemory(info.scale); \
if (data != (unsigned char *) NULL) \
data=(unsigned char *) RelinquishMagi... | null | dcm.c | [
"CVE-2018-16644"
] | There is a missing check for length in the functions ReadDCMImage of coders/dcm.c and ReadPICTImage of coders/pict.c in ImageMagick 7.0.8-11, which allows remote attackers to cause a denial of service via a crafted image. | [
"CWE-20"
] | null | null | static Image *ReadDCMImage(const ImageInfo *image_info,ExceptionInfo *exception)
{
#define ThrowDCMException(exception,message) \
{ \
if (info.scale != (Quantum *) NULL) \
info.scale=(Quantum *) RelinquishMagickMemory(info.scale); \
if (data != (unsigned char *) NULL) \
data=(unsigned char *) RelinquishMagi... | static Image *ReadDCMImage(const ImageInfo *image_info,ExceptionInfo *exception)
{
#define ThrowDCMException(exception,message) \
{ \
if (info.scale != (Quantum *) NULL) \
info.scale=(Quantum *) RelinquishMagickMemory(info.scale); \
if (data != (unsigned char *) NULL) \
data=(unsigned char *) RelinquishMagi... | https://github.com/ImageMagick/ImageMagick/issues/1269 |
03607b0613fd8ae5137ce4b7 | primevul | train | train:4443 | 4fd7158322872d711e90f091dbd8673ef32cb1be | ImageMagick | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick/commit/16916c8979c32765c542e216b31cee2671b7afe7 | 16916c8979c32765c542e216b31cee2671b7afe7 | after | false | 16916c8979c32765c542e216b31cee2671b7afe7 | containers/16/16916c8979c32765c542e216b31cee2671b7afe7_after.sif | sha256:8b000833f1b0bec4553b397ca75886f12dd77acef0cd658d05974c06e32c61ab | sha256:16676779ecc44b9b05103a08e8e7794de660e4ed310632372f51c85054b58877 | ReadDCMImage | static Image *ReadDCMImage(const ImageInfo *image_info,ExceptionInfo *exception)
{
#define ThrowDCMException(exception,message) \
{ \
if (info.scale != (Quantum *) NULL) \
info.scale=(Quantum *) RelinquishMagickMemory(info.scale); \
if (data != (unsigned char *) NULL) \
data=(unsigned char *) RelinquishMagi... | null | dcm.c | [
"CVE-2018-16644"
] | There is a missing check for length in the functions ReadDCMImage of coders/dcm.c and ReadPICTImage of coders/pict.c in ImageMagick 7.0.8-11, which allows remote attackers to cause a denial of service via a crafted image. | [
"CWE-20"
] | null | null | static Image *ReadDCMImage(const ImageInfo *image_info,ExceptionInfo *exception)
{
#define ThrowDCMException(exception,message) \
{ \
if (info.scale != (Quantum *) NULL) \
info.scale=(Quantum *) RelinquishMagickMemory(info.scale); \
if (data != (unsigned char *) NULL) \
data=(unsigned char *) RelinquishMagi... | static Image *ReadDCMImage(const ImageInfo *image_info,ExceptionInfo *exception)
{
#define ThrowDCMException(exception,message) \
{ \
if (info.scale != (Quantum *) NULL) \
info.scale=(Quantum *) RelinquishMagickMemory(info.scale); \
if (data != (unsigned char *) NULL) \
data=(unsigned char *) RelinquishMagi... | https://github.com/ImageMagick/ImageMagick/issues/1269 |
03815c12775cfceecb209094 | primevul | train | train:573 | 4fd7158322872d711e90f091dbd8673ef32cb1be | linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/8f363b77ee4fbf7c3bbcf5ec2c5ca482d396d664 | 8f363b77ee4fbf7c3bbcf5ec2c5ca482d396d664 | before | true | d3e9a1dc7c34c3c5a253091289a54883bf27f6ba | containers/8f/8f363b77ee4fbf7c3bbcf5ec2c5ca482d396d664_before.sif | sha256:86fa807e8525eccc1134bccd05f5c9f38e2b3498b557c9b698ccd84447eae9a7 | sha256:ffc5f2cf7328c306f52441322e7c60232e3e2145dbc2cfd6f1feefc21d871769 | tcp_illinois_info | static void tcp_illinois_info(struct sock *sk, u32 ext,
struct sk_buff *skb)
{
const struct illinois *ca = inet_csk_ca(sk);
if (ext & (1 << (INET_DIAG_VEGASINFO - 1))) {
struct tcpvegas_info info = {
.tcpv_enabled = 1,
.tcpv_rttcnt = ca->cnt_rtt,
.tcpv_minrtt = ca->base_rtt,
};
u64 t = ca-... | null | tcp_illinois.c | [
"CVE-2012-4565"
] | The tcp_illinois_info function in net/ipv4/tcp_illinois.c in the Linux kernel before 3.4.19, when the net.ipv4.tcp_congestion_control illinois setting is enabled, allows local users to cause a denial of service (divide-by-zero error and OOPS) by reading TCP stats. | [
"CWE-189"
] | null | null | static void tcp_illinois_info(struct sock *sk, u32 ext,
struct sk_buff *skb)
{
const struct illinois *ca = inet_csk_ca(sk);
if (ext & (1 << (INET_DIAG_VEGASINFO - 1))) {
struct tcpvegas_info info = {
.tcpv_enabled = 1,
.tcpv_rttcnt = ca->cnt_rtt,
.tcpv_minrtt = ca->base_rtt,
};
u64 t = ca-... | static void tcp_illinois_info(struct sock *sk, u32 ext,
struct sk_buff *skb)
{
const struct illinois *ca = inet_csk_ca(sk);
if (ext & (1 << (INET_DIAG_VEGASINFO - 1))) {
struct tcpvegas_info info = {
.tcpv_enabled = 1,
.tcpv_rttcnt = ca->cnt_rtt,
.tcpv_minrtt = ca->base_rtt,
};
if (info.... | net: fix divide by zero in tcp algorithm illinois
Reading TCP stats when using TCP Illinois congestion control algorithm
can cause a divide by zero kernel oops.
The division by zero occur in tcp_illinois_info() at:
do_div(t, ca->cnt_rtt);
where ca->cnt_rtt can become zero (when rtt_reset is called)
Steps to Reprodu... |
03815c12775cfceecb209094 | primevul | train | train:573 | 4fd7158322872d711e90f091dbd8673ef32cb1be | linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/8f363b77ee4fbf7c3bbcf5ec2c5ca482d396d664 | 8f363b77ee4fbf7c3bbcf5ec2c5ca482d396d664 | after | false | 8f363b77ee4fbf7c3bbcf5ec2c5ca482d396d664 | containers/8f/8f363b77ee4fbf7c3bbcf5ec2c5ca482d396d664_after.sif | sha256:17b03e40f255d6919662c2720ca1ba601510771bfb9418516462ac126ecbb9a0 | sha256:ffe190ba025bb22b27ebb3de099b02d2a52c6b210781aae3c202920133889b26 | tcp_illinois_info | static void tcp_illinois_info(struct sock *sk, u32 ext,
struct sk_buff *skb)
{
const struct illinois *ca = inet_csk_ca(sk);
if (ext & (1 << (INET_DIAG_VEGASINFO - 1))) {
struct tcpvegas_info info = {
.tcpv_enabled = 1,
.tcpv_rttcnt = ca->cnt_rtt,
.tcpv_minrtt = ca->base_rtt,
};
if (info.... | null | tcp_illinois.c | [
"CVE-2012-4565"
] | The tcp_illinois_info function in net/ipv4/tcp_illinois.c in the Linux kernel before 3.4.19, when the net.ipv4.tcp_congestion_control illinois setting is enabled, allows local users to cause a denial of service (divide-by-zero error and OOPS) by reading TCP stats. | [
"CWE-189"
] | null | null | static void tcp_illinois_info(struct sock *sk, u32 ext,
struct sk_buff *skb)
{
const struct illinois *ca = inet_csk_ca(sk);
if (ext & (1 << (INET_DIAG_VEGASINFO - 1))) {
struct tcpvegas_info info = {
.tcpv_enabled = 1,
.tcpv_rttcnt = ca->cnt_rtt,
.tcpv_minrtt = ca->base_rtt,
};
u64 t = ca-... | static void tcp_illinois_info(struct sock *sk, u32 ext,
struct sk_buff *skb)
{
const struct illinois *ca = inet_csk_ca(sk);
if (ext & (1 << (INET_DIAG_VEGASINFO - 1))) {
struct tcpvegas_info info = {
.tcpv_enabled = 1,
.tcpv_rttcnt = ca->cnt_rtt,
.tcpv_minrtt = ca->base_rtt,
};
if (info.... | net: fix divide by zero in tcp algorithm illinois
Reading TCP stats when using TCP Illinois congestion control algorithm
can cause a divide by zero kernel oops.
The division by zero occur in tcp_illinois_info() at:
do_div(t, ca->cnt_rtt);
where ca->cnt_rtt can become zero (when rtt_reset is called)
Steps to Reprodu... |
038f5ff044368b68db87b8e1 | primevul | train | train:210968 | 4fd7158322872d711e90f091dbd8673ef32cb1be | fribidi | https://github.com/fribidi/fribidi | https://github.com/fribidi/fribidi | https://github.com/fribidi/fribidi/commit/034c6e9a1d296286305f4cfd1e0072b879f52568 | 034c6e9a1d296286305f4cfd1e0072b879f52568 | before | true | deb5884e9cb33913250079e863ff7a50800c77d4 | containers/03/034c6e9a1d296286305f4cfd1e0072b879f52568_before.sif | sha256:9cc7c7d8dc0315b9145c806a6210fb6dbf9a825ea9d035db589320f7251537e0 | sha256:e0a3b51fb0574cc98341b5ceb158195bcec6de27f6592a1af040632b9a9cc1d0 | fribidi_get_par_embedding_levels_ex | fribidi_get_par_embedding_levels_ex (
/* input */
const FriBidiCharType *bidi_types,
const FriBidiBracketType *bracket_types,
const FriBidiStrIndex len,
/* input and output */
FriBidiParType *pbase_dir,
/* output */
FriBidiLevel *embedding_levels
)
{
FriBidiLevel base_level_per_iso_level[FRIBIDI_BIDI_... | null | fribidi-bidi.c | [
"CVE-2019-18397"
] | A buffer overflow in the fribidi_get_par_embedding_levels_ex() function in lib/fribidi-bidi.c of GNU FriBidi through 1.0.7 allows an attacker to cause a denial of service or possibly execute arbitrary code by delivering crafted text content to a user, when this content is then rendered by an application that uses FriBi... | [
"CWE-787"
] | null | null | fribidi_get_par_embedding_levels_ex (
/* input */
const FriBidiCharType *bidi_types,
const FriBidiBracketType *bracket_types,
const FriBidiStrIndex len,
/* input and output */
FriBidiParType *pbase_dir,
/* output */
FriBidiLevel *embedding_levels
)
{
FriBidiLevel base_level_per_iso_level[FRIBIDI_BIDI_... | fribidi_get_par_embedding_levels_ex (
/* input */
const FriBidiCharType *bidi_types,
const FriBidiBracketType *bracket_types,
const FriBidiStrIndex len,
/* input and output */
FriBidiParType *pbase_dir,
/* output */
FriBidiLevel *embedding_levels
)
{
FriBidiLevel base_level_per_iso_level[FRIBIDI_BIDI_... | Truncate isolate_level to FRIBIDI_BIDI_MAX_EXPLICIT_LEVEL |
038f5ff044368b68db87b8e1 | primevul | train | train:210968 | 4fd7158322872d711e90f091dbd8673ef32cb1be | fribidi | https://github.com/fribidi/fribidi | https://github.com/fribidi/fribidi | https://github.com/fribidi/fribidi/commit/034c6e9a1d296286305f4cfd1e0072b879f52568 | 034c6e9a1d296286305f4cfd1e0072b879f52568 | after | false | 034c6e9a1d296286305f4cfd1e0072b879f52568 | containers/03/034c6e9a1d296286305f4cfd1e0072b879f52568_after.sif | sha256:2ce1fd84a8e201b51fca2958e4764c4cb644839b7d34723e1284febe2c9902cb | sha256:f4485a440a5c0b65c440a8158684d3becb38ac1306afa355e400261970e32455 | fribidi_get_par_embedding_levels_ex | fribidi_get_par_embedding_levels_ex (
/* input */
const FriBidiCharType *bidi_types,
const FriBidiBracketType *bracket_types,
const FriBidiStrIndex len,
/* input and output */
FriBidiParType *pbase_dir,
/* output */
FriBidiLevel *embedding_levels
)
{
FriBidiLevel base_level_per_iso_level[FRIBIDI_BIDI_... | null | fribidi-bidi.c | [
"CVE-2019-18397"
] | A buffer overflow in the fribidi_get_par_embedding_levels_ex() function in lib/fribidi-bidi.c of GNU FriBidi through 1.0.7 allows an attacker to cause a denial of service or possibly execute arbitrary code by delivering crafted text content to a user, when this content is then rendered by an application that uses FriBi... | [
"CWE-787"
] | null | null | fribidi_get_par_embedding_levels_ex (
/* input */
const FriBidiCharType *bidi_types,
const FriBidiBracketType *bracket_types,
const FriBidiStrIndex len,
/* input and output */
FriBidiParType *pbase_dir,
/* output */
FriBidiLevel *embedding_levels
)
{
FriBidiLevel base_level_per_iso_level[FRIBIDI_BIDI_... | fribidi_get_par_embedding_levels_ex (
/* input */
const FriBidiCharType *bidi_types,
const FriBidiBracketType *bracket_types,
const FriBidiStrIndex len,
/* input and output */
FriBidiParType *pbase_dir,
/* output */
FriBidiLevel *embedding_levels
)
{
FriBidiLevel base_level_per_iso_level[FRIBIDI_BIDI_... | Truncate isolate_level to FRIBIDI_BIDI_MAX_EXPLICIT_LEVEL |
038f7f5ee59f09f8051959cf | primevul | train | train:199784 | 4fd7158322872d711e90f091dbd8673ef32cb1be | linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/83f1b4ba917db5dc5a061a44b3403ddb6e783494 | 83f1b4ba917db5dc5a061a44b3403ddb6e783494 | before | true | c846ad9b880ece01bb4d8d07ba917734edf0324f | containers/83/83f1b4ba917db5dc5a061a44b3403ddb6e783494_before.sif | sha256:01afba6e83b73814c4bfa52c066a0b066be2f05b653cd96c58127d1760639879 | sha256:12441985765a16cdb7b4a98fa126c23be4c47d561fda91f6a262743a785aafdc | scm_set_cred | static __inline__ void scm_set_cred(struct scm_cookie *scm,
struct pid *pid, const struct cred *cred)
{
scm->pid = get_pid(pid);
scm->cred = cred ? get_cred(cred) : NULL;
scm->creds.pid = pid_vnr(pid);
scm->creds.uid = cred ? cred->euid : INVALID_UID;
scm->creds.gid = cred ? cred->egid : INVALID_GID;
} | null | scm.h | [
"CVE-2013-1979"
] | The scm_set_cred function in include/net/scm.h in the Linux kernel before 3.8.11 uses incorrect uid and gid values during credentials passing, which allows local users to gain privileges via a crafted application. | [
"CWE-284"
] | null | null | static __inline__ void scm_set_cred(struct scm_cookie *scm,
struct pid *pid, const struct cred *cred)
{
scm->pid = get_pid(pid);
scm->cred = cred ? get_cred(cred) : NULL;
scm->creds.pid = pid_vnr(pid);
scm->creds.uid = cred ? cred->euid : INVALID_UID;
scm->creds.gid = cred ? cred->egid : INVALID_GID;
} | static __inline__ void scm_set_cred(struct scm_cookie *scm,
struct pid *pid, const struct cred *cred)
{
scm->pid = get_pid(pid);
scm->cred = cred ? get_cred(cred) : NULL;
scm->creds.pid = pid_vnr(pid);
scm->creds.uid = cred ? cred->uid : INVALID_UID;
scm->creds.gid = cred ? cred->gid : INVALID_GID;
} | net: fix incorrect credentials passing
Commit 257b5358b32f ("scm: Capture the full credentials of the scm
sender") changed the credentials passing code to pass in the effective
uid/gid instead of the real uid/gid.
Obviously this doesn't matter most of the time (since normally they are
the same), but it results in dif... |
038f7f5ee59f09f8051959cf | primevul | train | train:199784 | 4fd7158322872d711e90f091dbd8673ef32cb1be | linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/83f1b4ba917db5dc5a061a44b3403ddb6e783494 | 83f1b4ba917db5dc5a061a44b3403ddb6e783494 | after | false | 83f1b4ba917db5dc5a061a44b3403ddb6e783494 | containers/83/83f1b4ba917db5dc5a061a44b3403ddb6e783494_after.sif | sha256:e579a97640544c1b6970385c733cfc0da5396a13ff485b96012ccb15f2f97c33 | sha256:baf95aff0545efb4297ab6018d8965eae4275f2e721cea30484c8be36c446ed8 | scm_set_cred | static __inline__ void scm_set_cred(struct scm_cookie *scm,
struct pid *pid, const struct cred *cred)
{
scm->pid = get_pid(pid);
scm->cred = cred ? get_cred(cred) : NULL;
scm->creds.pid = pid_vnr(pid);
scm->creds.uid = cred ? cred->uid : INVALID_UID;
scm->creds.gid = cred ? cred->gid : INVALID_GID;
} | null | scm.h | [
"CVE-2013-1979"
] | The scm_set_cred function in include/net/scm.h in the Linux kernel before 3.8.11 uses incorrect uid and gid values during credentials passing, which allows local users to gain privileges via a crafted application. | [
"CWE-284"
] | null | null | static __inline__ void scm_set_cred(struct scm_cookie *scm,
struct pid *pid, const struct cred *cred)
{
scm->pid = get_pid(pid);
scm->cred = cred ? get_cred(cred) : NULL;
scm->creds.pid = pid_vnr(pid);
scm->creds.uid = cred ? cred->euid : INVALID_UID;
scm->creds.gid = cred ? cred->egid : INVALID_GID;
} | static __inline__ void scm_set_cred(struct scm_cookie *scm,
struct pid *pid, const struct cred *cred)
{
scm->pid = get_pid(pid);
scm->cred = cred ? get_cred(cred) : NULL;
scm->creds.pid = pid_vnr(pid);
scm->creds.uid = cred ? cred->uid : INVALID_UID;
scm->creds.gid = cred ? cred->gid : INVALID_GID;
} | net: fix incorrect credentials passing
Commit 257b5358b32f ("scm: Capture the full credentials of the scm
sender") changed the credentials passing code to pass in the effective
uid/gid instead of the real uid/gid.
Obviously this doesn't matter most of the time (since normally they are
the same), but it results in dif... |
038f80a766384b9bcae936ce | primevul | train | train:1467 | 4fd7158322872d711e90f091dbd8673ef32cb1be | linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/48900cb6af4282fa0fb6ff4d72a81aa3dadb5c39 | 48900cb6af4282fa0fb6ff4d72a81aa3dadb5c39 | before | true | 4f7eb70f7be1099236670f36b2f1f90a63e29699 | containers/48/48900cb6af4282fa0fb6ff4d72a81aa3dadb5c39_before.sif | sha256:5fe5cf39c65fe05e3818f5fc3295e58dcd9845a6adb9234da91ce92b1ebe3d61 | sha256:d62809563a54e7715c04899efc08fb254638fac11fb39e0b070fdc46e7217551 | virtnet_probe | static int virtnet_probe(struct virtio_device *vdev)
{
int i, err;
struct net_device *dev;
struct virtnet_info *vi;
u16 max_queue_pairs;
if (!vdev->config->get) {
dev_err(&vdev->dev, "%s failure: config access disabled\n",
__func__);
return -EINVAL;
}
if (!virtnet_validate_features(vdev))
return -EINV... | null | virtio_net.c | [
"CVE-2015-5156"
] | The virtnet_probe function in drivers/net/virtio_net.c in the Linux kernel before 4.2 attempts to support a FRAGLIST feature without proper memory allocation, which allows guest OS users to cause a denial of service (buffer overflow and memory corruption) via a crafted sequence of fragmented packets. | [
"CWE-119"
] | null | null | static int virtnet_probe(struct virtio_device *vdev)
{
int i, err;
struct net_device *dev;
struct virtnet_info *vi;
u16 max_queue_pairs;
if (!vdev->config->get) {
dev_err(&vdev->dev, "%s failure: config access disabled\n",
__func__);
return -EINVAL;
}
if (!virtnet_validate_features(vdev))
return -EINV... | static int virtnet_probe(struct virtio_device *vdev)
{
int i, err;
struct net_device *dev;
struct virtnet_info *vi;
u16 max_queue_pairs;
if (!vdev->config->get) {
dev_err(&vdev->dev, "%s failure: config access disabled\n",
__func__);
return -EINVAL;
}
if (!virtnet_validate_features(vdev))
return -EINV... | virtio-net: drop NETIF_F_FRAGLIST
virtio declares support for NETIF_F_FRAGLIST, but assumes
that there are at most MAX_SKB_FRAGS + 2 fragments which isn't
always true with a fraglist.
A longer fraglist in the skb will make the call to skb_to_sgvec overflow
the sg array, leading to memory corruption.
Drop NETIF_F_FRA... |
038f80a766384b9bcae936ce | primevul | train | train:1467 | 4fd7158322872d711e90f091dbd8673ef32cb1be | linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/48900cb6af4282fa0fb6ff4d72a81aa3dadb5c39 | 48900cb6af4282fa0fb6ff4d72a81aa3dadb5c39 | after | false | 48900cb6af4282fa0fb6ff4d72a81aa3dadb5c39 | containers/48/48900cb6af4282fa0fb6ff4d72a81aa3dadb5c39_after.sif | sha256:8c8900d1ca2cc64b56b99dee6e4c48bdd5d712447ab887314422016f2577b310 | sha256:fd274cba7422cfed4d2699bc0bbba8182f42b1bd638264a1498404b854a554a7 | virtnet_probe | static int virtnet_probe(struct virtio_device *vdev)
{
int i, err;
struct net_device *dev;
struct virtnet_info *vi;
u16 max_queue_pairs;
if (!vdev->config->get) {
dev_err(&vdev->dev, "%s failure: config access disabled\n",
__func__);
return -EINVAL;
}
if (!virtnet_validate_features(vdev))
return -EINV... | null | virtio_net.c | [
"CVE-2015-5156"
] | The virtnet_probe function in drivers/net/virtio_net.c in the Linux kernel before 4.2 attempts to support a FRAGLIST feature without proper memory allocation, which allows guest OS users to cause a denial of service (buffer overflow and memory corruption) via a crafted sequence of fragmented packets. | [
"CWE-119"
] | null | null | static int virtnet_probe(struct virtio_device *vdev)
{
int i, err;
struct net_device *dev;
struct virtnet_info *vi;
u16 max_queue_pairs;
if (!vdev->config->get) {
dev_err(&vdev->dev, "%s failure: config access disabled\n",
__func__);
return -EINVAL;
}
if (!virtnet_validate_features(vdev))
return -EINV... | static int virtnet_probe(struct virtio_device *vdev)
{
int i, err;
struct net_device *dev;
struct virtnet_info *vi;
u16 max_queue_pairs;
if (!vdev->config->get) {
dev_err(&vdev->dev, "%s failure: config access disabled\n",
__func__);
return -EINVAL;
}
if (!virtnet_validate_features(vdev))
return -EINV... | virtio-net: drop NETIF_F_FRAGLIST
virtio declares support for NETIF_F_FRAGLIST, but assumes
that there are at most MAX_SKB_FRAGS + 2 fragments which isn't
always true with a fraglist.
A longer fraglist in the skb will make the call to skb_to_sgvec overflow
the sg array, leading to memory corruption.
Drop NETIF_F_FRA... |
03d5c1e4b0390baeb5b19e7b | primevul | train | train:3657 | 4fd7158322872d711e90f091dbd8673ef32cb1be | linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/23fcb3340d033d9f081e21e6c12c2db7eaa541d3 | 23fcb3340d033d9f081e21e6c12c2db7eaa541d3 | before | true | e2ac836307e346969737c60075fdb01bed1af503 | containers/23/23fcb3340d033d9f081e21e6c12c2db7eaa541d3_before.sif | sha256:0b9a16e5cacfca2528cb33bb04dbf0c4baaed9eaf506024eed4e8dc5821a5aff | sha256:152454cb55a12c8f9003e041711ae3c8f5e85a9b4456210d2309efbd447a23f3 | xfs_dinode_verify | xfs_dinode_verify(
struct xfs_mount *mp,
xfs_ino_t ino,
struct xfs_dinode *dip)
{
xfs_failaddr_t fa;
uint16_t mode;
uint16_t flags;
uint64_t flags2;
uint64_t di_size;
if (dip->di_magic != cpu_to_be16(XFS_DINODE_MAGIC))
return __this_address;
/* Verify v3 integrity information first */
if (dip->di... | null | xfs_inode_buf.c | [
"CVE-2018-13095"
] | An issue was discovered in fs/xfs/libxfs/xfs_inode_buf.c in the Linux kernel through 4.17.3. A denial of service (memory corruption and BUG) can occur for a corrupted xfs image upon encountering an inode that is in extent format, but has more extents than fit in the inode fork. | [
"CWE-476"
] | null | null | xfs_dinode_verify(
struct xfs_mount *mp,
xfs_ino_t ino,
struct xfs_dinode *dip)
{
xfs_failaddr_t fa;
uint16_t mode;
uint16_t flags;
uint64_t flags2;
uint64_t di_size;
if (dip->di_magic != cpu_to_be16(XFS_DINODE_MAGIC))
return __this_address;
/* Verify v3 integrity information first */
if (dip->di... | xfs_dinode_verify(
struct xfs_mount *mp,
xfs_ino_t ino,
struct xfs_dinode *dip)
{
xfs_failaddr_t fa;
uint16_t mode;
uint16_t flags;
uint64_t flags2;
uint64_t di_size;
if (dip->di_magic != cpu_to_be16(XFS_DINODE_MAGIC))
return __this_address;
/* Verify v3 integrity information first */
if (dip->di... | xfs: More robust inode extent count validation
When the inode is in extent format, it can't have more extents that
fit in the inode fork. We don't currenty check this, and so this
corruption goes unnoticed by the inode verifiers. This can lead to
crashes operating on invalid in-memory structures.
Attempts to access s... |
03d5c1e4b0390baeb5b19e7b | primevul | train | train:3657 | 4fd7158322872d711e90f091dbd8673ef32cb1be | linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/23fcb3340d033d9f081e21e6c12c2db7eaa541d3 | 23fcb3340d033d9f081e21e6c12c2db7eaa541d3 | after | false | 23fcb3340d033d9f081e21e6c12c2db7eaa541d3 | containers/23/23fcb3340d033d9f081e21e6c12c2db7eaa541d3_after.sif | sha256:180306bd9fd2f965598ddb5cb53c501ef638c79959d5b9c73005e882cd4624a4 | sha256:21d20d198f85e7e394e5f8f54840daea9e55f44ce15e8e487b404473c6d07700 | xfs_dinode_verify | xfs_dinode_verify(
struct xfs_mount *mp,
xfs_ino_t ino,
struct xfs_dinode *dip)
{
xfs_failaddr_t fa;
uint16_t mode;
uint16_t flags;
uint64_t flags2;
uint64_t di_size;
if (dip->di_magic != cpu_to_be16(XFS_DINODE_MAGIC))
return __this_address;
/* Verify v3 integrity information first */
if (dip->di... | null | xfs_inode_buf.c | [
"CVE-2018-13095"
] | An issue was discovered in fs/xfs/libxfs/xfs_inode_buf.c in the Linux kernel through 4.17.3. A denial of service (memory corruption and BUG) can occur for a corrupted xfs image upon encountering an inode that is in extent format, but has more extents than fit in the inode fork. | [
"CWE-476"
] | null | null | xfs_dinode_verify(
struct xfs_mount *mp,
xfs_ino_t ino,
struct xfs_dinode *dip)
{
xfs_failaddr_t fa;
uint16_t mode;
uint16_t flags;
uint64_t flags2;
uint64_t di_size;
if (dip->di_magic != cpu_to_be16(XFS_DINODE_MAGIC))
return __this_address;
/* Verify v3 integrity information first */
if (dip->di... | xfs_dinode_verify(
struct xfs_mount *mp,
xfs_ino_t ino,
struct xfs_dinode *dip)
{
xfs_failaddr_t fa;
uint16_t mode;
uint16_t flags;
uint64_t flags2;
uint64_t di_size;
if (dip->di_magic != cpu_to_be16(XFS_DINODE_MAGIC))
return __this_address;
/* Verify v3 integrity information first */
if (dip->di... | xfs: More robust inode extent count validation
When the inode is in extent format, it can't have more extents that
fit in the inode fork. We don't currenty check this, and so this
corruption goes unnoticed by the inode verifiers. This can lead to
crashes operating on invalid in-memory structures.
Attempts to access s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.