func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
xmlCopyEntity(void *payload, const xmlChar *name ATTRIBUTE_UNUSED) { xmlEntityPtr ent = (xmlEntityPtr) payload; xmlEntityPtr cur; cur = (xmlEntityPtr) xmlMalloc(sizeof(xmlEntity)); if (cur == NULL) { xmlEntitiesErrMemory("xmlCopyEntity:: malloc failed"); return(NULL); } memset(cur, 0, ...
0
[ "CWE-787" ]
libxml2
bf22713507fe1fc3a2c4b525cf0a88c2dc87a3a2
161,362,755,648,585,880,000,000,000,000,000,000,000
27
Validate UTF8 in xmlEncodeEntities Code is currently assuming UTF-8 without validating. Truncated UTF-8 input can cause out-of-bounds array access. Adds further checks to partial fix in 50f06b3e. Fixes #178
static void process_bin_delete(conn *c) { item *it; protocol_binary_request_delete* req = binary_get_request(c); char* key = binary_get_key(c); size_t nkey = c->binary_header.request.keylen; assert(c != NULL); if (settings.verbose > 1) { fprintf(stderr, "Deleting %s\n", key); } ...
0
[ "CWE-20" ]
memcached
d9cd01ede97f4145af9781d448c62a3318952719
323,845,869,480,912,440,000,000,000,000,000,000,000
33
Use strncmp when checking for large ascii multigets.
static uint32_t labdiff2(unsigned int b) { unsigned int r2, g2, b2; int32_t L1, A1, B1, L2, A2, B2; int64_t ld,ad,bd; r2 = (b>>16) & 0xff; g2 = (b>>8) & 0xff; b2 = b & 0xff; /* ref = 0x7f7f7f -> L*a*b ~ (53,0,0) */ L1 = 53*(1<<24); A1 = 0; B1 = 0; lab2(r2, g2, b2, &...
0
[ "CWE-189" ]
clamav-devel
3cbd8b5668bd0f262a8c00b1fd57eb03c117b00a
274,291,086,351,672,240,000,000,000,000,000,000,000
23
libclamav/pe_icons.c: introduce LOGPARSEICONDETAILS define to reduce parseicon logging in default build
fr_window_resume_batch (FrWindow *window) { fr_window_exec_current_batch_action (window); }
0
[ "CWE-22" ]
file-roller
b147281293a8307808475e102a14857055f81631
127,751,154,086,024,800,000,000,000,000,000,000,000
4
libarchive: sanitize filenames before extracting
command_process_create_cell(cell_t *cell, or_connection_t *conn) { or_circuit_t *circ; int id_is_high; if (we_are_hibernating()) { log_info(LD_OR, "Received create cell but we're shutting down. Sending back " "destroy."); connection_or_send_destroy(cell->circ_id, conn, ...
1
[ "CWE-264" ]
tor
a74e7fd40f1a77eb4000d8216bb5b80cdd8a6193
214,155,660,522,537,100,000,000,000,000,000,000,000
89
Reject create cells on outgoing OR connections from bridges
static void r_dyldcache_free(RDyldCache *cache) { if (!cache) { return; } r_list_free (cache->bins); cache->bins = NULL; r_buf_free (cache->buf); cache->buf = NULL; if (cache->rebase_infos) { int i; for (i = 0; i < cache->rebase_infos->length; i++) { rebase_info_free (cache->rebase_infos->entries[i].in...
0
[ "CWE-787" ]
radare2
c84b7232626badd075caf3ae29661b609164bac6
181,649,126,010,554,170,000,000,000,000,000,000,000
27
Fix heap buffer overflow in dyldcache parser ##crash * Reported by: Lazymio via huntr.dev * Reproducer: dyldovf
static uint8_t pulse_data(ic_stream *ics, pulse_info *pul, bitfile *ld) { uint8_t i; pul->number_pulse = (uint8_t)faad_getbits(ld, 2 DEBUGVAR(1,56,"pulse_data(): number_pulse")); pul->pulse_start_sfb = (uint8_t)faad_getbits(ld, 6 DEBUGVAR(1,57,"pulse_data(): pulse_start_sfb")); /* chec...
0
[ "CWE-119", "CWE-787" ]
faad2
942c3e0aee748ea6fe97cb2c1aa5893225316174
271,395,637,221,958,040,000,000,000,000,000,000,000
29
Fix a couple buffer overflows https://hackerone.com/reports/502816 https://hackerone.com/reports/507858 https://github.com/videolan/vlc/blob/master/contrib/src/faad2/faad2-fix-overflows.patch
PHPAPI zend_class_entry *php_date_get_timezone_ce(void) { return date_ce_timezone; }
0
[]
php-src
c377f1a715476934133f3254d1e0d4bf3743e2d2
13,408,802,876,998,657,000,000,000,000,000,000,000
4
Fix bug #68942 (Use after free vulnerability in unserialize() with DateTimeZone)
static int mr6_msgsize(bool unresolved, int maxvif) { size_t len = NLMSG_ALIGN(sizeof(struct rtmsg)) + nla_total_size(4) /* RTA_TABLE */ + nla_total_size(sizeof(struct in6_addr)) /* RTA_SRC */ + nla_total_size(sizeof(struct in6_addr)) /* RTA_DST */ ; if (!unresolved) len = len + nla_total_size(4)...
0
[ "CWE-20" ]
linux
99253eb750fda6a644d5188fb26c43bad8d5a745
67,666,023,073,893,920,000,000,000,000,000,000,000
20
ipv6: check sk sk_type and protocol early in ip_mroute_set/getsockopt Commit 5e1859fbcc3c ("ipv4: ipmr: various fixes and cleanups") fixed the issue for ipv4 ipmr: ip_mroute_setsockopt() & ip_mroute_getsockopt() should not access/set raw_sk(sk)->ipmr_table before making sure the socket is a raw socket, and prot...
static int ath10k_usb_hif_diag_write(struct ath10k *ar, u32 address, const void *data, int nbytes) { struct ath10k_usb *ar_usb = ath10k_usb_priv(ar); struct ath10k_usb_ctrl_diag_cmd_write *cmd; int ret; if (nbytes != sizeof(cmd->value)) return -EINVAL; cmd = (struct ath10k_usb_ctrl_diag_cmd_write *)ar...
0
[ "CWE-476" ]
linux
bfd6e6e6c5d2ee43a3d9902b36e01fc7527ebb27
177,431,695,481,615,820,000,000,000,000,000,000,000
26
ath10k: Fix a NULL-ptr-deref bug in ath10k_usb_alloc_urb_from_pipe The `ar_usb` field of `ath10k_usb_pipe_usb_pipe` objects are initialized to point to the containing `ath10k_usb` object according to endpoint descriptors read from the device side, as shown below in `ath10k_usb_setup_pipe_resources`: for (i = 0; i < i...
private void cvt_8(union VALUETYPE *p, const struct magic *m) { DO_CVT(b, (uint8_t));
0
[ "CWE-20" ]
php-src
74555e7c26b2c61bb8e67b7d6a6f4d2b8eb3a5f3
28,572,678,106,548,224,000,000,000,000,000,000,000
4
Fixed bug #64830 mimetype detection segfaults on mp3 file
TEST(InMatchExpression, InMatchExpressionsWithCollationNonEquivalentElementsAreUnequal) { BSONObj obj1 = BSON("" << "string1"); BSONObj obj2 = BSON("" << "string2"); CollatorInterfaceMock collator1(CollatorInterfaceMock::MockType::kReverseString); InMatchE...
0
[]
mongo
b0ef26c639112b50648a02d969298650fbd402a4
142,072,436,553,760,600,000,000,000,000,000,000,000
20
SERVER-51083 Reject invalid UTF-8 from $regex match expressions
do_stobj (VerifyContext *ctx, int token) { ILStackDesc *dest, *src; MonoType *type = get_boxable_mono_type (ctx, token, "stobj"); CLEAR_PREFIX (ctx, PREFIX_UNALIGNED | PREFIX_VOLATILE); if (!type) return; if (!check_underflow (ctx, 2)) return; src = stack_pop (ctx); dest = stack_pop (ctx); if (stack_sl...
0
[ "CWE-20" ]
mono
4905ef1130feb26c3150b28b97e4a96752e0d399
67,794,132,541,701,450,000,000,000,000,000,000,000
30
Handle invalid instantiation of generic methods. * verify.c: Add new function to internal verifier API to check method instantiations. * reflection.c (mono_reflection_bind_generic_method_parameters): Check the instantiation before returning it. Fixes #655847
static int bond_get_lowest_level_rcu(struct net_device *dev) { struct net_device *ldev, *next, *now, *dev_stack[MAX_NEST_DEV + 1]; struct list_head *niter, *iter, *iter_stack[MAX_NEST_DEV + 1]; int cur = 0, max = 0; now = dev; iter = &dev->adj_list.lower; while (1) { next = NULL; while (1) { ldev = netde...
0
[ "CWE-476", "CWE-703" ]
linux
105cd17a866017b45f3c45901b394c711c97bf40
81,599,369,790,909,670,000,000,000,000,000,000,000
38
bonding: fix null dereference in bond_ipsec_add_sa() If bond doesn't have real device, bond->curr_active_slave is null. But bond_ipsec_add_sa() dereferences bond->curr_active_slave without null checking. So, null-ptr-deref would occur. Test commands: ip link add bond0 type bond ip link set bond0 up ip x s...
static int ras_getcmap(jas_stream_t *in, ras_hdr_t *hdr, ras_cmap_t *cmap) { int i; int j; int x; int c; int numcolors; int actualnumcolors; switch (hdr->maptype) { case RAS_MT_NONE: break; case RAS_MT_EQUALRGB: { jas_eprintf("warning: palettized images not fully supported\n"); numcolors = 1 << hdr->d...
1
[]
jasper
411a4068f8c464e883358bf403a3e25158863823
77,139,927,390,352,360,000,000,000,000,000,000,000
54
Fixed a few bugs in the RAS encoder and decoder where errors were tested with assertions instead of being gracefully handled.
TEST(RoleGraphTest, DetectCycles) { RoleName roleA("roleA", "dbA"); RoleName roleB("roleB", "dbB"); RoleName roleC("roleC", "dbC"); RoleName roleD("roleD", "dbD"); RoleGraph graph; ASSERT_OK(graph.createRole(roleA)); ASSERT_OK(graph.createRole(roleB)); ASSERT_OK(graph.createRole(roleC))...
0
[ "CWE-863" ]
mongo
521e56b407ac72bc69a97a24d1253f51a5b6e81b
199,874,881,249,170,780,000,000,000,000,000,000,000
47
SERVER-45472 Ensure RoleGraph can serialize authentication restrictions to BSON
mark_fill_rect_add_nospots_common_no_alpha_g(int w, int h, byte *gs_restrict dst_ptr, byte *gs_restrict src, int num_comp, int num_spots, int first_blend_spot, byte src_alpha, int rowstride, int planestride, bool additive, pdf14_device *pdev, gs_blend_mode_t blend_mode, bool overprint, gx_...
0
[ "CWE-476" ]
ghostpdl
7870f4951bcc6a153f317e3439e14d0e929fd231
283,206,957,761,425,040,000,000,000,000,000,000,000
10
Bug 701795: Segv due to image mask issue
TEST(MatchHeadersTest, HeaderExactMatchInverse) { TestRequestHeaderMapImpl matching_headers{{"match-header", "other-value"}, {"other-header", "match-value"}}; TestRequestHeaderMapImpl unmatching_headers{{"match-header", "match-value"}}; const std::string yaml = R"EOF( ...
0
[]
envoy
2c60632d41555ec8b3d9ef5246242be637a2db0f
318,764,817,393,693,280,000,000,000,000,000,000,000
17
http: header map security fixes for duplicate headers (#197) Previously header matching did not match on all headers for non-inline headers. This patch changes the default behavior to always logically match on all headers. Multiple individual headers will be logically concatenated with ',' similar to what is done with...
Status QueryPlanner::tagAccordingToCache(MatchExpression* filter, const PlanCacheIndexTree* const indexTree, const map<IndexEntry::Identifier, size_t>& indexMap) { if (nullptr == filter) { return Status(ErrorCodes::NoQueryExec...
0
[ "CWE-755" ]
mongo
c8ced6df8f620daaa2e539f192f2eef356c63e9c
53,546,659,559,927,240,000,000,000,000,000,000,000
66
SERVER-47773 Error consistently when tailable cursors and $near are used together
static const char *get_index_name(const EnumNames names[], uint32_t index) { while (names->name != NULL && names->id != index) { names++; } return names->name; }
0
[]
spice
ca5bbc5692e052159bce1a75f55dc60b36078749
137,809,676,286,495,600,000,000,000,000,000,000,000
8
With OpenSSL 1.1: Disable client-initiated renegotiation. Fixes issue #49 Fixes BZ#1904459 Signed-off-by: Julien Ropé <jrope@redhat.com> Reported-by: BlackKD Acked-by: Frediano Ziglio <fziglio@redhat.com>
static void check_join_failure(IRC_SERVER_REC *server, const char *channel) { CHANNEL_REC *chanrec; char *chan2; if (channel[0] == '!' && channel[1] == '!') channel++; /* server didn't understand !channels */ chanrec = channel_find(SERVER(server), channel); if (chanrec == NULL && channel[0] == '!') { /* it p...
1
[ "CWE-416" ]
irssi
43e44d553d44e313003cee87e6ea5e24d68b84a1
255,502,649,414,764,230,000,000,000,000,000,000,000
22
Merge branch 'security' into 'master' Security Closes GL#12, GL#13, GL#14, GL#15, GL#16 See merge request irssi/irssi!23
Status _checkV1RolesArray(const BSONElement& rolesElement) { if (rolesElement.type() != Array) { return _badValue("Role fields must be an array when present in system.users entries"); } for (BSONObjIterator iter(rolesElement.embeddedObject()); iter.more(); iter.next()) { BSONElement element ...
0
[ "CWE-613" ]
mongo
db19e7ce84cfd702a4ba9983ee2ea5019f470f82
84,371,385,138,815,790,000,000,000,000,000,000,000
12
SERVER-38984 Validate unique User ID on UserCache hit (cherry picked from commit e55d6e2292e5dbe2f97153251d8193d1cc89f5d7)
static int handle_uid_request(struct ipa_extdom_ctx *ctx, enum request_types request_type, uid_t uid, const char *domain_name, struct berval **berval) { int ret; struct passwd pwd; char *sid_str = NULL; enum sss_id_type id_type; size_t buf_...
0
[ "CWE-19" ]
freeipa
c15a407cbfaed163a933ab137eed16387efe25d2
231,331,869,388,553,930,000,000,000,000,000,000,000
69
extdom: make nss buffer configurable The get*_r_wrapper() calls expect a maximum buffer size to avoid memory shortage if too many threads try to allocate buffers e.g. for large groups. With this patch this size can be configured by setting ipaExtdomMaxNssBufSize in the plugin config object cn=ipa_extdom_extop,cn=plugi...
add_server(struct manager_ctx *manager, struct server *server) { int ret = check_port(manager, server); if (ret == -1) { LOGE("port is not available, please check."); return -1; } bool new = false; cork_hash_table_put(server_table, (void *)server->port, (void *)server, &new, NULL, ...
0
[ "CWE-78", "CWE-787" ]
shadowsocks-libev
c67d275803dc6ea22c558d06b1f7ba9f94cd8de3
336,905,242,568,606,140,000,000,000,000,000,000,000
20
Fix #1734
njs_typed_array_prototype_join(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs, njs_index_t unused) { u_char *p; size_t size, length, arr_length; njs_int_t ret; njs_chb_t chain; njs_value_t *this, *separator; njs_typed_array_t *array; ...
0
[ "CWE-703" ]
njs
5c6130a2a0b4c41ab415f6b8992aa323636338b9
59,706,900,387,566,270,000,000,000,000,000,000,000
63
Fixed Array.prototype.fill() for typed-arrays. This closes #478 issue on Github.
QPDFWriter::setDeterministicID(bool val) { this->deterministic_id = val; }
0
[ "CWE-399", "CWE-835" ]
qpdf
8249a26d69f72b9cda584c14cc3f12769985e481
119,529,809,981,514,800,000,000,000,000,000,000,000
4
Fix infinite loop in QPDFWriter (fixes #143)
void gf_isom_ismacryp_delete_sample(GF_ISMASample *samp) { if (!samp) return; if (samp->data && samp->dataLength) gf_free(samp->data); if (samp->key_indicator) gf_free(samp->key_indicator); gf_free(samp); }
0
[ "CWE-476" ]
gpac
3b84ffcbacf144ce35650df958432f472b6483f8
197,286,740,461,525,980,000,000,000,000,000,000,000
7
fixed #1735
flatpak_bwrap_new (char **env) { FlatpakBwrap *bwrap = g_new0 (FlatpakBwrap, 1); bwrap->argv = g_ptr_array_new_with_free_func (g_free); bwrap->noinherit_fds = g_array_new (FALSE, TRUE, sizeof (int)); g_array_set_clear_func (bwrap->noinherit_fds, clear_fd); bwrap->fds = g_array_new (FALSE, TRUE, sizeof (int))...
0
[ "CWE-94", "CWE-74" ]
flatpak
6d1773d2a54dde9b099043f07a2094a4f1c2f486
238,592,788,089,454,830,000,000,000,000,000,000,000
17
run: Convert all environment variables into bwrap arguments This avoids some of them being filtered out by a setuid bwrap. It also means that if they came from an untrusted source, they cannot be used to inject arbitrary code into a non-setuid bwrap via mechanisms like LD_PRELOAD. Because they get bundled into a memf...
int btrfs_compare_trees(struct btrfs_root *left_root, struct btrfs_root *right_root, btrfs_changed_cb_t changed_cb, void *ctx) { int ret; int cmp; struct btrfs_path *left_path = NULL; struct btrfs_path *right_path = NULL; struct btrfs_key left_key; struct btrfs_key right_key; char *tmp_buf = NULL; int lef...
0
[ "CWE-416", "CWE-362" ]
linux
5f5bc6b1e2d5a6f827bc860ef2dc5b6f365d1339
50,517,912,399,758,550,000,000,000,000,000,000,000
242
Btrfs: make xattr replace operations atomic Replacing a xattr consists of doing a lookup for its existing value, delete the current value from the respective leaf, release the search path and then finally insert the new value. This leaves a time window where readers (getxattr, listxattrs) won't see any value for the x...
bson_iter_visit_all (bson_iter_t *iter, /* INOUT */ const bson_visitor_t *visitor, /* IN */ void *data) /* IN */ { uint32_t bson_type; const char *key; bool unsupported; BSON_ASSERT (iter); BSON_ASSERT (visitor); while (_bson_i...
0
[ "CWE-125" ]
libbson
42900956dc461dfe7fb91d93361d10737c1602b3
40,654,593,225,713,445,000,000,000,000,000,000,000
263
CDRIVER-2269 Check for zero string length in codewscope
pgm_print(netdissect_options *ndo, register const u_char *bp, register u_int length, register const u_char *bp2) { register const struct pgm_header *pgm; register const struct ip *ip; register char ch; uint16_t sport, dport; u_int nla_afnum; char nla_buf[INET6_ADDRSTRLEN]; register const stru...
1
[ "CWE-125", "CWE-787" ]
tcpdump
26a6799b9ca80508c05cac7a9a3bef922991520b
219,105,143,182,456,440,000,000,000,000,000,000,000
639
CVE-2017-13018/PGM: Add a missing bounds check. This fixes a buffer over-read discovered by Bhargava Shastry, SecT/TU Berlin. Add a test using the capture file supplied by the reporter(s), modified so the capture file won't be rejected as an invalid capture.
static inline unsigned int lpf_count_to_ns(unsigned int count) { /* Duration of the Low Pass Filter rejection window in ns */ return DIV_ROUND_CLOSEST(count * 1000, CX23888_IR_REFCLK_FREQ / 1000000); }
0
[ "CWE-400", "CWE-401" ]
linux
a7b2df76b42bdd026e3106cf2ba97db41345a177
322,671,765,426,492,630,000,000,000,000,000,000,000
6
media: rc: prevent memory leak in cx23888_ir_probe In cx23888_ir_probe if kfifo_alloc fails the allocated memory for state should be released. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
int dtls1_send_server_key_exchange(SSL *s) { #ifndef OPENSSL_NO_RSA unsigned char *q; int j, num; RSA *rsa; unsigned char md_buf[MD5_DIGEST_LENGTH + SHA_DIGEST_LENGTH]; unsigned int u; #endif #ifndef OPENSSL_NO_DH DH *dh = NULL, *dhp; #endif #ifndef OPENSSL_NO_ECDH EC_KEY *ecdh = NULL, *ecdh...
0
[ "CWE-399" ]
openssl
00a4c1421407b6ac796688871b0a49a179c694d9
324,238,744,445,328,470,000,000,000,000,000,000,000
427
Fix DTLS buffered message DoS attack DTLS can handle out of order record delivery. Additionally since handshake messages can be bigger than will fit into a single packet, the messages can be fragmented across multiple records (as with normal TLS). That means that the messages can arrive mixed up, and we have to reasse...
nfssvc_decode_renameargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd_renameargs *args) { if (!(p = decode_fh(p, &args->ffh)) || !(p = decode_filename(p, &args->fname, &args->flen)) || !(p = decode_fh(p, &args->tfh)) || !(p = decode_filename(p, &args->tname, &args->tlen))) return 0; return xdr_argsize...
0
[ "CWE-119", "CWE-703" ]
linux
13bf9fbff0e5e099e2b6f003a0ab8ae145436309
177,094,421,755,899,400,000,000,000,000,000,000,000
11
nfsd: stricter decoding of write-like NFSv2/v3 ops The NFSv2/v3 code does not systematically check whether we decode past the end of the buffer. This generally appears to be harmless, but there are a few places where we do arithmetic on the pointers involved and don't account for the possibility that a length could b...
copy_loclist(qf_list_T *from_qfl, qf_list_T *to_qfl) { // Some of the fields are populated by qf_add_entry() to_qfl->qfl_type = from_qfl->qfl_type; to_qfl->qf_nonevalid = from_qfl->qf_nonevalid; to_qfl->qf_count = 0; to_qfl->qf_index = 0; to_qfl->qf_start = NULL; to_qfl->qf_last = NULL; ...
0
[ "CWE-416" ]
vim
4f1b083be43f351bc107541e7b0c9655a5d2c0bb
317,603,081,472,461,940,000,000,000,000,000,000,000
47
patch 9.0.0322: crash when no errors and 'quickfixtextfunc' is set Problem: Crash when no errors and 'quickfixtextfunc' is set. Solution: Do not handle errors if there aren't any.
void sqlite3ExprSetHeightAndFlags(Parse *pParse, Expr *p){ if( pParse->nErr ) return; exprSetHeight(p); sqlite3ExprCheckHeight(pParse, p->nHeight); }
0
[ "CWE-476" ]
sqlite
57f7ece78410a8aae86aa4625fb7556897db384c
332,585,156,452,300,900,000,000,000,000,000,000,000
5
Fix a problem that comes up when using generated columns that evaluate to a constant in an index and then making use of that index in a join. FossilOrigin-Name: 8b12e95fec7ce6e0de82a04ca3dfcf1a8e62e233b7382aa28a8a9be6e862b1af
iwl_dump_ini_mon_dram_iter(struct iwl_fw_runtime *fwrt, struct iwl_fw_ini_region_cfg *reg, void *range_ptr, int idx) { struct iwl_fw_ini_error_dump_range *range = range_ptr; u32 start_addr = iwl_read_umac_prph(fwrt->trans, MON_BUFF_BASE_ADDR_VER2); if (start_addr == 0x5a5a5a5a) return -EBUSY;...
0
[ "CWE-400", "CWE-401" ]
linux
b4b814fec1a5a849383f7b3886b654a13abbda7d
311,249,924,855,037,570,000,000,000,000,000,000,000
19
iwlwifi: dbg_ini: fix memory leak in alloc_sgtable In alloc_sgtable if alloc_page fails, the alocated table should be released. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
int ssl3_check_cert_and_algorithm(SSL *s) { int i, idx; long alg_k, alg_a; EVP_PKEY *pkey = NULL; int pkey_bits; SESS_CERT *sc; #ifndef OPENSSL_NO_RSA RSA *rsa; #endif #ifndef OPENSSL_NO_DH DH *dh; #endif int al = SSL_AD_HANDSHAKE_FAILURE; alg_k = s->s3->tmp.new_cipher->algorithm_mk...
0
[]
openssl
d6be3124f22870f1888c532523b74ea5d89795eb
140,670,301,120,563,600,000,000,000,000,000,000,000
168
Fix PSK handling. The PSK identity hint should be stored in the SSL_SESSION structure and not in the parent context (which will overwrite values used by other SSL structures with the same SSL_CTX). Use BUF_strndup when copying identity as it may not be null terminated. Reviewed-by: Tim Hudson <tjh@openssl.org> (cher...
initialize_node_lattices (struct cgraph_node *node) { class ipa_node_params *info = IPA_NODE_REF (node); struct cgraph_edge *ie; bool disable = false, variable = false; int i; gcc_checking_assert (node->has_gimple_body_p ()); if (!ipa_get_param_count (info)) disable = true; else if (node->local) ...
0
[ "CWE-20" ]
gcc
a09ccc22459c565814f79f96586fe4ad083fe4eb
81,338,051,096,908,840,000,000,000,000,000,000,000
110
Avoid segfault when doing IPA-VRP but not IPA-CP (PR 93015) 2019-12-21 Martin Jambor <mjambor@suse.cz> PR ipa/93015 * ipa-cp.c (ipcp_store_vr_results): Check that info exists testsuite/ * gcc.dg/lto/pr93015_0.c: New test. From-SVN: r279695
NumberFormatTest::TestCurrencyIsoPluralFormat() { static const char* DATA[][6] = { // the data are: // locale, // currency amount to be formatted, // currency ISO code to be formatted, // format result using CURRENCYSTYLE, // format result using ISOCURRENCYSTYLE, ...
0
[ "CWE-190" ]
icu
53d8c8f3d181d87a6aa925b449b51c4a2c922a51
67,504,447,782,953,780,000,000,000,000,000,000,000
97
ICU-20246 Fixing another integer overflow in number parsing.
wired_get_icon (NMDevice *device, NMDeviceState state, NMConnection *connection, char **tip, NMApplet *applet) { NMSettingConnection *s_con; GdkPixbuf *pixbuf = NULL; const char *id; id = nm_device_get_iface (NM_DEVICE (device)); if (connection) { ...
0
[ "CWE-310" ]
network-manager-applet
4020594dfbf566f1852f0acb36ad631a9e73a82b
63,860,496,525,080,260,000,000,000,000,000,000,000
39
core: fix CA cert mishandling after cert file deletion (deb #560067) (rh #546793) If a connection was created with a CA certificate, but the user later moved or deleted that CA certificate, the applet would simply provide the connection to NetworkManager without any CA certificate. This could cause NM to connect to t...
static void pcd_req_sense(struct pcd_unit *cd, char *fun) { char rs_cmd[12] = { 0x03, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0 }; char buf[16]; int r, c; r = pcd_command(cd, rs_cmd, 16, "Request sense"); mdelay(1); if (!r) pcd_completion(cd, buf, "Request sense"); cd->last_sense = -1; c = 2; if (!r) { if (fun) ...
0
[ "CWE-476" ]
linux
f0d1762554014ce0ae347b9f0d088f2c157c8c72
277,799,056,912,192,040,000,000,000,000,000,000,000
24
paride/pcd: Fix potential NULL pointer dereference and mem leak Syzkaller report this: pcd: pcd version 1.07, major 46, nice 0 pcd0: Autoprobe failed pcd: No CD-ROM drive found kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] SMP...
PHP_FUNCTION(imagecolorclosesthwb) { zval *IM; zend_long red, green, blue; gdImagePtr im; if (zend_parse_parameters(ZEND_NUM_ARGS(), "rlll", &IM, &red, &green, &blue) == FAILURE) { return; } if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { RETURN_FALSE; } RETURN_LONG(gdI...
0
[ "CWE-787" ]
php-src
28022c9b1fd937436ab67bb3d61f652c108baf96
313,575,037,212,948,000,000,000,000,000,000,000,000
16
Fix bug#72697 - select_colors write out-of-bounds (cherry picked from commit b6f13a5ef9d6280cf984826a5de012a32c396cd4) Conflicts: ext/gd/gd.c
static UINT video_read_tsmm_presentation_req(VideoClientContext* context, wStream* s) { TSMM_PRESENTATION_REQUEST req; if (Stream_GetRemainingLength(s) < 60) { WLog_ERR(TAG, "not enough bytes for a TSMM_PRESENTATION_REQUEST"); return ERROR_INVALID_DATA; } Stream_Read_UINT8(s, req.PresentationId); Stream_Rea...
0
[ "CWE-190" ]
FreeRDP
06c32f170093a6ecde93e3bc07fed6a706bfbeb3
288,472,920,129,350,060,000,000,000,000,000,000,000
46
Fixed int overflow in PresentationContext_new Thanks to hac425 CVE-2020-11038
static irqreturn_t airo_interrupt(int irq, void *dev_id) { struct net_device *dev = dev_id; u16 status, savedInterrupts = 0; struct airo_info *ai = dev->ml_priv; int handled = 0; if (!netif_device_present(dev)) return IRQ_NONE; for (;;) { status = IN4500(ai, EVSTAT); if (!(status & STATUS_INTS) || (status...
0
[ "CWE-703", "CWE-264" ]
linux
550fd08c2cebad61c548def135f67aba284c6162
266,154,679,592,435,100,000,000,000,000,000,000,000
56
net: Audit drivers to identify those needing IFF_TX_SKB_SHARING cleared After the last patch, We are left in a state in which only drivers calling ether_setup have IFF_TX_SKB_SHARING set (we assume that drivers touching real hardware call ether_setup for their net_devices and don't hold any state in their skbs. There...
Status V2UserDocumentParser::checkValidUserDocument(const BSONObj& doc) const { BSONElement userElement = doc[AuthorizationManager::USER_NAME_FIELD_NAME]; BSONElement userDBElement = doc[AuthorizationManager::USER_DB_FIELD_NAME]; BSONElement credentialsElement = doc[CREDENTIALS_FIELD_NAME]; BSONElement ...
1
[ "CWE-613" ]
mongo
64d8e9e1b12d16b54d6a592bae8110226c491b4e
2,924,742,854,687,098,600,000,000,000,000,000,000
74
SERVER-38984 Validate unique User ID on UserCache hit (cherry picked from commit e55d6e2292e5dbe2f97153251d8193d1cc89f5d7)
int WavInFile::readHeaderBlock() { char label[5]; string sLabel; // lead label string if (fread(label, 1, 4, fptr) !=4) return -1; label[4] = 0; if (isAlphaStr(label) == 0) return -1; // not a valid label // Decode blocks according to their label if (strcmp(label, fmtSt...
0
[ "CWE-119" ]
soundtouch
46531e5b92dd80dd9a7947463d6224fc7cb21967
48,400,248,511,953,630,000,000,000,000,000,000,000
125
Improved WavFile header/fact not-too-small check
void PSOutputDev::drawImage(GfxState *state, Object *ref, Stream *str, int width, int height, GfxImageColorMap *colorMap, GBool interpolate, int *maskColors, GBool inlineImg) { int len; len = height * ((width * colorMap->getNumPixelComps() * colorMap->getBits() + 7) / 8); switch (level) { ca...
0
[]
poppler
abf167af8b15e5f3b510275ce619e6fdb42edd40
158,841,108,695,758,650,000,000,000,000,000,000,000
30
Implement tiling/patterns in SplashOutputDev Fixes bug 13518
camel_imapx_server_ref_idle_mailbox (CamelIMAPXServer *is) { CamelIMAPXMailbox *mailbox = NULL; g_return_val_if_fail (CAMEL_IS_IMAPX_SERVER (is), NULL); g_mutex_lock (&is->priv->idle_lock); if (is->priv->idle_state != IMAPX_IDLE_STATE_OFF) { if (is->priv->idle_mailbox) mailbox = g_object_ref (is->priv->idle...
0
[]
evolution-data-server
f26a6f672096790d0bbd76903db4c9a2e44f116b
73,887,302,830,543,750,000,000,000,000,000,000,000
19
[IMAPx] 'STARTTLS not supported' error ignored When a user has setup the STARTTLS encryption method, but the server doesn't support it, then an error should be shown to the user, instead of using unsecure connection. There had been two bugs in the existing code which prevented this error from being used and the failur...
static long btrfs_ioctl_ino_to_path(struct btrfs_root *root, void __user *arg) { int ret = 0; int i; u64 rel_ptr; int size; struct btrfs_ioctl_ino_path_args *ipa = NULL; struct inode_fs_paths *ipath = NULL; struct btrfs_path *path; if (!capable(CAP_SYS_ADMIN)) return -EPERM; path = btrfs_alloc_path(); if ...
0
[ "CWE-310" ]
linux-2.6
9c52057c698fb96f8f07e7a4bcf4801a092bda89
210,779,270,155,314,000,000,000,000,000,000,000,000
58
Btrfs: fix hash overflow handling The handling for directory crc hash overflows was fairly obscure, split_leaf returns EOVERFLOW when we try to extend the item and that is supposed to bubble up to userland. For a while it did so, but along the way we added better handling of errors and forced the FS readonly if we hi...
ZEND_VM_HANDLER(163, ZEND_FAST_RET, ANY, TRY_CATCH) { USE_OPLINE zval *fast_call = EX_VAR(opline->op1.var); uint32_t current_try_catch_offset, current_op_num; if (Z_OPLINE_NUM_P(fast_call) != (uint32_t)-1) { const zend_op *fast_ret = EX(func)->op_array.opcodes + Z_OPLINE_NUM_P(fast_call); ZEND_VM_JMP_EX(fast_...
0
[ "CWE-787" ]
php-src
f1ce8d5f5839cb2069ea37ff424fb96b8cd6932d
133,560,058,848,985,080,000,000,000,000,000,000,000
19
Fix #73122: Integer Overflow when concatenating strings We must avoid integer overflows in memory allocations, so we introduce an additional check in the VM, and bail out in the rare case of an overflow. Since the recent fix for bug #74960 still doesn't catch all possible overflows, we fix that right away.
int kvm_arch_vcpu_runnable(struct kvm_vcpu *v) { return !!v->arch.irq_lines || kvm_vgic_vcpu_pending_irq(v); }
0
[ "CWE-399", "CWE-284" ]
linux
e8180dcaa8470ceca21109f143876fdcd9fe050a
14,932,306,302,082,287,000,000,000,000,000,000,000
4
ARM: KVM: prevent NULL pointer dereferences with KVM VCPU ioctl Some ARM KVM VCPU ioctls require the vCPU to be properly initialized with the KVM_ARM_VCPU_INIT ioctl before being used with further requests. KVM_RUN checks whether this initialization has been done, but other ioctls do not. Namely KVM_GET_REG_LIST will ...
bool kvm_check_and_clear_guest_paused(void) { bool ret = false; struct pvclock_vcpu_time_info *src; int cpu = smp_processor_id(); if (!hv_clock) return ret; src = &hv_clock[cpu].pvti; if ((src->flags & PVCLOCK_GUEST_STOPPED) != 0) { src->flags &= ~PVCLOCK_GUEST_STOPPED; pvclock_touch_watchdogs(); ret = ...
0
[]
kvm
29fa6825463c97e5157284db80107d1bfac5d77b
87,895,476,467,382,310,000,000,000,000,000,000,000
18
x86, kvm: Clear paravirt_enabled on KVM guests for espfix32's benefit paravirt_enabled has the following effects: - Disables the F00F bug workaround warning. There is no F00F bug workaround any more because Linux's standard IDT handling already works around the F00F bug, but the warning still exists. This ...
size_t mg_dns_parse_rr(const uint8_t *buf, size_t len, size_t ofs, bool is_question, struct mg_dns_rr *rr) { const uint8_t *s = buf + ofs, *e = &buf[len]; memset(rr, 0, sizeof(*rr)); if (len < sizeof(struct mg_dns_header)) return 0; // Too small if (len > 512) return 0; // Too large, ...
0
[ "CWE-552" ]
mongoose
c65c8fdaaa257e0487ab0aaae9e8f6b439335945
152,831,301,077,616,050,000,000,000,000,000,000,000
23
Protect against the directory traversal in mg_upload()
static plist_t parse_bin_node(struct bplist_data *bplist, const char** object) { uint16_t type = 0; uint64_t size = 0; uint64_t pobject = 0; uint64_t poffset_table = (uint64_t)bplist->offset_table; if (!object) return NULL; type = (**object) & BPLIST_MASK; size = (**object) & BPLIS...
0
[ "CWE-190" ]
libplist
fdebf8b319b9280cd0e9b4382f2c7cbf26ef9325
77,520,327,815,781,540,000,000,000,000,000,000,000
153
bplist: Fix integer overflow check (offset table size)
static irqreturn_t dwc3_check_event_buf(struct dwc3_event_buffer *evt) { struct dwc3 *dwc = evt->dwc; u32 amount; u32 count; u32 reg; if (pm_runtime_suspended(dwc->dev)) { pm_runtime_get(dwc->dev); disable_irq_nosync(dwc->irq_gadget); dwc->pending_events = true; return IRQ_HANDLED; } /* * With PCIe l...
0
[ "CWE-703", "CWE-667", "CWE-189" ]
linux
c91815b596245fd7da349ecc43c8def670d2269e
131,858,987,899,315,030,000,000,000,000,000,000,000
46
usb: dwc3: gadget: never call ->complete() from ->ep_queue() This is a requirement which has always existed but, somehow, wasn't reflected in the documentation and problems weren't found until now when Tuba Yavuz found a possible deadlock happening between dwc3 and f_hid. She described the situation as follows: spin_...
hub_port_init(struct usb_hub *hub, struct usb_device *udev, int port1, int retry_counter) { struct usb_device *hdev = hub->hdev; struct usb_hcd *hcd = bus_to_hcd(hdev->bus); int i, j, retval; unsigned delay = HUB_SHORT_RESET_TIME; enum usb_device_speed oldspeed = udev->speed; const char *speed; int devn...
0
[ "CWE-703" ]
linux
e50293ef9775c5f1cf3fcc093037dd6a8c5684ea
152,842,035,427,795,140,000,000,000,000,000,000,000
304
USB: fix invalid memory access in hub_activate() Commit 8520f38099cc ("USB: change hub initialization sleeps to delayed_work") changed the hub_activate() routine to make part of it run in a workqueue. However, the commit failed to take a reference to the usb_hub structure or to lock the hub interface while doing so. ...
find_node_in_range(struct inode *inode, loff_t min, loff_t max) { struct rb_node *n = uprobes_tree.rb_node; while (n) { struct uprobe *u = rb_entry(n, struct uprobe, rb_node); if (inode < u->inode) { n = n->rb_left; } else if (inode > u->inode) { n = n->rb_right; } else { if (max < u->offset) n...
0
[ "CWE-416" ]
linux
355627f518978b5167256d27492fe0b343aaf2f2
250,434,175,927,724,340,000,000,000,000,000,000,000
23
mm, uprobes: fix multiple free of ->uprobes_state.xol_area Commit 7c051267931a ("mm, fork: make dup_mmap wait for mmap_sem for write killable") made it possible to kill a forking task while it is waiting to acquire its ->mmap_sem for write, in dup_mmap(). However, it was overlooked that this introduced an new error p...
stuffRedoReadbuff(char_u *s) { add_buff(&readbuf2, s, -1L); }
0
[ "CWE-78" ]
vim
53575521406739cf20bbe4e384d88e7dca11f040
608,818,938,756,094,900,000,000,000,000,000,000
4
patch 8.1.1365: source command doesn't check for the sandbox Problem: Source command doesn't check for the sandbox. (Armin Razmjou) Solution: Check for the sandbox when sourcing a file.
static unsigned readChunk_tRNS(LodePNGColorMode* color, const unsigned char* data, size_t chunkLength) { unsigned i; if(color->colortype == LCT_PALETTE) { /*error: more alpha values given than there are palette entries*/ if(chunkLength > color->palettesize) return 38; for(i = 0; i < chunkLength; i++)...
0
[ "CWE-401" ]
FreeRDP
9fee4ae076b1ec97b97efb79ece08d1dab4df29a
187,999,223,053,505,960,000,000,000,000,000,000,000
32
Fixed #5645: realloc return handling
static void _c2s_signal(int signum) { c2s_shutdown = 1; c2s_lost_router = 0; }
0
[ "CWE-287", "CWE-703" ]
jabberd2
8416ae54ecefa670534f27a31db71d048b9c7f16
334,126,458,316,696,930,000,000,000,000,000,000,000
5
Fixed offered SASL mechanism check
static int llcp_sock_release(struct socket *sock) { struct sock *sk = sock->sk; struct nfc_llcp_local *local; struct nfc_llcp_sock *llcp_sock = nfc_llcp_sock(sk); int err = 0; if (!sk) return 0; pr_debug("%p\n", sk); local = llcp_sock->local; if (local == NULL) { err = -ENODEV; goto out; } lock_sock...
0
[ "CWE-200" ]
linux
d26d6504f23e803824e8ebd14e52d4fc0a0b09cb
177,830,363,550,058,770,000,000,000,000,000,000,000
56
NFC: llcp: fix info leaks via msg_name in llcp_sock_recvmsg() The code in llcp_sock_recvmsg() does not initialize all the members of struct sockaddr_nfc_llcp when filling the sockaddr info. Nor does it initialize the padding bytes of the structure inserted by the compiler for alignment. Also, if the socket is in stat...
static void __init of_unittest_overlay_1(void) { /* device should disable */ if (of_unittest_apply_overlay_check(1, 1, 1, 0, PDEV_OVERLAY)) return; unittest(1, "overlay test %d passed\n", 1); }
0
[ "CWE-401" ]
linux
e13de8fe0d6a51341671bbe384826d527afe8d44
18,652,664,603,574,726,000,000,000,000,000,000,000
8
of: unittest: fix memory leak in unittest_data_add In unittest_data_add, a copy buffer is created via kmemdup. This buffer is leaked if of_fdt_unflatten_tree fails. The release for the unittest_data buffer is added. Fixes: b951f9dc7f25 ("Enabling OF selftest to run without machine's devicetree") Signed-off-by: Navid ...
static int ax25_rt_opt(struct ax25_route_opt_struct *rt_option) { ax25_route *ax25_rt; ax25_dev *ax25_dev; int err = 0; if ((ax25_dev = ax25_addr_ax25dev(&rt_option->port_addr)) == NULL) return -EINVAL; write_lock_bh(&ax25_route_lock); ax25_rt = ax25_route_list; while (ax25_rt != NULL) { if (ax25_rt->dev ...
0
[ "CWE-416" ]
linux
87563a043cef044fed5db7967a75741cc16ad2b1
84,503,673,639,770,110,000,000,000,000,000,000,000
41
ax25: fix reference count leaks of ax25_dev The previous commit d01ffb9eee4a ("ax25: add refcount in ax25_dev to avoid UAF bugs") introduces refcount into ax25_dev, but there are reference leak paths in ax25_ctl_ioctl(), ax25_fwd_ioctl(), ax25_rt_add(), ax25_rt_del() and ax25_rt_opt(). This patch uses ax25_dev_put() ...
static int r_cmd_java_handle_yara_code_extraction_refs (RCore *core, const char *input) { RAnal *anal = get_anal (core); RBinJavaObj *bin = anal ? (RBinJavaObj *) r_cmd_java_get_bin_obj (anal) : NULL; const char *p = input? r_cmd_java_consumetok (input, ' ', -1): NULL, *n = NULL; char *name = NULL; ut64 addr = -1,...
0
[ "CWE-703", "CWE-193" ]
radare2
ced0223c7a1b3b5344af315715cd28fe7c0d9ebc
175,855,830,762,699,240,000,000,000,000,000,000,000
51
Fix unmatched array length in core_java.c (issue #16304) (#16313)
static uint8_t spectral_data(NeAACDecStruct *hDecoder, ic_stream *ics, bitfile *ld, int16_t *spectral_data) { int8_t i; uint8_t g; uint16_t inc, k, p = 0; uint8_t groups = 0; uint8_t sect_cb; uint8_t result; uint16_t nshort = hDecoder->frameLength/8; #ifdef PROF...
0
[ "CWE-119", "CWE-787" ]
faad2
942c3e0aee748ea6fe97cb2c1aa5893225316174
227,972,670,891,115,940,000,000,000,000,000,000,000
81
Fix a couple buffer overflows https://hackerone.com/reports/502816 https://hackerone.com/reports/507858 https://github.com/videolan/vlc/blob/master/contrib/src/faad2/faad2-fix-overflows.patch
JBIG2SegmentType getType() override { return jbig2SegBitmap; }
0
[ "CWE-476", "CWE-190" ]
poppler
27354e9d9696ee2bc063910a6c9a6b27c5184a52
94,394,124,145,829,950,000,000,000,000,000,000,000
1
JBIG2Stream: Fix crash on broken file https://github.com/jeffssh/CVE-2021-30860 Thanks to David Warren for the heads up
e_enum_from_string (GType enum_type, const gchar *string, gint *enum_value) { GEnumClass *enum_class; GEnumValue *ev; gchar *endptr; gint value; gboolean retval = TRUE; g_return_val_if_fail (G_TYPE_IS_ENUM (enum_type), FALSE); g_return_val_if_fail (string != NULL, FALSE);...
0
[ "CWE-295" ]
evolution-data-server
6672b8236139bd6ef41ecb915f4c72e2a052dba5
90,702,598,239,099,980,000,000,000,000,000,000,000
33
Let child source with 'none' authentication method use collection source authentication That might be the same as having set NULL authentication method. Related to https://gitlab.gnome.org/GNOME/evolution-ews/issues/27
static void Ins_DUP( INS_ARG ) { (void)exc; args[1] = args[0]; }
0
[ "CWE-125" ]
ghostpdl
c7c55972758a93350882c32147801a3485b010fe
24,994,666,630,747,873,000,000,000,000,000,000,000
4
Bug 698024: bounds check zone pointer in Ins_MIRP()
void CLASS adobe_copy_pixel (unsigned row, unsigned col, ushort **rp) { int c; if (is_raw == 2 && shot_select) (*rp)++; if (raw_image) { if (row < raw_height && col < raw_width) RAW(row,col) = curve[**rp]; *rp += is_raw; } else { if (row < height && col < width) FORC(tiff_samples) imag...
0
[ "CWE-703" ]
LibRaw
11909cc59e712e09b508dda729b99aeaac2b29ad
57,993,235,129,056,240,000,000,000,000,000,000,000
17
cumulated data checks patch
static int i40e_config_rss_reg(struct i40e_vsi *vsi, const u8 *seed, const u8 *lut, u16 lut_size) { struct i40e_pf *pf = vsi->back; struct i40e_hw *hw = &pf->hw; u16 vf_id = vsi->vf_id; u8 i; /* Fill out hash function seed */ if (seed) { u32 *seed_dw = (u32 *)seed; if (vsi->type == I40E_VSI_MAIN) ...
0
[ "CWE-400", "CWE-401" ]
linux
27d461333459d282ffa4a2bdb6b215a59d493a8f
100,852,228,047,725,780,000,000,000,000,000,000,000
44
i40e: prevent memory leak in i40e_setup_macvlans In i40e_setup_macvlans if i40e_setup_channel fails the allocated memory for ch should be released. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
camel_imapx_server_create_mailbox_sync (CamelIMAPXServer *is, const gchar *mailbox_name, GCancellable *cancellable, GError **error) { CamelIMAPXCommand *ic; gboolean success; g_return_val_if_fail (CAMEL_IS_IMAPX_SERVER (is), FALSE); g_return_val_if_fail (mailbox_name != NULL, FALSE); ic = camel_im...
0
[ "CWE-476" ]
evolution-data-server
2cc39592b532cf0dc994fd3694b8e6bf924c9ab5
28,855,524,757,393,600,000,000,000,000,000,000,000
27
I#189 - Crash on malformed server response with minimal capabilities Closes https://gitlab.gnome.org/GNOME/evolution-data-server/issues/189
u_int16_t ndpi_get_api_version() { return(NDPI_API_VERSION); }
0
[ "CWE-416", "CWE-787" ]
nDPI
6a9f5e4f7c3fd5ddab3e6727b071904d76773952
86,345,112,133,411,970,000,000,000,000,000,000,000
3
Fixed use after free caused by dangling pointer * This fix also improved RCE Injection detection Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
yang_check_deviate(struct lys_module *module, struct unres_schema *unres, struct lys_deviate *deviate, struct lys_node *dev_target, struct ly_set *dflt_check) { struct lys_node_leaflist *llist; struct lys_type *type; struct lys_tpdf *tmp_parent; int i, j; if (yang_check_ext_insta...
0
[ "CWE-415" ]
libyang
d9feacc4a590d35dbc1af21caf9080008b4450ed
219,143,005,053,331,300,000,000,000,000,000,000,000
95
yang parser BUGFIX double free Fixes #742
virDomainChannelDefCheckABIStability(virDomainChrDefPtr src, virDomainChrDefPtr dst) { if (src->targetType != dst->targetType) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, _("Target channel type %s does not match source %s"), ...
0
[ "CWE-212" ]
libvirt
a5b064bf4b17a9884d7d361733737fb614ad8979
91,716,937,993,020,290,000,000,000,000,000,000,000
49
conf: Don't format http cookies unless VIR_DOMAIN_DEF_FORMAT_SECURE is used Starting with 3b076391befc3fe72deb0c244ac6c2b4c100b410 (v6.1.0-122-g3b076391be) we support http cookies. Since they may contain somewhat sensitive information we should not format them into the XML unless VIR_DOMAIN_DEF_FORMAT_SECURE is assert...
sc_oberthur_parse_publicinfo (struct sc_pkcs15_card *p15card, unsigned char *buff, size_t len, int postpone_allowed) { struct sc_context *ctx = p15card->card->ctx; size_t ii; int rv; LOG_FUNC_CALLED(ctx); for (ii=0; ii+5<=len; ii+=5) { unsigned int file_id, size; if(*(buff+ii) != 0xFF) continue; fi...
0
[]
OpenSC
05648b0604bf3e498e8d42dff3c6e7c56a5bf749
286,263,490,323,080,700,000,000,000,000,000,000,000
40
oberthur: fixed Heap-buffer-overflow fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32149
static void test_discard_comment(void) { const char *string = "#foo\\\n"; const char *comment; size_t n_comment; comment = string; n_comment = strlen(comment); c_shquote_discard_comment(&comment, &n_comment); c_assert(n_comment == 1); c_assert(comment == ...
0
[ "CWE-787" ]
c-shquote
7fd15f8e272136955f7ffc37df29fbca9ddceca1
18,955,252,163,095,367,000,000,000,000,000,000,000
17
strnspn: fix buffer overflow Fix the strnspn and strncspn functions to use a properly sized buffer. It used to be 1 byte too short. Checking for `0xff` in a string will thus write `0xff` once byte beyond the stack space of the local buffer. Note that the public API does not allow to pass `0xff` to those functions. Th...
SdMmcHcRwMmio ( IN EFI_PCI_IO_PROTOCOL *PciIo, IN UINT8 BarIndex, IN UINT32 Offset, IN BOOLEAN Read, IN UINT8 Count, IN OUT VOID *Data ) { EFI_STATUS Status; EFI_PCI_IO_PROTO...
0
[]
edk2
e36d5ac7d10a6ff5becb0f52fdfd69a1752b0d14
82,006,456,691,918,790,000,000,000,000,000,000,000
58
MdeModulePkg/SdMmcPciHcDxe: Fix double PciIo Unmap in TRB creation (CVE-2019-14587) REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1989 The commit will avoid unmapping the same resource in error handling logic for function BuildAdmaDescTable() and SdMmcCreateTrb(). For the error handling in BuildAdmaDescTable():...
irc_server_sasl_enabled (struct t_irc_server *server) { int sasl_mechanism, rc; char *sasl_username, *sasl_password; const char *sasl_key; sasl_mechanism = IRC_SERVER_OPTION_INTEGER( server, IRC_SERVER_OPTION_SASL_MECHANISM); sasl_username = irc_server_eval_expression ( server, ...
0
[ "CWE-120", "CWE-787" ]
weechat
40ccacb4330a64802b1f1e28ed9a6b6d3ca9197f
148,353,525,305,982,960,000,000,000,000,000,000,000
36
irc: fix crash when a new message 005 is received with longer nick prefixes Thanks to Stuart Nevans Locke for reporting the issue.
static ut64 dex_get_type_offset(RBinFile *arch, int type_idx) { RBinDexObj *bin = (RBinDexObj*) arch->o->bin_obj; if (!bin || !bin->types) { return 0; } if (type_idx < 0 || type_idx >= bin->header.types_size) { return 0; } return bin->header.types_offset + type_idx * 0x04; //&bin->types[type_idx]; }
0
[ "CWE-125" ]
radare2
ead645853a63bf83d8386702cad0cf23b31d7eeb
4,832,701,248,705,572,000,000,000,000,000,000,000
10
fix #6857
static int test_if_case_insensitive(const char *dir_name) { int result= 0; File file; char buff[FN_REFLEN], buff2[FN_REFLEN]; MY_STAT stat_info; DBUG_ENTER("test_if_case_insensitive"); fn_format(buff, glob_hostname, dir_name, ".lower-test", MY_UNPACK_FILENAME | MY_REPLACE_EXT | MY_REPLACE_DIR); fn_f...
0
[ "CWE-264" ]
mysql-server
48bd8b16fe382be302c6f0b45931be5aa6f29a0e
97,446,097,266,447,000,000,000,000,000,000,000,000
26
Bug#24388753: PRIVILEGE ESCALATION USING MYSQLD_SAFE [This is the 5.5/5.6 version of the bugfix]. The problem was that it was possible to write log files ending in .ini/.cnf that later could be parsed as an options file. This made it possible for users to specify startup options without the permissions to do so. Thi...
void mpol_rebind_mm(struct mm_struct *mm, nodemask_t *new) { struct vm_area_struct *vma; down_write(&mm->mmap_sem); for (vma = mm->mmap; vma; vma = vma->vm_next) mpol_rebind_policy(vma->vm_policy, new); up_write(&mm->mmap_sem); }
0
[ "CWE-416" ]
linux
73223e4e2e3867ebf033a5a8eb2e5df0158ccc99
192,565,344,377,833,380,000,000,000,000,000,000,000
9
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 ...
clear_subnet(Subnet *subnet) { int i; for (i=0; i<TABLE_SIZE; i++) { subnet->entry[i] = NULL; } }
0
[]
chrony
8f72155b438494e6d8e9e75920c36fd88d90f5b2
70,727,670,878,668,140,000,000,000,000,000,000,000
8
Multiply clientlog node table size when reallocating
static void scsi_destroy(SCSIDevice *dev) { SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, dev); scsi_device_purge_requests(&s->qdev, SENSE_CODE(NO_SENSE)); blockdev_mark_auto_del(s->qdev.conf.bs); }
0
[ "CWE-119", "CWE-787" ]
qemu
103b40f51e4012b3b0ad20f615562a1806d7f49a
101,943,931,741,676,960,000,000,000,000,000,000,000
7
scsi-disk: commonize iovec creation between reads and writes Also, consistently use qiov.size instead of iov.iov_len. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
static __init int mcheck_init_device(void) { int err; if (!mce_available(&boot_cpu_data)) { err = -EIO; goto err_out; } if (!zalloc_cpumask_var(&mce_device_initialized, GFP_KERNEL)) { err = -ENOMEM; goto err_out; } mce_init_banks(); err = subsys_system_register(&mce_subsys, NULL); if (err) goto er...
0
[ "CWE-362" ]
linux
b3b7c4795ccab5be71f080774c45bbbcc75c2aaf
270,716,082,094,517,800,000,000,000,000,000,000,000
45
x86/MCE: Serialize sysfs changes The check_interval file in /sys/devices/system/machinecheck/machinecheck<cpu number> directory is a global timer value for MCE polling. If it is changed by one CPU, mce_restart() broadcasts the event to other CPUs to delete and restart the MCE polling timer and __mcheck_cpu_init_ti...
static bool __io_cqring_overflow_flush(struct io_ring_ctx *ctx, bool force) { unsigned long flags; bool all_flushed, posted; if (!force && __io_cqring_events(ctx) == ctx->cq_entries) return false; posted = false; spin_lock_irqsave(&ctx->completion_lock, flags); while (!list_empty(&ctx->cq_overflow_list)) { ...
0
[ "CWE-125" ]
linux
89c2b3b74918200e46699338d7bcc19b1ea12110
164,528,561,409,737,600,000,000,000,000,000,000,000
41
io_uring: reexpand under-reexpanded iters [ 74.211232] BUG: KASAN: stack-out-of-bounds in iov_iter_revert+0x809/0x900 [ 74.212778] Read of size 8 at addr ffff888025dc78b8 by task syz-executor.0/828 [ 74.214756] CPU: 0 PID: 828 Comm: syz-executor.0 Not tainted 5.14.0-rc3-next-20210730 #1 [ 74.216525] Hardware n...
bool has_errors() { return is_grave; }
0
[]
mysql-server
25d1b7e03b9b375a243fabdf0556c063c7282361
115,828,342,662,829,900,000,000,000,000,000,000,000
1
Bug #22722946: integer overflow may lead to wrong results in get_56_lenc_string
RGWOp *RGWHandler_REST_Bucket_SWIFT::op_head() { return get_obj_op(false); }
0
[ "CWE-617" ]
ceph
f44a8ae8aa27ecef69528db9aec220f12492810e
88,689,066,606,298,840,000,000,000,000,000,000,000
4
rgw: RGWSwiftWebsiteHandler::is_web_dir checks empty subdir_name checking for empty name avoids later assertion in RGWObjectCtx::set_atomic Fixes: CVE-2021-3531 Reviewed-by: Casey Bodley <cbodley@redhat.com> Signed-off-by: Casey Bodley <cbodley@redhat.com> (cherry picked from commit 7196a469b4470f3c8628489df9a41ec8b...
static xmlNodePtr to_xml_gyearmonth(encodeTypePtr type, zval *data, int style, xmlNodePtr parent TSRMLS_DC) { return to_xml_datetime_ex(type, data, "%Y-%m", style, parent TSRMLS_CC); }
0
[ "CWE-19" ]
php-src
c8eaca013a3922e8383def6158ece2b63f6ec483
198,495,931,235,942,100,000,000,000,000,000,000,000
4
Added type checks
static struct sctp_af *sctp_sockaddr_af(struct sctp_sock *opt, union sctp_addr *addr, int len) { struct sctp_af *af; /* Check minimum size. */ if (len < sizeof (struct sockaddr)) return NULL; /* Does this PF support this AF? */ if (!opt->pf->af_supported(addr->sa.sa_family, opt)) return NULL; /* If w...
0
[ "CWE-476" ]
linux
ea2bc483ff5caada7c4aa0d5fbf87d3a6590273d
53,573,441,833,254,850,000,000,000,000,000,000,000
21
[SCTP]: Fix assertion (!atomic_read(&sk->sk_rmem_alloc)) failed message In current implementation, LKSCTP does receive buffer accounting for data in sctp_receive_queue and pd_lobby. However, LKSCTP don't do accounting for data in frag_list when data is fragmented. In addition, LKSCTP doesn't do accounting for data in ...
bool CZNC::LoadUsers(CConfig& config, CString& sError) { sError.clear(); m_msUsers.clear(); CConfig::SubConfig subConf; config.FindSubConfig("user", subConf); for (const auto& subIt : subConf) { const CString& sUserName = subIt.first; CConfig* pSubConf = subIt.second.m_pSubConfig;...
0
[ "CWE-20" ]
znc
64613bc8b6b4adf1e32231f9844d99cd512b8973
316,698,853,207,937,800,000,000,000,000,000,000,000
57
Don't crash if user specified invalid encoding. This is CVE-2019-9917
static int r_core_cmd_subst(RCore *core, char *cmd) { ut64 rep = strtoull (cmd, NULL, 10); int ret = 0, orep; char *cmt, *colon = NULL, *icmd = NULL; bool tmpseek = false; bool original_tmpseek = core->tmpseek; if (r_str_startswith (cmd, "GET /cmd/")) { memmove (cmd, cmd + 9, strlen (cmd + 9) + 1); char *htt...
0
[ "CWE-78" ]
radare2
dd739f5a45b3af3d1f65f00fe19af1dbfec7aea7
176,294,265,891,612,700,000,000,000,000,000,000,000
144
Fix #14990 - multiple quoted command parsing issue ##core > "?e hello""?e world" hello world" > "?e hello";"?e world" hello world
void Curl_ssl_free_certinfo(struct Curl_easy *data) { struct curl_certinfo *ci = &data->info.certs; if(ci->num_of_certs) { /* free all individual lists used */ int i; for(i = 0; i<ci->num_of_certs; i++) { curl_slist_free_all(ci->certinfo[i]); ci->certinfo[i] = NULL; } free(ci->cert...
0
[ "CWE-290" ]
curl
b09c8ee15771c614c4bf3ddac893cdb12187c844
277,141,107,957,810,320,000,000,000,000,000,000,000
17
vtls: add 'isproxy' argument to Curl_ssl_get/addsessionid() To make sure we set and extract the correct session. Reported-by: Mingtao Yang Bug: https://curl.se/docs/CVE-2021-22890.html CVE-2021-22890
xsltFreeCompMatchList(xsltCompMatchPtr comp) { xsltCompMatchPtr cur; while (comp != NULL) { cur = comp; comp = comp->next; xsltFreeCompMatch(cur); } }
0
[ "CWE-125" ]
libxslt
fe5a4fa33eb85bce3253ed3742b1ea6c4b59b41b
177,999,361,088,042,170,000,000,000,000,000,000,000
9
Fix some case of pattern parsing errors We could accidentally hit an off by one string array access due to improper loop exit when parsing patterns
static uint32_t vga_ioport_read(void *opaque, uint32_t addr) { CirrusVGAState *s = opaque; int val, index; /* check port range access depending on color/monochrome mode */ if ((addr >= 0x3b0 && addr <= 0x3bf && (s->msr & MSR_COLOR_EMULATION)) || (addr >= 0x3d0 && addr <= 0x3df && !(s->msr & MSR_C...
0
[ "CWE-787" ]
qemu
65d35a09979e63541afc5bfc595b9f1b1b4ae069
186,182,670,765,655,650,000,000,000,000,000,000,000
105
CVE-2008-4539: fix a heap overflow in Cirrus emulation The code in hw/cirrus_vga.c has changed a lot between CVE-2007-1320 has been announced and the patch has been applied. As a consequence it has wrongly applied and QEMU is still vulnerable to this bug if using VNC. (noticed by Jan Niehusmann) Signed-off-by: Aurel...
static int tg3_get_rxfh_indir(struct net_device *dev, u32 *indir) { struct tg3 *tp = netdev_priv(dev); int i; for (i = 0; i < TG3_RSS_INDIR_TBL_SIZE; i++) indir[i] = tp->rss_ind_tbl[i]; return 0; }
0
[ "CWE-476", "CWE-119" ]
linux
715230a44310a8cf66fbfb5a46f9a62a9b2de424
237,469,182,470,177,350,000,000,000,000,000,000,000
10
tg3: fix length overflow in VPD firmware parsing Commit 184b89044fb6e2a74611dafa69b1dce0d98612c6 ("tg3: Use VPD fw version when present") introduced VPD parsing that contained a potential length overflow. Limit the hardware's reported firmware string length (max 255 bytes) to stay inside the driver's firmware string ...
ring_buffer_read_start(struct ring_buffer_iter *iter) { struct ring_buffer_per_cpu *cpu_buffer; unsigned long flags; if (!iter) return; cpu_buffer = iter->cpu_buffer; raw_spin_lock_irqsave(&cpu_buffer->reader_lock, flags); arch_spin_lock(&cpu_buffer->lock); rb_iter_reset(iter); arch_spin_unlock(&cpu_buffer...
0
[ "CWE-190" ]
linux-stable
59643d1535eb220668692a5359de22545af579f6
80,139,128,123,184,895,000,000,000,000,000,000,000
16
ring-buffer: Prevent overflow of size in ring_buffer_resize() If the size passed to ring_buffer_resize() is greater than MAX_LONG - BUF_PAGE_SIZE then the DIV_ROUND_UP() will return zero. Here's the details: # echo 18014398509481980 > /sys/kernel/debug/tracing/buffer_size_kb tracing_entries_write() processes this...
unsigned long unmap_vmas(struct mmu_gather *tlb, struct vm_area_struct *vma, unsigned long start_addr, unsigned long end_addr, unsigned long *nr_accounted, struct zap_details *details) { unsigned long start = start_addr; struct mm_struct *mm = vma->vm_mm; mmu_notifier_invalidate_range_start(mm, start_addr, en...
0
[ "CWE-264" ]
linux-2.6
1a5a9906d4e8d1976b701f889d8f35d54b928f25
39,655,440,282,229,660,000,000,000,000,000,000,000
50
mm: thp: fix pmd_bad() triggering in code paths holding mmap_sem read mode In some cases it may happen that pmd_none_or_clear_bad() is called with the mmap_sem hold in read mode. In those cases the huge page faults can allocate hugepmds under pmd_none_or_clear_bad() and that can trigger a false positive from pmd_bad(...
nm_utils_get_testing() { NMUtilsTestFlags flags; again: flags = (NMUtilsTestFlags) _nm_utils_testing; if (flags != NM_UTILS_TEST_NONE) { /* Flags already initialized. Return them. */ return flags & NM_UTILS_TEST_ALL; } /* Accessing nm_utils_get_testing() causes us to set the flags ...
0
[ "CWE-20" ]
NetworkManager
420784e342da4883f6debdfe10cde68507b10d27
28,461,070,751,466,710,000,000,000,000,000,000,000
23
core: fix crash in nm_wildcard_match_check() It's not entirely clear how to treat %NULL. Clearly "match.interface-name=eth0" should not match with an interface %NULL. But what about "match.interface-name=!eth0"? It's now implemented that negative matches still succeed against %NULL. What about "match.interface-name=*"...
void LibRaw::exp_bef(float shift, float smooth) { // params limits if(shift>8) shift = 8; if(shift<0.25) shift = 0.25; if(smooth < 0.0) smooth = 0.0; if(smooth > 1.0) smooth = 1.0; unsigned short *lut = (ushort*)malloc((TBLN+1)*sizeof(unsigned short)); if(shift <=1.0) { for(int i=0;i<=TBLN;i++...
0
[ "CWE-129" ]
LibRaw
89d065424f09b788f443734d44857289489ca9e2
246,262,093,365,823,920,000,000,000,000,000,000,000
55
fixed two more problems found by fuzzer