func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
x_catch_alloc(Display * dpy, XErrorEvent * err) { if (err->error_code == BadAlloc) x_error_handler.alloc_error = True; if (x_error_handler.alloc_error) return 0; return x_error_handler.oldhandler(dpy, err); }
0
[]
ghostpdl
c432131c3fdb2143e148e8ba88555f7f7a63b25e
201,829,505,655,218,300,000,000,000,000,000,000,000
8
Bug 699661: Avoid sharing pointers between pdf14 compositors If a copdevice is triggered when the pdf14 compositor is the device, we make a copy of the device, then throw an error because, by default we're only allowed to copy the device prototype - then freeing it calls the finalize, which frees several pointers shar...
static void perf_sched_delayed(struct work_struct *work) { mutex_lock(&perf_sched_mutex); if (atomic_dec_and_test(&perf_sched_count)) static_branch_disable(&perf_sched_events); mutex_unlock(&perf_sched_mutex); }
0
[ "CWE-362", "CWE-125" ]
linux
321027c1fe77f892f4ea07846aeae08cefbbb290
198,378,232,153,814,380,000,000,000,000,000,000,000
7
perf/core: Fix concurrent sys_perf_event_open() vs. 'move_group' race Di Shen reported a race between two concurrent sys_perf_event_open() calls where both try and move the same pre-existing software group into a hardware context. The problem is exactly that described in commit: f63a8daa5812 ("perf: Fix event->ctx...
static int compat_nfs_exp_trans(struct nfsctl_arg *karg, struct compat_nfsctl_arg __user *arg) { if (!access_ok(VERIFY_READ, &arg->ca32_export, sizeof(arg->ca32_export)) || get_user(karg->ca_version, &arg->ca32_version) || __copy_from_user(&karg->ca_export.ex_client[0], &arg->ca32_export.ex32_client[0]...
0
[]
linux-2.6
822191a2fa1584a29c3224ab328507adcaeac1ab
120,917,645,204,894,570,000,000,000,000,000,000,000
28
[PATCH] skip data conversion in compat_sys_mount when data_page is NULL OpenVZ Linux kernel team has found a problem with mounting in compat mode. Simple command "mount -t smbfs ..." on Fedora Core 5 distro in 32-bit mode leads to oops: Unable to handle kernel NULL pointer dereference at 0000000000000000 RIP: comp...
static subpage_t *subpage_init(AddressSpace *as, hwaddr base) { subpage_t *mmio; mmio = g_malloc0(sizeof(subpage_t)); mmio->as = as; mmio->base = base; memory_region_init_io(&mmio->iomem, NULL, &subpage_ops, mmio, NULL, TARGET_PAGE_SIZE); mmio->iomem.subpage = true; #...
0
[]
qemu
c3c1bb99d1c11978d9ce94d1bdcf0705378c1459
117,431,043,701,773,510,000,000,000,000,000,000,000
19
exec: Respect as_tranlsate_internal length clamp address_space_translate_internal will clamp the *plen length argument based on the size of the memory region being queried. The iommu walker logic in addresss_space_translate was ignoring this by discarding the post fn call value of *plen. Fix by just always using *plen...
const SSL_CIPHER *ssl3_get_cipher(unsigned int u) { if (u < SSL3_NUM_CIPHERS) return(&(ssl3_ciphers[SSL3_NUM_CIPHERS-1-u])); else return(NULL); }
0
[ "CWE-310" ]
openssl
ca989269a2876bae79393bd54c3e72d49975fc75
175,170,401,871,037,030,000,000,000,000,000,000,000
7
Use version in SSL_METHOD not SSL structure. When deciding whether to use TLS 1.2 PRF and record hash algorithms use the version number in the corresponding SSL_METHOD structure instead of the SSL structure. The SSL structure version is sometimes inaccurate. Note: OpenSSL 1.0.2 and later effectively do this already. (...
mainloop_add_ipc_client( const char *name, int priority, size_t max_size, void *userdata, struct ipc_client_callbacks *callbacks) { mainloop_io_t *client = NULL; crm_ipc_t *conn = crm_ipc_new(name, max_size); if(conn && crm_ipc_connect(conn)) { int32_t fd = crm_ipc_get_fd(conn); client...
0
[ "CWE-399" ]
pacemaker
564f7cc2a51dcd2f28ab12a13394f31be5aa3c93
20,307,865,058,468,415,000,000,000,000,000,000,000
22
High: core: Internal tls api improvements for reuse with future LRMD tls backend.
check_authentication_code(struct archive_read *a, const void *_p) { struct zip *zip = (struct zip *)(a->format->data); /* Check authentication code. */ if (zip->hctx_valid) { const void *p; uint8_t hmac[20]; size_t hmac_len = 20; int cmp; archive_hmac_sha1_final(&zip->hctx, hmac, &hmac_len); if (_p == ...
0
[ "CWE-20" ]
libarchive
d0331e8e5b05b475f20b1f3101fe1ad772d7e7e7
197,365,357,608,075,720,000,000,000,000,000,000,000
35
Issue #656: Fix CVE-2016-1541, VU#862384 When reading OS X metadata entries in Zip archives that were stored without compression, libarchive would use the uncompressed entry size to allocate a buffer but would use the compressed entry size to limit the amount of data copied into that buffer. Since the compressed and...
aiff_read_comm_chunk (SF_PRIVATE *psf, COMM_CHUNK *comm_fmt) { BUF_UNION ubuf ; int subformat, samplerate ; ubuf.scbuf [0] = 0 ; /* The COMM chunk has an int aligned to an odd word boundary. Some ** procesors are not able to deal with this (ie bus fault) so we have ** to take special care. */ psf_binheader_re...
1
[ "CWE-476" ]
libsndfile
6f3266277bed16525f0ac2f0f03ff4626f1923e5
258,485,926,358,870,400,000,000,000,000,000,000,000
156
Fix max channel count bug The code was allowing files to be written with a channel count of exactly `SF_MAX_CHANNELS` but was failing to read some file formats with the same channel count.
ms_escher_parse (BiffQuery *q, MSContainer *container, gboolean return_attrs) { MSEscherState state; MSEscherHeader fake_header; MSObjAttrBag *res = NULL; char const *drawing_record_name = "Unknown"; g_return_val_if_fail (q != NULL, NULL); if (q->opcode == BIFF_MS_O_DRAWING) drawing_record_name = "Drawing"; ...
0
[ "CWE-119" ]
gnumeric
b5480b69345b3c6d56ee0ed9c9e9880bb2a08cdc
319,777,696,217,530,700,000,000,000,000,000,000,000
44
xls: fuzzed file crash.
set_option_info(struct archive_string *info, int *opt, const char *key, enum keytype type, ...) { va_list ap; char prefix; const char *s; int d; prefix = (*opt==0)? ' ':','; va_start(ap, type); switch (type) { case KEY_FLG: d = va_arg(ap, int); archive_string_sprintf(info, "%c%s%s", prefix, (d =...
0
[ "CWE-190" ]
libarchive
3014e19820ea53c15c90f9d447ca3e668a0b76c6
181,792,654,482,802,480,000,000,000,000,000,000,000
36
Issue 711: Be more careful about verifying filename lengths when writing ISO9660 archives * Don't cast size_t to int, since this can lead to overflow on machines where sizeof(int) < sizeof(size_t) * Check a + b > limit by writing it as a > limit || b > limit || a + b > limit to avoid problems when a + b wraps...
void clear_session_waiting_on_map(Session *session) { Mutex::Locker l(session_waiting_lock); set<Session*>::iterator i = session_waiting_for_map.find(session); if (i != session_waiting_for_map.end()) { (*i)->put(); session_waiting_for_map.erase(i); } }
0
[ "CWE-287", "CWE-284" ]
ceph
5ead97120e07054d80623dada90a5cc764c28468
78,072,082,568,997,830,000,000,000,000,000,000,000
8
auth/cephx: add authorizer challenge Allow the accepting side of a connection to reject an initial authorizer with a random challenge. The connecting side then has to respond with an updated authorizer proving they are able to decrypt the service's challenge and that the new authorizer was produced for this specific ...
MagickExport ChannelStatistics *GetImageStatistics(const Image *image, ExceptionInfo *exception) { ChannelStatistics *channel_statistics; double area, *histogram, standard_deviation; MagickStatusType status; QuantumAny range; register ssize_t i; size_t depth; ssize_...
0
[ "CWE-119", "CWE-787" ]
ImageMagick
025e77fcb2f45b21689931ba3bf74eac153afa48
296,397,271,598,823,650,000,000,000,000,000,000,000
219
https://github.com/ImageMagick/ImageMagick/issues/1615
static inline void set_fs(mm_segment_t fs) { current->thread.addr_limit = fs; /* On user-mode return, check fs is correct */ set_thread_flag(TIF_FSCHECK); }
0
[ "CWE-20" ]
linux
594cc251fdd0d231d342d88b2fdff4bc42fb0690
19,668,277,316,976,106,000,000,000,000,000,000,000
6
make 'user_access_begin()' do 'access_ok()' Originally, the rule used to be that you'd have to do access_ok() separately, and then user_access_begin() before actually doing the direct (optimized) user access. But experience has shown that people then decide not to do access_ok() at all, and instead rely on it being i...
rsvg_new_filter_primitive_merge_node (void) { RsvgFilterPrimitive *filter; filter = g_new (RsvgFilterPrimitive, 1); _rsvg_node_init (&filter->super, RSVG_NODE_TYPE_FILTER_PRIMITIVE_MERGE_NODE); filter->in = g_string_new ("none"); filter->super.free = rsvg_filter_primitive_merge_node_free; filter...
0
[]
librsvg
34c95743ca692ea0e44778e41a7c0a129363de84
260,831,781,765,871,160,000,000,000,000,000,000,000
11
Store node type separately in RsvgNode The node name (formerly RsvgNode:type) cannot be used to infer the sub-type of RsvgNode that we're dealing with, since for unknown elements we put type = node-name. This lead to a (potentially exploitable) crash e.g. when the element name started with "fe" which tricked the old c...
fst_openport(struct fst_port_info *port) { int signals; int txq_length; /* Only init things if card is actually running. This allows open to * succeed for downloads etc. */ if (port->card->state == FST_RUNNING) { if (port->run) { dbg(DBG_OPEN, "open: found port already running\n"); fst_issue_cmd(port,...
0
[ "CWE-399" ]
linux
96b340406724d87e4621284ebac5e059d67b2194
49,745,380,807,191,450,000,000,000,000,000,000,000
36
farsync: fix info leak in ioctl The fst_get_iface() code fails to initialize the two padding bytes of struct sync_serial_settings after the ->loopback member. Add an explicit memset(0) before filling the structure to avoid the info leak. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David S. ...
NOEXPORT SOCK_OPT *socket_options_dup(SOCK_OPT *src) { SOCK_OPT *dst=str_alloc_detached(sizeof sock_opts_def); SOCK_OPT *ptr; memcpy(dst, sock_opts_def, sizeof sock_opts_def); for(ptr=dst; src->opt_str; ++src, ++ptr) { int type; for(type=0; type<3; ++type) { if(src->opt_val[...
0
[ "CWE-295" ]
stunnel
ebad9ddc4efb2635f37174c9d800d06206f1edf9
108,823,840,325,036,650,000,000,000,000,000,000,000
17
stunnel-5.57
static inline int sctp_wspace(struct sctp_association *asoc) { struct sock *sk = asoc->base.sk; int amt = 0; if (asoc->ep->sndbuf_policy) { /* make sure that no association uses more than sk_sndbuf */ amt = sk->sk_sndbuf - asoc->sndbuf_used; } else { /* do socket level accounting */ amt = sk->sk_sndbuf - a...
0
[ "CWE-476" ]
linux
ea2bc483ff5caada7c4aa0d5fbf87d3a6590273d
258,205,350,148,537,300,000,000,000,000,000,000,000
18
[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 ...
static int stv06xx_config(struct gspca_dev *gspca_dev, const struct usb_device_id *id) { struct sd *sd = (struct sd *) gspca_dev; gspca_dbg(gspca_dev, D_PROBE, "Configuring camera\n"); sd->bridge = id->driver_info; gspca_dev->sd_desc = &sd_desc; if (dump_bridge) stv06xx_dump_bridge(sd); sd->sensor = &s...
0
[ "CWE-476" ]
linux
485b06aadb933190f4bc44e006076bc27a23f205
200,512,991,252,426,700,000,000,000,000,000,000,000
36
media: stv06xx: add missing descriptor sanity checks Make sure to check that we have two alternate settings and at least one endpoint before accessing the second altsetting structure and dereferencing the endpoint arrays. This specifically avoids dereferencing NULL-pointers or corrupting memory when a device does not...
static void Np_valueOf(js_State *J) { js_Object *self = js_toobject(J, 0); if (self->type != JS_CNUMBER) js_typeerror(J, "not a number"); js_pushnumber(J, self->u.number); }
0
[ "CWE-119", "CWE-295", "CWE-787" ]
mujs
da632ca08f240590d2dec786722ed08486ce1be6
186,268,219,715,776,030,000,000,000,000,000,000,000
6
Bug 700938: Fix stack overflow in numtostr as used by Number#toFixed(). 32 is not enough to fit sprintf("%.20f", 1e20). We need at least 43 bytes to fit that format. Bump the static buffer size.
unsigned char* abytewriter::getptr_aligned( void ) { // forbid freeing memory fmem = false; return data; }
0
[ "CWE-1187" ]
lepton
82167c144a322cc956da45407f6dce8d4303d346
52,400,148,581,208,920,000,000,000,000,000,000,000
6
fix #87 : always check that threads_required set up the appropriate number of threads---fire off nop functions on unused threads for consistency
static void vhost_net_buf_unproduce(struct vhost_net_virtqueue *nvq) { struct vhost_net_buf *rxq = &nvq->rxq; if (nvq->rx_ring && !vhost_net_buf_is_empty(rxq)) { ptr_ring_unconsume(nvq->rx_ring, rxq->queue + rxq->head, vhost_net_buf_get_size(rxq), tun_ptr_free); rxq->head = rxq->tail = 0; } }
0
[ "CWE-787" ]
linux
f5a4941aa6d190e676065e8f4ed35999f52a01c3
326,263,821,313,548,780,000,000,000,000,000,000,000
11
vhost_net: flush batched heads before trying to busy polling After commit e2b3b35eb989 ("vhost_net: batch used ring update in rx"), we tend to batch updating used heads. But it doesn't flush batched heads before trying to do busy polling, this will cause vhost to wait for guest TX which waits for the used RX. Fixing b...
static i64 read_header(rzip_control *control, void *ss, uchar *head) { bool err = false; *head = read_u8(control, ss, 0, &err); if (err) return -1; return read_vchars(control, ss, 0, control->chunk_bytes); }
0
[ "CWE-703" ]
lrzip
4b3942103b57c639c8e0f31d6d5fd7bac53bbdf4
80,505,624,944,720,220,000,000,000,000,000,000,000
9
Fix possible race condition between zpaq_decompress_buf() and clear_rulist() function as reported by wcventure.
void si_meminfo(struct sysinfo *val) { val->totalram = totalram_pages; val->sharedram = global_node_page_state(NR_SHMEM); val->freeram = global_zone_page_state(NR_FREE_PAGES); val->bufferram = nr_blockdev_pages(); val->totalhigh = totalhigh_pages; val->freehigh = nr_free_highpages(); val->mem_unit = PAGE_SIZE; }
0
[]
linux
400e22499dd92613821374c8c6c88c7225359980
27,785,985,052,509,707,000,000,000,000,000,000,000
10
mm: don't warn about allocations which stall for too long Commit 63f53dea0c98 ("mm: warn about allocations which stall for too long") was a great step for reducing possibility of silent hang up problem caused by memory allocation stalls. But this commit reverts it, for it is possible to trigger OOM lockup and/or soft...
int _yr_re_emit( RE_EMIT_CONTEXT* emit_context, RE_NODE* re_node, int flags, uint8_t** code_addr, int* code_size) { int branch_size; int split_size; int inst_size; int jmp_size; int emit_split; int emit_repeat; int emit_prolog; int emit_epilog; RE_REPEAT_ARGS repeat_args; RE_RE...
0
[ "CWE-125" ]
yara
83d799804648c2a0895d40a19835d9b757c6fa4e
267,267,374,185,744,630,000,000,000,000,000,000,000
524
Fix issue #646 (#648) * Fix issue #646 and some edge cases with wide regexps using \b and \B * Rename function IS_WORD_CHAR to _yr_re_is_word_char
void fx_TypedArray_prototype_includes(txMachine* the) { mxTypedArrayDeclarations; fxBoolean(the, mxResult, 0); if (length) { txInteger index = (txInteger)fxArgToIndex(the, 1, 0, length); txSlot* argument; if (mxArgc > 0) mxPushSlot(mxArgv(0)); else mxPushUndefined(); argument = the->stack; while (i...
0
[ "CWE-125" ]
moddable
135aa9a4a6a9b49b60aa730ebc3bcc6247d75c45
186,763,169,654,997,440,000,000,000,000,000,000,000
24
XS: #896
static void test_unexpected_cmap_server(GInputStream *is, GOutputStream *os) { /* Frame buffer width / height */ test_send_u16(os, 100); test_send_u16(os, 100); /* BPP, depth, endian, true color */ test_send_u8(os, 32); test_send_u8(os, 8); test_send_u8(os, 1); test_send_u8(os, 1); ...
0
[]
gtk-vnc
c8583fd3783c5b811590fcb7bae4ce6e7344963e
155,087,456,831,550,200,000,000,000,000,000,000,000
66
Correctly validate color map range indexes The color map index could wrap around to zero causing negative array index accesses. https://bugzilla.gnome.org/show_bug.cgi?id=778050 CVE-2017-5885 Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
SMB2_open_free(struct smb_rqst *rqst) { int i; if (rqst && rqst->rq_iov) { cifs_small_buf_release(rqst->rq_iov[0].iov_base); for (i = 1; i < rqst->rq_nvec; i++) if (rqst->rq_iov[i].iov_base != smb2_padding) kfree(rqst->rq_iov[i].iov_base); } }
0
[ "CWE-416", "CWE-200" ]
linux
6a3eb3360667170988f8a6477f6686242061488a
8,332,846,015,450,908,000,000,000,000,000,000,000
11
cifs: Fix use-after-free in SMB2_write There is a KASAN use-after-free: BUG: KASAN: use-after-free in SMB2_write+0x1342/0x1580 Read of size 8 at addr ffff8880b6a8e450 by task ln/4196 Should not release the 'req' because it will use in the trace. Fixes: eccb4422cf97 ("smb3: Add ftrace tracepoints for improved SMB3 de...
handle_client_state_waiting_for_agree_unix_fd(DBusAuth *auth, DBusAuthCommand command, const DBusString *args) { switch (command) { case DBUS_AUTH_COMMAND_AGREE_UNIX_FD: _dbus_assert(auth->unix_fd_possi...
0
[ "CWE-59" ]
dbus
47b1a4c41004bf494b87370987b222c934b19016
268,203,259,013,164,950,000,000,000,000,000,000,000
30
auth: Reject DBUS_COOKIE_SHA1 for users other than the server owner The DBUS_COOKIE_SHA1 authentication mechanism aims to prove ownership of a shared home directory by having the server write a secret "cookie" into a .dbus-keyrings subdirectory of the desired identity's home directory with 0700 permissions, and having...
static void handle_REST(ctrl_t *ctrl, char *arg) { const char *errstr; char buf[80]; if (!string_valid(arg)) { send_msg(ctrl->sd, "550 Invalid argument.\r\n"); return; } ctrl->offset = strtonum(arg, 0, INT64_MAX, &errstr); snprintf(buf, sizeof(buf), "350 Restarting at %ld. Send STOR or RETR to continue tra...
0
[ "CWE-120", "CWE-787" ]
uftpd
0fb2c031ce0ace07cc19cd2cb2143c4b5a63c9dd
304,735,576,927,324,300,000,000,000,000,000,000,000
14
FTP: Fix buffer overflow in PORT parser, reported by Aaron Esau Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
static opj_bool pi_next_lrcp(opj_pi_iterator_t * pi) { opj_pi_comp_t *comp = NULL; opj_pi_resolution_t *res = NULL; long index = 0; if (!pi->first) { comp = &pi->comps[pi->compno]; res = &comp->resolutions[pi->resno]; goto LABEL_SKIP; } else { pi->first = 0; } ...
1
[ "CWE-20" ]
openjpeg
c277159986c80142180fbe5efb256bbf3bdf3edc
90,937,947,911,640,870,000,000,000,000,000,000,000
42
[MJ2] Avoid index out of bounds access to pi->include[] Signed-off-by: Young_X <YangX92@hotmail.com>
find_server_and_update_current_info(HttpTransact::State* s) { int host_len; const char *host = s->hdr_info.client_request.host_get(&host_len); if (ptr_len_cmp(host, host_len, local_host_ip_str, sizeof(local_host_ip_str) - 1) == 0) { // Do not forward requests to local_host onto a parent. // I just wanted...
0
[ "CWE-119" ]
trafficserver
8b5f0345dade6b2822d9b52c8ad12e63011a5c12
64,768,825,143,851,420,000,000,000,000,000,000,000
87
Fix the internal buffer sizing. Thanks to Sudheer for helping isolating this bug
bool StringMatching::matchString(const char* str1, const char* str2) { std::string path(str1); std::string spec(str2); std::string base_path(path); std::string base_spec(spec); replace_all(base_spec, "*", ".*"); replace_all(base_spec, "?", "."); std::regex base_spec_regex(base_spec); std::smatch base_spec_ma...
1
[ "CWE-284" ]
Fast-DDS
d2aeab37eb4fad4376b68ea4dfbbf285a2926384
216,954,858,580,996,660,000,000,000,000,000,000,000
31
check remote permissions (#1387) * Refs 5346. Blackbox test Signed-off-by: Iker Luengo <ikerluengo@eprosima.com> * Refs 5346. one-way string compare Signed-off-by: Iker Luengo <ikerluengo@eprosima.com> * Refs 5346. Do not add partition separator on last partition Signed-off-by: Iker Luengo <ikerluengo@e...
int rta_addattr32(struct rtattr *rta, int maxlen, int type, __u32 data) { int len = RTA_LENGTH(4); struct rtattr *subrta; if (RTA_ALIGN(rta->rta_len) + len > maxlen) { fprintf(stderr, "rta_addattr32: Error! max allowed bound %d exceeded\n", maxlen); return -1; } subrta = (struct rtattr *)(((char *)rta) ...
0
[]
iproute2
8c50b728b226f6254251282697ce38a72639a6fc
292,674,159,293,272,100,000,000,000,000,000,000,000
18
libnetlink: fix use-after-free of message buf In __rtnl_talk_iov() main loop, err is a pointer to memory in dynamically allocated 'buf' that is used to store netlink messages. If netlink message is an error message, buf is deallocated before returning with error code. However, on return err->error code is checked one ...
DefaultMemchunks *Downstream::get_request_buf() { return &request_buf_; }
0
[]
nghttp2
319d5ab1c6d916b6b8a0d85b2ae3f01b3ad04f2c
100,559,645,821,208,590,000,000,000,000,000,000,000
1
nghttpx: Fix request stall Fix request stall if backend connection is reused and buffer is full.
parser_parse_default_statement (parser_context_t *context_p) /**< context */ { parser_stack_iterator_t iterator; parser_switch_statement_t switch_statement; if (context_p->stack_top_uint8 != PARSER_STATEMENT_SWITCH && context_p->stack_top_uint8 != PARSER_STATEMENT_SWITCH_NO_DEFAULT) { parser_raise_er...
0
[ "CWE-416" ]
jerryscript
3bcd48f72d4af01d1304b754ef19fe1a02c96049
294,147,150,880,319,500,000,000,000,000,000,000,000
22
Improve parse_identifier (#4691) Ascii string length is no longer computed during string allocation. JerryScript-DCO-1.0-Signed-off-by: Daniel Batiz batizjob@gmail.com
static int get_msr_hyperv(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata) { u64 data = 0; switch (msr) { case HV_X64_MSR_VP_INDEX: { int r; struct kvm_vcpu *v; kvm_for_each_vcpu(r, v, vcpu->kvm) if (v == vcpu) data = r; break; } case HV_X64_MSR_EOI: return kvm_hv_vapic_msr_read(vcpu, APIC_EOI, pdata)...
0
[]
kvm
0769c5de24621141c953fbe1f943582d37cb4244
287,335,423,730,496,180,000,000,000,000,000,000,000
29
KVM: x86: extend "struct x86_emulate_ops" with "get_cpuid" In order to be able to proceed checks on CPU-specific properties within the emulator, function "get_cpuid" is introduced. With "get_cpuid" it is possible to virtually call the guests "cpuid"-opcode without changing the VM's context. [mtosatti: cleanup/beautif...
pdf_filter_m(fz_context *ctx, pdf_processor *proc, float x, float y) { pdf_filter_processor *p = (pdf_filter_processor*)proc; filter_flush(ctx, p, FLUSH_CTM); if (p->chain->op_m) p->chain->op_m(ctx, p->chain, x, y); }
0
[ "CWE-125" ]
mupdf
97096297d409ec6f206298444ba00719607e8ba8
262,526,776,546,111,060,000,000,000,000,000,000,000
7
Bug 701292: Fix test for missing/empty string.
static jas_cmprof_t *jas_cmprof_createsycc() { jas_cmprof_t *prof; jas_cmpxform_t *fwdpxform; jas_cmpxform_t *revpxform; jas_cmshapmat_t *fwdshapmat; jas_cmshapmat_t *revshapmat; int i; int j; if (!(prof = jas_cmprof_createfromclrspc(JAS_CLRSPC_SRGB))) goto error; prof->clrspc = JAS_CLRSPC_SYCBCR; assert(p...
0
[ "CWE-189" ]
jasper
3c55b399c36ef46befcb21e4ebc4799367f89684
190,288,724,610,662,700,000,000,000,000,000,000,000
68
At many places in the code, jas_malloc or jas_recalloc was being invoked with the size argument being computed in a manner that would not allow integer overflow to be detected. Now, these places in the code have been modified to use special-purpose memory allocation functions (e.g., jas_alloc2, jas_alloc3, jas_realloc...
static int do_brk_flags(unsigned long addr, unsigned long len, unsigned long flags, struct list_head *uf) { struct mm_struct *mm = current->mm; struct vm_area_struct *vma, *prev; struct rb_node **rb_link, *rb_parent; pgoff_t pgoff = addr >> PAGE_SHIFT; int error; unsigned long mapped_addr; /* Until we need othe...
0
[ "CWE-787" ]
linux
dcde237319e626d1ec3c9d8b7613032f0fd4663a
105,680,658,112,170,660,000,000,000,000,000,000,000
72
mm: Avoid creating virtual address aliases in brk()/mmap()/mremap() Currently the arm64 kernel ignores the top address byte passed to brk(), mmap() and mremap(). When the user is not aware of the 56-bit address limit or relies on the kernel to return an error, untagging such pointers has the potential to create addres...
dns_cache_entry_count(void) { return HT_SIZE(&cache_root); }
0
[ "CWE-399" ]
tor
62637fa22405278758febb1743da9af562524d4c
227,133,943,741,043,400,000,000,000,000,000,000,000
4
Avoid hard (impossible?)-to-trigger double-free in dns_resolve() Fixes 6480; fix on 0.2.0.1-alpha; based on pseudonymous patch.
json_t * r_jwe_get_full_header_json_t(jwe_t * jwe) { if (jwe != NULL) { return _r_json_get_full_json_t(jwe->j_header); } return NULL; }
0
[ "CWE-787" ]
rhonabwy
b4c2923a1ba4fabf9b55a89244127e153a3e549b
326,512,123,869,504,880,000,000,000,000,000,000,000
6
Fix buffer overflow on r_jwe_aesgcm_key_unwrap
int fileblobInfected(const fileblob *fb) { return fb->isInfected; }
0
[ "CWE-476" ]
clamav-devel
8bb3716be9c7ab7c6a3a1889267b1072f48af87b
170,032,036,717,601,540,000,000,000,000,000,000,000
4
fuzz-22348 null deref in egg utf8 conversion Corrected memory leaks and a null dereference in the egg utf8 conversion.
napi_status napi_get_typedarray_info(napi_env env, napi_value typedarray, napi_typedarray_type* type, size_t* length, void** data, napi...
0
[ "CWE-191" ]
node
656260b4b65fec3b10f6da3fdc9f11fb941aafb5
232,591,065,309,159,870,000,000,000,000,000,000,000
67
napi: fix memory corruption vulnerability Fixes: https://hackerone.com/reports/784186 CVE-ID: CVE-2020-8174 PR-URL: https://github.com/nodejs-private/node-private/pull/195 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com> Reviewed-By: Michael Dawson <michael_da...
main (int argc, char **argv) { int last_argc = -1; gpg_error_t err; int rc; parsed_uri_t uri; uri_tuple_t r; http_t hd; int c; unsigned int my_http_flags = 0; int no_out = 0; int tls_dbg = 0; int no_crl = 0; const char *cafile = NULL; http_session_t session = NULL; unsigned int timeout = 0; ...
1
[ "CWE-352" ]
gnupg
4a4bb874f63741026bd26264c43bb32b1099f060
299,291,997,878,190,260,000,000,000,000,000,000,000
305
dirmngr: Avoid possible CSRF attacks via http redirects. * dirmngr/http.h (parsed_uri_s): Add fields off_host and off_path. (http_redir_info_t): New. * dirmngr/http.c (do_parse_uri): Set new fields. (same_host_p): New. (http_prepare_redirect): New. * dirmngr/t-http-basic.c: New test. * dirmngr/ks-engine-hkp.c (send_re...
static bool setup_natural_join_row_types(THD *thd, List<TABLE_LIST> *from_clause, Name_resolution_context *context) { DBUG_ENTER("setup_natural_join_row_types"); thd->where= "from clause"; if (from_clause->elements == 0) DBUG_RE...
0
[]
server
0168d1eda30dad4b517659422e347175eb89e923
254,849,557,493,090,860,000,000,000,000,000,000,000
67
MDEV-25766 Unused CTE lead to a crash in find_field_in_tables/find_order_in_list Do not assume that subquery Item always present.
int sock_i_uid(struct sock *sk) { int uid; read_lock_bh(&sk->sk_callback_lock); uid = sk->sk_socket ? SOCK_INODE(sk->sk_socket)->i_uid : 0; read_unlock_bh(&sk->sk_callback_lock); return uid; }
0
[ "CWE-119", "CWE-787" ]
linux
82981930125abfd39d7c8378a9cfdf5e1be2002b
277,198,766,275,690,880,000,000,000,000,000,000,000
9
net: cleanups in sock_setsockopt() Use min_t()/max_t() macros, reformat two comments, use !!test_bit() to match !!sock_flag() Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
mt76_dma_rx_reset(struct mt76_dev *dev, enum mt76_rxq_id qid) { struct mt76_queue *q = &dev->q_rx[qid]; int i; for (i = 0; i < q->ndesc; i++) q->desc[i].ctrl &= ~cpu_to_le32(MT_DMA_CTL_DMA_DONE); mt76_dma_rx_cleanup(dev, q); mt76_dma_sync_idx(dev, q); mt76_dma_rx_fill(dev, q); if (!q->rx_head) return; d...
0
[ "CWE-120", "CWE-787" ]
linux
b102f0c522cf668c8382c56a4f771b37d011cda2
68,880,276,118,543,170,000,000,000,000,000,000,000
18
mt76: fix array overflow on receiving too many fragments for a packet If the hardware receives an oversized packet with too many rx fragments, skb_shinfo(skb)->frags can overflow and corrupt memory of adjacent pages. This becomes especially visible if it corrupts the freelist pointer of a slab page. Cc: stable@vger.k...
bool WebContents::HandleKeyboardEvent( content::WebContents* source, const content::NativeWebKeyboardEvent& event) { if (type_ == Type::kWebView && embedder_) { // Send the unhandled keyboard events back to the embedder. return embedder_->HandleKeyboardEvent(source, event); } else { return Platf...
0
[]
electron
e9fa834757f41c0b9fe44a4dffe3d7d437f52d34
169,934,802,369,530,950,000,000,000,000,000,000,000
10
fix: ensure ElectronBrowser mojo service is only bound to appropriate render frames (#33344) * fix: ensure ElectronBrowser mojo service is only bound to authorized render frames Notes: no-notes * refactor: extract electron API IPC to its own mojo interface * fix: just check main frame not primary main frame ...
static bool vtable_section_can_contain_vtables(RBinSection *section) { if (section->is_segment) { return false; } return !strcmp (section->name, ".rodata") || !strcmp (section->name, ".rdata") || !strcmp (section->name, ".data.rel.ro") || !strcmp (section->name, ".data.rel.ro.local") || r_str_endswith (sec...
0
[ "CWE-284", "CWE-824" ]
radare2
919e3ac1a13f753c73e7a8e8d8bb4a143218732d
62,672,682,094,706,080,000,000,000,000,000,000,000
10
Fix crash in vtable analysis on UB ##crash * Reported by @greatergoodest via huntrdev * BountyID 0730a95e-c485-4ff2-9a5d-bb3abfda0b17 * Reproducer: minified_crash
ldns_native2rdf_int16(ldns_rdf_type type, uint16_t value) { uint16_t *rdf_data = LDNS_XMALLOC(uint16_t, 1); ldns_rdf* rdf; if (!rdf_data) { return NULL; } ldns_write_uint16(rdf_data, value); rdf = ldns_rdf_new(type, LDNS_RDF_SIZE_WORD, rdf_data); if(!rdf) LDNS_FREE(rdf_data); ...
0
[ "CWE-415" ]
ldns
070b4595981f48a21cc6b4f5047fdc2d09d3da91
87,302,794,353,149,500,000,000,000,000,000,000,000
13
CAA and URI
void rose_start_t1timer(struct sock *sk) { struct rose_sock *rose = rose_sk(sk); sk_stop_timer(sk, &rose->timer); rose->timer.function = rose_timer_expiry; rose->timer.expires = jiffies + rose->t1; sk_reset_timer(sk, &rose->timer, rose->timer.expires); }
0
[ "CWE-416" ]
linux
9cc02ede696272c5271a401e4f27c262359bc2f6
179,455,574,943,944,920,000,000,000,000,000,000,000
11
net: rose: fix UAF bugs caused by timer handler There are UAF bugs in rose_heartbeat_expiry(), rose_timer_expiry() and rose_idletimer_expiry(). The root cause is that del_timer() could not stop the timer handler that is running and the refcount of sock is not managed properly. One of the UAF bugs is shown below: ...
void free_re(void) { my_regfree(&ps_re); my_regfree(&sp_re); my_regfree(&view_re); my_regfree(&opt_trace_re); my_regfree(&explain_re); my_regex_end(); }
0
[ "CWE-284", "CWE-295" ]
mysql-server
3bd5589e1a5a93f9c224badf983cd65c45215390
150,416,535,235,828,630,000,000,000,000,000,000,000
9
WL#6791 : Redefine client --ssl option to imply enforced encryption # Changed the meaning of the --ssl=1 option of all client binaries to mean force ssl, not try ssl and fail over to eunecrypted # Added a new MYSQL_OPT_SSL_ENFORCE mysql_options() option to specify that an ssl connection is required. # Added a new macr...
nfsd4_encode_open_downgrade(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_open_downgrade *od) { struct xdr_stream *xdr = &resp->xdr; if (!nfserr) nfserr = nfsd4_encode_stateid(xdr, &od->od_stateid); return nfserr; }
0
[ "CWE-20", "CWE-129" ]
linux
f961e3f2acae94b727380c0b74e2d3954d0edf79
168,416,175,077,741,010,000,000,000,000,000,000,000
9
nfsd: encoders mustn't use unitialized values in error cases In error cases, lgp->lg_layout_type may be out of bounds; so we shouldn't be using it until after the check of nfserr. This was seen to crash nfsd threads when the server receives a LAYOUTGET request with a large layout type. GETDEVICEINFO has the same pro...
char_quote(struct buf *ob, struct sd_markdown *rndr, uint8_t *data, size_t offset, size_t size) { size_t end, nq = 0, i, f_begin, f_end; /* counting the number of quotes in the delimiter */ while (nq < size && data[nq] == '"') nq++; /* finding the next delimiter */ i = 0; for (end = nq; end < size && i < nq; ...
0
[]
redcarpet
e5a10516d07114d582d13b9125b733008c61c242
236,186,399,535,386,300,000,000,000,000,000,000,000
39
Avoid rewinding previous inline when auto-linking When a bit like "_foo_1@bar.com" is processed, first the emphasis is rendered, then the 1 is output verbatim. When the `@` is encountered, Redcarpet tries to find the "local part" of the address and stops when it encounters an invalid char (i.e. here the `!`). The pro...
sd_alloc_ctl_domain_table(struct sched_domain *sd) { struct ctl_table *table = sd_alloc_ctl_entry(13); if (table == NULL) return NULL; set_table_entry(&table[0], "min_interval", &sd->min_interval, sizeof(long), 0644, proc_doulongvec_minmax, false); set_table_entry(&table[1], "max_interval", &sd->max_interval,...
0
[ "CWE-200" ]
linux
4efbc454ba68def5ef285b26ebfcfdb605b52755
14,490,410,942,370,455,000,000,000,000,000,000,000
36
sched: Fix information leak in sys_sched_getattr() We're copying the on-stack structure to userspace, but forgot to give the right number of bytes to copy. This allows the calling process to obtain up to PAGE_SIZE bytes from the stack (and possibly adjacent kernel memory). This fix copies only as much as we actually ...
static std::list<std::string> getAddressAsStringList(const std::list<DnsResponse>& response) { std::list<std::string> address; for_each(response.begin(), response.end(), [&](DnsResponse resp) { address.emplace_back(resp.address_->ip()->addressAsString()); }); return address; }
0
[ "CWE-400" ]
envoy
542f84c66e9f6479bc31c6f53157c60472b25240
218,597,291,833,960,500,000,000,000,000,000,000,000
8
overload: Runtime configurable global connection limits (#147) Signed-off-by: Tony Allen <tony@allen.gg>
DEFINE_RUN_ONCE_STATIC(ossl_init_load_crypto_strings) { int ret = 1; /* * OPENSSL_NO_AUTOERRINIT is provided here to prevent at compile time * pulling in all the error strings during static linking */ #if !defined(OPENSSL_NO_ERR) && !defined(OPENSSL_NO_AUTOERRINIT) # ifdef OPENSSL_INIT_DEBUG ...
0
[ "CWE-330" ]
openssl
1b0fe00e2704b5e20334a16d3c9099d1ba2ef1be
313,038,786,664,790,970,000,000,000,000,000,000,000
17
drbg: ensure fork-safety without using a pthread_atfork handler When the new OpenSSL CSPRNG was introduced in version 1.1.1, it was announced in the release notes that it would be fork-safe, which the old CSPRNG hadn't been. The fork-safety was implemented using a fork count, which was incremented by a pthread_atfork...
HttpTransact::handle_websocket_connection(State *s) { DebugTxn("http_trans_websocket", "START handle_websocket_connection"); HandleRequest(s); }
0
[ "CWE-119" ]
trafficserver
8b5f0345dade6b2822d9b52c8ad12e63011a5c12
265,984,227,122,173,360,000,000,000,000,000,000,000
5
Fix the internal buffer sizing. Thanks to Sudheer for helping isolating this bug
static int percpu_modalloc(struct module *mod, struct load_info *info) { Elf_Shdr *pcpusec = &info->sechdrs[info->index.pcpu]; unsigned long align = pcpusec->sh_addralign; if (!pcpusec->sh_size) return 0; if (align > PAGE_SIZE) { pr_warn("%s: per-cpu alignment %li > %li\n", mod->name, align, PAGE_SIZE); ...
0
[ "CWE-362", "CWE-347" ]
linux
0c18f29aae7ce3dadd26d8ee3505d07cc982df75
224,784,523,747,054,030,000,000,000,000,000,000,000
23
module: limit enabling module.sig_enforce Irrespective as to whether CONFIG_MODULE_SIG is configured, specifying "module.sig_enforce=1" on the boot command line sets "sig_enforce". Only allow "sig_enforce" to be set when CONFIG_MODULE_SIG is configured. This patch makes the presence of /sys/module/module/parameters/s...
static int tun_attach(struct tun_struct *tun, struct file *file) { struct tun_file *tfile = file->private_data; int err; ASSERT_RTNL(); netif_tx_lock_bh(tun->dev); err = -EINVAL; if (tfile->tun) goto out; err = -EBUSY; if (tun->tfile) goto out; err = 0; tfile->tun = tun; tun->tfile = tfile; tun->so...
0
[ "CWE-703", "CWE-264" ]
linux
550fd08c2cebad61c548def135f67aba284c6162
58,895,728,262,302,650,000,000,000,000,000,000,000
30
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...
static ssize_t os_desc_b_vendor_code_store(struct config_item *item, const char *page, size_t len) { struct gadget_info *gi = os_desc_item_to_gadget_info(item); int ret; u8 b_vendor_code; mutex_lock(&gi->lock); ret = kstrtou8(page, 0, &b_vendor_code); if (!ret) { gi->b_vendor_code = b_vendor_code; re...
0
[ "CWE-125" ]
linux
15753588bcd4bbffae1cca33c8ced5722477fe1f
26,687,628,552,324,920,000,000,000,000,000,000,000
17
USB: gadget: fix illegal array access in binding with UDC FuzzUSB (a variant of syzkaller) found an illegal array access using an incorrect index while binding a gadget with UDC. Reference: https://www.spinics.net/lists/linux-usb/msg194331.html This bug occurs when a size variable used for a buffer is misused to acc...
int avpriv_h264_has_num_reorder_frames(AVCodecContext *avctx) { H264Context *h = avctx->priv_data; return h ? h->sps.num_reorder_frames : 0; }
0
[ "CWE-703" ]
FFmpeg
29ffeef5e73b8f41ff3a3f2242d356759c66f91f
229,358,853,525,984,340,000,000,000,000,000,000,000
5
avcodec/h264: do not trust last_pic_droppable when marking pictures as done This simplifies the code and fixes a deadlock Fixes Ticket2927 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
PHPAPI php_url *php_url_parse_ex(char const *str, size_t length) { zend_bool has_port; return php_url_parse_ex2(str, length, &has_port); }
0
[ "CWE-20" ]
php-src
4a89e726bd4d0571991dc22a9a1ad4509e8fe347
30,346,211,925,553,966,000,000,000,000,000,000,000
5
Alternative fix for bug 77423 That bug report originally was about `parse_url()` misbehaving, but the security aspect was actually only regarding `FILTER_VALIDATE_URL`. Since the changes to `parse_url_ex()` apparently affect userland code which is relying on the sloppy URL parsing[1], this alternative restores the old...
BGD_DECLARE(void) gdImageFilledRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color) { int x, y; if (x1 == x2 && y1 == y2) { gdImageSetPixel(im, x1, y1, color); return; } if (x1 > x2) { x = x1; x1 = x2; x2 = x; } if (y1 > y2) { y = y1; y1 = y2; y2 = y; } if (x1 < 0) { x1 =...
0
[ "CWE-119", "CWE-787" ]
libgd
77f619d48259383628c3ec4654b1ad578e9eb40e
18,321,922,925,234,195,000,000,000,000,000,000,000
44
fix #215 gdImageFillToBorder stack-overflow when invalid color is used
set_gif_lzw_clear_code (GifContext *context) { context->state = GIF_LZW_CLEAR_CODE; context->lzw_code_pending = -1; }
0
[]
gdk-pixbuf
f8569bb13e2aa1584dde61ca545144750f7a7c98
224,762,358,288,082,460,000,000,000,000,000,000,000
5
GIF: Don't return a partially initialized pixbuf structure It was found that gdk-pixbuf GIF image loader gdk_pixbuf__gif_image_load() routine did not properly handle certain return values from their subroutines. A remote attacker could provide a specially-crafted GIF image, which once opened in an application, linked ...
e1000e_set_phy_ctrl(E1000ECore *core, int index, uint16_t val) { /* bits 0-5 reserved; MII_CR_[RESTART_AUTO_NEG,RESET] are self clearing */ core->phy[0][PHY_CTRL] = val & ~(0x3f | MII_CR_RESET | MII_CR_RESTART_AUTO_NEG); if ((val & M...
0
[ "CWE-835" ]
qemu
4154c7e03fa55b4cf52509a83d50d6c09d743b77
330,226,988,662,828,370,000,000,000,000,000,000,000
12
net: e1000e: fix an infinite loop issue This issue is like the issue in e1000 network card addressed in this commit: e1000: eliminate infinite loops on out-of-bounds transfer start. Signed-off-by: Li Qiang <liqiang6-s@360.cn> Reviewed-by: Dmitry Fleytman <dmitry@daynix.com> Signed-off-by: Jason Wang <jasowang@redhat....
static bool parse_symtab(struct MACH0_(obj_t) * mo, ut64 off) { struct symtab_command st; ut32 size_sym; size_t i; const char *error_message = ""; ut8 symt[sizeof(struct symtab_command)] = { 0 }; ut8 nlst[sizeof(struct MACH0_(nlist))] = { 0 }; const bool be = mo->big_endian; if (off > (ut64)mo->size || off + s...
0
[ "CWE-787" ]
rizin
348b1447d1452f978b69631d6de5b08dd3bdf79d
266,548,941,855,081,600,000,000,000,000,000,000,000
76
fix #2956 - oob write in mach0.c
print_addr_index (unsigned int idx, unsigned int len) { static char buf[15]; snprintf (buf, sizeof (buf), "[%d]", idx); printf ("%*s ", len, buf); }
0
[ "CWE-703" ]
binutils-gdb
695c6dfe7e85006b98c8b746f3fd5f913c94ebff
214,921,129,247,001,340,000,000,000,000,000,000,000
6
PR29370, infinite loop in display_debug_abbrev The PR29370 testcase is a fuzzed object file with multiple .trace_abbrev sections. Multiple .trace_abbrev or .debug_abbrev sections are not a violation of the DWARF standard. The DWARF5 standard even gives an example of multiple .debug_abbrev sections contained in group...
invoke_NPN_SetValue(PluginInstance *plugin, NPPVariable variable, void *value) { switch (rpc_type_of_NPPVariable(variable)) { case RPC_TYPE_BOOLEAN: break; default: D(bug("WARNING: unhandled variable %d in NPN_SetValue()\n", variable)); return NPERR_INVALID_PARAM; } npw_return_val_if_fail(rpc_method_invok...
0
[ "CWE-264" ]
nspluginwrapper
7e4ab8e1189846041f955e6c83f72bc1624e7a98
288,781,249,758,685,900,000,000,000,000,000,000,000
33
Support all the new variables added
Gif_FullUncompressImage(Gif_Stream* gfs, Gif_Image* gfi, Gif_ReadErrorHandler h) { Gif_Context gfc; Gif_Reader grr; int ok = 0; /* return right away if image is already uncompressed. this might screw over people who expect re-uncompressing to restore the compressed version. */ if...
0
[ "CWE-416" ]
gifsicle
81fd7823f6d9c85ab598bc850e40382068361185
130,745,770,100,075,330,000,000,000,000,000,000,000
36
Fix use-after-free problems reported in #114.
mime_list_stop (NautilusDirectory *directory) { NautilusFile *file; if (directory->details->mime_list_in_progress != NULL) { file = directory->details->mime_list_in_progress->mime_list_file; if (file != NULL) { g_assert (NAUTILUS_IS_FILE (file)); g_assert (fi...
0
[ "CWE-20" ]
nautilus
1630f53481f445ada0a455e9979236d31a8d3bb0
4,799,277,460,667,791,000,000,000,000,000,000,000
23
mime-actions: use file metadata for trusting desktop files Currently we only trust desktop files that have the executable bit set, and don't replace the displayed icon or the displayed name until it's trusted, which prevents for running random programs by a malicious desktop file. However, the executable permission i...
uint8_t* FunctionContext::allocate(int byte_size) { uint8_t* buffer = _impl->_pool->allocate(byte_size); _impl->_allocations[buffer] = byte_size; if (_impl->_debug) { memset(buffer, 0xff, byte_size); } return buffer; }
0
[ "CWE-200" ]
incubator-doris
246ac4e37aa4da6836b7850cb990f02d1c3725a3
262,892,186,983,558,900,000,000,000,000,000,000,000
10
[fix] fix a bug of encryption function with iv may return wrong result (#8277)
config_ntpdsim( config_tree *ptree ) { printf("Configuring Simulator...\n"); printf("Some ntpd-specific commands in the configuration file will be ignored.\n"); config_tos(ptree); config_monitor(ptree); config_tinker(ptree); if (0) config_rlimit(ptree); /* not needed for the simulator */ config_system_opts(...
0
[ "CWE-19" ]
ntp
fe46889f7baa75fc8e6c0fcde87706d396ce1461
328,808,345,730,325,530,000,000,000,000,000,000,000
17
[Sec 2942]: Off-path DoS attack on auth broadcast mode. HStenn.
static GF_Err av1_parse_frame(GF_BitStream *bs, AV1State *state, u64 obu_start, u64 obu_size) { av1_parse_frame_header(bs, state); //byte alignment gf_bs_align(bs); return av1_parse_tile_group(bs, state, obu_start, obu_size); }
0
[ "CWE-190", "CWE-787" ]
gpac
51cdb67ff7c5f1242ac58c5aa603ceaf1793b788
161,217,181,757,419,730,000,000,000,000,000,000,000
7
add safety in avc/hevc/vvc sps/pps/vps ID check - cf #1720 #1721 #1722
static void virtnet_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) { struct virtnet_info *vi = netdev_priv(dev); struct virtio_device *vdev = vi->vdev; strlcpy(info->driver, KBUILD_MODNAME, sizeof(info->driver)); strlcpy(info->version, VIRTNET_DRIVER_VERSION, sizeof(info->version)); strlcpy...
0
[ "CWE-119", "CWE-787" ]
linux
48900cb6af4282fa0fb6ff4d72a81aa3dadb5c39
182,609,374,252,069,250,000,000,000,000,000,000,000
11
virtio-net: drop NETIF_F_FRAGLIST virtio declares support for NETIF_F_FRAGLIST, but assumes that there are at most MAX_SKB_FRAGS + 2 fragments which isn't always true with a fraglist. A longer fraglist in the skb will make the call to skb_to_sgvec overflow the sg array, leading to memory corruption. Drop NETIF_F_FRA...
g_strncpy(char* dest, const char* src, int len) { char* rv; if (src == 0 && dest != 0) { dest[0] = 0; return dest; } if (dest == 0 || src == 0) { return 0; } rv = strncpy(dest, src, len); dest[len] = 0; return rv; }
0
[]
xrdp
d8f9e8310dac362bb9578763d1024178f94f4ecc
141,722,925,183,611,120,000,000,000,000,000,000,000
17
move temp files from /tmp to /tmp/.xrdp
int on_data_chunk_recv_callback(nghttp2_session *session, uint8_t flags, int32_t stream_id, const uint8_t *data, size_t len, void *user_data) { auto hd = static_cast<Http2Handler *>(user_data); auto stream = hd->get_stream(stream_id); if (!stream) {...
0
[]
nghttp2
95efb3e19d174354ca50c65d5d7227d92bcd60e1
251,188,165,185,599,300,000,000,000,000,000,000,000
31
Don't read too greedily
void Magick::Image::adjoin(const bool flag_) { modifyImage(); options()->adjoin(flag_); }
0
[ "CWE-416" ]
ImageMagick
8c35502217c1879cb8257c617007282eee3fe1cc
67,393,125,627,963,760,000,000,000,000,000,000,000
5
Added missing return to avoid use after free.
static void dvb_frontend_put(struct dvb_frontend *fe) { /* * Check if the frontend was registered, as otherwise * kref was not initialized yet. */ if (fe->frontend_priv) kref_put(&fe->refcount, dvb_frontend_free); else __dvb_frontend_free(fe); }
0
[ "CWE-416" ]
linux
b1cb7372fa822af6c06c8045963571d13ad6348b
182,435,578,588,238,630,000,000,000,000,000,000,000
11
dvb_frontend: don't use-after-free the frontend struct dvb_frontend_invoke_release() may free the frontend struct. So, the free logic can't update it anymore after calling it. That's OK, as __dvb_frontend_free() is called only when the krefs are zeroed, so nobody is using it anymore. That should fix the following KA...
bool has_scheduled_exception() { return thread_local_top_.scheduled_exception_ != heap_.the_hole_value(); }
0
[ "CWE-20", "CWE-119" ]
node
530af9cb8e700e7596b3ec812bad123c9fa06356
17,258,202,685,255,606,000,000,000,000,000,000,000
3
v8: Interrupts must not mask stack overflow. Backport of https://codereview.chromium.org/339883002
longlong Item_cond_or::val_int() { DBUG_ASSERT(fixed == 1); List_iterator_fast<Item> li(list); Item *item; null_value=0; while ((item=li++)) { if (item->val_bool()) { null_value=0; return 1; } if (item->null_value) null_value=1; } return 0; }
0
[ "CWE-617" ]
server
807945f2eb5fa22e6f233cc17b85a2e141efe2c8
110,923,249,361,494,400,000,000,000,000,000,000,000
18
MDEV-26402: A SEGV in Item_field::used_tables/update_depend_map_for_order... When doing condition pushdown from HAVING into WHERE, Item_equal::create_pushable_equalities() calls item->set_extraction_flag(IMMUTABLE_FL) for constant items. Then, Item::cleanup_excluding_immutables_processor() checks for this flag to see ...
static void TIFFGetProfiles(TIFF *tiff,Image *image,ExceptionInfo *exception) { uint32 length; unsigned char *profile; length=0; #if defined(TIFFTAG_ICCPROFILE) if ((TIFFGetField(tiff,TIFFTAG_ICCPROFILE,&length,&profile) == 1) && (profile != (unsigned char *) NULL)) (void) ReadProfile(image,...
1
[ "CWE-125" ]
ImageMagick
986b5dff173413fa712db27eb677cdef15f0bab6
306,086,541,742,468,350,000,000,000,000,000,000,000
45
https://github.com/ImageMagick/ImageMagick/issues/1748
void persistence_guid( const GUID_t& /*guid*/) { }
0
[ "CWE-284" ]
Fast-DDS
d2aeab37eb4fad4376b68ea4dfbbf285a2926384
221,259,912,638,063,340,000,000,000,000,000,000,000
4
check remote permissions (#1387) * Refs 5346. Blackbox test Signed-off-by: Iker Luengo <ikerluengo@eprosima.com> * Refs 5346. one-way string compare Signed-off-by: Iker Luengo <ikerluengo@eprosima.com> * Refs 5346. Do not add partition separator on last partition Signed-off-by: Iker Luengo <ikerluengo@e...
static struct ttf_table *SFDGetShortTable(FILE *sfd, SplineFont *sf,struct ttf_table *lasttab[2]) { /* We've read the ShortTable token, it is followed by a tag and a word count */ /* and then the (text) values of the words that make up the cvt table */ int i,len, ch; uint8 *pt; int which, iscvt, sta...
0
[ "CWE-416" ]
fontforge
048a91e2682c1a8936ae34dbc7bd70291ec05410
201,345,462,821,434,440,000,000,000,000,000,000,000
49
Fix for #4084 Use-after-free (heap) in the SFD_GetFontMetaData() function Fix for #4086 NULL pointer dereference in the SFDGetSpiros() function Fix for #4088 NULL pointer dereference in the SFD_AssignLookups() function Add empty sf->fontname string if it isn't set, fixing #4089 #4090 and many other potential issues (...
static int tcp_any_retrans_done(const struct sock *sk) { const struct tcp_sock *tp = tcp_sk(sk); struct sk_buff *skb; if (tp->retrans_out) return 1; skb = tcp_write_queue_head(sk); if (unlikely(skb && TCP_SKB_CB(skb)->sacked & TCPCB_EVER_RETRANS)) return 1; return 0; }
0
[]
net-next
fdf5af0daf8019cec2396cdef8fb042d80fe71fa
195,418,189,229,791,650,000,000,000,000,000,000,000
14
tcp: drop SYN+FIN messages Denys Fedoryshchenko reported that SYN+FIN attacks were bringing his linux machines to their limits. Dont call conn_request() if the TCP flags includes SYN flag Reported-by: Denys Fedoryshchenko <denys@visp.net.lb> Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S...
static inline void wake_up_page(struct page *page, int bit) { __wake_up_bit(page_waitqueue(page), &page->flags, bit); }
0
[ "CWE-193" ]
linux-2.6
94ad374a0751f40d25e22e036c37f7263569d24c
74,790,016,337,940,410,000,000,000,000,000,000,000
4
Fix off-by-one error in iov_iter_advance() The iov_iter_advance() function would look at the iov->iov_len entry even though it might have iterated over the whole array, and iov was pointing past the end. This would cause DEBUG_PAGEALLOC to trigger a kernel page fault if the allocation was at the end of a page, and th...
static char *detect_proxy(struct connectdata *conn) { char *proxy = NULL; /* If proxy was not specified, we check for default proxy environment * variables, to enable i.e Lynx compliance: * * http_proxy=http://some.server.dom:port/ * https_proxy=http://some.server.dom:port/ * ftp_proxy=http://some.s...
0
[ "CWE-119" ]
curl
9b5e12a5491d2e6b68e0c88ca56f3a9ef9fba400
230,406,257,161,996,700,000,000,000,000,000,000,000
64
url: fix alignment of ssl_backend_data struct - Align the array of ssl_backend_data on a max 32 byte boundary. 8 is likely to be ok but I went with 32 for posterity should one of the ssl_backend_data structs change to contain a larger sized variable in the future. Prior to this change (since dev 70f1db3, release 7.5...
static void filter_flush(fz_context *ctx, pdf_filter_processor *p, int flush) { filter_gstate *gstate = gstate_to_update(ctx, p); int i; if (gstate->pushed == 0) { gstate->pushed = 1; if (p->chain->op_q) p->chain->op_q(ctx, p->chain); } if (flush) flush_tags(ctx, p, &p->pending_tags); if (flush & FLU...
0
[ "CWE-125" ]
mupdf
97096297d409ec6f206298444ba00719607e8ba8
158,251,504,162,865,780,000,000,000,000,000,000,000
277
Bug 701292: Fix test for missing/empty string.
static uint64_t rx_desc_base(E1000State *s) { uint64_t bah = s->mac_reg[RDBAH]; uint64_t bal = s->mac_reg[RDBAL] & ~0xf; return (bah << 32) + bal; }
0
[ "CWE-120" ]
qemu
b0d9ffcd0251161c7c92f94804dcf599dfa3edeb
18,223,127,039,980,710,000,000,000,000,000,000,000
7
e1000: Discard packets that are too long if !SBP and !LPE The e1000_receive function for the e1000 needs to discard packets longer than 1522 bytes if the SBP and LPE flags are disabled. The linux driver assumes this behavior and allocates memory based on this assumption. Signed-off-by: Michael Contreras <michael@inet...
static int tipc_send_group_mcast(struct socket *sock, struct msghdr *m, int dlen, long timeout) { struct tipc_uaddr *ua = (struct tipc_uaddr *)m->msg_name; struct sock *sk = sock->sk; struct tipc_sock *tsk = tipc_sk(sk); struct tipc_group *grp = tsk->group; struct tipc_msg *hdr = &tsk->phdr; struct net *net ...
0
[ "CWE-200", "CWE-909" ]
linux
d6d86830705f173fca6087a3e67ceaf68db80523
333,170,657,572,086,230,000,000,000,000,000,000,000
28
net ticp:fix a kernel-infoleak in __tipc_sendmsg() struct tipc_socket_addr.ref has a 4-byte hole,and __tipc_getname() currently copying it to user space,causing kernel-infoleak. BUG: KMSAN: kernel-infoleak in instrument_copy_to_user include/linux/instrumented.h:121 [inline] BUG: KMSAN: kernel-infoleak in instrument_c...
static PHP_MINFO_FUNCTION(libxml) { php_info_print_table_start(); php_info_print_table_row(2, "libXML support", "active"); php_info_print_table_row(2, "libXML Compiled Version", LIBXML_DOTTED_VERSION); php_info_print_table_row(2, "libXML Loaded Version", (char *)xmlParserVersion); php_info_print_table_row(2, "libX...
0
[ "CWE-200" ]
php-src
8e76d0404b7f664ee6719fd98f0483f0ac4669d6
313,233,889,822,494,440,000,000,000,000,000,000,000
9
Fixed external entity loading
static int dev_cpu_callback(struct notifier_block *nfb, unsigned long action, void *ocpu) { struct sk_buff **list_skb; struct Qdisc **list_net; struct sk_buff *skb; unsigned int cpu, oldcpu = (unsigned long)ocpu; struct softnet_data *sd, *oldsd; if (action != CPU_DEAD && action != CPU_DEAD_FROZEN) ...
0
[ "CWE-399" ]
linux
6ec82562ffc6f297d0de36d65776cff8e5704867
96,524,394,237,424,920,000,000,000,000,000,000,000
43
veth: Dont kfree_skb() after dev_forward_skb() In case of congestion, netif_rx() frees the skb, so we must assume dev_forward_skb() also consume skb. Bug introduced by commit 445409602c092 (veth: move loopback logic to common location) We must change dev_forward_skb() to always consume skb, and veth to not double fr...
void HeifContext::write(StreamWriter& writer) { m_heif_file->write(writer); }
0
[ "CWE-125" ]
libheif
f7399b62d7fbc596f1b2871578c1d2053bedf1dd
187,917,018,122,203,800,000,000,000,000,000,000,000
4
Handle case where referenced "iref" box doesn't exist (fixes #138).
xps_count_font_encodings(xps_font_t *font) { return font->cmapsubcount; }
0
[ "CWE-125" ]
ghostpdl
d2ab84732936b6e7e5a461dc94344902965e9a06
111,177,888,424,974,360,000,000,000,000,000,000,000
4
Bug 698025: validate offsets reading TTF name table in xps
int ping_common_sendmsg(int family, struct msghdr *msg, size_t len, void *user_icmph, size_t icmph_len) { u8 type, code; if (len > 0xFFFF) return -EMSGSIZE; /* Must have at least a full ICMP header. */ if (len < icmph_len) return -EINVAL; /* * Check the flags. */ /* Mirror BSD error message compati...
0
[ "CWE-284" ]
linux
0eab121ef8750a5c8637d51534d5e9143fb0633f
321,456,601,984,047,420,000,000,000,000,000,000,000
43
net: ping: check minimum size on ICMP header length Prior to commit c0371da6047a ("put iov_iter into msghdr") in v3.19, there was no check that the iovec contained enough bytes for an ICMP header, and the read loop would walk across neighboring stack contents. Since the iov_iter conversion, bad arguments are noticed, ...
string_rindex(PyStringObject *self, PyObject *args) { Py_ssize_t result = string_find_internal(self, args, -1); if (result == -2) return NULL; if (result == -1) { PyErr_SetString(PyExc_ValueError, "substring not found"); return NULL; } return PyInt_Fro...
0
[ "CWE-190" ]
cpython
c3c9db89273fabc62ea1b48389d9a3000c1c03ae
230,010,097,699,741,070,000,000,000,000,000,000,000
12
[2.7] bpo-30657: Check & prevent integer overflow in PyString_DecodeEscape (#2174)
WriteCompressedStructField(mat_t *mat, matvar_t *matvar, z_streamp z) { mat_uint32_t comp_buf[512]; mat_uint32_t uncomp_buf[512]; int buf_size = 512; size_t byteswritten = 0, field_buf_size; if ( NULL == mat || NULL == z ) return 0; if ( NULL == matvar ) { size_t dims[2] = {0, ...
0
[ "CWE-200", "CWE-401" ]
matio
b53b62b756920f4c1509f4ee06427f66c3b5c9c4
128,937,406,898,650,900,000,000,000,000,000,000,000
39
Fix memory leak As reported by https://github.com/tbeu/matio/issues/186
void CWebServer::Cmd_ChangePlanOrder(WebEmSession & session, const request& req, Json::Value &root) { std::string idx = request::findValue(&req, "idx"); if (idx.empty()) return; std::string sway = request::findValue(&req, "way"); if (sway.empty()) return; bool bGoUp = (sway == "0"); std::...
0
[ "CWE-89" ]
domoticz
ee70db46f81afa582c96b887b73bcd2a86feda00
314,068,854,350,478,900,000,000,000,000,000,000,000
48
Fixed possible SQL Injection Vulnerability (Thanks to Fabio Carretto!)
static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm) { struct vm_area_struct *mpnt, *tmp, **pprev; struct rb_node **rb_link, *rb_parent; int retval; unsigned long charge; struct mempolicy *pol; down_write(&oldmm->mmap_sem); flush_cache_dup_mm(oldmm); /* * Not linked in yet - no deadlock potenti...
0
[ "CWE-264" ]
linux-2.6
2d5516cbb9daf7d0e342a2e3b0fc6f8c39a81205
126,853,099,421,411,630,000,000,000,000,000,000,000
118
copy_process: fix CLONE_PARENT && parent_exec_id interaction CLONE_PARENT can fool the ->self_exec_id/parent_exec_id logic. If we re-use the old parent, we must also re-use ->parent_exec_id to make sure exit_notify() sees the right ->xxx_exec_id's when the CLONE_PARENT'ed task exits. Also, move down the "p->parent_ex...
void loopForWrites() { evb.loopOnce(EVLOOP_NONBLOCK); }
0
[ "CWE-617", "CWE-703" ]
mvfst
a67083ff4b8dcbb7ee2839da6338032030d712b0
217,254,227,518,788,760,000,000,000,000,000,000,000
3
Close connection if we derive an extra 1-rtt write cipher Summary: Fixes CVE-2021-24029 Reviewed By: mjoras, lnicco Differential Revision: D26613890 fbshipit-source-id: 19bb2be2c731808144e1a074ece313fba11f1945