prior_version stringlengths 69 33.8k | after_version stringlengths 27 34.8k | vuln_id stringlengths 13 19 | cwe_id stringclasses 137
values | score float64 0 10 | chain stringlengths 78 111 | dataset stringclasses 2
values | summary stringlengths 44 6.88k | published_date stringdate 2009-05-11 00:00:00 2022-08-11 00:00:00 | chain_len int64 1 1 | project stringlengths 26 59 | commit_href stringlengths 74 107 | commit_sha stringlengths 40 40 | patch stringclasses 1
value | chain_ord stringlengths 44 44 | before_first_fix_commit stringlengths 44 88 | last_fix_commit stringlengths 40 40 | chain_ord_pos int64 1 1 | commit_datetime stringlengths 20 20 | message stringlengths 2 8.66k | author stringlengths 2 44 | comments stringclasses 155
values | stats stringclasses 474
values | files listlengths 1 1 | file_extension stringclasses 14
values | cwe stringclasses 25
values | file_paths listlengths 1 1 | file_paths_str stringlengths 4 162 | num_files int64 1 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
static Image *ReadOneJNGImage(MngInfo *mng_info, (void) LogMagickEvent(CoderEvent,GetMagickModule(), " Copying JDAT chunk data to color_blob."); (void) WriteBlob(color_image,length,chunk); if (length != 0) chunk=(unsigned char *) RelinquishMagickMemory(chunk); ... | static Image *ReadOneJNGImage(MngInfo *mng_info, (void) LogMagickEvent(CoderEvent,GetMagickModule(), " Copying JDAT chunk data to color_blob."); if (length != 0) { (void) WriteBlob(color_image,length,chunk); chunk=(unsigned char *) RelinquishMagickMem... | CVE-2017-9142 | {'CWE-20', 'CWE-617'} | 2.9 | {'https://github.com/ImageMagick/ImageMagick/commit/f0232a2a45dfd003c1faf6079497895df3ab0ee1'} | nvd | In ImageMagick 7.0.5-7 Q16, a crafted file could trigger an assertion failure in the WriteBlob function in MagickCore/blob.c because of missing checks in the ReadOneJNGImage function in coders/png.c. | 2017-05-22 | 1 | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick/commit/f0232a2a45dfd003c1faf6079497895df3ab0ee1 | f0232a2a45dfd003c1faf6079497895df3ab0ee1 | SINGLE | ['f0232a2a45dfd003c1faf6079497895df3ab0ee1'] | {'0c5b1e430a83ef793a7334bbbee408cf3c628699'} | f0232a2a45dfd003c1faf6079497895df3ab0ee1 | 1 | 05/15/2017, 19:18:13 | Fixed incorrect call to WriteBlob reported in #490. | Dirk Lemstra | null | {'additions': 4, 'deletions': 3, 'total': 7} | [
{
"additions": 4,
"changes": 7,
"deletions": 3,
"patch": "@@ -4782,10 +4782,11 @@ static Image *ReadOneJNGImage(MngInfo *mng_info,\n (void) LogMagickEvent(CoderEvent,GetMagickModule(),\n \" Copying JDAT chunk data to color_blob.\");\n \n- (void) WriteBlob(color_image,... | c | CWE-20 | [
"coders/png.c"
] | coders/png.c | 1 |
static const char *const bpf_jmp_string[16] = { [BPF_EXIT >> 4] = "exit", }; static void print_bpf_insn(struct bpf_insn *insn) { u8 class = BPF_CLASS(insn->code); static void print_bpf_insn(struct bpf_insn *insn) insn->code, bpf_ldst_string[BPF_SIZE(insn->code) >> 3], insn->src_reg, insn->imm); } els... | static const char *const bpf_jmp_string[16] = { [BPF_EXIT >> 4] = "exit", }; static void print_bpf_insn(const struct bpf_verifier_env *env, const struct bpf_insn *insn) { u8 class = BPF_CLASS(insn->code); static void print_bpf_insn(struct bpf_insn *insn) insn->code, bpf_ldst_string[BPF_SIZE(insn->cod... | CVE-2017-9150 | {'CWE-200'} | 2.9 | {'https://github.com/torvalds/linux/commit/0d0e57697f162da4aa218b5feafe614fb666db07'} | nvd | The do_check function in kernel/bpf/verifier.c in the Linux kernel before 4.11.1 does not make the allow_ptr_leaks value available for restricting the output of the print_bpf_insn function, which allows local users to obtain sensitive address information via crafted bpf system calls. | 2017-05-22 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/0d0e57697f162da4aa218b5feafe614fb666db07 | 0d0e57697f162da4aa218b5feafe614fb666db07 | SINGLE | ['0d0e57697f162da4aa218b5feafe614fb666db07'] | {'871ff2ebe0af0d7f1050bfc8bce62fddea2b12ec'} | 0d0e57697f162da4aa218b5feafe614fb666db07 | 1 | 05/07/2017, 22:04:09 | bpf: don't let ldimm64 leak map addresses on unprivileged
The patch fixes two things at once:
1) It checks the env->allow_ptr_leaks and only prints the map address to
the log if we have the privileges to do so, otherwise it just dumps 0
as we would when kptr_restrict is enabled on %pK. Given the latter is
of... | Daniel Borkmann | null | {'additions': 16, 'deletions': 5, 'total': 21} | [
{
"additions": 16,
"changes": 21,
"deletions": 5,
"patch": "@@ -298,7 +298,8 @@ static const char *const bpf_jmp_string[16] = {\n \t[BPF_EXIT >> 4] = \"exit\",\n };\n \n-static void print_bpf_insn(struct bpf_insn *insn)\n+static void print_bpf_insn(const struct bpf_verifier_env *env,\n+\t\t\t cons... | c | CWE-200 | [
"kernel/bpf/verifier.c"
] | kernel/bpf/verifier.c | 1 |
IW_IMPL(int) iw_get_input_density(struct iw_context *ctx, { *px = 1.0; *py = 1.0; *pcode = ctx->img1.density_code; if(ctx->img1.density_code!=IW_DENSITY_UNKNOWN) { *px = ctx->img1.density_x; *py = ctx->img1.density_y; return 1; } return 0; } IW_IMPL(void) iw_set_output_density(struct iw_context *ctx, | IW_IMPL(int) iw_get_input_density(struct iw_context *ctx, { *px = 1.0; *py = 1.0; *pcode = IW_DENSITY_UNKNOWN; if(ctx->img1.density_code==IW_DENSITY_UNKNOWN) { return 0; } if(!iw_is_valid_density(ctx->img1.density_x, ctx->img1.density_y, ctx->img1.density_code)) { return 0; } *px = ctx->img1.density_x;... | CVE-2017-9201 | {'CWE-369'} | 2.9 | {'https://github.com/jsummers/imageworsener/commit/dc49c807926b96e503bd7c0dec35119eecd6c6fe'} | nvd | imagew-cmd.c:850:46 in libimageworsener.a in ImageWorsener 1.3.1 allows remote attackers to cause a denial of service (divide-by-zero error) via a crafted image, related to imagew-api.c. | 2017-05-23 | 1 | https://github.com/jsummers/imageworsener | https://github.com/jsummers/imageworsener/commit/dc49c807926b96e503bd7c0dec35119eecd6c6fe | dc49c807926b96e503bd7c0dec35119eecd6c6fe | SINGLE | ['dc49c807926b96e503bd7c0dec35119eecd6c6fe'] | {'fd956544a95ed819a752f0620ac03af88d2f90b6'} | dc49c807926b96e503bd7c0dec35119eecd6c6fe | 1 | 05/15/2017, 17:27:08 | Double-check that the input image's density is valid
Fixes a bug that could result in division by zero, at least for a JPEG
source image.
Fixes issues #19, #20 | Jason Summers | null | {'additions': 13, 'deletions': 6, 'total': 19} | [
{
"additions": 13,
"changes": 19,
"deletions": 6,
"patch": "@@ -483,13 +483,20 @@ IW_IMPL(int) iw_get_input_density(struct iw_context *ctx,\n {\n \t*px = 1.0;\n \t*py = 1.0;\n-\t*pcode = ctx->img1.density_code;\n-\tif(ctx->img1.density_code!=IW_DENSITY_UNKNOWN) {\n-\t\t*px = ctx->img1.density_x;\n-\... | c | CWE-369 | [
"src/imagew-api.c"
] | src/imagew-api.c | 1 |
struct iw_exif_state { size_t d_len; }; // Try to read an Exif tag into an integer. // Returns zero on failure. static int get_exif_tag_int_value(struct iw_exif_state *e, unsigned int tag_pos, static int get_exif_tag_int_value(struct iw_exif_state *e, unsigned int tag_pos, unsigned int field_type; unsigned int val... | struct iw_exif_state { size_t d_len; }; static unsigned int get_exif_ui16(struct iw_exif_state *e, unsigned int pos) { if(e->d_len<2 || pos>e->d_len-2) return 0; return iw_get_ui16_e(&e->d[pos], e->endian); } static unsigned int get_exif_ui32(struct iw_exif_state *e, unsigned int pos) { if(e->d_len<4 || pos>e->d... | CVE-2017-9204 | {'CWE-125'} | 2.9 | {'https://github.com/jsummers/imageworsener/commit/b45cb1b665a14b0175b9cb1502ef7168e1fe0d5d'} | nvd | The iw_get_ui16le function in imagew-util.c:405:23 in libimageworsener.a in ImageWorsener 1.3.1 allows remote attackers to cause a denial of service (invalid read and SEGV) via a crafted image, related to imagew-jpeg.c. | 2017-05-23 | 1 | https://github.com/jsummers/imageworsener | https://github.com/jsummers/imageworsener/commit/b45cb1b665a14b0175b9cb1502ef7168e1fe0d5d | b45cb1b665a14b0175b9cb1502ef7168e1fe0d5d | SINGLE | ['b45cb1b665a14b0175b9cb1502ef7168e1fe0d5d'] | {'a4f247707f08e322f0b41e82c3e06e224240a654'} | b45cb1b665a14b0175b9cb1502ef7168e1fe0d5d | 1 | 05/14/2017, 16:37:43 | Fixed invalid memory access bugs when decoding JPEG Exif data
Fixes issues #22, #23, #24, #25 | Jason Summers | null | {'additions': 25, 'deletions': 13, 'total': 38} | [
{
"additions": 25,
"changes": 38,
"deletions": 13,
"patch": "@@ -58,6 +58,18 @@ struct iw_exif_state {\n \tsize_t d_len;\n };\n \n+static unsigned int get_exif_ui16(struct iw_exif_state *e, unsigned int pos)\n+{\n+\tif(e->d_len<2 || pos>e->d_len-2) return 0;\n+\treturn iw_get_ui16_e(&e->d[pos], e->e... | c | CWE-125 | [
"src/imagew-jpeg.c"
] | src/imagew-jpeg.c | 1 |
static int crypto_init_skcipher_ops_ablkcipher(struct crypto_tfm *tfm) return 0; } static void crypto_skcipher_exit_tfm(struct crypto_tfm *tfm) { struct crypto_skcipher *skcipher = __crypto_skcipher_cast(tfm); static int crypto_skcipher_init_tfm(struct crypto_tfm *tfm) tfm->__crt_alg->cra_type == &crypto_givci... | static int crypto_init_skcipher_ops_ablkcipher(struct crypto_tfm *tfm) return 0; } static int skcipher_setkey_unaligned(struct crypto_skcipher *tfm, const u8 *key, unsigned int keylen) { unsigned long alignmask = crypto_skcipher_alignmask(tfm); struct skcipher_alg *cipher = crypto_skcipher_alg(tfm); u8 *... | CVE-2017-9211 | {'CWE-476'} | 6.9 | {'https://github.com/torvalds/linux/commit/9933e113c2e87a9f46a40fde8dafbf801dca1ab9'} | nvd | The crypto_skcipher_init_tfm function in crypto/skcipher.c in the Linux kernel through 4.11.2 relies on a setkey function that lacks a key-size check, which allows local users to cause a denial of service (NULL pointer dereference) via a crafted application. | 2017-05-23 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/9933e113c2e87a9f46a40fde8dafbf801dca1ab9 | 9933e113c2e87a9f46a40fde8dafbf801dca1ab9 | SINGLE | ['9933e113c2e87a9f46a40fde8dafbf801dca1ab9'] | {'2ea659a9ef488125eb46da6eb571de5eae5c43f6'} | 9933e113c2e87a9f46a40fde8dafbf801dca1ab9 | 1 | 05/09/2017, 19:48:23 | crypto: skcipher - Add missing API setkey checks
The API setkey checks for key sizes and alignment went AWOL during the
skcipher conversion. This patch restores them.
Cc: <stable@vger.kernel.org>
Fixes: 4e6c3df4d729 ("crypto: skcipher - Add low-level skcipher...")
Reported-by: Baozeng <sploving1@gmail.com>
Signed-of... | Herbert Xu | null | {'additions': 39, 'deletions': 1, 'total': 40} | [
{
"additions": 39,
"changes": 40,
"deletions": 1,
"patch": "@@ -764,6 +764,44 @@ static int crypto_init_skcipher_ops_ablkcipher(struct crypto_tfm *tfm)\n \treturn 0;\n }\n \n+static int skcipher_setkey_unaligned(struct crypto_skcipher *tfm,\n+\t\t\t\t const u8 *key, unsigned int keylen)\n+{\n+\t... | c | CWE-476 | [
"crypto/skcipher.c"
] | crypto/skcipher.c | 1 |
int dns_packet_is_reply_for(DnsPacket *p, const DnsResourceKey *key) { if (r < 0) return r; if (p->question->n_keys != 1) return 0; | int dns_packet_is_reply_for(DnsPacket *p, const DnsResourceKey *key) { if (r < 0) return r; if (!p->question) return 0; if (p->question->n_keys != 1) return 0; | CVE-2017-9217 | {'CWE-476'} | 2.9 | {'https://github.com/systemd/systemd/commit/a924f43f30f9c4acaf70618dd2a055f8b0f166be'} | nvd | systemd-resolved through 233 allows remote attackers to cause a denial of service (daemon crash) via a crafted DNS response with an empty question section. | 2017-05-24 | 1 | https://github.com/systemd/systemd | https://github.com/systemd/systemd/commit/a924f43f30f9c4acaf70618dd2a055f8b0f166be | a924f43f30f9c4acaf70618dd2a055f8b0f166be | SINGLE | ['a924f43f30f9c4acaf70618dd2a055f8b0f166be'] | {'d82c4b9a7be6dc8f340930b5e80968d0e48c4c57'} | a924f43f30f9c4acaf70618dd2a055f8b0f166be | 1 | 05/24/2017, 05:56:48 | resolved: bugfix of null pointer p->question dereferencing (#6020)
See https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1621396 | Evgeny Vereshchagin | null | {'additions': 3, 'deletions': 0, 'total': 3} | [
{
"additions": 3,
"changes": 3,
"deletions": 0,
"patch": "@@ -2269,6 +2269,9 @@ int dns_packet_is_reply_for(DnsPacket *p, const DnsResourceKey *key) {\n if (r < 0)\n return r;\n \n+ if (!p->question)\n+ return 0;\n+\n if (p->question->n_keys != 1... | c | CWE-476 | [
"src/resolve/resolved-dns-packet.c"
] | src/resolve/resolved-dns-packet.c | 1 |
match_at(regex_t* reg, const UChar* str, const UChar* end, break; case OP_EXACT1: MOP_IN(OP_EXACT1); #if 0 DATA_ENSURE(1); if (*p != *s) goto fail; p++; s++; #endif if (*p != *s++) goto fail; DATA_ENSURE(0); p++; MOP_OUT; break; | match_at(regex_t* reg, const UChar* str, const UChar* end, break; case OP_EXACT1: MOP_IN(OP_EXACT1); DATA_ENSURE(1); if (*p != *s) goto fail; p++; s++; MOP_OUT; break; | CVE-2017-9224 | {'CWE-125'} | 6.4 | {'https://github.com/kkos/oniguruma/commit/690313a061f7a4fa614ec5cc8368b4f2284e059b'} | nvd | An issue was discovered in Oniguruma 6.2.0, as used in Oniguruma-mod in Ruby through 2.4.1 and mbstring in PHP through 7.1.5. A stack out-of-bounds read occurs in match_at() during regular expression searching. A logical error involving order of validation and access in match_at() could result in an out-of-bounds read ... | 2017-05-24 | 1 | https://github.com/kkos/oniguruma | https://github.com/kkos/oniguruma/commit/690313a061f7a4fa614ec5cc8368b4f2284e059b | 690313a061f7a4fa614ec5cc8368b4f2284e059b | SINGLE | ['690313a061f7a4fa614ec5cc8368b4f2284e059b'] | {'166a6c3999bf06b4de0ab4ce6b088a468cc4029f'} | 690313a061f7a4fa614ec5cc8368b4f2284e059b | 1 | 05/23/2017, 01:28:58 | fix #57 : DATA_ENSURE() check must be before data access | K.Kosako | null | {'additions': 0, 'deletions': 5, 'total': 5} | [
{
"additions": 0,
"changes": 5,
"deletions": 5,
"patch": "@@ -1473,14 +1473,9 @@ match_at(regex_t* reg, const UChar* str, const UChar* end,\n break;\n \n case OP_EXACT1: MOP_IN(OP_EXACT1);\n-#if 0\n DATA_ENSURE(1);\n if (*p != *s) goto fail;\n p++; s++;\n-#endif\n- ... | c | CWE-125 | [
"src/regexec.c"
] | src/regexec.c | 1 |
forward_search_range(regex_t* reg, const UChar* str, const UChar* end, UChar* s, } else { UChar *q = p + reg->dmin; while (p < q) p += enclen(reg->enc, p); } } | forward_search_range(regex_t* reg, const UChar* str, const UChar* end, UChar* s, } else { UChar *q = p + reg->dmin; if (q >= end) return 0; /* fail */ while (p < q) p += enclen(reg->enc, p); } } | CVE-2017-9227 | {'CWE-125'} | 6.4 | {'https://github.com/kkos/oniguruma/commit/9690d3ab1f9bcd2db8cbe1fe3ee4a5da606b8814'} | nvd | An issue was discovered in Oniguruma 6.2.0, as used in Oniguruma-mod in Ruby through 2.4.1 and mbstring in PHP through 7.1.5. A stack out-of-bounds read occurs in mbc_enc_len() during regular expression searching. Invalid handling of reg->dmin in forward_search_range() could result in an invalid pointer dereference, as... | 2017-05-24 | 1 | https://github.com/kkos/oniguruma | https://github.com/kkos/oniguruma/commit/9690d3ab1f9bcd2db8cbe1fe3ee4a5da606b8814 | 9690d3ab1f9bcd2db8cbe1fe3ee4a5da606b8814 | SINGLE | ['9690d3ab1f9bcd2db8cbe1fe3ee4a5da606b8814'] | {'690313a061f7a4fa614ec5cc8368b4f2284e059b'} | 9690d3ab1f9bcd2db8cbe1fe3ee4a5da606b8814 | 1 | 05/23/2017, 07:15:35 | fix #58 : access to invalid address by reg->dmin value | K.Kosako | null | {'additions': 2, 'deletions': 0, 'total': 2} | [
{
"additions": 2,
"changes": 2,
"deletions": 0,
"patch": "@@ -3154,6 +3154,8 @@ forward_search_range(regex_t* reg, const UChar* str, const UChar* end, UChar* s,\n }\n else {\n UChar *q = p + reg->dmin;\n+\n+ if (q >= end) return 0; /* fail */\n while (p < q) p += enclen(reg-... | c | CWE-125 | [
"src/regexec.c"
] | src/regexec.c | 1 |
next_state_class(CClassNode* cc, OnigCodePoint* vs, enum CCVALTYPE* type, } } *state = CCS_VALUE; *type = CCV_CLASS; return 0; } | next_state_class(CClassNode* cc, OnigCodePoint* vs, enum CCVALTYPE* type, } } if (*state != CCS_START) *state = CCS_VALUE; *type = CCV_CLASS; return 0; } | CVE-2017-9228 | {'CWE-787'} | 6.4 | {'https://github.com/kkos/oniguruma/commit/3b63d12038c8d8fc278e81c942fa9bec7c704c8b'} | nvd | An issue was discovered in Oniguruma 6.2.0, as used in Oniguruma-mod in Ruby through 2.4.1 and mbstring in PHP through 7.1.5. A heap out-of-bounds write occurs in bitset_set_range() during regular expression compilation due to an uninitialized variable from an incorrect state transition. An incorrect state transition i... | 2017-05-24 | 1 | https://github.com/kkos/oniguruma | https://github.com/kkos/oniguruma/commit/3b63d12038c8d8fc278e81c942fa9bec7c704c8b | 3b63d12038c8d8fc278e81c942fa9bec7c704c8b | SINGLE | ['3b63d12038c8d8fc278e81c942fa9bec7c704c8b'] | {'b690371bbf97794b4a1d3f295d4fb9a8b05d402d'} | 3b63d12038c8d8fc278e81c942fa9bec7c704c8b | 1 | 05/24/2017, 04:43:25 | fix #60 : invalid state(CCS_VALUE) in parse_char_class() | K.Kosako | {'com_1': {'author': 'kitkat1375', 'datetime': '06/10/2017, 13:40:39', 'body': 'How do we solve it?'}, 'com_2': {'author': 'kkos', 'datetime': '06/11/2017, 05:21:22', 'body': "Surely, it looks strange.\r\nBut it avoids a problem such as #60, a character-type is at the top of char-class. ([\\d-a....])\r\nNow I'm thinkin... | {'additions': 3, 'deletions': 1, 'total': 4} | [
{
"additions": 3,
"changes": 4,
"deletions": 1,
"patch": "@@ -4081,7 +4081,9 @@ next_state_class(CClassNode* cc, OnigCodePoint* vs, enum CCVALTYPE* type,\n }\n }\n \n- *state = CCS_VALUE;\n+ if (*state != CCS_START)\n+ *state = CCS_VALUE;\n+\n *type = CCV_CLASS;\n return 0;\n }",
... | c | CWE-787 | [
"src/regparse.c"
] | src/regparse.c | 1 |
forward_search_range(regex_t* reg, const UChar* str, const UChar* end, UChar* s, } else { if (reg->dmax != ONIG_INFINITE_DISTANCE) { *low = p - reg->dmax; if (*low > s) { *low = onigenc_get_right_adjust_char_head_with_prev(reg->enc, s, *... | forward_search_range(regex_t* reg, const UChar* str, const UChar* end, UChar* s, } else { if (reg->dmax != ONIG_INFINITE_DISTANCE) { if (p - str < reg->dmax) { *low = (UChar* )str; if (low_prev) *low_prev = onigenc_get_prev_char_head(reg->enc, str, *low); }... | CVE-2017-9229 | {'CWE-476'} | 2.9 | {'https://github.com/kkos/oniguruma/commit/b690371bbf97794b4a1d3f295d4fb9a8b05d402d'} | nvd | An issue was discovered in Oniguruma 6.2.0, as used in Oniguruma-mod in Ruby through 2.4.1 and mbstring in PHP through 7.1.5. A SIGSEGV occurs in left_adjust_char_head() during regular expression compilation. Invalid handling of reg->dmax in forward_search_range() could result in an invalid pointer dereference, normall... | 2017-05-24 | 1 | https://github.com/kkos/oniguruma | https://github.com/kkos/oniguruma/commit/b690371bbf97794b4a1d3f295d4fb9a8b05d402d | b690371bbf97794b4a1d3f295d4fb9a8b05d402d | SINGLE | ['b690371bbf97794b4a1d3f295d4fb9a8b05d402d'] | {'bfdc384eae73e87b3443d016302b73d9def8071f'} | b690371bbf97794b4a1d3f295d4fb9a8b05d402d | 1 | 05/24/2017, 01:27:04 | fix #59 : access to invalid address by reg->dmax value | K.Kosako | null | {'additions': 17, 'deletions': 10, 'total': 27} | [
{
"additions": 17,
"changes": 27,
"deletions": 10,
"patch": "@@ -3235,18 +3235,25 @@ forward_search_range(regex_t* reg, const UChar* str, const UChar* end, UChar* s,\n }\n else {\n if (reg->dmax != ONIG_INFINITE_DISTANCE) {\n- *low = p - reg->dmax;\n- if (*low > s) {\n- ... | c | CWE-476 | [
"src/regexec.c"
] | src/regexec.c | 1 |
static int __ip6_append_data(struct sock *sk, */ alloclen += sizeof(struct frag_hdr); if (transhdrlen) { skb = sock_alloc_send_skb(sk, alloclen + hh_len, static int __ip6_append_data(struct sock *sk, data += fraggap; pskb_trim_unique(skb_prev, maxfraglen); } copy = datalen - transhdr... | static int __ip6_append_data(struct sock *sk, */ alloclen += sizeof(struct frag_hdr); copy = datalen - transhdrlen - fraggap; if (copy < 0) { err = -EINVAL; goto error; } if (transhdrlen) { skb = sock_alloc_send_skb(sk, alloclen + hh_len, static int __ip6_append_data(struct sock *... | CVE-2017-9242 | {'CWE-20'} | 6.9 | {'https://github.com/torvalds/linux/commit/232cd35d0804cc241eb887bb8d4d9b3b9881c64a'} | nvd | The __ip6_append_data function in net/ipv6/ip6_output.c in the Linux kernel through 4.11.3 is too late in checking whether an overwrite of an skb data structure may occur, which allows local users to cause a denial of service (system crash) via crafted system calls. | 2017-05-27 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/232cd35d0804cc241eb887bb8d4d9b3b9881c64a | 232cd35d0804cc241eb887bb8d4d9b3b9881c64a | SINGLE | ['232cd35d0804cc241eb887bb8d4d9b3b9881c64a'] | {'6d18c732b95c0a9d35e9f978b4438bba15412284'} | 232cd35d0804cc241eb887bb8d4d9b3b9881c64a | 1 | 05/19/2017, 21:17:48 | ipv6: fix out of bound writes in __ip6_append_data()
Andrey Konovalov and idaifish@gmail.com reported crashes caused by
one skb shared_info being overwritten from __ip6_append_data()
Andrey program lead to following state :
copy -4200 datalen 2000 fraglen 2040
maxfraglen 2040 alloclen 2048 transhdrlen 0 offset 0 fra... | Eric Dumazet | null | {'additions': 8, 'deletions': 7, 'total': 15} | [
{
"additions": 8,
"changes": 15,
"deletions": 7,
"patch": "@@ -1466,6 +1466,11 @@ static int __ip6_append_data(struct sock *sk,\n \t\t\t */\n \t\t\talloclen += sizeof(struct frag_hdr);\n \n+\t\t\tcopy = datalen - transhdrlen - fraggap;\n+\t\t\tif (copy < 0) {\n+\t\t\t\terr = -EINVAL;\n+\t\t\t\tgoto ... | c | CWE-20 | [
"net/ipv6/ip6_output.c"
] | net/ipv6/ip6_output.c | 1 |
function RemoveXSSchars(&$val) $search .= '~`";:?+/={}[]-_|\'\\'; for ($i = 0, $istrlen_search = strlen($search); $i < $istrlen_search; $i++) { // ;? matches the ;, which is optional // 0{0,8} matches any padded zeros, // which are optional and go up to 8 chars // @ @ search for the hex val... | function RemoveXSSchars(&$val) $search .= '~`";:?+/={}[]-_|\'\\'; for ($i = 0, $istrlen_search = strlen($search); $i < $istrlen_search; $i++) { // ;? matches the ;, which is optional // 0* matches any padded zeros, which are optional // @ @ search for the hex values $patterns[] = '/(�*'.... | CVE-2017-9305 | {'CWE-79'} | 2.9 | {'https://github.com/tikiorg/tiki/commit/6c016e8f066d2f404b18eaa1af7fa0c7a9651ccd'} | nvd | lib/core/TikiFilter/PreventXss.php in Tiki Wiki CMS Groupware 16.2 allows remote attackers to bypass the XSS filter via padded zero characters, as demonstrated by an attack on tiki-batch_send_newsletter.php. | 2017-05-31 | 1 | https://github.com/tikiorg/tiki | https://github.com/tikiorg/tiki/commit/6c016e8f066d2f404b18eaa1af7fa0c7a9651ccd | 6c016e8f066d2f404b18eaa1af7fa0c7a9651ccd | SINGLE | ['6c016e8f066d2f404b18eaa1af7fa0c7a9651ccd'] | {'db278dc8cb1f8aa570c060cd3715b8957c9db858'} | 6c016e8f066d2f404b18eaa1af7fa0c7a9651ccd | 1 | 04/05/2017, 13:31:29 | [SEC] XSS Bypass - prevents bypassing of the xss filter by padding zeros
git-svn-id: https://svn.code.sf.net/p/tikiwiki/code/branches/17.x@62084 b456876b-0849-0410-b77d-98878d47e9d5 | drsassafras | {'com_1': {'author': 'fgeek', 'datetime': '06/28/2017, 16:19:06', 'body': 'When do you plan to release 17.x version? Many of these latest vulnerabilities are fixed only in this major branch and I would like to ask users to update to get more secure installations.'}, 'com_2': {'author': 'luciash', 'datetime': '08/08/201... | {'additions': 4, 'deletions': 5, 'total': 9} | [
{
"additions": 4,
"changes": 9,
"deletions": 5,
"patch": "@@ -183,14 +183,13 @@ function RemoveXSSchars(&$val)\n \t\t\t$search .= '~`\";:?+/={}[]-_|\\'\\\\';\n \t\t\tfor ($i = 0, $istrlen_search = strlen($search); $i < $istrlen_search; $i++) {\n \t\t\t\t// ;? matches the ;, which is optional\n-\t\t\... | php | CWE-79 | [
"lib/core/TikiFilter/PreventXss.php"
] | lib/core/TikiFilter/PreventXss.php | 1 |
class BigTreeStorage { var $AutoJPEG = false; var $DisabledFileError = false; var $DisabledExtensionRegEx = '/\\.(exe|com|bat|php|rb|py|cgi|pl|sh|asp|aspx)/i'; var $Service = ""; var $Cloud = false; var $Settings; | class BigTreeStorage { var $AutoJPEG = false; var $DisabledFileError = false; var $DisabledExtensionRegEx = '/\\.(exe|com|bat|php|rb|py|cgi|pl|sh|asp|aspx|phtml|pht)/i'; var $Service = ""; var $Cloud = false; var $Settings; | CVE-2017-9364 | {'CWE-434'} | 6.4 | {'https://github.com/bigtreecms/BigTree-CMS/commit/b72293946951cc650eaf51f5d2f62ceac6335e12'} | nvd | Unrestricted File Upload exists in BigTree CMS through 4.2.18: if an attacker uploads an 'xxx.pht' or 'xxx.phtml' file, they could bypass a safety check and execute any code. | 2017-06-02 | 1 | https://github.com/bigtreecms/BigTree-CMS | https://github.com/bigtreecms/BigTree-CMS/commit/b72293946951cc650eaf51f5d2f62ceac6335e12 | b72293946951cc650eaf51f5d2f62ceac6335e12 | SINGLE | ['b72293946951cc650eaf51f5d2f62ceac6335e12'] | {'337f671e466fef744999c0649d7c365c3f2a43c0'} | b72293946951cc650eaf51f5d2f62ceac6335e12 | 1 | 05/25/2017, 20:28:42 | Disabling phtml/pht files from being uploaded.
https://github.com/bigtreecms/BigTree-CMS/issues/280 | Tim Buckingham | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -8,7 +8,7 @@ class BigTreeStorage {\n \n \t\tvar $AutoJPEG = false;\n \t\tvar $DisabledFileError = false;\n-\t\tvar $DisabledExtensionRegEx = '/\\\\.(exe|com|bat|php|rb|py|cgi|pl|sh|asp|aspx)/i';\n+\t\tvar $DisabledExtensionRegEx = '/\\\\.... | php | CWE-434 | [
"core/inc/bigtree/apis/storage.php"
] | core/inc/bigtree/apis/storage.php | 1 |
int ares_parse_a_reply(const unsigned char *abuf, int alen, rr_class = DNS_RR_CLASS(aptr); rr_len = DNS_RR_LEN(aptr); aptr += RRFIXEDSZ; if (rr_class == C_IN && rr_type == T_A && rr_len == sizeof(struct in_addr) | int ares_parse_a_reply(const unsigned char *abuf, int alen, rr_class = DNS_RR_CLASS(aptr); rr_len = DNS_RR_LEN(aptr); aptr += RRFIXEDSZ; if (aptr + rr_len > abuf + alen) { free(rr_name); status = ARES_EBADRESP; break; } if (rr_class == C_IN && rr_type == T_A && rr_len == si... | CVE-2017-9454 | {'CWE-125'} | 2.9 | {'https://github.com/resiprocate/resiprocate/commit/d67a9ca6fd06ca65d23e313bdbad1ef4dd3aa0df'} | nvd | Buffer overflow in the ares_parse_a_reply function in the embedded ares library in ReSIProcate before 1.12.0 allows remote attackers to cause a denial of service (out-of-bounds-read) via a crafted DNS response. | 2017-08-18 | 1 | https://github.com/resiprocate/resiprocate | https://github.com/resiprocate/resiprocate/commit/d67a9ca6fd06ca65d23e313bdbad1ef4dd3aa0df | d67a9ca6fd06ca65d23e313bdbad1ef4dd3aa0df | SINGLE | ['d67a9ca6fd06ca65d23e313bdbad1ef4dd3aa0df'] | {'bbc4c39a1dad73b4f3b114e297596848198f5b13'} | d67a9ca6fd06ca65d23e313bdbad1ef4dd3aa0df | 1 | 06/06/2017, 15:49:32 | ares: Prevent buffer overlow in ares_parse_a_reply (CVE-2017-9454)
This buffer overflow is in the embedded copy of ares that will be
used unless the external alternative c-ares is used by specifying
the configure argument --with-c-ares.
It has been found with LibFuzzer from the LLVM project. | Gregor Jasny | null | {'additions': 6, 'deletions': 0, 'total': 6} | [
{
"additions": 6,
"changes": 6,
"deletions": 0,
"patch": "@@ -103,6 +103,12 @@ int ares_parse_a_reply(const unsigned char *abuf, int alen,\n rr_class = DNS_RR_CLASS(aptr);\n rr_len = DNS_RR_LEN(aptr);\n aptr += RRFIXEDSZ;\n+ if (aptr + rr_len > abuf + alen)\n+\t{\n+\t free(rr... | c | CWE-125 | [
"rutil/dns/ares/ares_parse_a_reply.c"
] | rutil/dns/ares/ares_parse_a_reply.c | 1 |
include_once(PHPWG_ROOT_PATH.'include/common.inc.php'); check_status(ACCESS_ADMINISTRATOR); /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Easy set variables */ | include_once(PHPWG_ROOT_PATH.'include/common.inc.php'); check_status(ACCESS_ADMINISTRATOR); check_input_parameter('iDisplayStart', $_REQUEST, false, PATTERN_ID); check_input_parameter('iDisplayLength', $_REQUEST, false, PATTERN_ID); /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ... | CVE-2017-9463 | {'CWE-89'} | 2.9 | {'https://github.com/Piwigo/Piwigo/commit/42920897ce927c236728d387f61bf03d117109a2'} | nvd | The application Piwigo is affected by a SQL injection vulnerability in version 2.9.0 and possibly prior. This vulnerability allows remote authenticated attackers to obtain information in the context of the user used by the application to retrieve data from the database. The user_list_backend.php component is affected: ... | 2017-06-14 | 1 | https://github.com/Piwigo/Piwigo | https://github.com/Piwigo/Piwigo/commit/42920897ce927c236728d387f61bf03d117109a2 | 42920897ce927c236728d387f61bf03d117109a2 | SINGLE | ['42920897ce927c236728d387f61bf03d117109a2'] | {'10700c8739ce212ffb23f173aebd1d32d6714f84'} | 42920897ce927c236728d387f61bf03d117109a2 | 1 | 06/13/2017, 10:32:49 | (cp 6ce14fc) fixes #705, check user_list_backend.php input params | plegall | null | {'additions': 4, 'deletions': 1, 'total': 5} | [
{
"additions": 4,
"changes": 5,
"deletions": 1,
"patch": "@@ -27,7 +27,10 @@\n include_once(PHPWG_ROOT_PATH.'include/common.inc.php');\n \n check_status(ACCESS_ADMINISTRATOR);\n-\t\n+\n+check_input_parameter('iDisplayStart', $_REQUEST, false, PATTERN_ID);\n+check_input_parameter('iDisplayLength', $_... | php | CWE-89 | [
"admin/user_list_backend.php"
] | admin/user_list_backend.php | 1 |
mark_context_stack(mrb_state *mrb, struct mrb_context *c) { size_t i; size_t e; if (c->stack == NULL) return; e = c->stack - c->stbase; mark_context_stack(mrb_state *mrb, struct mrb_context *c) mrb_value v = c->stbase[i]; if (!mrb_immediate_p(v)) { if (mrb_basic_ptr(v)->tt == MRB_TT_FREE) { ... | mark_context_stack(mrb_state *mrb, struct mrb_context *c) { size_t i; size_t e; mrb_value nil; if (c->stack == NULL) return; e = c->stack - c->stbase; mark_context_stack(mrb_state *mrb, struct mrb_context *c) mrb_value v = c->stbase[i]; if (!mrb_immediate_p(v)) { mrb_gc_mark(mrb, mrb_basic_pt... | CVE-2017-9527 | {'CWE-416'} | 6.4 | {'https://github.com/mruby/mruby/commit/5c114c91d4ff31859fcd84cf8bf349b737b90d99'} | nvd | The mark_context_stack function in gc.c in mruby through 1.2.0 allows attackers to cause a denial of service (heap-based use-after-free and application crash) or possibly have unspecified other impact via a crafted .rb file. | 2017-06-11 | 1 | https://github.com/mruby/mruby | https://github.com/mruby/mruby/commit/5c114c91d4ff31859fcd84cf8bf349b737b90d99 | 5c114c91d4ff31859fcd84cf8bf349b737b90d99 | SINGLE | ['5c114c91d4ff31859fcd84cf8bf349b737b90d99'] | {'491d68bb3004eb8d7deec4a3a682b25de0d4afc2'} | 5c114c91d4ff31859fcd84cf8bf349b737b90d99 | 1 | 04/10/2017, 00:46:09 | Clear unused stack region that may refer freed objects; fix #3596 | Yukihiro "Matz" Matsumoto | null | {'additions': 7, 'deletions': 6, 'total': 13} | [
{
"additions": 7,
"changes": 13,
"deletions": 6,
"patch": "@@ -544,6 +544,7 @@ mark_context_stack(mrb_state *mrb, struct mrb_context *c)\n {\n size_t i;\n size_t e;\n+ mrb_value nil;\n \n if (c->stack == NULL) return;\n e = c->stack - c->stbase;\n@@ -553,14 +554,14 @@ mark_context_stack(mrb... | c | CWE-416 | [
"src/gc.c"
] | src/gc.c | 1 |
int vmw_gb_surface_define_ioctl(struct drm_device *dev, void *data, struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; int ret; uint32_t size; uint32_t backup_handle; if (req->multisample_count != 0) return -EINVAL; int vmw_gb_surface_define_ioctl(struct drm_device *dev, void *data, ret = vmw_user_... | int vmw_gb_surface_define_ioctl(struct drm_device *dev, void *data, struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; int ret; uint32_t size; uint32_t backup_handle = 0; if (req->multisample_count != 0) return -EINVAL; int vmw_gb_surface_define_ioctl(struct drm_device *dev, void *data, ret = vmw_u... | CVE-2017-9605 | {'CWE-200'} | 6.9 | {'https://github.com/torvalds/linux/commit/07678eca2cf9c9a18584e546c2b2a0d0c9a3150c'} | nvd | The vmw_gb_surface_define_ioctl function (accessible via DRM_IOCTL_VMW_GB_SURFACE_CREATE) in drivers/gpu/drm/vmwgfx/vmwgfx_surface.c in the Linux kernel through 4.11.4 defines a backup_handle variable but does not give it an initial value. If one attempts to create a GB surface, with a previously allocated DMA buffer t... | 2017-06-13 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/07678eca2cf9c9a18584e546c2b2a0d0c9a3150c | 07678eca2cf9c9a18584e546c2b2a0d0c9a3150c | SINGLE | ['07678eca2cf9c9a18584e546c2b2a0d0c9a3150c'] | {'f0c62e9878024300319ba2438adc7b06c6b9c448'} | 07678eca2cf9c9a18584e546c2b2a0d0c9a3150c | 1 | 06/02/2017, 05:50:57 | drm/vmwgfx: Make sure backup_handle is always valid
When vmw_gb_surface_define_ioctl() is called with an existing buffer,
we end up returning an uninitialized variable in the backup_handle.
The fix is to first initialize backup_handle to 0 just to be sure, and
second, when a user-provided buffer is found, we will use... | Sinclair Yeh | null | {'additions': 11, 'deletions': 7, 'total': 18} | [
{
"additions": 11,
"changes": 18,
"deletions": 7,
"patch": "@@ -1274,7 +1274,7 @@ int vmw_gb_surface_define_ioctl(struct drm_device *dev, void *data,\n \tstruct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile;\n \tint ret;\n \tuint32_t size;\n-\tuint32_t backup_handle;\n+\tuint32_t backup_handl... | c | CWE-200 | [
"drivers/gpu/drm/vmwgfx/vmwgfx_surface.c"
] | drivers/gpu/drm/vmwgfx/vmwgfx_surface.c | 1 |
gstd_accept(int fd, char **display_creds, char **export_name, char **mech) &in, GSS_C_NO_CHANNEL_BINDINGS, &client, &mech_oid, &out, NULL, NULL, NULL); if (out.length && write_packet(fd, &out)) { gss_release_buffer(&min, &out); return NULL; } GSTD_GSS_ERROR(maj, min, NULL, "gss_accept_sec_context");... | gstd_accept(int fd, char **display_creds, char **export_name, char **mech) &in, GSS_C_NO_CHANNEL_BINDINGS, &client, &mech_oid, &out, NULL, NULL, NULL); gss_release_buffer(&min, &in); if (out.length && write_packet(fd, &out)) { gss_release_buffer(&min, &out); return NULL; } gss_release_buffer(&min, ... | CVE-2017-9732 | {'CWE-400'} | 2.9 | {'https://github.com/elric1/knc/commit/f237f3e09ecbaf59c897f5046538a7b1a3fa40c1'} | nvd | The read_packet function in knc (Kerberised NetCat) before 1.11-1 is vulnerable to denial of service (memory exhaustion) that can be exploited remotely without authentication, possibly affecting another services running on the targeted host. | 2018-12-20 | 1 | https://github.com/elric1/knc | https://github.com/elric1/knc/commit/f237f3e09ecbaf59c897f5046538a7b1a3fa40c1 | f237f3e09ecbaf59c897f5046538a7b1a3fa40c1 | SINGLE | ['f237f3e09ecbaf59c897f5046538a7b1a3fa40c1'] | {'c78303f9f657a57b7b89b4356de5dd5d0561a257'} | f237f3e09ecbaf59c897f5046538a7b1a3fa40c1 | 1 | 09/27/2017, 23:55:05 | knc: fix a couple of memory leaks.
One of these can be remotely triggered during the authentication
phase which leads to a remote DoS possibility.
Pointed out by: Imre Rad <radimre83@gmail.com> | Roland C. Dowdeswell | null | {'additions': 16, 'deletions': 6, 'total': 22} | [
{
"additions": 16,
"changes": 22,
"deletions": 6,
"patch": "@@ -220,10 +220,13 @@ gstd_accept(int fd, char **display_creds, char **export_name, char **mech)\n \t &in, GSS_C_NO_CHANNEL_BINDINGS, &client, &mech_oid, &out, NULL,\n \t NULL, NULL);\n \n+\tgss_release_buffer(&min, &in);\n+\n \tif (o... | c | CWE-400 | [
"bin/gssstdio.c"
] | bin/gssstdio.c | 1 |
typedef struct XPMContext { uint32_t *pixels; int pixels_size; } XPMDecContext; typedef struct ColorEntry { static uint32_t color_string_to_rgba(const char *p, int len) const ColorEntry *entry; char color_name[100]; if (*p == '#') { p++; len--; static int xpm_decode_frame(... | typedef struct XPMContext { uint32_t *pixels; int pixels_size; uint8_t *buf; int buf_size; } XPMDecContext; typedef struct ColorEntry { static uint32_t color_string_to_rgba(const char *p, int len) const ColorEntry *entry; char color_name[100]; len = FFMIN(FFMAX(len, 0), s... | CVE-2017-9990 | {'CWE-119'} | 6.4 | {'https://github.com/FFmpeg/FFmpeg/commit/cb243972b121b1ae6b60a78ff55a0506c69f3879'} | nvd | Stack-based buffer overflow in the color_string_to_rgba function in libavcodec/xpmdec.c in FFmpeg 3.3 before 3.3.1 allows remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact via a crafted file. | 2017-06-28 | 1 | https://github.com/FFmpeg/FFmpeg | https://github.com/FFmpeg/FFmpeg/commit/cb243972b121b1ae6b60a78ff55a0506c69f3879 | cb243972b121b1ae6b60a78ff55a0506c69f3879 | SINGLE | ['cb243972b121b1ae6b60a78ff55a0506c69f3879'] | {'73ae60d7df0404b06141faf9a6f62fa87d0a770c'} | cb243972b121b1ae6b60a78ff55a0506c69f3879 | 1 | 05/11/2017, 00:38:33 | avcodec/xpmdec: Fix multiple pointer/memory issues
Most of these were found through code review in response to
fixing 1466/clusterfuzz-testcase-minimized-5961584419536896
There is thus no testcase for most of this.
The initial issue was Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/maste... | Michael Niedermayer | null | {'additions': 30, 'deletions': 7, 'total': 37} | [
{
"additions": 30,
"changes": 37,
"deletions": 7,
"patch": "@@ -29,6 +29,8 @@\n typedef struct XPMContext {\n uint32_t *pixels;\n int pixels_size;\n+ uint8_t *buf;\n+ int buf_size;\n } XPMDecContext;\n \n typedef struct ColorEntry {\n@@ -233,6 +235,8 @@ static uint32_t... | c | CWE-119 | [
"libavcodec/xpmdec.c"
] | libavcodec/xpmdec.c | 1 |
static int xwd_decode_frame(AVCodecContext *avctx, void *data, case XWD_GRAY_SCALE: if (bpp != 1 && bpp != 8) return AVERROR_INVALIDDATA; if (pixdepth == 1) { avctx->pix_fmt = AV_PIX_FMT_MONOWHITE; } else if (pixdepth == 8) { avctx->pix_fmt = AV_PIX_FMT_G... | static int xwd_decode_frame(AVCodecContext *avctx, void *data, case XWD_GRAY_SCALE: if (bpp != 1 && bpp != 8) return AVERROR_INVALIDDATA; if (bpp == 1 && pixdepth == 1) { avctx->pix_fmt = AV_PIX_FMT_MONOWHITE; } else if (bpp == 8 && pixdepth == 8) { avctx... | CVE-2017-9991 | {'CWE-119'} | 6.4 | {'https://github.com/FFmpeg/FFmpeg/commit/441026fcb13ac23aa10edc312bdacb6445a0ad06'} | nvd | Heap-based buffer overflow in the xwd_decode_frame function in libavcodec/xwddec.c in FFmpeg before 2.8.12, 3.0.x before 3.0.8, 3.1.x before 3.1.8, 3.2.x before 3.2.5, and 3.3.x before 3.3.1 allows remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact via a crafted ... | 2017-06-28 | 1 | https://github.com/FFmpeg/FFmpeg | https://github.com/FFmpeg/FFmpeg/commit/441026fcb13ac23aa10edc312bdacb6445a0ad06 | 441026fcb13ac23aa10edc312bdacb6445a0ad06 | SINGLE | ['441026fcb13ac23aa10edc312bdacb6445a0ad06'] | {'a5e0dbf530d447f36099aed575b34e9258c5d75a'} | 441026fcb13ac23aa10edc312bdacb6445a0ad06 | 1 | 05/07/2017, 16:50:49 | avcodec/xwddec: Check bpp more completely
Fixes out of array access
Fixes: 1399/clusterfuzz-testcase-minimized-4866094172995584
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> | Michael Niedermayer | null | {'additions': 2, 'deletions': 2, 'total': 4} | [
{
"additions": 2,
"changes": 4,
"deletions": 2,
"patch": "@@ -157,9 +157,9 @@ static int xwd_decode_frame(AVCodecContext *avctx, void *data,\n case XWD_GRAY_SCALE:\n if (bpp != 1 && bpp != 8)\n return AVERROR_INVALIDDATA;\n- if (pixdepth == 1) {\n+ if (bpp == 1 ... | c | CWE-119 | [
"libavcodec/xwddec.c"
] | libavcodec/xwddec.c | 1 |
static int decode_dds1(GetByteContext *gb, uint8_t *frame, int width, int height return AVERROR_INVALIDDATA; frame += v; } else { if (frame_end - frame < width + 3) return AVERROR_INVALIDDATA; frame[0] = frame[1] = frame[width] = f... | static int decode_dds1(GetByteContext *gb, uint8_t *frame, int width, int height return AVERROR_INVALIDDATA; frame += v; } else { if (frame_end - frame < width + 4) return AVERROR_INVALIDDATA; frame[0] = frame[1] = frame[width] = f... | CVE-2017-9992 | {'CWE-119'} | 6.4 | {'https://github.com/FFmpeg/FFmpeg/commit/f52fbf4f3ed02a7d872d8a102006f29b4421f360'} | nvd | Heap-based buffer overflow in the decode_dds1 function in libavcodec/dfa.c in FFmpeg before 2.8.12, 3.0.x before 3.0.8, 3.1.x before 3.1.8, 3.2.x before 3.2.5, and 3.3.x before 3.3.1 allows remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact via a crafted file. | 2017-06-28 | 1 | https://github.com/FFmpeg/FFmpeg | https://github.com/FFmpeg/FFmpeg/commit/f52fbf4f3ed02a7d872d8a102006f29b4421f360 | f52fbf4f3ed02a7d872d8a102006f29b4421f360 | SINGLE | ['f52fbf4f3ed02a7d872d8a102006f29b4421f360'] | {'0953736b7e97f6e121a0587a95434bf1857a27da'} | f52fbf4f3ed02a7d872d8a102006f29b4421f360 | 1 | 05/05/2017, 18:42:11 | avcodec/dfa: Fix off by 1 error
Fixes out of array access
Fixes: 1345/clusterfuzz-testcase-minimized-6062963045695488
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> | Michael Niedermayer | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -175,7 +175,7 @@ static int decode_dds1(GetByteContext *gb, uint8_t *frame, int width, int height\n return AVERROR_INVALIDDATA;\n frame += v;\n } else {\n- if (frame_end - frame < width + 3)\n... | c | CWE-119 | [
"libavcodec/dfa.c"
] | libavcodec/dfa.c | 1 |
CURLcode Curl_smtp_escape_eob(struct connectdata *conn, const ssize_t nread) if(!scratch || data->set.crlf) { oldscratch = scratch; scratch = newscratch = malloc(2 * data->set.buffer_size); if(!newscratch) { failf(data, "Failed to alloc scratch buffer!"); return CURLE_OUT_OF_MEMORY; } ... | CURLcode Curl_smtp_escape_eob(struct connectdata *conn, const ssize_t nread) if(!scratch || data->set.crlf) { oldscratch = scratch; scratch = newscratch = malloc(2 * UPLOAD_BUFSIZE); if(!newscratch) { failf(data, "Failed to alloc scratch buffer!"); return CURLE_OUT_OF_MEMORY; } } DE... | CVE-2018-0500 | {'CWE-787'} | 6.4 | {'https://github.com/curl/curl/commit/ba1dbd78e5f1ed67c1b8d37ac89d90e5e330b628'} | nvd | 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). | 2018-07-11 | 1 | https://github.com/curl/curl | https://github.com/curl/curl/commit/ba1dbd78e5f1ed67c1b8d37ac89d90e5e330b628 | ba1dbd78e5f1ed67c1b8d37ac89d90e5e330b628 | SINGLE | ['ba1dbd78e5f1ed67c1b8d37ac89d90e5e330b628'] | {'0b4ccc97f26316476d4c2abbd429952bf61b6375'} | ba1dbd78e5f1ed67c1b8d37ac89d90e5e330b628 | 1 | 06/13/2018, 10:24:40 | 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 | Daniel Stenberg | null | {'additions': 2, 'deletions': 1, 'total': 3} | [
{
"additions": 2,
"changes": 3,
"deletions": 1,
"patch": "@@ -1563,13 +1563,14 @@ CURLcode Curl_smtp_escape_eob(struct connectdata *conn, const ssize_t nread)\n if(!scratch || data->set.crlf) {\n oldscratch = scratch;\n \n- scratch = newscratch = malloc(2 * data->set.buffer_size);\n+ scr... | c | CWE-787 | [
"lib/smtp.c"
] | lib/smtp.c | 1 |
// // Original version written by Sean Barrett in 2007. // // Originally sponsored by RAD Game Tools. Seeking sponsored // by Phillip Bennefall, Marc Andersen, Aaron Baker, Elias Software, // Aras Pranckevicius, and Sean Barrett. // // LICENSE // // manxorist@github saga musix github:infatum // // Partia... | // // Original version written by Sean Barrett in 2007. // // Originally sponsored by RAD Game Tools. Seeking implementation // sponsored by Phillip Bennefall, Marc Andersen, Aaron Baker, // Elias Software, Aras Pranckevicius, and Sean Barrett. // // LICENSE // // manxorist@github saga musix github:infat... | CVE-2018-1000050 | {'CWE-119'} | 6.4 | {'https://github.com/nothings/stb/commit/244d83bc3d859293f55812d48b3db168e581f6ab'} | nvd | Sean Barrett stb_vorbis version 1.12 and earlier contains a Buffer Overflow vulnerability in All vorbis decoding paths. that can result in memory corruption, denial of service, comprised execution of host program. This attack appear to be exploitable via Victim must open a specially crafted Ogg Vorbis file. This vulner... | 2018-02-09 | 1 | https://github.com/nothings/stb | https://github.com/nothings/stb/commit/244d83bc3d859293f55812d48b3db168e581f6ab | 244d83bc3d859293f55812d48b3db168e581f6ab | SINGLE | ['244d83bc3d859293f55812d48b3db168e581f6ab'] | {'9d9f75eb682dd98b34de08bb5c489c6c561c9fa6'} | 244d83bc3d859293f55812d48b3db168e581f6ab | 1 | 01/29/2018, 10:23:18 | fix unchecked length in stb_vorbis that could crash on corrupt/invalid files | Sean Barrett | null | {'additions': 18, 'deletions': 5, 'total': 23} | [
{
"additions": 18,
"changes": 23,
"deletions": 5,
"patch": "@@ -3,9 +3,9 @@\n //\n // Original version written by Sean Barrett in 2007.\n //\n-// Originally sponsored by RAD Game Tools. Seeking sponsored\n-// by Phillip Bennefall, Marc Andersen, Aaron Baker, Elias Software,\n-// Aras Pranckevicius, ... | c | CWE-119 | [
"stb_vorbis.c"
] | stb_vorbis.c | 1 |
def encode(self): def constructObject(data): try: classBase = eval(data[""] + "." + data[""].title()) except NameError: logger.error("Don't know how to handle message type: \"%s\"", data[""]) return None try: returnObj = classBase() | def encode(self): def constructObject(data): try: m = import_module("messagetypes." + data[""]) classBase = getattr(m, data[""].title()) except (NameError, ImportError): logger.error("Don't know how to handle message type: \"%s\"", data[""], exc_info=True) return None try: ... | CVE-2018-1000070 | {'CWE-94'} | 6.4 | {'https://github.com/Bitmessage/PyBitmessage/commit/3a8016d31f517775d226aa8b902480f4a3a148a9'} | nvd | Bitmessage PyBitmessage version v0.6.2 (and introduced in or after commit 8ce72d8d2d25973b7064b1cf76a6b0b3d62f0ba0) contains a Eval injection vulnerability in main program, file src/messagetypes/__init__.py function constructObject that can result in Code Execution. This attack appears to be exploitable via remote atta... | 2018-03-13 | 1 | https://github.com/Bitmessage/PyBitmessage | https://github.com/Bitmessage/PyBitmessage/commit/3a8016d31f517775d226aa8b902480f4a3a148a9 | 3a8016d31f517775d226aa8b902480f4a3a148a9 | SINGLE | ['3a8016d31f517775d226aa8b902480f4a3a148a9'] | {'96ea36cfd245f7dc10209b01278b5fa2970f360c'} | 3a8016d31f517775d226aa8b902480f4a3a148a9 | 1 | 02/13/2018, 15:39:35 | Fix message encoding bug
- prevent loading invalid message types | Peter Surda | {'com_1': {'author': 'PeterSurda', 'datetime': '02/13/2018, 16:30:49', 'body': "It's allows a remote execution, but it probably crashed for most people before it could execute anything. In the logs I see attempts to run a windows executable and to steal electrum wallet files."}, 'com_2': {'author': 'rfreemobile', 'date... | {'additions': 4, 'deletions': 3, 'total': 7} | [
{
"additions": 4,
"changes": 7,
"deletions": 3,
"patch": "@@ -12,9 +12,10 @@ def encode(self):\n \n def constructObject(data):\n try:\n- classBase = eval(data[\"\"] + \".\" + data[\"\"].title())\n- except NameError:\n- logger.error(\"Don't know how to handle message type: \\\"%s... | py | CWE-94 | [
"src/messagetypes/__init__.py"
] | src/messagetypes/__init__.py | 1 |
def root(req, res) "only_one_executable" => (executables && executables.size == 1), "full_name" => spec.full_name, "has_deps" => !deps.empty?, "homepage" => spec.homepage, "name" => spec.name, "rdoc_installed" => Gem::R... | def root(req, res) "only_one_executable" => (executables && executables.size == 1), "full_name" => spec.full_name, "has_deps" => !deps.empty?, "homepage" => (URI.parse(spec.homepage).is_a?(URI::HTTP) || URI.parse(spec.homepage).is_a?(URI::HTTPS)) ? spec.h... | CVE-2018-1000078 | {'CWE-79'} | 2.9 | {'https://github.com/rubygems/rubygems/commit/66a28b9275551384fdab45f3591a82d6b59952cb'} | nvd | RubyGems version Ruby 2.2 series: 2.2.9 and earlier, Ruby 2.3 series: 2.3.6 and earlier, Ruby 2.4 series: 2.4.3 and earlier, Ruby 2.5 series: 2.5.0 and earlier, prior to trunk revision 62422 contains a Cross Site Scripting (XSS) vulnerability in gem server display of homepage attribute that can result in XSS. This atta... | 2018-03-13 | 1 | https://github.com/rubygems/rubygems | https://github.com/rubygems/rubygems/commit/66a28b9275551384fdab45f3591a82d6b59952cb | 66a28b9275551384fdab45f3591a82d6b59952cb | SINGLE | ['66a28b9275551384fdab45f3591a82d6b59952cb'] | {'f83f911e19e27cbac1ccce7471d96642241dd759'} | 66a28b9275551384fdab45f3591a82d6b59952cb | 1 | 02/02/2018, 04:04:33 | Fix 289313 | Jonathan Claudius | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -632,7 +632,7 @@ def root(req, res)\n \"only_one_executable\" => (executables && executables.size == 1),\n \"full_name\" => spec.full_name,\n \"has_deps\" => !deps.empty?,\n- \"homepage\"... | rb | CWE-79 | [
"lib/rubygems/server.rb"
] | lib/rubygems/server.rb | 1 |
static int xar_cleanup_temp_file(cli_ctx *ctx, int fd, char * tmpname) value - pointer to long to contain the returned value returns - CL_SUCCESS or CL_EFORMAT */ static int xar_get_numeric_from_xml_element(xmlTextReaderPtr reader, long * value) { const xmlChar * numstr; if (xmlTextReaderRead(reader) ... | static int xar_cleanup_temp_file(cli_ctx *ctx, int fd, char * tmpname) value - pointer to long to contain the returned value returns - CL_SUCCESS or CL_EFORMAT */ static int xar_get_numeric_from_xml_element(xmlTextReaderPtr reader, size_t * value) { const xmlChar * numstr; ssize_t numval; if (xml... | CVE-2018-1000085 | {'CWE-125'} | 2.9 | {'https://github.com/Cisco-Talos/clamav-devel/commit/d96a6b8bcc7439fa7e3876207aa0a8e79c8451b6'} | nvd | ClamAV version version 0.99.3 contains a Out of bounds heap memory read vulnerability in XAR parser, function xar_hash_check() that can result in Leaking of memory, may help in developing exploit chains.. This attack appear to be exploitable via The victim must scan a crafted XAR file. This vulnerability appears to hav... | 2018-03-13 | 1 | https://github.com/Cisco-Talos/clamav-devel | https://github.com/Cisco-Talos/clamav-devel/commit/d96a6b8bcc7439fa7e3876207aa0a8e79c8451b6 | d96a6b8bcc7439fa7e3876207aa0a8e79c8451b6 | SINGLE | ['d96a6b8bcc7439fa7e3876207aa0a8e79c8451b6'] | {'b171157fb1cf38e0ab31ae6a26be7e6554fb584e'} | d96a6b8bcc7439fa7e3876207aa0a8e79c8451b6 | 1 | 06/21/2016, 21:22:52 | bb11588 - fix out of bounds read. | Steven Morgan | null | {'additions': 50, 'deletions': 29, 'total': 79} | [
{
"additions": 50,
"changes": 79,
"deletions": 29,
"patch": "@@ -71,17 +71,20 @@ static int xar_cleanup_temp_file(cli_ctx *ctx, int fd, char * tmpname)\n value - pointer to long to contain the returned value\n returns - CL_SUCCESS or CL_EFORMAT\n */\n-static int xar_get_numeric_from_xml_ele... | c | CWE-125 | [
"libclamav/xar.c"
] | libclamav/xar.c | 1 |
static inline int make_ascii_get_suffix(char *suffix, item *it, bool return_cas) return (p - suffix) + 2; } /* ntokens is overwritten here... shrug.. */ static inline void process_get_command(conn *c, token_t *tokens, size_t ntokens, bool return_cas) { char *key; static inline void process_get_command(conn *c... | static inline int make_ascii_get_suffix(char *suffix, item *it, bool return_cas) return (p - suffix) + 2; } #define IT_REFCOUNT_LIMIT 60000 static inline item* limited_get(char *key, size_t nkey, conn *c) { item *it = item_get(key, nkey, c, DO_UPDATE); if (it && it->refcount > IT_REFCOUNT_LIMIT) { ... | CVE-2018-1000127 | {'CWE-190', 'CWE-667'} | 2.9 | {'https://github.com/memcached/memcached/commit/a8c4a82787b8b6c256d61bd5c42fb7f92d1bae00'} | nvd | memcached version prior to 1.4.37 contains an Integer Overflow vulnerability in items.c:item_free() that can result in data corruption and deadlocks due to items existing in hash table being reused from free list. This attack appear to be exploitable via network connectivity to the memcached service. This vulnerability... | 2018-03-13 | 1 | https://github.com/memcached/memcached | https://github.com/memcached/memcached/commit/a8c4a82787b8b6c256d61bd5c42fb7f92d1bae00 | a8c4a82787b8b6c256d61bd5c42fb7f92d1bae00 | SINGLE | ['a8c4a82787b8b6c256d61bd5c42fb7f92d1bae00'] | {'2b3312e1bccb3609206da4fc8efd24f7cfd80bdd'} | a8c4a82787b8b6c256d61bd5c42fb7f92d1bae00 | 1 | 05/22/2017, 04:49:54 | Don't overflow item refcount on get
Counts as a miss if the refcount is too high. ASCII multigets are the only
time refcounts can be held for so long.
doing a dirty read of refcount. is aligned.
trying to avoid adding an extra refcount branch for all calls of item_get due
to performance. might be able to move it in ... | dormando | null | {'additions': 11, 'deletions': 1, 'total': 12} | [
{
"additions": 11,
"changes": 12,
"deletions": 1,
"patch": "@@ -3249,6 +3249,16 @@ static inline int make_ascii_get_suffix(char *suffix, item *it, bool return_cas)\n return (p - suffix) + 2;\n }\n \n+#define IT_REFCOUNT_LIMIT 60000\n+static inline item* limited_get(char *key, size_t nkey, conn *... | c | CWE-190 | [
"memcached.c"
] | memcached.c | 1 |
layer_resize(int layer, int x_size, int y_size) struct map_tile* tilemap; struct map_trigger* trigger; struct map_zone* zone; int x, y, i; layer_resize(int layer, int x_size, int y_size) // allocate a new tilemap and copy the old layer tiles into it. we can't simply realloc // because the tilemap is a ... | layer_resize(int layer, int x_size, int y_size) struct map_tile* tilemap; struct map_trigger* trigger; struct map_zone* zone; size_t tilemap_size; int x, y, i; layer_resize(int layer, int x_size, int y_size) // allocate a new tilemap and copy the old layer tiles into it. we can't simply re... | CVE-2018-1000524 | {'CWE-190'} | 2.9 | {'https://github.com/fatcerberus/minisphere/commit/252c1ca184cb38e1acb917aa0e451c5f08519996'} | nvd | miniSphere version 5.2.9 and earlier contains a Integer Overflow vulnerability in layer_resize() function in map_engine.c that can result in remote denial of service. This attack appear to be exploitable via the victim must load a specially-crafted map which calls SetLayerSize in its entry script. This vulnerability ap... | 2018-06-26 | 1 | https://github.com/fatcerberus/minisphere | https://github.com/fatcerberus/minisphere/commit/252c1ca184cb38e1acb917aa0e451c5f08519996 | 252c1ca184cb38e1acb917aa0e451c5f08519996 | SINGLE | ['252c1ca184cb38e1acb917aa0e451c5f08519996'] | {'23c16ff65ac8831de1dea721e4998bd140d91080'} | 252c1ca184cb38e1acb917aa0e451c5f08519996 | 1 | 06/13/2018, 05:12:57 | Fix integer overflow in layer_resize in map_engine.c (#268)
* Fix integer overflow in layer_resize in map_engine.c
There's a buffer overflow bug in the function layer_resize. It allocates
a buffer `tilemap` with size `x_size * y_size * sizeof(struct map_tile)`.
But it didn't check for integer overflow, so if x_si... | Xiaoyin Liu | null | {'additions': 4, 'deletions': 1, 'total': 5} | [
{
"additions": 4,
"changes": 5,
"deletions": 1,
"patch": "@@ -1036,6 +1036,7 @@ layer_resize(int layer, int x_size, int y_size)\n \tstruct map_tile* tilemap;\n \tstruct map_trigger* trigger;\n \tstruct map_zone* zone;\n+\tsize_t tilemap_size;\n \n \tint x, y, i;\n \n@@ -1044,7 +10... | c | CWE-190 | [
"src/minisphere/map_engine.c"
] | src/minisphere/map_engine.c | 1 |
function displayPWchanger() /* Fill template with required values */ $smarty->assign('date', gmdate("D, d M Y H:i:s")); $smarty->assign('uid', $uid); $smarty->assign('password_img', get_template_path('images/password.png')); /* Displasy SSL mode warning? */ | function displayPWchanger() /* Fill template with required values */ $smarty->assign('date', gmdate("D, d M Y H:i:s")); $smarty->assign('uid', set_post($uid)); $smarty->assign('password_img', get_template_path('images/password.png')); /* Displasy SSL mode warning? */ | CVE-2018-1000528 | {'CWE-79'} | 2.9 | {'https://github.com/gosa-project/gosa-core/commit/56070d6289d47ba3f5918885954dcceb75606001'} | nvd | GONICUS GOsa version before commit 56070d6289d47ba3f5918885954dcceb75606001 contains a Cross Site Scripting (XSS) vulnerability in change password form (html/password.php, #308) that can result in injection of arbitrary web script or HTML. This attack appear to be exploitable via the victim must open a specially crafte... | 2018-06-26 | 1 | https://github.com/gosa-project/gosa-core | https://github.com/gosa-project/gosa-core/commit/56070d6289d47ba3f5918885954dcceb75606001 | 56070d6289d47ba3f5918885954dcceb75606001 | SINGLE | ['56070d6289d47ba3f5918885954dcceb75606001'] | {'a389ec1e5ab8815afb9314555094fc11dce4caf6'} | 56070d6289d47ba3f5918885954dcceb75606001 | 1 | 06/04/2018, 12:03:39 | (see #14)
escape html entities for uid to avoid code execution | bzapiec | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -305,7 +305,7 @@ function displayPWchanger()\n \n /* Fill template with required values */\n $smarty->assign('date', gmdate(\"D, d M Y H:i:s\"));\n-$smarty->assign('uid', $uid);\n+$smarty->assign('uid', set_post($uid));\n $smarty->assign('... | php | CWE-79 | [
"html/password.php"
] | html/password.php | 1 |
function privExtractFile(&$p_entry, $p_path, $p_remove_path, $p_remove_all_path, } } // ----- Add the path if ($p_path != '') { $p_entry['filename'] = $p_path."/".$p_entry['filename']; | function privExtractFile(&$p_entry, $p_path, $p_remove_path, $p_remove_all_path, } } // Added by LS Team to check for invalid paths $p_entry['filename'] = get_absolute_path($p_entry['filename']); // ----- Add the path if ($p_path != '') { $p_entry['filename'] = $p_path."/".$p_entr... | CVE-2018-1000659 | {'CWE-22'} | 6.4 | {'https://github.com/LimeSurvey/LimeSurvey/commit/72a02ebaaf95a80e26127ee7ee2b123cccce05a7'} | nvd | LimeSurvey version 3.14.4 and earlier contains a directory traversal in file upload that allows upload of webshell vulnerability in file upload functionality that can result in remote code execution as authenticated user. This attack appear to be exploitable via An authenticated user can upload a specially crafted zip ... | 2018-09-06 | 1 | https://github.com/LimeSurvey/LimeSurvey | https://github.com/LimeSurvey/LimeSurvey/commit/72a02ebaaf95a80e26127ee7ee2b123cccce05a7 | 72a02ebaaf95a80e26127ee7ee2b123cccce05a7 | SINGLE | ['72a02ebaaf95a80e26127ee7ee2b123cccce05a7'] | {'5ca7e4a172c06b1eaea0ec6ea2acc9e939d9c10c'} | 72a02ebaaf95a80e26127ee7ee2b123cccce05a7 | 1 | 08/15/2018, 11:25:47 | [security] fixed issue #13959: RCE via resource file upload as authenticated user | LouisGac | null | {'additions': 3, 'deletions': 0, 'total': 3} | [
{
"additions": 3,
"changes": 3,
"deletions": 0,
"patch": "@@ -3669,6 +3669,9 @@ function privExtractFile(&$p_entry, $p_path, $p_remove_path, $p_remove_all_path,\n }\r\n }\r\n \r\n+ // Added by LS Team to check for invalid paths\r\n+ $p_entry['filename'] = get_absolute_path($p_entry['... | php | CWE-22 | [
"application/third_party/pclzip/pclzip.lib.php"
] | application/third_party/pclzip/pclzip.lib.php | 1 |
bool ContentSettingsObserver::AllowScript(bool enabled_per_settings) { // IsWhitelistedForContentSettings(); if there is only the default rule // allowing all scripts, it's quicker this way. bool allow = true; if (content_setting_rules_) { ContentSetting setting = GetContentSettingFromRules( conten... | bool ContentSettingsObserver::AllowScript(bool enabled_per_settings) { // IsWhitelistedForContentSettings(); if there is only the default rule // allowing all scripts, it's quicker this way. bool allow = true; if (content_settings_manager_->content_settings()) { allow = content_settings_manager_->G... | CVE-2018-1000815 | {'CWE-20'} | 2.9 | {'https://github.com/brave/muon/commit/c18663aa171c6cdf03da3e8c70df8663645b97c4'} | nvd | Brave Software Inc. Brave version version 0.22.810 to 0.24.0 contains a Other/Unknown vulnerability in function ContentSettingsObserver::AllowScript() in content_settings_observer.cc that can result in Websites can run inline JavaScript even if script is blocked, making attackers easier to track users. This attack appe... | 2018-12-20 | 1 | https://github.com/brave/muon | https://github.com/brave/muon/commit/c18663aa171c6cdf03da3e8c70df8663645b97c4 | c18663aa171c6cdf03da3e8c70df8663645b97c4 | SINGLE | ['c18663aa171c6cdf03da3e8c70df8663645b97c4'] | {'6ad02d015a68dfdf0976525ce119954e00533cb2'} | c18663aa171c6cdf03da3e8c70df8663645b97c4 | 1 | 10/02/2018, 01:56:46 | Issue: 15232 AllowScript should use atom::ContentSettingsManager like other Allow* methods in the observer | Pranjal | null | {'additions': 7, 'deletions': 5, 'total': 12} | [
{
"additions": 7,
"changes": 12,
"deletions": 5,
"patch": "@@ -432,11 +432,13 @@ bool ContentSettingsObserver::AllowScript(bool enabled_per_settings) {\n // IsWhitelistedForContentSettings(); if there is only the default rule\n // allowing all scripts, it's quicker this way.\n bool allow = tru... | cc | CWE-20 | [
"chromium_src/chrome/renderer/content_settings_observer.cc"
] | chromium_src/chrome/renderer/content_settings_observer.cc | 1 |
static UINT dvcman_receive_channel_data(drdynvcPlugin* drdynvc, if (channel->dvc_data) { /* Fragmented data */ if (Stream_GetPosition(channel->dvc_data) + dataSize > (UINT32) Stream_Capacity( channel->dvc_data)) { WLog_Print(drdynvc->log, WLOG_ERROR, "data exceeding declared length!"); Stream_R... | static UINT dvcman_receive_channel_data(drdynvcPlugin* drdynvc, if (channel->dvc_data) { /* Fragmented data */ if (Stream_GetPosition(channel->dvc_data) + dataSize > Stream_Capacity(channel->dvc_data)) { WLog_Print(drdynvc->log, WLOG_ERROR, "data exceeding declared length!"); Stream_Release(channel->dvc_... | CVE-2018-1000852 | {'CWE-125'} | 4.9 | {'https://github.com/FreeRDP/FreeRDP/pull/4871/commits/baee520e3dd9be6511c45a14c5f5e77784de1471'} | nvd | FreeRDP FreeRDP 2.0.0-rc3 released version before commit 205c612820dac644d665b5bb1cdf437dc5ca01e3 contains a Other/Unknown vulnerability in channels/drdynvc/client/drdynvc_main.c, drdynvc_process_capability_request that can result in The RDP server can read the client's memory.. This attack appear to be exploitable via... | 2018-12-20 | 1 | https://github.com/FreeRDP/FreeRDP | https://github.com/FreeRDP/FreeRDP/pull/4871/commits/baee520e3dd9be6511c45a14c5f5e77784de1471 | baee520e3dd9be6511c45a14c5f5e77784de1471 | SINGLE | ['baee520e3dd9be6511c45a14c5f5e77784de1471'] | {'59ae00baaa56ea4db3b1f1cbdfc8549f75cef366'} | baee520e3dd9be6511c45a14c5f5e77784de1471 | 1 | 09/20/2018, 07:06:01 | Fix for #4866: Added additional length checks | Armin Novak | null | {'additions': 53, 'deletions': 8, 'total': 61} | [
{
"additions": 53,
"changes": 61,
"deletions": 8,
"patch": "@@ -639,16 +639,15 @@ static UINT dvcman_receive_channel_data(drdynvcPlugin* drdynvc,\n \tif (channel->dvc_data)\n \t{\n \t\t/* Fragmented data */\n-\t\tif (Stream_GetPosition(channel->dvc_data) + dataSize > (UINT32) Stream_Capacity(\n-\t\t... | c | CWE-125 | [
"channels/drdynvc/client/drdynvc_main.c"
] | channels/drdynvc/client/drdynvc_main.c | 1 |
parse_codes(struct archive_read *a) new_size = DICTIONARY_MAX_SIZE; else new_size = rar_fls((unsigned int)rar->unp_size) << 1; new_window = realloc(rar->lzss.window, new_size); if (new_window == NULL) { archive_set_error(&a->archive, ENOMEM, | parse_codes(struct archive_read *a) new_size = DICTIONARY_MAX_SIZE; else new_size = rar_fls((unsigned int)rar->unp_size) << 1; if (new_size == 0) { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Zero window size is invalid."); return (ARCHIVE_FATAL); ... | CVE-2018-1000877 | {'CWE-415'} | 6.4 | {'https://github.com/libarchive/libarchive/pull/1105/commits/021efa522ad729ff0f5806c4ce53e4a6cc1daa31'} | nvd | libarchive version commit 416694915449219d505531b1096384f3237dd6cc onwards (release v3.1.0 onwards) contains a CWE-415: Double Free vulnerability in RAR decoder - libarchive/archive_read_support_format_rar.c, parse_codes(), realloc(rar->lzss.window, new_size) with new_size = 0 that can result in Crash/DoS. This attack ... | 2018-12-20 | 1 | https://github.com/libarchive/libarchive | https://github.com/libarchive/libarchive/pull/1105/commits/021efa522ad729ff0f5806c4ce53e4a6cc1daa31 | 021efa522ad729ff0f5806c4ce53e4a6cc1daa31 | SINGLE | ['021efa522ad729ff0f5806c4ce53e4a6cc1daa31'] | {'851adb9602f1acdb090067bb4f297cd609dfa28c'} | 021efa522ad729ff0f5806c4ce53e4a6cc1daa31 | 1 | 11/20/2018, 06:56:29 | Avoid a double-free when a window size of 0 is specified
new_size can be 0 with a malicious or corrupted RAR archive.
realloc(area, 0) is equivalent to free(area), so the region would
be free()d here and the free()d again in the cleanup function.
Found with a setup running AFL, afl-rb, and qsym. | Daniel Axtens | null | {'additions': 5, 'deletions': 0, 'total': 5} | [
{
"additions": 5,
"changes": 5,
"deletions": 0,
"patch": "@@ -2300,6 +2300,11 @@ parse_codes(struct archive_read *a)\n new_size = DICTIONARY_MAX_SIZE;\n else\n new_size = rar_fls((unsigned int)rar->unp_size) << 1;\n+ if (new_size == 0) {\n+ archive_set_error(&a->archive, ARCH... | c | CWE-415 | [
"libarchive/archive_read_support_format_rar.c"
] | libarchive/archive_read_support_format_rar.c | 1 |
struct rar struct data_block_offsets *dbo; unsigned int cursor; unsigned int nodes; /* LZSS members */ struct huffman_code maincode; read_header(struct archive_read *a, struct archive_entry *entry, } return ret; } rar->filename_save = (char*)realloc(rar->filename_save, ... | struct rar struct data_block_offsets *dbo; unsigned int cursor; unsigned int nodes; char filename_must_match; /* LZSS members */ struct huffman_code maincode; read_header(struct archive_read *a, struct archive_entry *entry, } return ret; } else if (rar->filename_must_match) { archive_set... | CVE-2018-1000878 | {'CWE-416'} | 6.4 | {'https://github.com/libarchive/libarchive/pull/1105/commits/bfcfe6f04ed20db2504db8a254d1f40a1d84eb28'} | nvd | libarchive version commit 416694915449219d505531b1096384f3237dd6cc onwards (release v3.1.0 onwards) contains a CWE-416: Use After Free vulnerability in RAR decoder - libarchive/archive_read_support_format_rar.c that can result in Crash/DoS - it is unknown if RCE is possible. This attack appear to be exploitable via the... | 2018-12-20 | 1 | https://github.com/libarchive/libarchive | https://github.com/libarchive/libarchive/pull/1105/commits/bfcfe6f04ed20db2504db8a254d1f40a1d84eb28 | bfcfe6f04ed20db2504db8a254d1f40a1d84eb28 | SINGLE | ['bfcfe6f04ed20db2504db8a254d1f40a1d84eb28'] | {'021efa522ad729ff0f5806c4ce53e4a6cc1daa31'} | bfcfe6f04ed20db2504db8a254d1f40a1d84eb28 | 1 | 12/03/2018, 13:55:22 | rar: file split across multi-part archives must match
Fuzzing uncovered some UAF and memory overrun bugs where a file in a
single file archive reported that it was split across multiple
volumes. This was caused by ppmd7 operations calling
rar_br_fillup. This would invoke rar_read_ahead, which would in some
situations ... | Daniel Axtens | null | {'additions': 9, 'deletions': 0, 'total': 9} | [
{
"additions": 9,
"changes": 9,
"deletions": 0,
"patch": "@@ -258,6 +258,7 @@ struct rar\n struct data_block_offsets *dbo;\n unsigned int cursor;\n unsigned int nodes;\n+ char filename_must_match;\n \n /* LZSS members */\n struct huffman_code maincode;\n@@ -1560,6 +1561,12 @@ read_header(... | c | CWE-416 | [
"libarchive/archive_read_support_format_rar.c"
] | libarchive/archive_read_support_format_rar.c | 1 |
archive_acl_from_text_l(struct archive_acl *acl, const char *text, st = field[n].start + 1; len = field[n].end - field[n].start; switch (*s) { case 'u': if (len == 1 || (len == 4 | archive_acl_from_text_l(struct archive_acl *acl, const char *text, st = field[n].start + 1; len = field[n].end - field[n].start; if (len == 0) { ret = ARCHIVE_WARN; continue; } switch (*s) { case 'u': if (len == 1 || (len == 4 | CVE-2018-1000879 | {'CWE-476'} | 2.9 | {'https://github.com/libarchive/libarchive/pull/1105/commits/15bf44fd2c1ad0e3fd87048b3fcc90c4dcff1175'} | nvd | libarchive version commit 379867ecb330b3a952fb7bfa7bffb7bbd5547205 onwards (release v3.3.0 onwards) contains a CWE-476: NULL Pointer Dereference vulnerability in ACL parser - libarchive/archive_acl.c, archive_acl_from_text_l() that can result in Crash/DoS. This attack appear to be exploitable via the victim must open a... | 2018-12-20 | 1 | https://github.com/libarchive/libarchive | https://github.com/libarchive/libarchive/pull/1105/commits/15bf44fd2c1ad0e3fd87048b3fcc90c4dcff1175 | 15bf44fd2c1ad0e3fd87048b3fcc90c4dcff1175 | SINGLE | ['15bf44fd2c1ad0e3fd87048b3fcc90c4dcff1175'] | {'bfcfe6f04ed20db2504db8a254d1f40a1d84eb28'} | 15bf44fd2c1ad0e3fd87048b3fcc90c4dcff1175 | 1 | 12/04/2018, 03:29:42 | Skip 0-length ACL fields
Currently, it is possible to create an archive that crashes bsdtar
with a malformed ACL:
Program received signal SIGSEGV, Segmentation fault.
archive_acl_from_text_l (acl=<optimised out>, text=0x7e2e92 "", want_type=<optimised out>, sc=<optimised out>) at libarchive/archive_acl.c:1726
1726 ... | Daniel Axtens | null | {'additions': 5, 'deletions': 0, 'total': 5} | [
{
"additions": 5,
"changes": 5,
"deletions": 0,
"patch": "@@ -1723,6 +1723,11 @@ archive_acl_from_text_l(struct archive_acl *acl, const char *text,\n \t\t\tst = field[n].start + 1;\n \t\t\tlen = field[n].end - field[n].start;\n \n+\t\t\tif (len == 0) {\n+\t\t\t\tret = ARCHIVE_WARN;\n+\t\t\t\tcontinu... | c | CWE-476 | [
"libarchive/archive_acl.c"
] | libarchive/archive_acl.c | 1 |
_warc_read(struct archive_read *a, const void **buf, size_t *bsz, int64_t *off) return (ARCHIVE_EOF); } rab = __archive_read_ahead(a, 1U, &nrd); if (nrd < 0) { *bsz = 0U; | _warc_read(struct archive_read *a, const void **buf, size_t *bsz, int64_t *off) return (ARCHIVE_EOF); } if (w->unconsumed) { __archive_read_consume(a, w->unconsumed); w->unconsumed = 0U; } rab = __archive_read_ahead(a, 1U, &nrd); if (nrd < 0) { *bsz = 0U; | CVE-2018-1000880 | {'CWE-119'} | 2.9 | {'https://github.com/libarchive/libarchive/pull/1105/commits/9c84b7426660c09c18cc349f6d70b5f8168b5680'} | nvd | libarchive version commit 9693801580c0cf7c70e862d305270a16b52826a7 onwards (release v3.2.0 onwards) contains a CWE-20: Improper Input Validation vulnerability in WARC parser - libarchive/archive_read_support_format_warc.c, _warc_read() that can result in DoS - quasi-infinite run time and disk usage from tiny file. This... | 2018-12-20 | 1 | https://github.com/libarchive/libarchive | https://github.com/libarchive/libarchive/pull/1105/commits/9c84b7426660c09c18cc349f6d70b5f8168b5680 | 9c84b7426660c09c18cc349f6d70b5f8168b5680 | SINGLE | ['9c84b7426660c09c18cc349f6d70b5f8168b5680'] | {'15bf44fd2c1ad0e3fd87048b3fcc90c4dcff1175'} | 9c84b7426660c09c18cc349f6d70b5f8168b5680 | 1 | 12/04/2018, 05:33:42 | warc: consume data once read
The warc decoder only used read ahead, it wouldn't actually consume
data that had previously been printed. This means that if you specify
an invalid content length, it will just reprint the same data over
and over and over again until it hits the desired length.
This means that a WARC res... | Daniel Axtens | null | {'additions': 5, 'deletions': 0, 'total': 5} | [
{
"additions": 5,
"changes": 5,
"deletions": 0,
"patch": "@@ -386,6 +386,11 @@ _warc_read(struct archive_read *a, const void **buf, size_t *bsz, int64_t *off)\n \t\treturn (ARCHIVE_EOF);\n \t}\n \n+\tif (w->unconsumed) {\n+\t\t__archive_read_consume(a, w->unconsumed);\n+\t\tw->unconsumed = 0U;\n+\t}... | c | CWE-119 | [
"libarchive/archive_read_support_format_warc.c"
] | libarchive/archive_read_support_format_warc.c | 1 |
std::vector<GetLengthType> CSoundFile::GetLength(enmGetLengthResetMode adjustMod if(GetType() == MOD_TYPE_IT) { // IT pattern loop start row update - at the end of a pattern loop, set pattern loop start to next row (for upcoming pattern loops with missing SB0) for(CHANNELINDEX nChn = 0; nChn < GetNumChan... | std::vector<GetLengthType> CSoundFile::GetLength(enmGetLengthResetMode adjustMod if(GetType() == MOD_TYPE_IT) { // IT pattern loop start row update - at the end of a pattern loop, set pattern loop start to next row (for upcoming pattern loops with missing SB0) pChn = playState.Chn; for(CHANNELINDEX n... | CVE-2018-10017 | {'CWE-125'} | 2.9 | {'https://github.com/OpenMPT/openmpt/commit/7ebf02af2e90f03e0dbd0e18b8b3164f372fb97c'} | nvd | soundlib/Snd_fx.cpp in OpenMPT before 1.27.07.00 and libopenmpt before 0.3.8 allows remote attackers to cause a denial of service (out-of-bounds read) via an IT or MO3 file with many nested pattern loops. | 2018-04-11 | 1 | https://github.com/OpenMPT/openmpt | https://github.com/OpenMPT/openmpt/commit/7ebf02af2e90f03e0dbd0e18b8b3164f372fb97c | 7ebf02af2e90f03e0dbd0e18b8b3164f372fb97c | SINGLE | ['7ebf02af2e90f03e0dbd0e18b8b3164f372fb97c'] | {'5449bed7e1b84602b79812a0591cbd4d9a7cbee8'} | 7ebf02af2e90f03e0dbd0e18b8b3164f372fb97c | 1 | 04/07/2018, 16:04:51 | [Fix] Possible out-of-bounds read when computing length of some IT files with pattern loops (OpenMPT: formats that are converted to IT, libopenmpt: IT/ITP/MO3), caught with afl-fuzz.
git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@10027 56274372-70c3-4bfc-bfc3-4c3a0b034d27 | Johannes Schultz | null | {'additions': 2, 'deletions': 1, 'total': 3} | [
{
"additions": 2,
"changes": 3,
"deletions": 1,
"patch": "@@ -1204,7 +1204,8 @@ std::vector<GetLengthType> CSoundFile::GetLength(enmGetLengthResetMode adjustMod\n \t\t\tif(GetType() == MOD_TYPE_IT)\n \t\t\t{\n \t\t\t\t// IT pattern loop start row update - at the end of a pattern loop, set pattern lo... | cpp | CWE-125 | [
"soundlib/Snd_fx.cpp"
] | soundlib/Snd_fx.cpp | 1 |
static int hi3660_stub_clk_probe(struct platform_device *pdev) return PTR_ERR(stub_clk_chan.mbox); res = platform_get_resource(pdev, IORESOURCE_MEM, 0); freq_reg = devm_ioremap(dev, res->start, resource_size(res)); if (!freq_reg) return -ENOMEM; | static int hi3660_stub_clk_probe(struct platform_device *pdev) return PTR_ERR(stub_clk_chan.mbox); res = platform_get_resource(pdev, IORESOURCE_MEM, 0); if (!res) return -EINVAL; freq_reg = devm_ioremap(dev, res->start, resource_size(res)); if (!freq_reg) return -ENOMEM; | CVE-2018-10074 | {'CWE-476'} | 6.9 | {'https://github.com/torvalds/linux/commit/9903e41ae1f5d50c93f268ca3304d4d7c64b9311'} | nvd | The hi3660_stub_clk_probe function in drivers/clk/hisilicon/clk-hi3660-stub.c in the Linux kernel before 4.16 allows local users to cause a denial of service (NULL pointer dereference) by triggering a failure of resource retrieval. | 2018-04-12 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/9903e41ae1f5d50c93f268ca3304d4d7c64b9311 | 9903e41ae1f5d50c93f268ca3304d4d7c64b9311 | SINGLE | ['9903e41ae1f5d50c93f268ca3304d4d7c64b9311'] | {'56e1ee3539437a26ebec358167d1f8cd07253c3d'} | 9903e41ae1f5d50c93f268ca3304d4d7c64b9311 | 1 | 01/04/2018, 06:36:34 | clk: hisilicon: hi3660:Fix potential NULL dereference in hi3660_stub_clk_probe()
platform_get_resource() may return NULL, add proper check to
avoid potential NULL dereferencing.
This is detected by Coccinelle semantic patch.
@@
expression pdev, res, n, t, e, e1, e2;
@@
res = platform_get_resource(pdev, t, n);
+ if ... | Wei Yongjun | null | {'additions': 2, 'deletions': 0, 'total': 2} | [
{
"additions": 2,
"changes": 2,
"deletions": 0,
"patch": "@@ -149,6 +149,8 @@ static int hi3660_stub_clk_probe(struct platform_device *pdev)\n \t\treturn PTR_ERR(stub_clk_chan.mbox);\n \n \tres = platform_get_resource(pdev, IORESOURCE_MEM, 0);\n+\tif (!res)\n+\t\treturn -EINVAL;\n \tfreq_reg = devm_... | c | CWE-476 | [
"drivers/clk/hisilicon/clk-hi3660-stub.c"
] | drivers/clk/hisilicon/clk-hi3660-stub.c | 1 |
long kernel_wait4(pid_t upid, int __user *stat_addr, int options, __WNOTHREAD|__WCLONE|__WALL)) return -EINVAL; if (upid == -1) type = PIDTYPE_MAX; else if (upid < 0) { | long kernel_wait4(pid_t upid, int __user *stat_addr, int options, __WNOTHREAD|__WCLONE|__WALL)) return -EINVAL; /* -INT_MIN is not defined */ if (upid == INT_MIN) return -ESRCH; if (upid == -1) type = PIDTYPE_MAX; else if (upid < 0) { | CVE-2018-10087 | {'CWE-20'} | 2.9 | {'https://github.com/torvalds/linux/commit/dd83c161fbcc5d8be637ab159c0de015cbff5ba4'} | nvd | The kernel_wait4 function in kernel/exit.c in the Linux kernel before 4.13, when an unspecified architecture and compiler is used, might allow local users to cause a denial of service by triggering an attempted use of the -INT_MIN value. | 2018-04-13 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/dd83c161fbcc5d8be637ab159c0de015cbff5ba4 | dd83c161fbcc5d8be637ab159c0de015cbff5ba4 | SINGLE | ['dd83c161fbcc5d8be637ab159c0de015cbff5ba4'] | {'4ea77014af0d6205b05503d1c7aac6eace11d473'} | dd83c161fbcc5d8be637ab159c0de015cbff5ba4 | 1 | 07/10/2017, 22:53:01 | kernel/exit.c: avoid undefined behaviour when calling wait4()
wait4(-2147483648, 0x20, 0, 0xdd0000) triggers:
UBSAN: Undefined behaviour in kernel/exit.c:1651:9
The related calltrace is as follows:
negation of -2147483648 cannot be represented in type 'int':
CPU: 9 PID: 16482 Comm: zj Tainted: G B --... | zhongjiang | null | {'additions': 4, 'deletions': 0, 'total': 4} | [
{
"additions": 4,
"changes": 4,
"deletions": 0,
"patch": "@@ -1639,6 +1639,10 @@ long kernel_wait4(pid_t upid, int __user *stat_addr, int options,\n \t\t\t__WNOTHREAD|__WCLONE|__WALL))\n \t\treturn -EINVAL;\n \n+\t/* -INT_MIN is not defined */\n+\tif (upid == INT_MIN)\n+\t\treturn -ESRCH;\n+\n \tif ... | c | CWE-20 | [
"kernel/exit.c"
] | kernel/exit.c | 1 |
$result=restrictedArea($user,'adherent'); $filter=GETPOST("filter",'alpha'); $statut=GETPOST("statut",'alpha'); $search=GETPOST("search",'alpha'); $search_ref=GETPOST("search_ref",'alpha'); $search_lastname=GETPOST("search_lastname",'alpha'); | $result=restrictedArea($user,'adherent'); $filter=GETPOST("filter",'alpha'); $statut=GETPOST("statut",'intcomma'); $search=GETPOST("search",'alpha'); $search_ref=GETPOST("search_ref",'alpha'); $search_lastname=GETPOST("search_lastname",'alpha'); | CVE-2018-10094 | {'CWE-89'} | 6.4 | {'https://github.com/Dolibarr/dolibarr/commit/7ade4e37f24d6859987bb9f6232f604325633fdd'} | nvd | SQL injection vulnerability in Dolibarr before 7.0.2 allows remote attackers to execute arbitrary SQL commands via vectors involving integer parameters without quotes. | 2018-05-22 | 1 | https://github.com/Dolibarr/dolibarr | https://github.com/Dolibarr/dolibarr/commit/7ade4e37f24d6859987bb9f6232f604325633fdd | 7ade4e37f24d6859987bb9f6232f604325633fdd | SINGLE | ['7ade4e37f24d6859987bb9f6232f604325633fdd'] | {'6b3e5e208592bb9eaa30bac338976a01e3f79ccd'} | 7ade4e37f24d6859987bb9f6232f604325633fdd | 1 | 04/18/2018, 10:23:49 | FIX CVE-2018-10094 | Laurent Destailleur | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -43,7 +43,7 @@\n $result=restrictedArea($user,'adherent');\n \n $filter=GETPOST(\"filter\",'alpha');\n-$statut=GETPOST(\"statut\",'alpha');\n+$statut=GETPOST(\"statut\",'intcomma');\n $search=GETPOST(\"search\",'alpha');\n $search_ref=GETP... | php | CWE-89 | [
"htdocs/adherents/list.php"
] | htdocs/adherents/list.php | 1 |
require_once DOL_DOCUMENT_ROOT.'/core/modules/member/modules_cards.php'; require_once DOL_DOCUMENT_ROOT.'/core/modules/printsheet/modules_labels.php'; $langs->load("members"); $langs->load("errors"); // Choix de l'annee d'impression ou annee courante. $now = dol_now(); $year=dol_print_date($now,'%Y'); $month=dol_pri... | require_once DOL_DOCUMENT_ROOT.'/core/modules/member/modules_cards.php'; require_once DOL_DOCUMENT_ROOT.'/core/modules/printsheet/modules_labels.php'; $langs->loadLangs(array("members","errors")); // Choix de l'annee d'impression ou annee courante. $now = dol_now(); $year=dol_print_date($now,'%Y'); $month=dol_print_... | CVE-2018-10095 | {'CWE-79'} | 2.9 | {'https://github.com/Dolibarr/dolibarr/commit/1dc466e1fb687cfe647de4af891720419823ed56'} | nvd | Cross-site scripting (XSS) vulnerability in Dolibarr before 7.0.2 allows remote attackers to inject arbitrary web script or HTML via the foruserlogin parameter to adherents/cartes/carte.php. | 2018-05-22 | 1 | https://github.com/Dolibarr/dolibarr | https://github.com/Dolibarr/dolibarr/commit/1dc466e1fb687cfe647de4af891720419823ed56 | 1dc466e1fb687cfe647de4af891720419823ed56 | SINGLE | ['1dc466e1fb687cfe647de4af891720419823ed56'] | {'7ade4e37f24d6859987bb9f6232f604325633fdd'} | 1dc466e1fb687cfe647de4af891720419823ed56 | 1 | 04/18/2018, 10:32:19 | FIX CVE-2018-10095 | Laurent Destailleur | null | {'additions': 6, 'deletions': 7, 'total': 13} | [
{
"additions": 6,
"changes": 13,
"deletions": 7,
"patch": "@@ -29,19 +29,18 @@\n require_once DOL_DOCUMENT_ROOT.'/core/modules/member/modules_cards.php';\n require_once DOL_DOCUMENT_ROOT.'/core/modules/printsheet/modules_labels.php';\n \n-$langs->load(\"members\");\n-$langs->load(\"errors\");\n+$lan... | php | CWE-79 | [
"htdocs/adherents/cartes/carte.php"
] | htdocs/adherents/cartes/carte.php | 1 |
static int kill_something_info(int sig, struct siginfo *info, pid_t pid) return ret; } read_lock(&tasklist_lock); if (pid != -1) { ret = __kill_pgrp_info(sig, info, | static int kill_something_info(int sig, struct siginfo *info, pid_t pid) return ret; } /* -INT_MIN is undefined. Exclude this case to avoid a UBSAN warning */ if (pid == INT_MIN) return -ESRCH; read_lock(&tasklist_lock); if (pid != -1) { ret = __kill_pgrp_info(sig, info, | CVE-2018-10124 | {'CWE-119'} | 2.9 | {'https://github.com/torvalds/linux/commit/4ea77014af0d6205b05503d1c7aac6eace11d473'} | nvd | The kill_something_info function in kernel/signal.c in the Linux kernel before 4.13, when an unspecified architecture and compiler is used, might allow local users to cause a denial of service via an INT_MIN argument. | 2018-04-16 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/4ea77014af0d6205b05503d1c7aac6eace11d473 | 4ea77014af0d6205b05503d1c7aac6eace11d473 | SINGLE | ['4ea77014af0d6205b05503d1c7aac6eace11d473'] | {'67c6777a5d331dda32a4c4a1bf0cac85bdaaaed8'} | 4ea77014af0d6205b05503d1c7aac6eace11d473 | 1 | 07/10/2017, 22:52:57 | kernel/signal.c: avoid undefined behaviour in kill_something_info
When running kill(72057458746458112, 0) in userspace I hit the following
issue.
UBSAN: Undefined behaviour in kernel/signal.c:1462:11
negation of -2147483648 cannot be represented in type 'int':
CPU: 226 PID: 9849 Comm: test Tainted: G B ... | zhongjiang | null | {'additions': 4, 'deletions': 0, 'total': 4} | [
{
"additions": 4,
"changes": 4,
"deletions": 0,
"patch": "@@ -1402,6 +1402,10 @@ static int kill_something_info(int sig, struct siginfo *info, pid_t pid)\n \t\treturn ret;\n \t}\n \n+\t/* -INT_MIN is undefined. Exclude this case to avoid a UBSAN warning */\n+\tif (pid == INT_MIN)\n+\t\treturn -ESRC... | c | CWE-119 | [
"kernel/signal.c"
] | kernel/signal.c | 1 |
mrb_vm_exec(mrb_state *mrb, struct RProc *proc, mrb_code *pc) mrb_value *regs_a = regs + a; struct REnv *e = uvenv(mrb, c); if (!e) { *regs_a = mrb_nil_value(); } else { *regs_a = e->stack[b]; } NEXT; } | mrb_vm_exec(mrb_state *mrb, struct RProc *proc, mrb_code *pc) mrb_value *regs_a = regs + a; struct REnv *e = uvenv(mrb, c); if (e && b < MRB_ENV_STACK_LEN(e)) { *regs_a = e->stack[b]; } else { *regs_a = mrb_nil_value(); } NEXT; } | CVE-2018-10191 | {'CWE-190'} | 6.4 | {'https://github.com/mruby/mruby/commit/1905091634a6a2925c911484434448e568330626'} | nvd | In versions of mruby up to and including 1.4.0, an integer overflow exists in src/vm.c::mrb_vm_exec() when handling OP_GETUPVAR in the presence of deep scope nesting, resulting in a use-after-free. An attacker that can cause Ruby code to be run can use this to possibly execute arbitrary code. | 2018-04-17 | 1 | https://github.com/mruby/mruby | https://github.com/mruby/mruby/commit/1905091634a6a2925c911484434448e568330626 | 1905091634a6a2925c911484434448e568330626 | SINGLE | ['1905091634a6a2925c911484434448e568330626'] | {'e340b1725260e70a001372e5330e618b8975392d'} | 1905091634a6a2925c911484434448e568330626 | 1 | 04/11/2018, 01:24:44 | Check length of env stack before accessing upvar; fix #3995 | Yukihiro "Matz" Matsumoto | null | {'additions': 3, 'deletions': 3, 'total': 6} | [
{
"additions": 3,
"changes": 6,
"deletions": 3,
"patch": "@@ -1201,11 +1201,11 @@ mrb_vm_exec(mrb_state *mrb, struct RProc *proc, mrb_code *pc)\n mrb_value *regs_a = regs + a;\n struct REnv *e = uvenv(mrb, c);\n \n- if (!e) {\n- *regs_a = mrb_nil_value();\n+ if (e && b <... | c | CWE-190 | [
"src/vm.c"
] | src/vm.c | 1 |
mrb_io_initialize_copy(mrb_state *mrb, mrb_value copy) mrb_bool failed = TRUE; mrb_get_args(mrb, "o", &orig); fptr_copy = (struct mrb_io *)DATA_PTR(copy); if (fptr_copy != NULL) { fptr_finalize(mrb, fptr_copy, FALSE); mrb_free(mrb, fptr_copy); } fptr_copy = (struct mrb_io *)mrb_io_alloc(mrb); fp... | mrb_io_initialize_copy(mrb_state *mrb, mrb_value copy) mrb_bool failed = TRUE; mrb_get_args(mrb, "o", &orig); fptr_orig = io_get_open_fptr(mrb, orig); fptr_copy = (struct mrb_io *)DATA_PTR(copy); if (fptr_copy != NULL) { fptr_finalize(mrb, fptr_copy, FALSE); mrb_free(mrb, fptr_copy); } fptr_copy... | CVE-2018-10199 | {'CWE-416'} | 6.4 | {'https://github.com/mruby/mruby/commit/b51b21fc63c9805862322551387d9036f2b63433'} | nvd | In versions of mruby up to and including 1.4.0, a use-after-free vulnerability exists in src/io.c::File#initilialize_copy(). An attacker that can cause Ruby code to be run can possibly use this to execute arbitrary code. | 2018-04-18 | 1 | https://github.com/mruby/mruby | https://github.com/mruby/mruby/commit/b51b21fc63c9805862322551387d9036f2b63433 | b51b21fc63c9805862322551387d9036f2b63433 | SINGLE | ['b51b21fc63c9805862322551387d9036f2b63433'] | {'fabc460880fbabd18369a7ef8715538c83ebffc9'} | b51b21fc63c9805862322551387d9036f2b63433 | 1 | 04/17/2018, 00:57:41 | Fix `use after free in File#initilialize_copy`; fix #4001
The bug and the fix were reported by https://hackerone.com/pnoltof | Yukihiro "Matz" Matsumoto | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -561,13 +561,13 @@ mrb_io_initialize_copy(mrb_state *mrb, mrb_value copy)\n mrb_bool failed = TRUE;\n \n mrb_get_args(mrb, \"o\", &orig);\n+ fptr_orig = io_get_open_fptr(mrb, orig);\n fptr_copy = (struct mrb_io *)DATA_PTR(copy);\n ... | c | CWE-416 | [
"mrbgems/mruby-io/src/io.c"
] | mrbgems/mruby-io/src/io.c | 1 |
throw $e; } die($e->getMessage()); }\ No newline at end of file | throw $e; } if (!($e instanceof \PDOException)) { die($e->getMessage()); } }\ No newline at end of file | CVE-2018-10307 | {'CWE-79'} | 2.9 | {'https://github.com/ILIAS-eLearning/ILIAS/commit/ca982e59d0b76c0374c9a7fd1acf2685ca57cf41'} | nvd | error.php in ILIAS 5.2.x through 5.3.x before 5.3.4 allows XSS via the text of a PDO exception. | 2018-05-18 | 1 | https://github.com/ILIAS-eLearning/ILIAS | https://github.com/ILIAS-eLearning/ILIAS/commit/ca982e59d0b76c0374c9a7fd1acf2685ca57cf41 | ca982e59d0b76c0374c9a7fd1acf2685ca57cf41 | SINGLE | ['ca982e59d0b76c0374c9a7fd1acf2685ca57cf41'] | {'9c6c8ea71d0cbb884c73474111201cda234dd209'} | ca982e59d0b76c0374c9a7fd1acf2685ca57cf41 | 1 | 04/11/2018, 17:38:32 | Error Handling: PDO exception handling
(cherry picked from commit 65da344) | mjansen | null | {'additions': 3, 'deletions': 1, 'total': 4} | [
{
"additions": 3,
"changes": 4,
"deletions": 1,
"patch": "@@ -32,5 +32,7 @@\n \t\tthrow $e;\n \t}\n \n-\tdie($e->getMessage());\n+\tif (!($e instanceof \\PDOException)) {\n+\t\tdie($e->getMessage());\n+\t}\n }\n\\ No newline at end of file",
"path": "error.php",
"raw_url": "https://github.co... | php | CWE-79 | [
"error.php"
] | error.php | 1 |
#include "file.h" #ifndef lint FILE_RCSID("@(#)$File: readelf.c,v 1.142 2018/05/24 18:08:01 christos Exp $") #endif #ifdef BUILTIN_ELF do_core_note(struct magic_set *ms, unsigned char *nbuf, uint32_t type, cname = (unsigned char *) &nbuf[doff + prpsoffsets(i)]; for (cp = cname; *cp && isprint(*cp); ... | #include "file.h" #ifndef lint FILE_RCSID("@(#)$File: readelf.c,v 1.143 2018/06/09 16:00:06 christos Exp $") #endif #ifdef BUILTIN_ELF do_core_note(struct magic_set *ms, unsigned char *nbuf, uint32_t type, cname = (unsigned char *) &nbuf[doff + prpsoffsets(i)]; for (cp = cname; cp < nbuf + size && *... | CVE-2018-10360 | {'CWE-125'} | 2.9 | {'https://github.com/file/file/commit/a642587a9c9e2dd7feacdf513c3643ce26ad3c22'} | nvd | The do_core_note function in readelf.c in libmagic.a in file 5.33 allows remote attackers to cause a denial of service (out-of-bounds read and application crash) via a crafted ELF file. | 2018-06-11 | 1 | https://github.com/file/file | https://github.com/file/file/commit/a642587a9c9e2dd7feacdf513c3643ce26ad3c22 | a642587a9c9e2dd7feacdf513c3643ce26ad3c22 | SINGLE | ['a642587a9c9e2dd7feacdf513c3643ce26ad3c22'] | {'8ac1992b0d759bf9d960427dc68a0a6349d3f5b8'} | a642587a9c9e2dd7feacdf513c3643ce26ad3c22 | 1 | 06/09/2018, 16:00:06 | Avoid reading past the end of buffer (Rui Reis) | Christos Zoulas | null | {'additions': 3, 'deletions': 2, 'total': 5} | [
{
"additions": 3,
"changes": 5,
"deletions": 2,
"patch": "@@ -27,7 +27,7 @@\n #include \"file.h\"\n \n #ifndef lint\n-FILE_RCSID(\"@(#)$File: readelf.c,v 1.142 2018/05/24 18:08:01 christos Exp $\")\n+FILE_RCSID(\"@(#)$File: readelf.c,v 1.143 2018/06/09 16:00:06 christos Exp $\")\n #endif\n \n #ifdef... | c | CWE-125 | [
"src/readelf.c"
] | src/readelf.c | 1 |
function updatePendingChange($id,$changes,$mtm_changes = array(),$tags_changes = function updateProfile($data) { global $bigtree; foreach ($data as $key => $val) { if (substr($key,0,1) != "_" && !is_array($val)) { $$key = sqlescape($val); } } $id = sqlescape($this->ID); if ($data["pass... | function updatePendingChange($id,$changes,$mtm_changes = array(),$tags_changes = function updateProfile($data) { global $bigtree; $name = sqlescape(htmlspecialchars($data["name"])); $company = sqlescape(htmlspecialchars($data["company"])); $daily_digest = $data["daily_digest"] ? "on" : ""; $id = sqle... | CVE-2018-10364 | {'CWE-79'} | 2.9 | {'https://github.com/bigtreecms/BigTree-CMS/commit/b2eff67e45b90ca26a62e971e8f0d5d0d70f23e6'} | nvd | BigTree before 4.2.22 has XSS in the Users management page via the name or company field. | 2018-04-30 | 1 | https://github.com/bigtreecms/BigTree-CMS | https://github.com/bigtreecms/BigTree-CMS/commit/b2eff67e45b90ca26a62e971e8f0d5d0d70f23e6 | b2eff67e45b90ca26a62e971e8f0d5d0d70f23e6 | SINGLE | ['b2eff67e45b90ca26a62e971e8f0d5d0d70f23e6'] | {'2bac58b2d3b1dd34d4764f458aee6aae6a212985'} | b2eff67e45b90ca26a62e971e8f0d5d0d70f23e6 | 1 | 04/06/2018, 14:43:18 | Fixing XSS injection via user profile editing -- thanks zhzzhz:
https://github.com/bigtreecms/BigTree-CMS/issues/332 | Tim Buckingham | null | {'additions': 3, 'deletions': 6, 'total': 9} | [
{
"additions": 3,
"changes": 9,
"deletions": 6,
"patch": "@@ -8419,12 +8419,9 @@ function updatePendingChange($id,$changes,$mtm_changes = array(),$tags_changes =\n \t\tfunction updateProfile($data) {\n \t\t\tglobal $bigtree;\n \n-\t\t\tforeach ($data as $key => $val) {\n-\t\t\t\tif (substr($key,0,1)... | php | CWE-79 | [
"core/inc/bigtree/admin.php"
] | core/inc/bigtree/admin.php | 1 |
void x3f_clear(void *p) x3f_delete((x3f_t*)p); } static char *utf2char(utf16_t *str, char *buffer) { char *b = buffer; while (*str != 0x00) { char *chr = (char *)str; *b++ = *chr; str++; } *b = 0; return buffer; } static void *lr_memmem(const void *l, size_t l_len, const void *s, size_t s_le... | void x3f_clear(void *p) x3f_delete((x3f_t*)p); } void utf2char(utf16_t *str, char *buffer, unsigned bufsz) { if(bufsz<1) return; buffer[bufsz-1] = 0; char *b = buffer; while (*str != 0x00 && --bufsz>0) { char *chr = (char *)str; *b++ = *chr; str++; } *b = 0; } static void *lr_memmem(const ... | CVE-2018-10528 | {'CWE-787'} | 6.4 | {'https://github.com/LibRaw/LibRaw/commit/efd8cfabb93fd0396266a7607069901657c082e3'} | nvd | An issue was discovered in LibRaw 0.18.9. There is a stack-based buffer overflow in the utf2char function in libraw_cxx.cpp. | 2018-04-29 | 1 | https://github.com/LibRaw/LibRaw | https://github.com/LibRaw/LibRaw/commit/efd8cfabb93fd0396266a7607069901657c082e3 | efd8cfabb93fd0396266a7607069901657c082e3 | SINGLE | ['efd8cfabb93fd0396266a7607069901657c082e3'] | {'87144aa9bb7325b09965b183fa58f957a9a4e4fd'} | efd8cfabb93fd0396266a7607069901657c082e3 | 1 | 04/27/2018, 09:41:18 | X3F parser possible buffer overrun | Alex Tutubalin | null | {'additions': 7, 'deletions': 5, 'total': 12} | [
{
"additions": 7,
"changes": 12,
"deletions": 5,
"patch": "@@ -5484,17 +5484,19 @@ void x3f_clear(void *p)\n x3f_delete((x3f_t*)p);\n }\n \n-static char *utf2char(utf16_t *str, char *buffer)\n+void utf2char(utf16_t *str, char *buffer, unsigned bufsz)\n {\n+ if(bufsz<1) return;\n+ buffer[bufsz-1] =... | cpp | CWE-787 | [
"src/libraw_cxx.cpp"
] | src/libraw_cxx.cpp | 1 |
class BigTreeStorage { var $AutoJPEG = false; var $DisabledFileError = false; var $DisabledExtensionRegEx = '/\\.(exe|com|bat|php|rb|py|cgi|pl|sh|asp|aspx|phtml|pht)/i'; var $Service = ""; var $Cloud = false; var $Settings; | class BigTreeStorage { var $AutoJPEG = false; var $DisabledFileError = false; var $DisabledExtensionRegEx = '/\\.(exe|com|bat|php|rb|py|cgi|pl|sh|asp|aspx|phtml|pht|htaccess)/i'; var $Service = ""; var $Cloud = false; var $Settings; | CVE-2018-10574 | {'CWE-94'} | 6.4 | {'https://github.com/bigtreecms/BigTree-CMS/commit/609bd17728ee1db0487a42d96028d30537528ae8'} | nvd | site/index.php/admin/trees/add/ in BigTree 4.2.22 and earlier allows remote attackers to upload and execute arbitrary PHP code because the BigTreeStorage class in core/inc/bigtree/apis/storage.php does not prevent uploads of .htaccess files. | 2018-04-30 | 1 | https://github.com/bigtreecms/BigTree-CMS | https://github.com/bigtreecms/BigTree-CMS/commit/609bd17728ee1db0487a42d96028d30537528ae8 | 609bd17728ee1db0487a42d96028d30537528ae8 | SINGLE | ['609bd17728ee1db0487a42d96028d30537528ae8'] | {'65434ee37f69d8573559acd9a789156879b9e661'} | 609bd17728ee1db0487a42d96028d30537528ae8 | 1 | 04/30/2018, 18:07:31 | Rejecting htaccess files:
https://github.com/bigtreecms/BigTree-CMS/issues/335 | Tim Buckingham | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -8,7 +8,7 @@ class BigTreeStorage {\n \n \t\tvar $AutoJPEG = false;\n \t\tvar $DisabledFileError = false;\n-\t\tvar $DisabledExtensionRegEx = '/\\\\.(exe|com|bat|php|rb|py|cgi|pl|sh|asp|aspx|phtml|pht)/i';\n+\t\tvar $DisabledExtensionRegEx... | php | CWE-94 | [
"core/inc/bigtree/apis/storage.php"
] | core/inc/bigtree/apis/storage.php | 1 |
static long do_get_mempolicy(int *policy, nodemask_t *nmask, *policy |= (pol->flags & MPOL_MODE_FLAGS); } if (vma) { up_read(¤t->mm->mmap_sem); vma = NULL; } err = 0; if (nmask) { if (mpol_store_user_nodemask(pol)) { | static long do_get_mempolicy(int *policy, nodemask_t *nmask, *policy |= (pol->flags & MPOL_MODE_FLAGS); } err = 0; if (nmask) { if (mpol_store_user_nodemask(pol)) { | CVE-2018-10675 | {'CWE-416'} | 10 | {'https://github.com/torvalds/linux/commit/73223e4e2e3867ebf033a5a8eb2e5df0158ccc99'} | nvd | The do_get_mempolicy function in mm/mempolicy.c in the Linux kernel before 4.12.9 allows local users to cause a denial of service (use-after-free) or possibly have unspecified other impact via crafted system calls. | 2018-05-02 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/73223e4e2e3867ebf033a5a8eb2e5df0158ccc99 | 73223e4e2e3867ebf033a5a8eb2e5df0158ccc99 | SINGLE | ['73223e4e2e3867ebf033a5a8eb2e5df0158ccc99'] | {'da094e42848e3c36feaa3b5271e53983fd45424f'} | 73223e4e2e3867ebf033a5a8eb2e5df0158ccc99 | 1 | 08/18/2017, 22:16:24 | mm/mempolicy: fix use after free when calling get_mempolicy
I hit a use after free issue when executing trinity and repoduced it
with KASAN enabled. The related call trace is as follows.
BUG: KASan: use after free in SyS_get_mempolicy+0x3c8/0x960 at addr ffff8801f582d766
Read of size 2 by task syz-executor1/798
... | zhong jiang | null | {'additions': 0, 'deletions': 5, 'total': 5} | [
{
"additions": 0,
"changes": 5,
"deletions": 5,
"patch": "@@ -861,11 +861,6 @@ static long do_get_mempolicy(int *policy, nodemask_t *nmask,\n \t\t*policy |= (pol->flags & MPOL_MODE_FLAGS);\n \t}\n \n-\tif (vma) {\n-\t\tup_read(¤t->mm->mmap_sem);\n-\t\tvma = NULL;\n-\t}\n-\n \terr = 0;\n \tif (... | c | CWE-416 | [
"mm/mempolicy.c"
] | mm/mempolicy.c | 1 |
static int DecodeGifImg(struct ngiflib_img * i) { i->width = GetWord(i->parent); /* SizeX */ i->height = GetWord(i->parent); /* SizeY */ context.Xtogo = i->width; context.curY = i->posY; #ifdef NGIFLIB_INDEXED_ONLY | static int DecodeGifImg(struct ngiflib_img * i) { i->width = GetWord(i->parent); /* SizeX */ i->height = GetWord(i->parent); /* SizeY */ if((i->width > i->parent->width) || (i->height > i->parent->height)) { #if !defined(NGIFLIB_NO_FILE) if(i->parent->log) fprintf(i->parent->log, "*** ERROR *** Image bigger ... | CVE-2018-10677 | {'CWE-787'} | 6.4 | {'https://github.com/miniupnp/ngiflib/commit/b588a2249c7abbfc52173e32ee11d6facef82f89'} | nvd | The DecodeGifImg function in ngiflib.c in MiniUPnP ngiflib 0.4 lacks certain checks against width and height, which allows remote attackers to cause a denial of service (WritePixels heap-based buffer overflow and application crash) or possibly have unspecified other impact via a crafted GIF file. | 2018-05-02 | 1 | https://github.com/miniupnp/ngiflib | https://github.com/miniupnp/ngiflib/commit/b588a2249c7abbfc52173e32ee11d6facef82f89 | b588a2249c7abbfc52173e32ee11d6facef82f89 | SINGLE | ['b588a2249c7abbfc52173e32ee11d6facef82f89'] | {'75b99202e4e57acab399ed07b4e8f94eddf1648a'} | b588a2249c7abbfc52173e32ee11d6facef82f89 | 1 | 05/02/2018, 07:15:48 | check GIF image position and dimensions
fixes #1 | Thomas Bernard | null | {'additions': 18, 'deletions': 0, 'total': 18} | [
{
"additions": 18,
"changes": 18,
"deletions": 0,
"patch": "@@ -408,6 +408,24 @@ static int DecodeGifImg(struct ngiflib_img * i) {\n \ti->width = GetWord(i->parent);\t/* SizeX */\n \ti->height = GetWord(i->parent);\t/* SizeY */\n \n+\tif((i->width > i->parent->width) || (i->height > i->parent->h... | c | CWE-787 | [
"ngiflib.c"
] | ngiflib.c | 1 |
static int ebt_size_mwt(struct compat_ebt_entry_mwt *match32, if (match_kern) match_kern->match_size = ret; WARN_ON(type == EBT_COMPAT_TARGET && size_left); match32 = (struct compat_ebt_entry_mwt *) buf; } static int size_entry_mwt(struct ebt_entry *entry, const unsigned char *base, * * offsets are rel... | static int ebt_size_mwt(struct compat_ebt_entry_mwt *match32, if (match_kern) match_kern->match_size = ret; if (WARN_ON(type == EBT_COMPAT_TARGET && size_left)) return -EINVAL; match32 = (struct compat_ebt_entry_mwt *) buf; } static int size_entry_mwt(struct ebt_entry *entry, const unsigned char *base,... | CVE-2018-1068 | {'CWE-787'} | 10 | {'https://github.com/torvalds/linux/commit/b71812168571fa55e44cdd0254471331b9c4c4c6'} | nvd | A flaw was found in the Linux 4.x kernel's implementation of 32-bit syscall interface for bridging. This allowed a privileged user to arbitrarily write to a limited range of kernel memory. | 2018-03-16 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/b71812168571fa55e44cdd0254471331b9c4c4c6 | b71812168571fa55e44cdd0254471331b9c4c4c6 | SINGLE | ['b71812168571fa55e44cdd0254471331b9c4c4c6'] | {'fc6a5d0601c5ac1d02f283a46f60b87b2033e5ca'} | b71812168571fa55e44cdd0254471331b9c4c4c6 | 1 | 02/19/2018, 00:24:15 | netfilter: ebtables: CONFIG_COMPAT: don't trust userland offsets
We need to make sure the offsets are not out of range of the
total size.
Also check that they are in ascending order.
The WARN_ON triggered by syzkaller (it sets panic_on_warn) is
changed to also bail out, no point in continuing parsing.
Briefly tested... | Florian Westphal | null | {'additions': 12, 'deletions': 1, 'total': 13} | [
{
"additions": 12,
"changes": 13,
"deletions": 1,
"patch": "@@ -2060,7 +2060,9 @@ static int ebt_size_mwt(struct compat_ebt_entry_mwt *match32,\n \t\tif (match_kern)\n \t\t\tmatch_kern->match_size = ret;\n \n-\t\tWARN_ON(type == EBT_COMPAT_TARGET && size_left);\n+\t\tif (WARN_ON(type == EBT_COMPAT_T... | c | CWE-787 | [
"net/bridge/netfilter/ebtables.c"
] | net/bridge/netfilter/ebtables.c | 1 |
static int DecodeGifImg(struct ngiflib_img * i) { act_code = GetGifWord(i, &context); casspecial = (u8)act_code; old_code = act_code; WritePixel(i, &context, casspecial); npix--; } else { read_byt = act_code; if(act_code >= free) { /* code pas encore dans alphabet */ static int DecodeGifImg(struct ... | static int DecodeGifImg(struct ngiflib_img * i) { act_code = GetGifWord(i, &context); casspecial = (u8)act_code; old_code = act_code; if(npix > 0) WritePixel(i, &context, casspecial); npix--; } else { read_byt = act_code; if(act_code >= free) { /* code pas encore dans alphabet */ static int Deco... | CVE-2018-10717 | {'CWE-787'} | 6.4 | {'https://github.com/miniupnp/ngiflib/commit/cf429e0a2fe26b5f01ce0c8e9b79432e94509b6e'} | nvd | The DecodeGifImg function in ngiflib.c in MiniUPnP ngiflib 0.4 does not consider the bounds of the pixels data structure, which allows remote attackers to cause a denial of service (WritePixels heap-based buffer overflow and application crash) or possibly have unspecified other impact via a crafted GIF file, a differen... | 2018-05-03 | 1 | https://github.com/miniupnp/ngiflib | https://github.com/miniupnp/ngiflib/commit/cf429e0a2fe26b5f01ce0c8e9b79432e94509b6e | cf429e0a2fe26b5f01ce0c8e9b79432e94509b6e | SINGLE | ['cf429e0a2fe26b5f01ce0c8e9b79432e94509b6e'] | {'b588a2249c7abbfc52173e32ee11d6facef82f89'} | cf429e0a2fe26b5f01ce0c8e9b79432e94509b6e | 1 | 05/03/2018, 15:35:47 | fix "pixel overrun"
fixes #3 | Thomas Bernard | null | {'additions': 7, 'deletions': 2, 'total': 9} | [
{
"additions": 7,
"changes": 9,
"deletions": 2,
"patch": "@@ -528,7 +528,8 @@ static int DecodeGifImg(struct ngiflib_img * i) {\n \t\t\tact_code = GetGifWord(i, &context);\n \t\t\tcasspecial = (u8)act_code;\n \t\t\told_code = act_code;\n-\t\t\tWritePixel(i, &context, casspecial); npix--;\n+\t\t\tif(... | c | CWE-787 | [
"ngiflib.c"
] | ngiflib.c | 1 |
static int compareKeyIndex(void const* va, void const* vb) struct SaveNode { tr_variant const* v; tr_variant sorted; size_t childIndex; bool isVisited; }; static void nodeConstruct(struct SaveNode* node, tr_variant const* v, bool sort_ qsort(tmp, n, sizeof(struct KeyIndex), compareKeyIndex); ... | static int compareKeyIndex(void const* va, void const* vb) struct SaveNode { tr_variant const* v; tr_variant* sorted; size_t childIndex; bool isVisited; }; static void nodeConstruct(struct SaveNode* node, tr_variant const* v, bool sort_ qsort(tmp, n, sizeof(struct KeyIndex), compareKeyIndex); ... | CVE-2018-10756 | {'CWE-416'} | 6.4 | {'https://github.com/transmission/transmission/commit/2123adf8e5e1c2b48791f9d22fc8c747e974180e'} | nvd | Use-after-free in libtransmission/variant.c in Transmission before 3.00 allows remote attackers to cause a denial of service (crash) or possibly execute arbitrary code via a crafted torrent file. | 2020-05-15 | 1 | https://github.com/transmission/transmission | https://github.com/transmission/transmission/commit/2123adf8e5e1c2b48791f9d22fc8c747e974180e | 2123adf8e5e1c2b48791f9d22fc8c747e974180e | SINGLE | ['2123adf8e5e1c2b48791f9d22fc8c747e974180e'] | {'a6482b00613192c454d7550eba9428129c969045'} | 2123adf8e5e1c2b48791f9d22fc8c747e974180e | 1 | 04/28/2019, 08:27:33 | CVE-2018-10756: Fix heap-use-after-free in tr_variantWalk
In libtransmission/variant.c, function tr_variantWalk, when the variant
stack is reallocated, a pointer to the previously allocated memory
region is kept. This address is later accessed (heap use-after-free)
while walking back down the stack, causing the applic... | Mike Gelfand | null | {'additions': 14, 'deletions': 8, 'total': 22} | [
{
"additions": 14,
"changes": 22,
"deletions": 8,
"patch": "@@ -758,7 +758,7 @@ static int compareKeyIndex(void const* va, void const* vb)\n struct SaveNode\n {\n tr_variant const* v;\n- tr_variant sorted;\n+ tr_variant* sorted;\n size_t childIndex;\n bool isVisited;\n };\n@@ -783,... | c | CWE-416 | [
"libtransmission/variant.c"
] | libtransmission/variant.c | 1 |
@package freshcat */ function getMethods(a){var b=[],c;for(c in a)try{"function"==typeof a[c]&&b.push(c+": "+a[c].toString())}catch(e){b.push(c+": inaccessible")}return b}function dump(a,b){var c="";b||(b=0);for(var e="",d=0;d<b+1;d++)e+=" ";if("object"==typeof a)for(var f in a)d=a[f],"object"==typeof d?(c... | @package freshcat */ var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{i:e,v:f}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_... | CVE-2018-10821 | {'CWE-79'} | 2.9 | {'https://github.com/BlackCatDevelopment/BlackCatCMS/commit/a817755828cd0bfd4b87b0eb5cec59ffe57d3c3e'} | nvd | Cross-site scripting (XSS) vulnerability in backend/pages/modify.php in BlackCatCMS 1.3 allows remote authenticated users with the Admin role to inject arbitrary web script or HTML via the search panel. | 2018-06-14 | 1 | https://github.com/BlackCatDevelopment/BlackCatCMS | https://github.com/BlackCatDevelopment/BlackCatCMS/commit/a817755828cd0bfd4b87b0eb5cec59ffe57d3c3e | a817755828cd0bfd4b87b0eb5cec59ffe57d3c3e | SINGLE | ['a817755828cd0bfd4b87b0eb5cec59ffe57d3c3e'] | {'0cf6196c09f8cbb533fd9d8aff098031a0c4afef'} | a817755828cd0bfd4b87b0eb5cec59ffe57d3c3e | 1 | 05/07/2018, 14:23:32 | fix for issue #384 | Bianka Martinovic | null | {'additions': 50, 'deletions': 47, 'total': 97} | [
{
"additions": 50,
"changes": 97,
"deletions": 47,
"patch": "@@ -6,70 +6,73 @@\n @package freshcat\n \n */\n-function getMethods(a){var b=[],c;for(c in a)try{\"function\"==typeof a[c]&&b.push(c+\": \"+a[c].toString())}catch(e){b.push(c+\": inaccessible\")}return b}function dump(a,b){var c... | js | CWE-79 | [
"upload/templates/freshcat/js/backend.js"
] | upload/templates/freshcat/js/backend.js | 1 |
static void flush_tmregs_to_thread(struct task_struct *tsk) * in the appropriate thread structures from live. */ if (tsk != current) return; if (MSR_TM_SUSPENDED(mfmsr())) { | static void flush_tmregs_to_thread(struct task_struct *tsk) * in the appropriate thread structures from live. */ if ((!cpu_has_feature(CPU_FTR_TM)) || (tsk != current)) return; if (MSR_TM_SUSPENDED(mfmsr())) { | CVE-2018-1091 | {'CWE-119'} | 6.9 | {'https://github.com/torvalds/linux/commit/c1fa0768a8713b135848f78fd43ffc208d8ded70'} | nvd | In the flush_tmregs_to_thread function in arch/powerpc/kernel/ptrace.c in the Linux kernel before 4.13.5, a guest kernel crash can be triggered from unprivileged userspace during a core dump on a POWER host due to a missing processor feature check and an erroneous use of transactional memory (TM) instructions in the co... | 2018-03-27 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/c1fa0768a8713b135848f78fd43ffc208d8ded70 | c1fa0768a8713b135848f78fd43ffc208d8ded70 | SINGLE | ['c1fa0768a8713b135848f78fd43ffc208d8ded70'] | {'4917fcb58cc73f6b81455e3c5f960144809ddf1a'} | c1fa0768a8713b135848f78fd43ffc208d8ded70 | 1 | 09/14/2017, 02:13:48 | powerpc/tm: Flush TM only if CPU has TM feature
Commit cd63f3c ("powerpc/tm: Fix saving of TM SPRs in core dump")
added code to access TM SPRs in flush_tmregs_to_thread(). However
flush_tmregs_to_thread() does not check if TM feature is available on
CPU before trying to access TM SPRs in order to copy live state to
th... | Gustavo Romero | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -131,7 +131,7 @@ static void flush_tmregs_to_thread(struct task_struct *tsk)\n \t * in the appropriate thread structures from live.\n \t */\n \n-\tif (tsk != current)\n+\tif ((!cpu_has_feature(CPU_FTR_TM)) || (tsk != current))\n \t\treturn... | c | CWE-119 | [
"arch/powerpc/kernel/ptrace.c"
] | arch/powerpc/kernel/ptrace.c | 1 |
int MirrorJob::Do() } continue; } if(script) { ArgV args("rm"); if(file->TypeIs(file->DIRECTORY)) { if(recursion_mode==RECURSION_NEVER) args.setarg(0,"rmdir"); else args.Append("-r"); } args.Append(target_session->GetFileURL(file->name)); xstring_... | int MirrorJob::Do() } continue; } bool use_rmdir = (file->TypeIs(file->DIRECTORY) && recursion_mode==RECURSION_NEVER); if(script) { ArgV args(use_rmdir?"rmdir":"rm"); if(file->TypeIs(file->DIRECTORY) && !use_rmdir) args.Append("-r"); args.Append(target_session->GetFileU... | CVE-2018-10916 | {'CWE-20'} | 7.8 | {'https://github.com/lavv17/lftp/commit/a27e07d90a4608ceaf928b1babb27d4d803e1992'} | nvd | It has been discovered that lftp up to and including version 4.8.3 does not properly sanitize remote file names, leading to a loss of integrity on the local system when reverse mirroring is used. A remote attacker may trick a user to use reverse mirroring on an attacker controlled FTP server, resulting in the removal o... | 2018-08-01 | 1 | https://github.com/lavv17/lftp | https://github.com/lavv17/lftp/commit/a27e07d90a4608ceaf928b1babb27d4d803e1992 | a27e07d90a4608ceaf928b1babb27d4d803e1992 | SINGLE | ['a27e07d90a4608ceaf928b1babb27d4d803e1992'] | {'36d848ba3d7cbd0ce6b4f69ebd337e4ef35f6c1f'} | a27e07d90a4608ceaf928b1babb27d4d803e1992 | 1 | 07/31/2018, 07:57:35 | mirror: prepend ./ to rm and chmod arguments to avoid URL recognition (fix #452) | Alexander V. Lukyanov | null | {'additions': 9, 'deletions': 15, 'total': 24} | [
{
"additions": 9,
"changes": 24,
"deletions": 15,
"patch": "@@ -1164,35 +1164,29 @@ int MirrorJob::Do()\n \t }\n \t continue;\n \t }\n+\t bool use_rmdir = (file->TypeIs(file->DIRECTORY)\n+\t\t\t && recursion_mode==RECURSION_NEVER);\n \t if(script)\n \t {\n-\t ArgV args(\"rm\");\n-\t ... | cc | CWE-20 | [
"src/MirrorJob.cc"
] | src/MirrorJob.cc | 1 |
static int cdrom_ioctl_media_changed(struct cdrom_device_info *cdi, if (!CDROM_CAN(CDC_SELECT_DISC) || arg == CDSL_CURRENT) return media_changed(cdi, 1); if ((unsigned int)arg >= cdi->capacity) return -EINVAL; info = kmalloc(sizeof(*info), GFP_KERNEL); | static int cdrom_ioctl_media_changed(struct cdrom_device_info *cdi, if (!CDROM_CAN(CDC_SELECT_DISC) || arg == CDSL_CURRENT) return media_changed(cdi, 1); if (arg >= cdi->capacity) return -EINVAL; info = kmalloc(sizeof(*info), GFP_KERNEL); | CVE-2018-10940 | {'CWE-119'} | 6.9 | {'https://github.com/torvalds/linux/commit/9de4ee40547fd315d4a0ed1dd15a2fa3559ad707'} | nvd | The cdrom_ioctl_media_changed function in drivers/cdrom/cdrom.c in the Linux kernel before 4.16.6 allows local attackers to use a incorrect bounds check in the CDROM driver CDROM_MEDIA_CHANGED ioctl to read out kernel memory. | 2018-05-09 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/9de4ee40547fd315d4a0ed1dd15a2fa3559ad707 | 9de4ee40547fd315d4a0ed1dd15a2fa3559ad707 | SINGLE | ['9de4ee40547fd315d4a0ed1dd15a2fa3559ad707'] | {'72961c4e6082be79825265d9193272b8a1634dec'} | 9de4ee40547fd315d4a0ed1dd15a2fa3559ad707 | 1 | 04/18/2018, 09:51:31 | cdrom: information leak in cdrom_ioctl_media_changed()
This cast is wrong. "cdi->capacity" is an int and "arg" is an unsigned
long. The way the check is written now, if one of the high 32 bits is
set then we could read outside the info->slots[] array.
This bug is pretty old and it predates git.
Reviewed-by: Christ... | Dan Carpenter | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -2371,7 +2371,7 @@ static int cdrom_ioctl_media_changed(struct cdrom_device_info *cdi,\n \tif (!CDROM_CAN(CDC_SELECT_DISC) || arg == CDSL_CURRENT)\n \t\treturn media_changed(cdi, 1);\n \n-\tif ((unsigned int)arg >= cdi->capacity)\n+\tif (a... | c | CWE-119 | [
"drivers/cdrom/cdrom.c"
] | drivers/cdrom/cdrom.c | 1 |
window.Whisper = window.Whisper || {}; const ErrorIconView = Whisper.View.extend({ templateName: 'error-icon', className: 'error-icon-container', if (body.length > 0) { const escapedBody = body.html(); body.html(Signal.HTML.render(escapedBody)); } this.renderSent(); | window.Whisper = window.Whisper || {}; const URL_REGEX = /(^|[\s\n]|<br\/?>)((?:https?|ftp):\/\/[-A-Z0-9\u00A0-\uD7FF\uE000-\uFDCF\uFDF0-\uFFFD+\u0026\u2019@#/%?=()~_|!:,.;]*[-A-Z0-9+\u0026@#/%=~()_|])/gi; const ErrorIconView = Whisper.View.extend({ templateName: 'error-icon', className: 'error-icon-c... | CVE-2018-10994 | {'CWE-79'} | 2.9 | {'https://github.com/signalapp/Signal-Desktop/commit/bfbd84f5d1308cdfcb08a1727821f7103be151ea'} | nvd | js/views/message_view.js in Open Whisper Signal (aka Signal-Desktop) before 1.10.1 allows XSS via a URL. | 2018-05-14 | 1 | https://github.com/signalapp/Signal-Desktop | https://github.com/signalapp/Signal-Desktop/commit/bfbd84f5d1308cdfcb08a1727821f7103be151ea | bfbd84f5d1308cdfcb08a1727821f7103be151ea | SINGLE | ['bfbd84f5d1308cdfcb08a1727821f7103be151ea'] | {'f6eb745632ce87eabce93d3c12f66f0bc6146d2d'} | bfbd84f5d1308cdfcb08a1727821f7103be151ea | 1 | 05/11/2018, 19:12:46 | Update link handling | Scott Nonnenberg | {'com_1': {'author': 'shark0der', 'datetime': '05/12/2018, 09:44:02', 'body': 'Can someone elaborate on why without the link parser an XSS was triggered?'}, 'com_2': {'author': 'frioux', 'datetime': '05/12/2018, 20:09:38', 'body': 'My guess is that the electron environment has a ton of uri handlers. For example some c... | {'additions': 7, 'deletions': 1, 'total': 8} | [
{
"additions": 7,
"changes": 8,
"deletions": 1,
"patch": "@@ -15,6 +15,8 @@\n \n window.Whisper = window.Whisper || {};\n \n+ const URL_REGEX = /(^|[\\s\\n]|<br\\/?>)((?:https?|ftp):\\/\\/[-A-Z0-9\\u00A0-\\uD7FF\\uE000-\\uFDCF\\uFDF0-\\uFFFD+\\u0026\\u2019@#/%?=()~_|!:,.;]*[-A-Z0-9+\\u0026@#/%=~(... | js | CWE-79 | [
"js/views/message_view.js"
] | js/views/message_view.js | 1 |
function setMagpieItem($a_item) if (isset($a_item["link_"])) { $this->setLink( ilUtil::secureLink($this->secureString($a_item["link_"]))); } else { if (isset($a_item["link"])) { $this->setLink( ilUtil::secureLink($this->secureString($a_item["link"]))); } } // summary if (iss... | function setMagpieItem($a_item) if (isset($a_item["link_"])) { $this->setLink( ilUtil::secureUrl(ilUtil::secureLink($this->secureString($a_item["link_"])))); } else { if (isset($a_item["link"])) { $this->setLink( ilUtil::secureUrl(ilUtil::secureLink($this->secureString($a_item["link"]))... | CVE-2018-11117 | {'CWE-79'} | 2.9 | {'https://github.com/ILIAS-eLearning/ILIAS/commit/ff9bf29858f2dbffe828711a6f8bf37038c00d77'} | nvd | Services/Feeds/classes/class.ilExternalFeedItem.php in ILIAS 5.1.x, 5.2.x, and 5.3.x before 5.3.5 has XSS via a link attribute. | 2018-05-17 | 1 | https://github.com/ILIAS-eLearning/ILIAS | https://github.com/ILIAS-eLearning/ILIAS/commit/ff9bf29858f2dbffe828711a6f8bf37038c00d77 | ff9bf29858f2dbffe828711a6f8bf37038c00d77 | SINGLE | ['ff9bf29858f2dbffe828711a6f8bf37038c00d77'] | {'7f2e7fa10b342632ff78b3f7ccccc715409c4ca3'} | ff9bf29858f2dbffe828711a6f8bf37038c00d77 | 1 | 05/11/2018, 12:05:57 | fixed 23026: link attribute | Alexander Killing | null | {'additions': 2, 'deletions': 3, 'total': 5} | [
{
"additions": 2,
"changes": 5,
"deletions": 3,
"patch": "@@ -32,17 +32,16 @@ function setMagpieItem($a_item)\n \t\tif (isset($a_item[\"link_\"]))\n \t\t{\n \t\t\t$this->setLink(\n-\t\t\t\tilUtil::secureLink($this->secureString($a_item[\"link_\"])));\n+\t\t\t\tilUtil::secureUrl(ilUtil::secureLink($t... | php | CWE-79 | [
"Services/Feeds/classes/class.ilExternalFeedItem.php"
] | Services/Feeds/classes/class.ilExternalFeedItem.php | 1 |
function modifyPageContentPostXsl($a_output, $outputmode = "presentation") $content = str_replace("<br/>", "\n", $content); $rownums = count(explode("\n",$content)); $plain_content = html_entity_decode($content); $plain_content = preg_replace_callback( "/\&#x([1-9a-f]{2});?/is", ... | function modifyPageContentPostXsl($a_output, $outputmode = "presentation") $content = str_replace("<br/>", "\n", $content); $rownums = count(explode("\n",$content)); // see #23028 //$plain_content = html_entity_decode($content); $plain_content = $content; $plain_content = preg_replace_callback( ... | CVE-2018-11120 | {'CWE-79'} | 2.9 | {'https://github.com/ILIAS-eLearning/ILIAS/commit/7959485406eb981976b64fee363cf950603924ed'} | nvd | Services/COPage/classes/class.ilPCSourceCode.php in ILIAS 5.1.x, 5.2.x, and 5.3.x before 5.3.5 has XSS. | 2018-05-17 | 1 | https://github.com/ILIAS-eLearning/ILIAS | https://github.com/ILIAS-eLearning/ILIAS/commit/7959485406eb981976b64fee363cf950603924ed | 7959485406eb981976b64fee363cf950603924ed | SINGLE | ['7959485406eb981976b64fee363cf950603924ed'] | {'01a24cf04fe8dddf1da59ca497580637973482b6'} | 7959485406eb981976b64fee363cf950603924ed | 1 | 05/11/2018, 13:18:59 | fixed bug #23028: html handling | Alexander Killing | null | {'additions': 4, 'deletions': 1, 'total': 5} | [
{
"additions": 4,
"changes": 5,
"deletions": 1,
"patch": "@@ -81,7 +81,10 @@ function modifyPageContentPostXsl($a_output, $outputmode = \"presentation\")\n \t\t\t$content = str_replace(\"<br/>\", \"\\n\", $content);\n \t\t\t$rownums = count(explode(\"\\n\",$content));\n \n-\t\t\t$plain_content = htm... | php | CWE-79 | [
"Services/COPage/classes/class.ilPCSourceCode.php"
] | Services/COPage/classes/class.ilPCSourceCode.php | 1 |
static void *etm_setup_aux(int event_cpu, void **pages, if (!sink_ops(sink)->alloc_buffer) goto err; /* Get the AUX specific data from the sink buffer */ event_data->snk_config = sink_ops(sink)->alloc_buffer(sink, cpu, pages, | static void *etm_setup_aux(int event_cpu, void **pages, if (!sink_ops(sink)->alloc_buffer) goto err; cpu = cpumask_first(mask); /* Get the AUX specific data from the sink buffer */ event_data->snk_config = sink_ops(sink)->alloc_buffer(sink, cpu, pages, | CVE-2018-11232 | {'CWE-20'} | 6.9 | {'https://github.com/torvalds/linux/commit/f09444639099584bc4784dfcd85ada67c6f33e0f'} | nvd | The etm_setup_aux function in drivers/hwtracing/coresight/coresight-etm-perf.c in the Linux kernel before 4.10.2 allows attackers to cause a denial of service (panic) because a parameter is incorrectly used as a local variable. | 2018-05-18 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/f09444639099584bc4784dfcd85ada67c6f33e0f | f09444639099584bc4784dfcd85ada67c6f33e0f | SINGLE | ['f09444639099584bc4784dfcd85ada67c6f33e0f'] | {'9797484ba83d68f18fe1cbd964b7cd830f78f0f7'} | f09444639099584bc4784dfcd85ada67c6f33e0f | 1 | 01/23/2017, 17:41:22 | coresight: fix kernel panic caused by invalid CPU
Commit d52c9750f150 ("coresight: reset "enable_sink" flag when need be")
caused a kernel panic because of the using of an invalid value: after
'for_each_cpu(cpu, mask)', value of local variable 'cpu' become invalid,
causes following 'cpu_to_node' access invalid memory ... | Wang Nan | null | {'additions': 1, 'deletions': 0, 'total': 1} | [
{
"additions": 1,
"changes": 1,
"deletions": 0,
"patch": "@@ -242,6 +242,7 @@ static void *etm_setup_aux(int event_cpu, void **pages,\n \tif (!sink_ops(sink)->alloc_buffer)\n \t\tgoto err;\n \n+\tcpu = cpumask_first(mask);\n \t/* Get the AUX specific data from the sink buffer */\n \tevent_data->snk_... | c | CWE-20 | [
"drivers/hwtracing/coresight/coresight-etm-perf.c"
] | drivers/hwtracing/coresight/coresight-etm-perf.c | 1 |
function submitMISPUpdate() { $(".cortex-json").click(function() { var cortex_data = $(this).data('cortex-json'); cortex_data = JSON.stringify(cortex_data, null, 2); var popupHtml = '<pre class="simplepre">' + cortex_data + '</pre>'; popupHtml += '<div class="close-icon useCursorPointer" onClick="closeScreenshot(... | function submitMISPUpdate() { $(".cortex-json").click(function() { var cortex_data = $(this).data('cortex-json'); cortex_data = htmlEncode(JSON.stringify(cortex_data, null, 2)); var popupHtml = '<pre class="simplepre">' + cortex_data + '</pre>'; popupHtml += '<div class="close-icon useCursorPointer" onClick="clos... | CVE-2018-11245 | {'CWE-79'} | 2.9 | {'https://github.com/MISP/MISP/commit/5efc07b12f82301a6086fd3433fedd69fe7119d3'} | nvd | app/webroot/js/misp.js in MISP 2.4.91 has a DOM based XSS with cortex type attributes. | 2018-05-18 | 1 | https://github.com/MISP/MISP | https://github.com/MISP/MISP/commit/5efc07b12f82301a6086fd3433fedd69fe7119d3 | 5efc07b12f82301a6086fd3433fedd69fe7119d3 | SINGLE | ['5efc07b12f82301a6086fd3433fedd69fe7119d3'] | {'2b2a0c25a490e81a9e9be08f09da847e96f50ad9'} | 5efc07b12f82301a6086fd3433fedd69fe7119d3 | 1 | 05/18/2018, 05:27:06 | fix: Fixed a DOM based XSS with cortex type attributes
- as reported by Dawid Czarnecki (dawid@pz.pl) | iglocska | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -3160,7 +3160,7 @@ function submitMISPUpdate() {\n \n $(\".cortex-json\").click(function() {\n \tvar cortex_data = $(this).data('cortex-json');\n-\tcortex_data = JSON.stringify(cortex_data, null, 2);\n+\tcortex_data = htmlEncode(JSON.strin... | js | CWE-79 | [
"app/webroot/js/misp.js"
] | app/webroot/js/misp.js | 1 |
int CephxSessionHandler::_calc_signature(Message *m, uint64_t *psig) const ceph_msg_header& header = m->get_header(); const ceph_msg_footer& footer = m->get_footer(); // optimized signature calculation // - avoid temporary allocated buffers from encode_encrypt[_enc_bl] // - skip the leading 4 byte wrapper f... | int CephxSessionHandler::_calc_signature(Message *m, uint64_t *psig) const ceph_msg_header& header = m->get_header(); const ceph_msg_footer& footer = m->get_footer(); if (!HAVE_FEATURE(features, CEPHX_V2)) { // legacy pre-mimic behavior for compatibility // optimized signature calculation // - avoi... | CVE-2018-1129 | {'CWE-287'} | 2.9 | {'https://github.com/ceph/ceph/commit/8f396cf35a3826044b089141667a196454c0a587'} | nvd | A flaw was found in the way signature calculation was handled by cephx authentication protocol. An attacker having access to ceph cluster network who is able to alter the message payload was able to bypass signature checks done by cephx protocol. Ceph branches master, mimic, luminous and jewel are believed to be vulner... | 2018-07-10 | 1 | https://github.com/ceph/ceph | https://github.com/ceph/ceph/commit/8f396cf35a3826044b089141667a196454c0a587 | 8f396cf35a3826044b089141667a196454c0a587 | SINGLE | ['8f396cf35a3826044b089141667a196454c0a587'] | {'d672a7afe62ade4960e3e7f935c004f15945f39b'} | 8f396cf35a3826044b089141667a196454c0a587 | 1 | 05/04/2018, 15:21:26 | auth/cephx/CephxSessionHandler: implement CEPHX_V2 calculation mode
Derive the signature from the entire buffer (both cipher blocks).
Signed-off-by: Sage Weil <sage@redhat.com> | Sage Weil | null | {'additions': 78, 'deletions': 32, 'total': 110} | [
{
"additions": 78,
"changes": 110,
"deletions": 32,
"patch": "@@ -29,42 +29,88 @@ int CephxSessionHandler::_calc_signature(Message *m, uint64_t *psig)\n const ceph_msg_header& header = m->get_header();\n const ceph_msg_footer& footer = m->get_footer();\n \n- // optimized signature calculation\n... | cc | CWE-287 | [
"src/auth/cephx/CephxSessionHandler.cc"
] | src/auth/cephx/CephxSessionHandler.cc | 1 |
static int jpeg_size(unsigned char* data, unsigned int data_size, return 0; } i+=2; block_length = data[i] * 256 + data[i+1]; } } } | static int jpeg_size(unsigned char* data, unsigned int data_size, return 0; } i+=2; if (i + 1 < data_size) block_length = data[i] * 256 + data[i+1]; } } } | CVE-2018-11363 | {'CWE-125'} | 2.9 | {'https://github.com/AndreRenaud/PDFGen/commit/ee58aff6918b8bbc3be29b9e3089485ea46ff956'} | nvd | jpeg_size in pdfgen.c in PDFGen before 2018-04-09 has a heap-based buffer over-read. | 2018-05-22 | 1 | https://github.com/AndreRenaud/PDFGen | https://github.com/AndreRenaud/PDFGen/commit/ee58aff6918b8bbc3be29b9e3089485ea46ff956 | ee58aff6918b8bbc3be29b9e3089485ea46ff956 | SINGLE | ['ee58aff6918b8bbc3be29b9e3089485ea46ff956'] | {'5f5909763333c205d9392612cabc9dc55854ecae'} | ee58aff6918b8bbc3be29b9e3089485ea46ff956 | 1 | 04/09/2018, 21:21:34 | jpeg: Fix another possible buffer overrun
Found via the clang libfuzzer | Andre Renaud | null | {'additions': 2, 'deletions': 1, 'total': 3} | [
{
"additions": 2,
"changes": 3,
"deletions": 1,
"patch": "@@ -2036,7 +2036,8 @@ static int jpeg_size(unsigned char* data, unsigned int data_size,\n return 0;\n }\n i+=2;\n- block_length = data[i] * 256 + data[i+1];\n+ ... | c | CWE-125 | [
"pdfgen.c"
] | pdfgen.c | 1 |
INST_HANDLER (ldi) { // LDI Rd, K } INST_HANDLER (lds) { // LDS Rd, k int d = ((buf[0] >> 4) & 0xf) | ((buf[1] & 0x1) << 4); int k = (buf[3] << 8) | buf[2]; op->ptr = k; | INST_HANDLER (ldi) { // LDI Rd, K } INST_HANDLER (lds) { // LDS Rd, k if (len < 4) { return; } int d = ((buf[0] >> 4) & 0xf) | ((buf[1] & 0x1) << 4); int k = (buf[3] << 8) | buf[2]; op->ptr = k; | CVE-2018-11375 | {'CWE-125'} | 2.9 | {'https://github.com/radare/radare2/commit/041e53cab7ca33481ae45ecd65ad596976d78e68'} | nvd | The _inst__lds() 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 binary file. | 2018-05-22 | 1 | https://github.com/radare/radare2 | https://github.com/radare/radare2/commit/041e53cab7ca33481ae45ecd65ad596976d78e68 | 041e53cab7ca33481ae45ecd65ad596976d78e68 | SINGLE | ['041e53cab7ca33481ae45ecd65ad596976d78e68'] | {'b4b34e98f4c33401e3e2fdb92accc2782b8b58a1'} | 041e53cab7ca33481ae45ecd65ad596976d78e68 | 1 | 04/20/2018, 17:44:43 | Fix crash in anal.avr | pancake | null | {'additions': 3, 'deletions': 0, 'total': 3} | [
{
"additions": 3,
"changes": 3,
"deletions": 0,
"patch": "@@ -912,6 +912,9 @@ INST_HANDLER (ldi) {\t// LDI Rd, K\n }\n \n INST_HANDLER (lds) {\t// LDS Rd, k\n+\tif (len < 4) {\n+\t\treturn;\n+\t}\n \tint d = ((buf[0] >> 4) & 0xf) | ((buf[1] & 0x1) << 4);\n \tint k = (buf[3] << 8) | buf[2];\n \top->p... | c | CWE-125 | [
"libr/anal/p/anal_avr.c"
] | libr/anal/p/anal_avr.c | 1 |
int wasm_dis(WasmOp *op, const unsigned char *buf, int buf_len) { } op->len += n; snprintf (op->txt, R_ASM_BUFSIZE, "%s %d ", opdef->txt, count); for (i = 0; i < count && strlen (op->txt) + 10 < R_ASM_BUFSIZE; i++) { int optxtlen = strlen (op->txt); snprintf (op->txt + optxtlen, R_ASM_BUFSIZE - opt... | int wasm_dis(WasmOp *op, const unsigned char *buf, int buf_len) { } op->len += n; snprintf (op->txt, R_ASM_BUFSIZE, "%s %d ", opdef->txt, count); char *txt = op->txt; int txtLen = strlen (op->txt); int txtLeft = R_ASM_BUFSIZE - txtLen; txt += txtLen; for (i = 0; i < count && txtLen + 10 < R_ASM... | CVE-2018-11378 | {'CWE-119'} | 6.4 | {'https://github.com/radare/radare2/commit/bd276ef2fd8ac3401e65be7c126a43175ccfbcd7'} | nvd | The wasm_dis() function in libr/asm/arch/wasm/wasm.c in or possibly have unspecified other impact via a crafted WASM file. | 2018-05-22 | 1 | https://github.com/radare/radare2 | https://github.com/radare/radare2/commit/bd276ef2fd8ac3401e65be7c126a43175ccfbcd7 | bd276ef2fd8ac3401e65be7c126a43175ccfbcd7 | SINGLE | ['bd276ef2fd8ac3401e65be7c126a43175ccfbcd7'] | {'03afd11572edf1fbdf78251a4d6daa297f355c2c'} | bd276ef2fd8ac3401e65be7c126a43175ccfbcd7 | 1 | 05/06/2018, 13:26:12 | Fix #9969 - Stack overflow in wasm disassembler | pancake | null | {'additions': 11, 'deletions': 5, 'total': 16} | [
{
"additions": 11,
"changes": 16,
"deletions": 5,
"patch": "@@ -414,14 +414,20 @@ int wasm_dis(WasmOp *op, const unsigned char *buf, int buf_len) {\n \t\t\t}\n \t\t\top->len += n;\n \t\t\tsnprintf (op->txt, R_ASM_BUFSIZE, \"%s %d \", opdef->txt, count);\n-\t\t\tfor (i = 0; i < count && strlen (op->t... | c | CWE-119 | [
"libr/asm/arch/wasm/wasm.c"
] | libr/asm/arch/wasm/wasm.c | 1 |
static bool get_rsds(ut8* dbg_data, int dbg_data_len, SCV_RSDS_HEADER* res) { static void get_nb10(ut8* dbg_data, SCV_NB10_HEADER* res) { const int nb10sz = 16; memcpy (res, dbg_data, nb10sz); res->file_name = (ut8*) strdup ((const char*) dbg_data + nb10sz); } static int get_debug_info(struct PE_(r_bin_pe_obj_t)*... | static bool get_rsds(ut8* dbg_data, int dbg_data_len, SCV_RSDS_HEADER* res) { static void get_nb10(ut8* dbg_data, SCV_NB10_HEADER* res) { const int nb10sz = 16; // memcpy (res, dbg_data, nb10sz); // res->file_name = (ut8*) strdup ((const char*) dbg_data + nb10sz); } static int get_debug_info(struct PE_(r_bin_pe_o... | CVE-2018-11379 | {'CWE-125'} | 2.9 | {'https://github.com/radare/radare2/commit/4e1cf0d3e6f6fe2552a269def0af1cd2403e266c'} | nvd | The get_debug_info() 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 PE file. | 2018-05-22 | 1 | https://github.com/radare/radare2 | https://github.com/radare/radare2/commit/4e1cf0d3e6f6fe2552a269def0af1cd2403e266c | 4e1cf0d3e6f6fe2552a269def0af1cd2403e266c | SINGLE | ['4e1cf0d3e6f6fe2552a269def0af1cd2403e266c'] | {'041e53cab7ca33481ae45ecd65ad596976d78e68'} | 4e1cf0d3e6f6fe2552a269def0af1cd2403e266c | 1 | 04/20/2018, 18:06:36 | Fix crash in pe | pancake | null | {'additions': 12, 'deletions': 5, 'total': 17} | [
{
"additions": 12,
"changes": 17,
"deletions": 5,
"patch": "@@ -2732,8 +2732,8 @@ static bool get_rsds(ut8* dbg_data, int dbg_data_len, SCV_RSDS_HEADER* res) {\n \n static void get_nb10(ut8* dbg_data, SCV_NB10_HEADER* res) {\n \tconst int nb10sz = 16;\n-\tmemcpy (res, dbg_data, nb10sz);\n-\tres->fil... | c | CWE-125 | [
"libr/bin/format/pe/pe.c"
] | libr/bin/format/pe/pe.c | 1 |
struct symbol_t* MACH0_(get_symbols)(struct MACH0_(obj_t)* bin) { bprintf ("mach0-get-symbols: error\n"); break; } if (parse_import_stub(bin, &symbols[j], i)) symbols[j++].last = 0; } #if 1 static int parse_import_ptr(struct MACH0_(obj_t)* bin, struct reloc_t *reloc, in for (i = 0; i < bin->nsects; i+... | struct symbol_t* MACH0_(get_symbols)(struct MACH0_(obj_t)* bin) { bprintf ("mach0-get-symbols: error\n"); break; } if (parse_import_stub(bin, &symbols[j], i)) { symbols[j++].last = 0; } } #if 1 static int parse_import_ptr(struct MACH0_(obj_t)* bin, struct reloc_t *reloc, in for (i = 0; i < bin->nsec... | CVE-2018-11380 | {'CWE-125'} | 2.9 | {'https://github.com/radare/radare2/commit/60208765887f5f008b3b9a883f3addc8bdb9c134'} | nvd | 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. | 2018-05-22 | 1 | https://github.com/radare/radare2 | https://github.com/radare/radare2/commit/60208765887f5f008b3b9a883f3addc8bdb9c134 | 60208765887f5f008b3b9a883f3addc8bdb9c134 | SINGLE | ['60208765887f5f008b3b9a883f3addc8bdb9c134'] | {'bd276ef2fd8ac3401e65be7c126a43175ccfbcd7'} | 60208765887f5f008b3b9a883f3addc8bdb9c134 | 1 | 05/06/2018, 13:59:08 | Fix #9970 - heap oobread in mach0 parser (#10026) | radare | null | {'additions': 11, 'deletions': 5, 'total': 16} | [
{
"additions": 11,
"changes": 16,
"deletions": 5,
"patch": "@@ -1586,8 +1586,9 @@ struct symbol_t* MACH0_(get_symbols)(struct MACH0_(obj_t)* bin) {\n \t\t\tbprintf (\"mach0-get-symbols: error\\n\");\n \t\t\tbreak;\n \t\t}\n-\t\tif (parse_import_stub(bin, &symbols[j], i))\n+\t\tif (parse_import_stub(... | c | CWE-125 | [
"libr/bin/format/mach0/mach0.c"
] | libr/bin/format/mach0/mach0.c | 1 |
static int string_scan_range(RList *list, RBinFile *bf, int min, eprintf ("Invalid range to find strings 0x%llx .. 0x%llx\n", from, to); return -1; } ut8 *buf = calloc (to - from, 1); if (!buf || !min) { return -1; } r_buf_read_at (bf->buf, from, buf, to - from); // may oobread while (needle < to) { rc ... | static int string_scan_range(RList *list, RBinFile *bf, int min, eprintf ("Invalid range to find strings 0x%llx .. 0x%llx\n", from, to); return -1; } int len = to - from; ut8 *buf = calloc (len, 1); if (!buf || !min) { return -1; } r_buf_read_at (bf->buf, from, buf, len); // may oobread while (needle < t... | CVE-2018-11381 | {'CWE-125'} | 2.9 | {'https://github.com/radare/radare2/commit/3fcf41ed96ffa25b38029449520c8d0a198745f3'} | nvd | The string_scan_range() 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 binary file. | 2018-05-22 | 1 | https://github.com/radare/radare2 | https://github.com/radare/radare2/commit/3fcf41ed96ffa25b38029449520c8d0a198745f3 | 3fcf41ed96ffa25b38029449520c8d0a198745f3 | SINGLE | ['3fcf41ed96ffa25b38029449520c8d0a198745f3'] | {'77c47cf873dd55b396da60baa2ca83bbd39e4add'} | 3fcf41ed96ffa25b38029449520c8d0a198745f3 | 1 | 04/18/2018, 11:36:45 | Fix #9902 - Fix oobread in RBin.string_scan_range | pancake | null | {'additions': 5, 'deletions': 4, 'total': 9} | [
{
"additions": 5,
"changes": 9,
"deletions": 4,
"patch": "@@ -76,11 +76,12 @@ static int string_scan_range(RList *list, RBinFile *bf, int min,\n \t\teprintf (\"Invalid range to find strings 0x%llx .. 0x%llx\\n\", from, to);\n \t\treturn -1;\n \t}\n-\tut8 *buf = calloc (to - from, 1);\n+\tint len = t... | c | CWE-125 | [
"libr/bin/file.c"
] | libr/bin/file.c | 1 |
INST_HANDLER (lds) { // LDS Rd, k } INST_HANDLER (sts) { // STS k, Rr int r = ((buf[0] >> 4) & 0xf) | ((buf[1] & 0x1) << 4); int k = (buf[3] << 8) | buf[2]; op->ptr = k; | INST_HANDLER (lds) { // LDS Rd, k } INST_HANDLER (sts) { // STS k, Rr if (len < 4) { return; } int r = ((buf[0] >> 4) & 0xf) | ((buf[1] & 0x1) << 4); int k = (buf[3] << 8) | buf[2]; op->ptr = k; | CVE-2018-11382 | {'CWE-125'} | 2.9 | {'https://github.com/radare/radare2/commit/d04c78773f6959bcb427453f8e5b9824d5ba9eff'} | nvd | The _inst__sts() 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 binary file. | 2018-05-22 | 1 | https://github.com/radare/radare2 | https://github.com/radare/radare2/commit/d04c78773f6959bcb427453f8e5b9824d5ba9eff | d04c78773f6959bcb427453f8e5b9824d5ba9eff | SINGLE | ['d04c78773f6959bcb427453f8e5b9824d5ba9eff'] | {'a65bbfd32d8c0c0b40b4e2b12d19c81de3a86a2a'} | d04c78773f6959bcb427453f8e5b9824d5ba9eff | 1 | 05/15/2018, 12:44:47 | Fix #10091 - crash in AVR analysis | pancake | null | {'additions': 3, 'deletions': 0, 'total': 3} | [
{
"additions": 3,
"changes": 3,
"deletions": 0,
"patch": "@@ -925,6 +925,9 @@ INST_HANDLER (lds) {\t// LDS Rd, k\n }\n \n INST_HANDLER (sts) {\t// STS k, Rr\n+\tif (len < 4) {\n+\t\treturn;\n+\t}\n \tint r = ((buf[0] >> 4) & 0xf) | ((buf[1] & 0x1) << 4);\n \tint k = (buf[3] << 8) | buf[2];\n \top->p... | c | CWE-125 | [
"libr/anal/p/anal_avr.c"
] | libr/anal/p/anal_avr.c | 1 |
static int (*first_nibble_decode[])(RAnal*,RAnalOp*,ut16) = { static int sh_op(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *data, int len) { ut8 op_MSB,op_LSB; int ret; if (!data) return 0; memset (op, '\0', sizeof (RAnalOp)); op->addr = addr; op->type = R_ANAL_OP_TYPE_UNK; | static int (*first_nibble_decode[])(RAnal*,RAnalOp*,ut16) = { static int sh_op(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *data, int len) { ut8 op_MSB,op_LSB; int ret; if (!data || len < 2) { return 0; } memset (op, '\0', sizeof (RAnalOp)); op->addr = addr; op->type = R_ANAL_OP_TYPE_UNK; | CVE-2018-11384 | {'CWE-125'} | 2.9 | {'https://github.com/radare/radare2/commit/77c47cf873dd55b396da60baa2ca83bbd39e4add'} | nvd | The sh_op() 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 ELF file. | 2018-05-22 | 1 | https://github.com/radare/radare2 | https://github.com/radare/radare2/commit/77c47cf873dd55b396da60baa2ca83bbd39e4add | 77c47cf873dd55b396da60baa2ca83bbd39e4add | SINGLE | ['77c47cf873dd55b396da60baa2ca83bbd39e4add'] | {'a0348bb1b512ef27301dd7cdfb327ef5e14813fc'} | 77c47cf873dd55b396da60baa2ca83bbd39e4add | 1 | 04/18/2018, 11:26:49 | Fix #9903 - oobread in RAnal.sh | pancake | null | {'additions': 2, 'deletions': 1, 'total': 3} | [
{
"additions": 2,
"changes": 3,
"deletions": 1,
"patch": "@@ -763,8 +763,9 @@ static int (*first_nibble_decode[])(RAnal*,RAnalOp*,ut16) = {\n static int sh_op(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *data, int len) {\n \tut8 op_MSB,op_LSB;\n \tint ret;\n-\tif (!data)\n+\tif (!data || len < 2)... | c | CWE-125 | [
"libr/anal/p/anal_sh.c"
] | libr/anal/p/anal_sh.c | 1 |
int sr_do_ioctl(Scsi_CD *cd, struct packet_command *cgc) struct scsi_device *SDev; struct scsi_sense_hdr sshdr; int result, err = 0, retries = 0; SDev = cd->device; retry: if (!scsi_block_when_processing_errors(SDev)) { err = -ENODEV; goto out; } result = scsi_execute(SDev, cgc->cmd, cgc->data_dire... | int sr_do_ioctl(Scsi_CD *cd, struct packet_command *cgc) struct scsi_device *SDev; struct scsi_sense_hdr sshdr; int result, err = 0, retries = 0; unsigned char sense_buffer[SCSI_SENSE_BUFFERSIZE], *senseptr = NULL; SDev = cd->device; if (cgc->sense) senseptr = sense_buffer; retry: if (!scsi_block_whe... | CVE-2018-11506 | {'CWE-787'} | 10 | {'https://github.com/torvalds/linux/commit/f7068114d45ec55996b9040e98111afa56e010fe'} | nvd | The sr_do_ioctl function in drivers/scsi/sr_ioctl.c in the Linux kernel through 4.16.12 allows local users to cause a denial of service (stack-based buffer overflow) or possibly have unspecified other impact because sense buffers have different sizes at the CDROM layer and the SCSI layer, as demonstrated by a CDROMREAD... | 2018-05-28 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/f7068114d45ec55996b9040e98111afa56e010fe | f7068114d45ec55996b9040e98111afa56e010fe | SINGLE | ['f7068114d45ec55996b9040e98111afa56e010fe'] | {'1c1a2ee1b53b006754073eefc65d2b2cedb5264b'} | f7068114d45ec55996b9040e98111afa56e010fe | 1 | 05/21/2018, 18:21:14 | sr: pass down correctly sized SCSI sense buffer
We're casting the CDROM layer request_sense to the SCSI sense
buffer, but the former is 64 bytes and the latter is 96 bytes.
As we generally allocate these on the stack, we end up blowing
up the stack.
Fix this by wrapping the scsi_execute() call with a properly
sized s... | Jens Axboe | null | {'additions': 8, 'deletions': 2, 'total': 10} | [
{
"additions": 8,
"changes": 10,
"deletions": 2,
"patch": "@@ -188,20 +188,26 @@ int sr_do_ioctl(Scsi_CD *cd, struct packet_command *cgc)\n \tstruct scsi_device *SDev;\n \tstruct scsi_sense_hdr sshdr;\n \tint result, err = 0, retries = 0;\n+\tunsigned char sense_buffer[SCSI_SENSE_BUFFERSIZE], *sense... | c | CWE-787 | [
"drivers/scsi/sr_ioctl.c"
] | drivers/scsi/sr_ioctl.c | 1 |
int compat_get_timex(struct timex *txc, const struct compat_timex __user *utp) { struct compat_timex tx32; if (copy_from_user(&tx32, utp, sizeof(struct compat_timex))) return -EFAULT; | int compat_get_timex(struct timex *txc, const struct compat_timex __user *utp) { struct compat_timex tx32; memset(txc, 0, sizeof(struct timex)); if (copy_from_user(&tx32, utp, sizeof(struct compat_timex))) return -EFAULT; | CVE-2018-11508 | {'CWE-200'} | 2.9 | {'https://github.com/torvalds/linux/commit/0a0b98734479aa5b3c671d5190e86273372cab95'} | nvd | The compat_get_timex function in kernel/compat.c in the Linux kernel before 4.16.9 allows local users to obtain sensitive information from kernel memory via adjtimex. | 2018-05-28 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/0a0b98734479aa5b3c671d5190e86273372cab95 | 0a0b98734479aa5b3c671d5190e86273372cab95 | SINGLE | ['0a0b98734479aa5b3c671d5190e86273372cab95'] | {'94d7dbf108813ea45a91e27e9a8bd231d5a23fa7'} | 0a0b98734479aa5b3c671d5190e86273372cab95 | 1 | 05/11/2018, 00:19:01 | compat: fix 4-byte infoleak via uninitialized struct field
Commit 3a4d44b61625 ("ntp: Move adjtimex related compat syscalls to
native counterparts") removed the memset() in compat_get_timex(). Since
then, the compat adjtimex syscall can invoke do_adjtimex() with an
uninitialized ->tai.
If do_adjtimex() doesn't write... | Jann Horn | null | {'additions': 1, 'deletions': 0, 'total': 1} | [
{
"additions": 1,
"changes": 1,
"deletions": 0,
"patch": "@@ -34,6 +34,7 @@ int compat_get_timex(struct timex *txc, const struct compat_timex __user *utp)\n {\n \tstruct compat_timex tx32;\n \n+\tmemset(txc, 0, sizeof(struct timex));\n \tif (copy_from_user(&tx32, utp, sizeof(struct compat_timex)))\n... | c | CWE-200 | [
"kernel/compat.c"
] | kernel/compat.c | 1 |
void jslFunctionCharAsString(unsigned char ch, char *str, size_t len) { } void jslTokenAsString(int token, char *str, size_t len) { // see JS_ERROR_TOKEN_BUF_SIZE if (token>32 && token<128) { assert(len>=4); void jslTokenAsString(int token, char *str, size_t len) { return; } switch (token) { case L... | void jslFunctionCharAsString(unsigned char ch, char *str, size_t len) { } void jslTokenAsString(int token, char *str, size_t len) { assert(len>28); // size of largest string // see JS_ERROR_TOKEN_BUF_SIZE if (token>32 && token<128) { assert(len>=4); void jslTokenAsString(int token, char *str, size_t len) { ... | CVE-2018-11593 | {'CWE-787'} | 4.9 | {'https://github.com/espruino/Espruino/commit/bed844f109b6c222816740555068de2e101e8018'} | nvd | Espruino before 1.99 allows attackers to cause a denial of service (application crash) and potential Information Disclosure with a user crafted input file via a Buffer Overflow during syntax parsing because strncpy is misused in jslex.c. | 2018-05-31 | 1 | https://github.com/espruino/Espruino | https://github.com/espruino/Espruino/commit/bed844f109b6c222816740555068de2e101e8018 | bed844f109b6c222816740555068de2e101e8018 | SINGLE | ['bed844f109b6c222816740555068de2e101e8018'] | {'0a7619875bf79877907205f6bee08465b89ff10b'} | bed844f109b6c222816740555068de2e101e8018 | 1 | 05/21/2018, 09:44:08 | remove strncpy usage as it's effectively useless, replace with an assertion since fn is only used internally (fix #1426) | Gordon Williams | null | {'additions': 14, 'deletions': 13, 'total': 27} | [
{
"additions": 14,
"changes": 27,
"deletions": 13,
"patch": "@@ -713,6 +713,7 @@ void jslFunctionCharAsString(unsigned char ch, char *str, size_t len) {\n }\n \n void jslTokenAsString(int token, char *str, size_t len) {\n+ assert(len>28); // size of largest string\n // see JS_ERROR_TOKEN_BUF_SIZE... | c | CWE-787 | [
"src/jslex.c"
] | src/jslex.c | 1 |
size_t jsvGetString(const JsVar *v, char *str, size_t len) { * want to pad the entire buffer with zeros */ len--; int l = 0; while (*s && l<len) { str[l] = s[l]; l++; } | size_t jsvGetString(const JsVar *v, char *str, size_t len) { * want to pad the entire buffer with zeros */ len--; int l = 0; while (s[l] && l<len) { str[l] = s[l]; l++; } | CVE-2018-11596 | {'CWE-119'} | 2.9 | {'https://github.com/espruino/Espruino/commit/ce1924193862d58cb43d3d4d9dada710a8361b89'} | nvd | Espruino before 1.99 allows attackers to cause a denial of service (application crash) with a user crafted input file via a Buffer Overflow during syntax parsing because a check for '\0' is made for the wrong array element in jsvar.c. | 2018-05-31 | 1 | https://github.com/espruino/Espruino | https://github.com/espruino/Espruino/commit/ce1924193862d58cb43d3d4d9dada710a8361b89 | ce1924193862d58cb43d3d4d9dada710a8361b89 | SINGLE | ['ce1924193862d58cb43d3d4d9dada710a8361b89'] | {'c36d30529118aa049797db43f111ddad468aad29'} | ce1924193862d58cb43d3d4d9dada710a8361b89 | 1 | 05/21/2018, 14:29:33 | fix jsvGetString regression | Gordon Williams | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -1190,7 +1190,7 @@ size_t jsvGetString(const JsVar *v, char *str, size_t len) {\n * want to pad the entire buffer with zeros */\n len--;\n int l = 0;\n- while (*s && l<len) {\n+ while (s[l] && l<len) {\n str[l] = s... | c | CWE-119 | [
"src/jsvar.c"
] | src/jsvar.c | 1 |
public function insertBreadcrumbsUsingPageIdentifier($page_id, $preserve_last = // to the parent's Page Editor. if ($this->_context[0] == 'edit') { $page = Widget::Anchor( PageManager::fetchTitleFromHandle($page), SYMPHONY_URL . '/blueprin... | public function insertBreadcrumbsUsingPageIdentifier($page_id, $preserve_last = // to the parent's Page Editor. if ($this->_context[0] == 'edit') { $page = Widget::Anchor( General::sanitize(PageManager::fetchTitleFromHandle($page)), SYMPHO... | CVE-2018-12043 | {'CWE-79'} | 2.9 | {'https://github.com/symphonycms/symphony-2/commit/1ace6b31867cc83267b3550686271c9c65ac3ec0'} | nvd | content/content.blueprintspages.php in Symphony 2.7.6 has XSS via the pages content page. | 2018-06-07 | 1 | https://github.com/symphonycms/symphony-2 | https://github.com/symphonycms/symphony-2/commit/1ace6b31867cc83267b3550686271c9c65ac3ec0 | 1ace6b31867cc83267b3550686271c9c65ac3ec0 | SINGLE | ['1ace6b31867cc83267b3550686271c9c65ac3ec0'] | {'67ad067ce0b338d254a88aa2816a59267e991fd9'} | 1ace6b31867cc83267b3550686271c9c65ac3ec0 | 1 | 06/06/2018, 14:21:03 | Fix possible self-XSS in the pages content page
Reported by Linkey <2542566937@qq.com> | Nicolas Brassard | null | {'additions': 54, 'deletions': 27, 'total': 81} | [
{
"additions": 54,
"changes": 81,
"deletions": 27,
"patch": "@@ -30,22 +30,22 @@ public function insertBreadcrumbsUsingPageIdentifier($page_id, $preserve_last =\n // to the parent's Page Editor.\n if ($this->_context[0] == 'edit') {\n $page = Widget::Anchor(\n... | php | CWE-79 | [
"symphony/content/content.blueprintspages.php"
] | symphony/content/content.blueprintspages.php | 1 |
static int sockfs_setattr(struct dentry *dentry, struct iattr *iattr) if (!err && (iattr->ia_valid & ATTR_UID)) { struct socket *sock = SOCKET_I(d_inode(dentry)); sock->sk->sk_uid = iattr->ia_uid; } return err; EXPORT_SYMBOL(sock_alloc); * an inode not a file. */ void sock_release(struct socket *sock) { i... | static int sockfs_setattr(struct dentry *dentry, struct iattr *iattr) if (!err && (iattr->ia_valid & ATTR_UID)) { struct socket *sock = SOCKET_I(d_inode(dentry)); if (sock->sk) sock->sk->sk_uid = iattr->ia_uid; else err = -ENOENT; } return err; EXPORT_SYMBOL(sock_alloc); * an inode not a file. */ s... | CVE-2018-12232 | {'CWE-362'} | 6.9 | {'https://github.com/torvalds/linux/commit/6d8c50dcb029872b298eea68cc6209c866fd3e14'} | nvd | In net/socket.c in the Linux kernel through 4.17.1, there is a race condition between fchownat and close in cases where they target the same socket file descriptor, related to the sock_close and sockfs_setattr functions. fchownat does not increment the file descriptor reference count, which allows close to set the sock... | 2018-06-12 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/6d8c50dcb029872b298eea68cc6209c866fd3e14 | 6d8c50dcb029872b298eea68cc6209c866fd3e14 | SINGLE | ['6d8c50dcb029872b298eea68cc6209c866fd3e14'] | {'873aca2ee86e533665a73292c4e308ded1e9bafe'} | 6d8c50dcb029872b298eea68cc6209c866fd3e14 | 1 | 06/07/2018, 20:39:49 | socket: close race condition between sock_close() and sockfs_setattr()
fchownat() doesn't even hold refcnt of fd until it figures out
fd is really needed (otherwise is ignored) and releases it after
it resolves the path. This means sock_close() could race with
sockfs_setattr(), which leads to a NULL pointer dereferenc... | Cong Wang | null | {'additions': 15, 'deletions': 3, 'total': 18} | [
{
"additions": 15,
"changes": 18,
"deletions": 3,
"patch": "@@ -541,7 +541,10 @@ static int sockfs_setattr(struct dentry *dentry, struct iattr *iattr)\n \tif (!err && (iattr->ia_valid & ATTR_UID)) {\n \t\tstruct socket *sock = SOCKET_I(d_inode(dentry));\n \n-\t\tsock->sk->sk_uid = iattr->ia_uid;\n+\... | c | CWE-362 | [
"net/socket.c"
] | net/socket.c | 1 |
mrb_obj_clone(mrb_state *mrb, mrb_value self) mrb_field_write_barrier(mrb, (struct RBasic*)p, (struct RBasic*)p->c); clone = mrb_obj_value(p); init_copy(mrb, clone, self); p->flags = mrb_obj_ptr(self)->flags; return clone; } | mrb_obj_clone(mrb_state *mrb, mrb_value self) mrb_field_write_barrier(mrb, (struct RBasic*)p, (struct RBasic*)p->c); clone = mrb_obj_value(p); init_copy(mrb, clone, self); p->flags |= mrb_obj_ptr(self)->flags & MRB_FLAG_IS_FROZEN; return clone; } | CVE-2018-12247 | {'CWE-476'} | 2.9 | {'https://github.com/mruby/mruby/commit/55edae0226409de25e59922807cb09acb45731a2'} | nvd | An issue was discovered in mruby 1.4.1. There is a NULL pointer dereference in mrb_class, related to certain .clone usage, because mrb_obj_clone in kernel.c copies flags other than the MRB_FLAG_IS_FROZEN flag (e.g., the embedded flag). | 2018-06-12 | 1 | https://github.com/mruby/mruby | https://github.com/mruby/mruby/commit/55edae0226409de25e59922807cb09acb45731a2 | 55edae0226409de25e59922807cb09acb45731a2 | SINGLE | ['55edae0226409de25e59922807cb09acb45731a2'] | {'cfd0c93d7d9dad13e6677beb7b7bd822a7572f8d'} | 55edae0226409de25e59922807cb09acb45731a2 | 1 | 06/07/2018, 07:17:00 | Allow `Object#clone` to copy frozen status only; fix #4036
Copying all flags from the original object may overwrite the clone's
flags e.g. the embedded flag. | Yukihiro "Matz" Matsumoto | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -348,7 +348,7 @@ mrb_obj_clone(mrb_state *mrb, mrb_value self)\n mrb_field_write_barrier(mrb, (struct RBasic*)p, (struct RBasic*)p->c);\n clone = mrb_obj_value(p);\n init_copy(mrb, clone, self);\n- p->flags = mrb_obj_ptr(self)->flag... | c | CWE-476 | [
"src/kernel.c"
] | src/kernel.c | 1 |
fiber_switch(mrb_state *mrb, mrb_value self, mrb_int len, const mrb_value *a, mr { struct mrb_context *c = fiber_check(mrb, self); struct mrb_context *old_c = mrb->c; mrb_value value; fiber_check_cfunc(mrb, c); if (resume && c->status == MRB_FIBER_TRANSFERRED) { mrb_raise(mrb, E_FIBER_ERROR, "resuming t... | fiber_switch(mrb_state *mrb, mrb_value self, mrb_int len, const mrb_value *a, mr { struct mrb_context *c = fiber_check(mrb, self); struct mrb_context *old_c = mrb->c; enum mrb_fiber_state status; mrb_value value; fiber_check_cfunc(mrb, c); status = c->status; if (resume && status == MRB_FIBER_TRANSFERRE... | CVE-2018-12248 | {'CWE-125'} | 2.9 | {'https://github.com/mruby/mruby/commit/778500563a9f7ceba996937dc886bd8cde29b42b'} | nvd | An issue was discovered in mruby 1.4.1. There is a heap-based buffer over-read associated with OP_ENTER because mrbgems/mruby-fiber/src/fiber.c does not extend the stack in cases of many arguments to fiber. | 2018-06-12 | 1 | https://github.com/mruby/mruby | https://github.com/mruby/mruby/commit/778500563a9f7ceba996937dc886bd8cde29b42b | 778500563a9f7ceba996937dc886bd8cde29b42b | SINGLE | ['778500563a9f7ceba996937dc886bd8cde29b42b'] | {'ff0a4f78674308b7643db1da9b9dc591f25c21d0'} | 778500563a9f7ceba996937dc886bd8cde29b42b | 1 | 06/07/2018, 06:59:00 | Extend stack when pushing arguments that does not fit in; fix #4038 | Yukihiro "Matz" Matsumoto | null | {'additions': 9, 'deletions': 9, 'total': 18} | [
{
"additions": 9,
"changes": 18,
"deletions": 9,
"patch": "@@ -184,26 +184,27 @@ fiber_switch(mrb_state *mrb, mrb_value self, mrb_int len, const mrb_value *a, mr\n {\n struct mrb_context *c = fiber_check(mrb, self);\n struct mrb_context *old_c = mrb->c;\n+ enum mrb_fiber_state status;\n mrb_v... | c | CWE-125 | [
"mrbgems/mruby-fiber/src/fiber.c"
] | mrbgems/mruby-fiber/src/fiber.c | 1 |
mrb_class_path(mrb_state *mrb, struct RClass *c) MRB_API struct RClass* mrb_class_real(struct RClass* cl) { if (cl == 0) return NULL; while ((cl->tt == MRB_TT_SCLASS) || (cl->tt == MRB_TT_ICLASS)) { cl = cl->super; } return cl; } | mrb_class_path(mrb_state *mrb, struct RClass *c) MRB_API struct RClass* mrb_class_real(struct RClass* cl) { if (cl == 0) return NULL; while ((cl->tt == MRB_TT_SCLASS) || (cl->tt == MRB_TT_ICLASS)) { cl = cl->super; if (cl == 0) return NULL; } return cl; } | CVE-2018-12249 | {'CWE-476'} | 2.9 | {'https://github.com/mruby/mruby/commit/faa4eaf6803bd11669bc324b4c34e7162286bfa3'} | nvd | An issue was discovered in mruby 1.4.1. There is a NULL pointer dereference in mrb_class_real because "class BasicObject" is not properly supported in class.c. | 2018-06-12 | 1 | https://github.com/mruby/mruby | https://github.com/mruby/mruby/commit/faa4eaf6803bd11669bc324b4c34e7162286bfa3 | faa4eaf6803bd11669bc324b4c34e7162286bfa3 | SINGLE | ['faa4eaf6803bd11669bc324b4c34e7162286bfa3'] | {'55edae0226409de25e59922807cb09acb45731a2'} | faa4eaf6803bd11669bc324b4c34e7162286bfa3 | 1 | 06/08/2018, 05:13:06 | `mrb_class_real()` did not work for `BasicObject`; fix #4037 | Yukihiro "Matz" Matsumoto | null | {'additions': 2, 'deletions': 2, 'total': 4} | [
{
"additions": 2,
"changes": 4,
"deletions": 2,
"patch": "@@ -1763,10 +1763,10 @@ mrb_class_path(mrb_state *mrb, struct RClass *c)\n MRB_API struct RClass*\n mrb_class_real(struct RClass* cl)\n {\n- if (cl == 0)\n- return NULL;\n+ if (cl == 0) return NULL;\n while ((cl->tt == MRB_TT_SCLASS) |... | c | CWE-476 | [
"src/class.c"
] | src/class.c | 1 |
throw new Exception(language::translate('error_must_select_file_to_upload', 'You must select a file to upload')); } if (!in_array($_FILES['vqmod']['type'], array('text/xml', 'application/xml'))) { throw new Exception(language::translate('error_must_provide_vqmod', 'You must provide a valid... | throw new Exception(language::translate('error_must_select_file_to_upload', 'You must select a file to upload')); } $dom = new DOMDocument('1.0', 'UTF-8'); $xml = file_get_contents($_FILES['vqmod']['tmp_name']); // DOMDocument::load() does not support Windows paths so we use DOMDocument::lo... | CVE-2018-12256 | {'CWE-434'} | 6.4 | {'https://github.com/litecart/litecart/commit/2305368eb70a26cab34c772c9ae88787f4c3e669'} | nvd | admin/vqmods.app/vqmods.inc.php in LiteCart before 2.1.3 allows remote authenticated attackers to upload a malicious file (resulting in remote code execution) by using the text/xml or application/xml Content-Type in a public_html/admin/?app=vqmods&doc=vqmods request. | 2018-08-16 | 1 | https://github.com/litecart/litecart | https://github.com/litecart/litecart/commit/2305368eb70a26cab34c772c9ae88787f4c3e669 | 2305368eb70a26cab34c772c9ae88787f4c3e669 | SINGLE | ['2305368eb70a26cab34c772c9ae88787f4c3e669'] | {'e20e3060e1d2b0c53533883c718b1c7dd635a034'} | 2305368eb70a26cab34c772c9ae88787f4c3e669 | 1 | 06/14/2018, 22:54:20 | ! Verify that uploads have valid xml and vqmod content | timint | null | {'additions': 18, 'deletions': 3, 'total': 21} | [
{
"additions": 18,
"changes": 21,
"deletions": 3,
"patch": "@@ -49,11 +49,25 @@\n throw new Exception(language::translate('error_must_select_file_to_upload', 'You must select a file to upload'));\n }\n \n- if (!in_array($_FILES['vqmod']['type'], array('text/xml', 'application/xml'... | php | CWE-434 | [
"public_html/admin/vqmods.app/vqmods.inc.php"
] | public_html/admin/vqmods.app/vqmods.inc.php | 1 |
R_API void r_anal_bb_free(RAnalBlock *bb) { bb->failbb->prev = NULL; bb->failbb = NULL; } R_FREE (bb); } R_API RList *r_anal_bb_list_new() { | R_API void r_anal_bb_free(RAnalBlock *bb) { bb->failbb->prev = NULL; bb->failbb = NULL; } if (bb->next) { // avoid double free bb->next->prev = NULL; } R_FREE (bb); // double free } R_API RList *r_anal_bb_list_new() { | CVE-2018-12320 | {'CWE-416'} | 6.4 | {'https://github.com/radare/radare2/commit/90b71c017a7fa9732fe45fd21b245ee051b1f548'} | nvd | There is a use after free in radare2 2.6.0 in r_anal_bb_free() in libr/anal/bb.c via a crafted Java binary file. | 2018-06-13 | 1 | https://github.com/radare/radare2 | https://github.com/radare/radare2/commit/90b71c017a7fa9732fe45fd21b245ee051b1f548 | 90b71c017a7fa9732fe45fd21b245ee051b1f548 | SINGLE | ['90b71c017a7fa9732fe45fd21b245ee051b1f548'] | {'224e6bc13fa353dd3b7f7a2334588f1c4229e58d'} | 90b71c017a7fa9732fe45fd21b245ee051b1f548 | 1 | 06/11/2018, 01:28:35 | Fix #10293 - Use-after-free in r_anal_bb_free() | pancake | null | {'additions': 5, 'deletions': 1, 'total': 6} | [
{
"additions": 5,
"changes": 6,
"deletions": 1,
"patch": "@@ -62,7 +62,11 @@ R_API void r_anal_bb_free(RAnalBlock *bb) {\n \t\tbb->failbb->prev = NULL;\n \t\tbb->failbb = NULL;\n \t}\n-\tR_FREE (bb);\n+\tif (bb->next) {\n+\t\t// avoid double free\n+\t\tbb->next->prev = NULL;\n+\t}\n+\tR_FREE (bb); /... | c | CWE-416 | [
"libr/anal/bb.c"
] | libr/anal/bb.c | 1 |
static int java_switch_op(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *data, if (op_byte == 0xaa) { // handle a table switch condition if (pos + 8 > len) { return op->size; } int min_val = (ut32)(UINT (data, pos + 4)), max_val = (ut32)(UINT (data, pos + 8)); ut32 default_loc = (ut32) (UINT (data,... | static int java_switch_op(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *data, if (op_byte == 0xaa) { // handle a table switch condition if (pos + 8 + 8 > len) { return op->size; } const int min_val = (ut32)(UINT (data, pos + 4)); const int max_val = (ut32)(UINT (data, pos + 8)); ut32 default_loc = ... | CVE-2018-12321 | {'CWE-125'} | 6.4 | {'https://github.com/radare/radare2/commit/224e6bc13fa353dd3b7f7a2334588f1c4229e58d'} | nvd | There is a heap out of bounds read in radare2 2.6.0 in java_switch_op() in libr/anal/p/anal_java.c via a crafted Java binary file. | 2018-06-13 | 1 | https://github.com/radare/radare2 | https://github.com/radare/radare2/commit/224e6bc13fa353dd3b7f7a2334588f1c4229e58d | 224e6bc13fa353dd3b7f7a2334588f1c4229e58d | SINGLE | ['224e6bc13fa353dd3b7f7a2334588f1c4229e58d'] | {'c488aaa2088b208de8d7b2d7ea5f11be0ab3d487'} | 224e6bc13fa353dd3b7f7a2334588f1c4229e58d | 1 | 06/11/2018, 01:15:07 | Fix #10296 - Heap out of bounds read in java_switch_op() | pancake | null | {'additions': 3, 'deletions': 3, 'total': 6} | [
{
"additions": 3,
"changes": 6,
"deletions": 3,
"patch": "@@ -679,11 +679,11 @@ static int java_switch_op(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *data,\n \n \tif (op_byte == 0xaa) {\n \t\t// handle a table switch condition\n-\t\tif (pos + 8 > len) {\n+\t\tif (pos + 8 + 8 > len) {\n \t\t\tret... | c | CWE-125 | [
"libr/anal/p/anal_java.c"
] | libr/anal/p/anal_java.c | 1 |
static int _6502_op(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *data, int le op->cycles = 2; op->failcycles = 3; op->type = R_ANAL_OP_TYPE_CJMP; if (data[1] <= 127) op->jump = addr + data[1] + op->size; else op->jump = addr - (256 - data[1]) + op->size; op->fail = addr + op->size; // FIXME: add a ... | static int _6502_op(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *data, int le op->cycles = 2; op->failcycles = 3; op->type = R_ANAL_OP_TYPE_CJMP; if (len > 1) { if (data[1] <= 127) { op->jump = addr + data[1] + op->size; } else { op->jump = addr - (256 - data[1]) + op->size; } } else { ... | CVE-2018-12322 | {'CWE-125'} | 2.9 | {'https://github.com/radare/radare2/commit/bbb4af56003c1afdad67af0c4339267ca38b1017'} | nvd | 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. | 2018-06-13 | 1 | https://github.com/radare/radare2 | https://github.com/radare/radare2/commit/bbb4af56003c1afdad67af0c4339267ca38b1017 | bbb4af56003c1afdad67af0c4339267ca38b1017 | SINGLE | ['bbb4af56003c1afdad67af0c4339267ca38b1017'] | {'bceeb37213d4bd9b0ecca0bb5784c343dd23d303'} | bbb4af56003c1afdad67af0c4339267ca38b1017 | 1 | 06/11/2018, 01:03:25 | Fix #10294 - crash in r2_hoobr__6502_op | pancake | null | {'additions': 9, 'deletions': 3, 'total': 12} | [
{
"additions": 9,
"changes": 12,
"deletions": 3,
"patch": "@@ -682,9 +682,15 @@ static int _6502_op(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *data, int le\n \t\top->cycles = 2;\n \t\top->failcycles = 3;\n \t\top->type = R_ANAL_OP_TYPE_CJMP;\n-\t\tif (data[1] <= 127)\n-\t\t\top->jump = addr + d... | c | CWE-125 | [
"libr/anal/p/anal_6502.c"
] | libr/anal/p/anal_6502.c | 1 |
static long long mstime(void) { } static void cliRefreshPrompt(void) { int len; if (config.eval_ldb) return; if (config.hostsocket != NULL) len = snprintf(config.prompt,sizeof(config.prompt),"redis %s", config.hostsocket); else len = anetFormatAddr(config.prompt... | static long long mstime(void) { } static void cliRefreshPrompt(void) { if (config.eval_ldb) return; sds prompt = sdsempty(); if (config.hostsocket != NULL) { prompt = sdscatfmt(prompt,"redis %s",config.hostsocket); } else { char addr[256]; anetFormatAddr(addr, sizeof(addr), co... | CVE-2018-12326 | {'CWE-119'} | 6.4 | {'https://github.com/antirez/redis/commit/9fdcc15962f9ff4baebe6fdd947816f43f730d50'} | nvd | Buffer overflow in redis-cli of Redis before 4.0.10 and 5.x before 5.0 RC3 allows an attacker to achieve code execution and escalate to higher privileges via a crafted command line. NOTE: It is unclear whether there are any common situations in which redis-cli is used with, for example, a -h (aka hostname) argument fro... | 2018-06-17 | 1 | https://github.com/antirez/redis | https://github.com/antirez/redis/commit/9fdcc15962f9ff4baebe6fdd947816f43f730d50 | 9fdcc15962f9ff4baebe6fdd947816f43f730d50 | SINGLE | ['9fdcc15962f9ff4baebe6fdd947816f43f730d50'] | {'cf7600714fc475b144278617078ee80da1c3f2e9'} | 9fdcc15962f9ff4baebe6fdd947816f43f730d50 | 1 | 06/11/2018, 10:08:42 | Security: fix redis-cli buffer overflow.
Thanks to Fakhri Zulkifli for reporting it.
The fix switched to dynamic allocation, copying the final prompt in the
static buffer only at the end. | antirez | {'com_1': {'author': 'lamby', 'datetime': '06/26/2018, 14:57:03', 'body': 'This is CVE-2018-12326.'}} | {'additions': 16, 'deletions': 11, 'total': 27} | [
{
"additions": 16,
"changes": 27,
"deletions": 11,
"patch": "@@ -152,20 +152,25 @@ static long long mstime(void) {\n }\n \n static void cliRefreshPrompt(void) {\n- int len;\n-\n if (config.eval_ldb) return;\n- if (config.hostsocket != NULL)\n- len = snprintf(config.prompt,sizeof(con... | c | CWE-119 | [
"src/redis-cli.c"
] | src/redis-cli.c | 1 |
static int wc_ecc_gen_k(WC_RNG* rng, int size, mp_int* k, mp_int* order) if (err == 0) err = mp_read_unsigned_bin(k, (byte*)buf, size); /* quick sanity check to make sure we're not dealing with a 0 key */ if (err == MP_OKAY) { if (mp_iszero(k) == MP_YES) err = MP_ZERO_E; } ... | static int wc_ecc_gen_k(WC_RNG* rng, int size, mp_int* k, mp_int* order) if (err == 0) err = mp_read_unsigned_bin(k, (byte*)buf, size); /* the key should be smaller than the order of base point */ if (err == MP_OKAY) { if (mp_cmp(k, order) != MP_LT) { err = mp_mod(k, order, k);... | CVE-2018-12436 | {'CWE-200'} | 2.9 | {'https://github.com/wolfSSL/wolfssl/commit/9b9568d500f31f964af26ba8d01e542e1f27e5ca'} | nvd | wolfcrypt/src/ecc.c in wolfSSL before 3.15.1.patch allows a memory-cache side-channel attack on ECDSA signatures, aka the Return Of the Hidden Number Problem or ROHNP. To discover an ECDSA key, the attacker needs access to either the local machine or a different virtual machine on the same physical host. | 2018-06-15 | 1 | https://github.com/wolfSSL/wolfssl | https://github.com/wolfSSL/wolfssl/commit/9b9568d500f31f964af26ba8d01e542e1f27e5ca | 9b9568d500f31f964af26ba8d01e542e1f27e5ca | SINGLE | ['9b9568d500f31f964af26ba8d01e542e1f27e5ca'] | {'b63d3173a1fa2792efda89d0e6706900250131ea'} | 9b9568d500f31f964af26ba8d01e542e1f27e5ca | 1 | 05/27/2018, 22:32:45 | Change ECDSA signing to use blinding. | Sean Parkinson | null | {'additions': 54, 'deletions': 14, 'total': 68} | [
{
"additions": 54,
"changes": 68,
"deletions": 14,
"patch": "@@ -3139,19 +3139,19 @@ static int wc_ecc_gen_k(WC_RNG* rng, int size, mp_int* k, mp_int* order)\n if (err == 0)\n err = mp_read_unsigned_bin(k, (byte*)buf, size);\n \n- /* quick sanity check to make sure we're not dealing w... | c | CWE-200 | [
"wolfcrypt/src/ecc.c"
] | wolfcrypt/src/ecc.c | 1 |
int ff_mpeg4_decode_picture_header(Mpeg4DecContext *ctx, GetBitContext *gb) /* search next start code */ align_get_bits(gb); if (s->codec_tag == AV_RL32("WV1F") && show_bits(gb, 24) == 0x575630) { skip_bits(gb, 24); if (get_bits(gb, 8) == 0xF0) | int ff_mpeg4_decode_picture_header(Mpeg4DecContext *ctx, GetBitContext *gb) /* search next start code */ align_get_bits(gb); // If we have not switched to studio profile than we also did not switch bps // that means something else (like a previous instance) outside set bps which // would be incons... | CVE-2018-12459 | {'CWE-20'} | 2.9 | {'https://github.com/FFmpeg/FFmpeg/commit/2fc108f60f98cd00813418a8754a46476b404a3c'} | nvd | An inconsistent bits-per-sample value in the ff_mpeg4_decode_picture_header function in libavcodec/mpeg4videodec.c in FFmpeg 4.0 may trigger an assertion violation while converting a crafted AVI file to MPEG4, leading to a denial of service. | 2018-06-15 | 1 | https://github.com/FFmpeg/FFmpeg | https://github.com/FFmpeg/FFmpeg/commit/2fc108f60f98cd00813418a8754a46476b404a3c | 2fc108f60f98cd00813418a8754a46476b404a3c | SINGLE | ['2fc108f60f98cd00813418a8754a46476b404a3c'] | {'30af29a712b820e8e28c4963fab0160128c23d3d'} | 2fc108f60f98cd00813418a8754a46476b404a3c | 1 | 06/09/2018, 20:25:38 | avcodec/mpeg4videodec: Clear bits_per_raw_sample if it has originated from a previous instance
Fixes: assertion failure
Fixes: ffmpeg_crash_5.avi
Found-by: Thuan Pham <thuanpv@comp.nus.edu.sg>, Marcel Böhme, Andrew Santosa and Alexandru Razvan Caciulescu with AFLSmart
Signed-off-by: Michael Niedermayer <michael@niede... | Michael Niedermayer | {'com_1': {'author': 'thuanpv', 'datetime': '06/15/2018, 16:04:48', 'body': 'This is CVE-2018-12459'}} | {'additions': 6, 'deletions': 0, 'total': 6} | [
{
"additions": 6,
"changes": 6,
"deletions": 0,
"patch": "@@ -3109,6 +3109,12 @@ int ff_mpeg4_decode_picture_header(Mpeg4DecContext *ctx, GetBitContext *gb)\n /* search next start code */\n align_get_bits(gb);\n \n+ // If we have not switched to studio profile than we also did not switch ... | c | CWE-20 | [
"libavcodec/mpeg4videodec.c"
] | libavcodec/mpeg4videodec.c | 1 |
static long vbg_misc_device_ioctl(struct file *filp, unsigned int req, if (!buf) return -ENOMEM; if (copy_from_user(buf, (void *)arg, hdr.size_in)) { ret = -EFAULT; goto out; } | static long vbg_misc_device_ioctl(struct file *filp, unsigned int req, if (!buf) return -ENOMEM; *((struct vbg_ioctl_hdr *)buf) = hdr; if (copy_from_user(buf + sizeof(hdr), (void *)arg + sizeof(hdr), hdr.size_in - sizeof(hdr))) { ret = -EFAULT; goto out; } | CVE-2018-12633 | {'CWE-362'} | 9.2 | {'https://github.com/torvalds/linux/commit/bd23a7269834dc7c1f93e83535d16ebc44b75eba'} | nvd | An issue was discovered in the Linux kernel through 4.17.2. vbg_misc_device_ioctl() in drivers/virt/vboxguest/vboxguest_linux.c reads the same user data twice with copy_from_user. The header part of the user data is double-fetched, and a malicious user thread can tamper with the critical variables (hdr.size_in and hdr.... | 2018-06-22 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/bd23a7269834dc7c1f93e83535d16ebc44b75eba | bd23a7269834dc7c1f93e83535d16ebc44b75eba | SINGLE | ['bd23a7269834dc7c1f93e83535d16ebc44b75eba'] | {'bdeeed098811b36d1f988521600a89a400830a4b'} | bd23a7269834dc7c1f93e83535d16ebc44b75eba | 1 | 05/08/2018, 13:50:28 | virt: vbox: Only copy_from_user the request-header once
In vbg_misc_device_ioctl(), the header of the ioctl argument is copied from
the userspace pointer 'arg' and saved to the kernel object 'hdr'. Then the
'version', 'size_in', and 'size_out' fields of 'hdr' are verified.
Before this commit, after the checks a buffe... | Wenwen Wang | null | {'additions': 3, 'deletions': 1, 'total': 4} | [
{
"additions": 3,
"changes": 4,
"deletions": 1,
"patch": "@@ -121,7 +121,9 @@ static long vbg_misc_device_ioctl(struct file *filp, unsigned int req,\n \tif (!buf)\n \t\treturn -ENOMEM;\n \n-\tif (copy_from_user(buf, (void *)arg, hdr.size_in)) {\n+\t*((struct vbg_ioctl_hdr *)buf) = hdr;\n+\tif (copy_... | c | CWE-362 | [
"drivers/virt/vboxguest/vboxguest_linux.c"
] | drivers/virt/vboxguest/vboxguest_linux.c | 1 |
send_ssi_file(struct mg_connection *conn, /* Handle SSI tag */ buf[len] = 0; if (!memcmp(buf + 5, "include", 7)) { do_ssi_include(conn, path, buf + 12, include_level + 1); #if !defined(NO_POPEN) } else if (!memcmp(buf + 5, "exec", 4)) { do_ssi_exec(conn, buf + 9); #endif /* !NO_POPEN *... | send_ssi_file(struct mg_connection *conn, /* Handle SSI tag */ buf[len] = 0; if ((len > 12) && !memcmp(buf + 5, "include", 7)) { do_ssi_include(conn, path, buf + 12, include_level + 1); #if !defined(NO_POPEN) } else if ((len > 9) && !memcmp(buf + 5, "exec", 4)) { do_ssi_exec(conn, buf ... | CVE-2018-12684 | {'CWE-200', 'CWE-125'} | 4.9 | {'https://github.com/civetweb/civetweb/commit/8fd069f6dedb064339f1091069ac96f3f8bdb552'} | nvd | Out-of-bounds Read in the send_ssi_file function in civetweb.c in CivetWeb through 1.10 allows attackers to cause a Denial of Service or Information Disclosure via a crafted SSI file. | 2018-06-22 | 1 | https://github.com/civetweb/civetweb | https://github.com/civetweb/civetweb/commit/8fd069f6dedb064339f1091069ac96f3f8bdb552 | 8fd069f6dedb064339f1091069ac96f3f8bdb552 | SINGLE | ['8fd069f6dedb064339f1091069ac96f3f8bdb552'] | {'9fc1e253be6e996f4ee5e2e2a7b4741a07709c2a'} | 8fd069f6dedb064339f1091069ac96f3f8bdb552 | 1 | 06/15/2018, 22:48:25 | Check length of memcmp | bel2125 | null | {'additions': 2, 'deletions': 2, 'total': 4} | [
{
"additions": 2,
"changes": 4,
"deletions": 2,
"patch": "@@ -11611,10 +11611,10 @@ send_ssi_file(struct mg_connection *conn,\n \t\t\t\t\t/* Handle SSI tag */\n \t\t\t\t\tbuf[len] = 0;\n \n-\t\t\t\t\tif (!memcmp(buf + 5, \"include\", 7)) {\n+\t\t\t\t\tif ((len > 12) && !memcmp(buf + 5, \"include\", ... | c | CWE-200 | [
"src/civetweb.c"
] | src/civetweb.c | 1 |
send_ssi_file(struct mg_connection *conn, /* Handle SSI tag */ buf[len] = 0; if (!memcmp(buf + 5, "include", 7)) { do_ssi_include(conn, path, buf + 12, include_level + 1); #if !defined(NO_POPEN) } else if (!memcmp(buf + 5, "exec", 4)) { do_ssi_exec(conn, buf + 9); #endif /* !NO_POPEN *... | send_ssi_file(struct mg_connection *conn, /* Handle SSI tag */ buf[len] = 0; if ((len > 12) && !memcmp(buf + 5, "include", 7)) { do_ssi_include(conn, path, buf + 12, include_level + 1); #if !defined(NO_POPEN) } else if ((len > 9) && !memcmp(buf + 5, "exec", 4)) { do_ssi_exec(conn, buf ... | CVE-2018-12684 | {'CWE-200', 'CWE-125'} | 4.9 | {'https://github.com/civetweb/civetweb/commit/8fd069f6dedb064339f1091069ac96f3f8bdb552'} | nvd | Out-of-bounds Read in the send_ssi_file function in civetweb.c in CivetWeb through 1.10 allows attackers to cause a Denial of Service or Information Disclosure via a crafted SSI file. | 2018-06-22 | 1 | https://github.com/civetweb/civetweb | https://github.com/civetweb/civetweb/commit/8fd069f6dedb064339f1091069ac96f3f8bdb552 | 8fd069f6dedb064339f1091069ac96f3f8bdb552 | SINGLE | ['8fd069f6dedb064339f1091069ac96f3f8bdb552'] | {'9fc1e253be6e996f4ee5e2e2a7b4741a07709c2a'} | 8fd069f6dedb064339f1091069ac96f3f8bdb552 | 1 | 06/15/2018, 22:48:25 | Check length of memcmp | bel2125 | null | {'additions': 2, 'deletions': 2, 'total': 4} | [
{
"additions": 2,
"changes": 4,
"deletions": 2,
"patch": "@@ -11611,10 +11611,10 @@ send_ssi_file(struct mg_connection *conn,\n \t\t\t\t\t/* Handle SSI tag */\n \t\t\t\t\tbuf[len] = 0;\n \n-\t\t\t\t\tif (!memcmp(buf + 5, \"include\", 7)) {\n+\t\t\t\t\tif ((len > 12) && !memcmp(buf + 5, \"include\", ... | c | CWE-125 | [
"src/civetweb.c"
] | src/civetweb.c | 1 |
function filter_form_draw_inputs( $p_filter, $p_for_screen = true, $p_static = f if( null === $p_static_fallback_page ) { $p_static_fallback_page = $_SERVER['PHP_SELF']; } $t_filters_url = $p_static_fallback_page; $t_get_params = $_GET; | function filter_form_draw_inputs( $p_filter, $p_for_screen = true, $p_static = f if( null === $p_static_fallback_page ) { $p_static_fallback_page = $_SERVER['PHP_SELF']; $p_static_fallback_page = string_sanitize_url( $_SERVER['PHP_SELF'] ); } $t_filters_url = $p_static_fallback_page; $t_get_params = $_GET; | CVE-2018-13055 | {'CWE-79'} | 2.9 | {'http://github.com/mantisbt/mantisbt/commit/4efac90ed89a5c009108b641e2e95683791a165a'} | nvd | A cross-site scripting (XSS) vulnerability in the View Filters page (view_filters_page.php) in MantisBT 2.1.0 through 2.15.0 allows remote attackers to inject arbitrary code (if CSP settings permit it) through a crafted PATH_INFO. | 2018-08-03 | 1 | http://github.com/mantisbt/mantisbt | http://github.com/mantisbt/mantisbt/commit/4efac90ed89a5c009108b641e2e95683791a165a | 4efac90ed89a5c009108b641e2e95683791a165a | SINGLE | ['4efac90ed89a5c009108b641e2e95683791a165a'] | {'ee30e00a9f975e8a37cf7cdf9da328fce4921d25'} | 4efac90ed89a5c009108b641e2e95683791a165a | 1 | 07/04/2018, 13:29:54 | Fix XSS in filter_form_draw_inputs() (CVE-2018-13055)
Ömer Çıtak, Security Researcher at Netsparker, reported this
vulnerability, allowing remote attackers to inject arbitrary code
(if CSP settings permit it) through a crafted PATH_INFO on
view_filters_page.php.
Prevent the attack by sanitizing the output of $_SERVER... | Damien Regad | null | {'additions': 1, 'deletions': 0, 'total': 1} | [
{
"additions": 1,
"changes": 1,
"deletions": 0,
"patch": "@@ -2394,6 +2394,7 @@ function filter_form_draw_inputs( $p_filter, $p_for_screen = true, $p_static = f\n \n \tif( null === $p_static_fallback_page ) {\n \t\t$p_static_fallback_page = $_SERVER['PHP_SELF'];\n+\t\t$p_static_fallback_page = strin... | php | CWE-79 | [
"core/filter_form_api.php"
] | core/filter_form_api.php | 1 |
xfs_reinit_inode( return error; } /* * Check the validity of the inode we just found it the cache */ xfs_iget_cache_hit( } /* * If lookup is racing with unlink return an error immediately. */ if (VFS_I(ip)->i_mode == 0 && !(flags & XFS_IGET_CREATE)) { error = -ENOENT; goto out_error; } /* * If IRE... | xfs_reinit_inode( return error; } /* * If we are allocating a new inode, then check what was returned is * actually a free, empty inode. If we are not allocating an inode, * then check we didn't find a free inode. * * Returns: * 0 if the inode free state matches the lookup context * -ENOENT if the inode is ... | CVE-2018-13093 | {'CWE-476'} | 2.9 | {'https://github.com/torvalds/linux/commit/afca6c5b2595fc44383919fba740c194b0b76aff'} | nvd | An issue was discovered in fs/xfs/xfs_icache.c in the Linux kernel through 4.17.3. There is a NULL pointer dereference and panic in lookup_slow() on a NULL inode->i_ops pointer when doing pathwalks on a corrupted xfs image. This occurs because of a lack of proper validation that cached inodes are free during allocation... | 2018-07-03 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/afca6c5b2595fc44383919fba740c194b0b76aff | afca6c5b2595fc44383919fba740c194b0b76aff | SINGLE | ['afca6c5b2595fc44383919fba740c194b0b76aff'] | {'75bc37fefc4471e718ba8e651aa74673d4e0a9eb'} | afca6c5b2595fc44383919fba740c194b0b76aff | 1 | 04/18/2018, 00:17:34 | xfs: validate cached inodes are free when allocated
A recent fuzzed filesystem image cached random dcache corruption
when the reproducer was run. This often showed up as panics in
lookup_slow() on a null inode->i_ops pointer when doing pathwalks.
BUG: unable to handle kernel NULL pointer dereference at 00000000000000... | Dave Chinner | null | {'additions': 48, 'deletions': 25, 'total': 73} | [
{
"additions": 48,
"changes": 73,
"deletions": 25,
"patch": "@@ -308,6 +308,46 @@ xfs_reinit_inode(\n \treturn error;\n }\n \n+/*\n+ * If we are allocating a new inode, then check what was returned is\n+ * actually a free, empty inode. If we are not allocating an inode,\n+ * then check we didn't fin... | c | CWE-476 | [
"fs/xfs/xfs_icache.c"
] | fs/xfs/xfs_icache.c | 1 |
xfs_attr_shortform_to_leaf( ASSERT(blkno == 0); error = xfs_attr3_leaf_create(args, blkno, &bp); if (error) { error = xfs_da_shrink_inode(args, 0, bp); bp = NULL; if (error) goto out; xfs_idata_realloc(dp, size, XFS_ATTR_FORK); /* try to put */ memcpy(ifp->if_u1.if_data, tmpbuffer, size); /* it back */ | xfs_attr_shortform_to_leaf( ASSERT(blkno == 0); error = xfs_attr3_leaf_create(args, blkno, &bp); if (error) { /* xfs_attr3_leaf_create may not have instantiated a block */ if (bp && (xfs_da_shrink_inode(args, 0, bp) != 0)) goto out; xfs_idata_realloc(dp, size, XFS_ATTR_FORK); /* try to put */ memcpy(ifp-... | CVE-2018-13094 | {'CWE-476'} | 2.9 | {'https://github.com/torvalds/linux/commit/bb3d48dcf86a97dc25fe9fc2c11938e19cb4399a'} | nvd | An issue was discovered in fs/xfs/libxfs/xfs_attr_leaf.c in the Linux kernel through 4.17.3. An OOPS may occur for a corrupted xfs image after xfs_da_shrink_inode() is called with a NULL bp. | 2018-07-03 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/bb3d48dcf86a97dc25fe9fc2c11938e19cb4399a | bb3d48dcf86a97dc25fe9fc2c11938e19cb4399a | SINGLE | ['bb3d48dcf86a97dc25fe9fc2c11938e19cb4399a'] | {'9bb54cb56ae8498d35392745f8f050112cec5dcb'} | bb3d48dcf86a97dc25fe9fc2c11938e19cb4399a | 1 | 06/08/2018, 16:53:49 | xfs: don't call xfs_da_shrink_inode with NULL bp
xfs_attr3_leaf_create may have errored out before instantiating a buffer,
for example if the blkno is out of range. In that case there is no work
to do to remove it, and in fact xfs_da_shrink_inode will lead to an oops
if we try.
This also seems to fix a flaw where th... | Eric Sandeen | null | {'additions': 2, 'deletions': 3, 'total': 5} | [
{
"additions": 2,
"changes": 5,
"deletions": 3,
"patch": "@@ -791,9 +791,8 @@ xfs_attr_shortform_to_leaf(\n \tASSERT(blkno == 0);\n \terror = xfs_attr3_leaf_create(args, blkno, &bp);\n \tif (error) {\n-\t\terror = xfs_da_shrink_inode(args, 0, bp);\n-\t\tbp = NULL;\n-\t\tif (error)\n+\t\t/* xfs_attr3... | c | CWE-476 | [
"fs/xfs/libxfs/xfs_attr_leaf.c"
] | fs/xfs/libxfs/xfs_attr_leaf.c | 1 |
static int mpeg4_decode_gop_header(MpegEncContext *s, GetBitContext *gb) return 0; } static int mpeg4_decode_profile_level(MpegEncContext *s, GetBitContext *gb) { s->avctx->profile = get_bits(gb, 4); s->avctx->level = get_bits(gb, 4); // for Simple profile, level 0 if (s->avctx->profile == 0 &... | static int mpeg4_decode_gop_header(MpegEncContext *s, GetBitContext *gb) return 0; } static int mpeg4_decode_profile_level(MpegEncContext *s, GetBitContext *gb, int *profile, int *level) { *profile = get_bits(gb, 4); *level = get_bits(gb, 4); // for Simple profile, level 0 if (*profile == 0 &&... | CVE-2018-13301 | {'CWE-476'} | 2.9 | {'https://github.com/FFmpeg/FFmpeg/commit/2aa9047486dbff12d9e040f917e5f799ed2fd78b'} | nvd | In FFmpeg 4.0.1, due to a missing check of a profile value before setting it, the ff_mpeg4_decode_picture_header function in libavcodec/mpeg4videodec.c may trigger a NULL pointer dereference while converting a crafted AVI file to MPEG4, leading to a denial of service. | 2018-07-05 | 1 | https://github.com/FFmpeg/FFmpeg | https://github.com/FFmpeg/FFmpeg/commit/2aa9047486dbff12d9e040f917e5f799ed2fd78b | 2aa9047486dbff12d9e040f917e5f799ed2fd78b | SINGLE | ['2aa9047486dbff12d9e040f917e5f799ed2fd78b'] | {'95556e27e2c1d56d9e18f5db34d6f756f3011148'} | 2aa9047486dbff12d9e040f917e5f799ed2fd78b | 1 | 06/27/2018, 17:37:09 | avcodec/mpeg4videodec: Check read profile before setting it
Fixes: null pointer dereference
Fixes: ffmpeg_crash_7.avi
Found-by: Thuan Pham, Marcel Böhme, Andrew Santosa and Alexandru Razvan Caciulescu with AFLSmart
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> | Michael Niedermayer | {'com_1': {'author': 'thuanpv', 'datetime': '07/06/2018, 01:12:22', 'body': 'This is CVE-2018-13301'}} | {'additions': 15, 'deletions': 8, 'total': 23} | [
{
"additions": 15,
"changes": 23,
"deletions": 8,
"patch": "@@ -1980,15 +1980,15 @@ static int mpeg4_decode_gop_header(MpegEncContext *s, GetBitContext *gb)\n return 0;\n }\n \n-static int mpeg4_decode_profile_level(MpegEncContext *s, GetBitContext *gb)\n+static int mpeg4_decode_profile_level(Mp... | c | CWE-476 | [
"libavcodec/mpeg4videodec.c"
] | libavcodec/mpeg4videodec.c | 1 |
int avpriv_ac3_parse_header(AC3HeaderInfo **phdr, const uint8_t *buf, return AVERROR(ENOMEM); hdr = *phdr; init_get_bits8(&gb, buf, size); err = ff_ac3_parse_header(&gb, hdr); if (err < 0) return AVERROR_INVALIDDATA; | int avpriv_ac3_parse_header(AC3HeaderInfo **phdr, const uint8_t *buf, return AVERROR(ENOMEM); hdr = *phdr; err = init_get_bits8(&gb, buf, size); if (err < 0) return AVERROR_INVALIDDATA; err = ff_ac3_parse_header(&gb, hdr); if (err < 0) return AVERROR_INVALIDDATA; | CVE-2018-13303 | {'CWE-476'} | 2.9 | {'https://github.com/FFmpeg/FFmpeg/commit/00e8181bd97c834fe60751b0c511d4bb97875f78'} | nvd | In FFmpeg 4.0.1, a missing check for failure of a call to init_get_bits8() in the avpriv_ac3_parse_header function in libavcodec/ac3_parser.c may trigger a NULL pointer dereference while converting a crafted AVI file to MPEG4, leading to a denial of service. | 2018-07-05 | 1 | https://github.com/FFmpeg/FFmpeg | https://github.com/FFmpeg/FFmpeg/commit/00e8181bd97c834fe60751b0c511d4bb97875f78 | 00e8181bd97c834fe60751b0c511d4bb97875f78 | SINGLE | ['00e8181bd97c834fe60751b0c511d4bb97875f78'] | {'ed22dc22216f74c75ee7901f82649e1ff725ba50'} | 00e8181bd97c834fe60751b0c511d4bb97875f78 | 1 | 06/27/2018, 14:59:13 | avcodec/ac3_parser: Check init_get_bits8() for failure
Fixes: null pointer dereference
Fixes: ffmpeg_crash_6.avi
Found-by: Thuan Pham, Marcel Böhme, Andrew Santosa and Alexandru Razvan Caciulescu with AFLSmart
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> | Michael Niedermayer | {'com_1': {'author': 'thuanpv', 'datetime': '07/06/2018, 01:13:52', 'body': 'This is CVE-2018-13303'}} | {'additions': 3, 'deletions': 1, 'total': 4} | [
{
"additions": 3,
"changes": 4,
"deletions": 1,
"patch": "@@ -162,7 +162,9 @@ int avpriv_ac3_parse_header(AC3HeaderInfo **phdr, const uint8_t *buf,\n return AVERROR(ENOMEM);\n hdr = *phdr;\n \n- init_get_bits8(&gb, buf, size);\n+ err = init_get_bits8(&gb, buf, size);\n+ if (err ... | c | CWE-476 | [
"libavcodec/ac3_parser.c"
] | libavcodec/ac3_parser.c | 1 |
static void vc1_put_blocks_clamped(VC1Context *v, int put_signed) if ((edges&8) && \ s->mb_y == ((s->mb_height >> v->field_mode) - 1)) \ mquant = -v->altpq; \ if (!mquant || mquant > 31) { ... | static void vc1_put_blocks_clamped(VC1Context *v, int put_signed) if ((edges&8) && \ s->mb_y == ((s->mb_height >> v->field_mode) - 1)) \ mquant = -v->altpq; \ if (!mquant || mquant > 31 || mquant < -31) { ... | CVE-2018-13305 | {'CWE-125'} | 4.9 | {'https://github.com/FFmpeg/FFmpeg/commit/d08d4a8c7387e758d439b0592782e4cfa2b4d6a4'} | nvd | In FFmpeg 4.0.1, due to a missing check for negative values of the mquant variable, the vc1_put_blocks_clamped function in libavcodec/vc1_block.c may trigger an out-of-array access while converting a crafted AVI file to MPEG4, leading to an information disclosure or a denial of service. | 2018-07-05 | 1 | https://github.com/FFmpeg/FFmpeg | https://github.com/FFmpeg/FFmpeg/commit/d08d4a8c7387e758d439b0592782e4cfa2b4d6a4 | d08d4a8c7387e758d439b0592782e4cfa2b4d6a4 | SINGLE | ['d08d4a8c7387e758d439b0592782e4cfa2b4d6a4'] | {'5a99e00023c057555697c73b2119f378b019c5fa'} | d08d4a8c7387e758d439b0592782e4cfa2b4d6a4 | 1 | 06/28/2018, 21:46:32 | avcodec/vc1_block: Fix mqaunt check for negative values
Fixes: out of array access
Fixes: ffmpeg_bof_4.avi
Fixes: ffmpeg_bof_5.avi
Fixes: ffmpeg_bof_6.avi
Found-by: Thuan Pham, Marcel Böhme, Andrew Santosa and Alexandru Razvan Caciulescu with AFLSmart
Reviewed-by: Jerome Borsboom <jerome.borsboom@carpalis.nl>
Signed-... | Michael Niedermayer | {'com_1': {'author': 'thuanpv', 'datetime': '07/06/2018, 01:15:34', 'body': 'This is CVE-2018-13305'}, 'com_2': {'author': 'Mingli-Yu', 'datetime': '08/15/2018, 08:54:46', 'body': 'Per https://nvd.nist.gov/vuln/detail/CVE-2018-13305, this issue exists in the vc1_put_blocks_clamped function of libavcodec/vc1_block.c. Bu... | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -207,7 +207,7 @@ static void vc1_put_blocks_clamped(VC1Context *v, int put_signed)\n if ((edges&8) && \\\n s->mb_y == ((s->mb_height >> v->field_mode) - 1)) \\\n mquant... | c | CWE-125 | [
"libavcodec/vc1_block.c"
] | libavcodec/vc1_block.c | 1 |
static int uvesafb_setcmap(struct fb_cmap *cmap, struct fb_info *info) info->cmap.len || cmap->start < info->cmap.start) return -EINVAL; entries = kmalloc(sizeof(*entries) * cmap->len, GFP_KERNEL); if (!entries) return -ENOMEM; | static int uvesafb_setcmap(struct fb_cmap *cmap, struct fb_info *info) info->cmap.len || cmap->start < info->cmap.start) return -EINVAL; entries = kmalloc_array(cmap->len, sizeof(*entries), GFP_KERNEL); if (!entries) return -ENOMEM; | CVE-2018-13406 | {'CWE-190'} | 10 | {'https://github.com/torvalds/linux/commit/9f645bcc566a1e9f921bdae7528a01ced5bc3713'} | nvd | An integer overflow in the uvesafb_setcmap function in drivers/video/fbdev/uvesafb.c in the Linux kernel before 4.17.4 could result in local attackers being able to crash the kernel or potentially elevate privileges because kmalloc_array is not used. | 2018-07-06 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/9f645bcc566a1e9f921bdae7528a01ced5bc3713 | 9f645bcc566a1e9f921bdae7528a01ced5bc3713 | SINGLE | ['9f645bcc566a1e9f921bdae7528a01ced5bc3713'] | {'353748a359f1821ee934afc579cf04572406b420'} | 9f645bcc566a1e9f921bdae7528a01ced5bc3713 | 1 | 05/11/2018, 08:24:12 | video: uvesafb: Fix integer overflow in allocation
cmap->len can get close to INT_MAX/2, allowing for an integer overflow in
allocation. This uses kmalloc_array() instead to catch the condition.
Reported-by: Dr Silvio Cesare of InfoSect <silvio.cesare@gmail.com>
Fixes: 8bdb3a2d7df48 ("uvesafb: the driver core")
Cc: s... | Kees Cook | null | {'additions': 2, 'deletions': 1, 'total': 3} | [
{
"additions": 2,
"changes": 3,
"deletions": 1,
"patch": "@@ -1044,7 +1044,8 @@ static int uvesafb_setcmap(struct fb_cmap *cmap, struct fb_info *info)\n \t\t info->cmap.len || cmap->start < info->cmap.start)\n \t\t\treturn -EINVAL;\n \n-\t\tentries = kmalloc(sizeof(*entries) * cmap->len, GFP_KERN... | c | CWE-190 | [
"drivers/video/fbdev/uvesafb.c"
] | drivers/video/fbdev/uvesafb.c | 1 |
png_check_chunk_length(png_const_structrp png_ptr, const png_uint_32 length) { png_alloc_size_t idat_limit = PNG_UINT_31_MAX; size_t row_factor = (png_ptr->width * png_ptr->channels * (png_ptr->bit_depth > 8? 2: 1) + 1 + (png_ptr->interlaced? 6: 0)); if (png_ptr->height > PNG_UI... | png_check_chunk_length(png_const_structrp png_ptr, const png_uint_32 length) { png_alloc_size_t idat_limit = PNG_UINT_31_MAX; size_t row_factor = (size_t)png_ptr->width * (size_t)png_ptr->channels * (png_ptr->bit_depth > 8? 2: 1) + 1 + (png_ptr->interlaced? 6... | CVE-2018-13785 | {'CWE-190', 'CWE-369'} | 2.9 | {'https://github.com/glennrp/libpng/commit/8a05766cb74af05c04c53e6c9d60c13fc4d59bf2'} | nvd | In libpng 1.6.34, a wrong calculation of row_factor in the png_check_chunk_length function (pngrutil.c) may trigger an integer overflow and resultant divide-by-zero while processing a crafted PNG file, leading to a denial of service. | 2018-07-09 | 1 | https://github.com/glennrp/libpng | https://github.com/glennrp/libpng/commit/8a05766cb74af05c04c53e6c9d60c13fc4d59bf2 | 8a05766cb74af05c04c53e6c9d60c13fc4d59bf2 | SINGLE | ['8a05766cb74af05c04c53e6c9d60c13fc4d59bf2'] | {'a74aa9a0028a8e746ec5646a3d3ee1c659f0af8a'} | 8a05766cb74af05c04c53e6c9d60c13fc4d59bf2 | 1 | 06/18/2018, 02:56:29 | [libpng16] Fix the calculation of row_factor in png_check_chunk_length
(Bug report by Thuan Pham, SourceForge issue #278) | Cosmin Truta | {'com_1': {'author': 'dgutson', 'datetime': '07/12/2018, 13:42:24', 'body': 'You can still get a 0 with the following values:\r\n```c\r\npng_ptr->width = (size_t)-1;\r\npng_ptr->channels = 1;\r\npng_ptr->bit_depth = 1;\r\npng_ptr->interlaced = 0;\r\n```'}, 'com_2': {'author': 'dgutson', 'datetime': '07/12/2018, 13:43:0... | {'additions': 6, 'deletions': 3, 'total': 9} | [
{
"additions": 6,
"changes": 9,
"deletions": 3,
"patch": "@@ -3167,10 +3167,13 @@ png_check_chunk_length(png_const_structrp png_ptr, const png_uint_32 length)\n {\n png_alloc_size_t idat_limit = PNG_UINT_31_MAX;\n size_t row_factor =\n- (png_ptr->width * png_ptr->channels * (p... | c | CWE-369 | [
"pngrutil.c"
] | pngrutil.c | 1 |
png_check_chunk_length(png_const_structrp png_ptr, const png_uint_32 length) { png_alloc_size_t idat_limit = PNG_UINT_31_MAX; size_t row_factor = (png_ptr->width * png_ptr->channels * (png_ptr->bit_depth > 8? 2: 1) + 1 + (png_ptr->interlaced? 6: 0)); if (png_ptr->height > PNG_UI... | png_check_chunk_length(png_const_structrp png_ptr, const png_uint_32 length) { png_alloc_size_t idat_limit = PNG_UINT_31_MAX; size_t row_factor = (size_t)png_ptr->width * (size_t)png_ptr->channels * (png_ptr->bit_depth > 8? 2: 1) + 1 + (png_ptr->interlaced? 6... | CVE-2018-13785 | {'CWE-190', 'CWE-369'} | 2.9 | {'https://github.com/glennrp/libpng/commit/8a05766cb74af05c04c53e6c9d60c13fc4d59bf2'} | nvd | In libpng 1.6.34, a wrong calculation of row_factor in the png_check_chunk_length function (pngrutil.c) may trigger an integer overflow and resultant divide-by-zero while processing a crafted PNG file, leading to a denial of service. | 2018-07-09 | 1 | https://github.com/glennrp/libpng | https://github.com/glennrp/libpng/commit/8a05766cb74af05c04c53e6c9d60c13fc4d59bf2 | 8a05766cb74af05c04c53e6c9d60c13fc4d59bf2 | SINGLE | ['8a05766cb74af05c04c53e6c9d60c13fc4d59bf2'] | {'a74aa9a0028a8e746ec5646a3d3ee1c659f0af8a'} | 8a05766cb74af05c04c53e6c9d60c13fc4d59bf2 | 1 | 06/18/2018, 02:56:29 | [libpng16] Fix the calculation of row_factor in png_check_chunk_length
(Bug report by Thuan Pham, SourceForge issue #278) | Cosmin Truta | {'com_1': {'author': 'dgutson', 'datetime': '07/12/2018, 13:42:24', 'body': 'You can still get a 0 with the following values:\r\n```c\r\npng_ptr->width = (size_t)-1;\r\npng_ptr->channels = 1;\r\npng_ptr->bit_depth = 1;\r\npng_ptr->interlaced = 0;\r\n```'}, 'com_2': {'author': 'dgutson', 'datetime': '07/12/2018, 13:43:0... | {'additions': 6, 'deletions': 3, 'total': 9} | [
{
"additions": 6,
"changes": 9,
"deletions": 3,
"patch": "@@ -3167,10 +3167,13 @@ png_check_chunk_length(png_const_structrp png_ptr, const png_uint_32 length)\n {\n png_alloc_size_t idat_limit = PNG_UINT_31_MAX;\n size_t row_factor =\n- (png_ptr->width * png_ptr->channels * (p... | c | CWE-190 | [
"pngrutil.c"
] | pngrutil.c | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.