func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
static MagickBooleanType Get8BIMProperty(const Image *image,const char *key, ExceptionInfo *exception) { char *attribute, format[MagickPathExtent], name[MagickPathExtent], *resource; const StringInfo *profile; const unsigned char *info; long start, stop; MagickBooleanType...
0
[ "CWE-703", "CWE-704" ]
ImageMagick
eac8ce4d873f28bb6a46aa3a662fb196b49b95d0
156,449,809,381,704,190,000,000,000,000,000,000,000
152
fix #5033: runtime error: load of misaligned address (#5034) * fix Division by zero in XMenuWidget() of MagickCore/widget.c * Fix memory leak in AnimateImageCommand() of MagickWand/animate.c and DisplayImageCommand() of MagickWand/display.c * fix Division by zero in ReadEnhMetaFile() of coders/emf.c * Resolve...
on_bg_changed (GnomeBG *bg, GSManager *manager) { gs_debug ("background changed"); }
0
[]
gnome-screensaver
2f597ea9f1f363277fd4dfc109fa41bbc6225aca
165,387,736,739,507,530,000,000,000,000,000,000,000
5
Fix adding monitors Make sure to show windows that are added. And fix an off by one bug.
TEST(FieldPath, RemoveOptimizesToMissingValue) { intrusive_ptr<ExpressionContextForTest> expCtx(new ExpressionContextForTest()); intrusive_ptr<ExpressionFieldPath> expression = ExpressionFieldPath::parse(expCtx, "$$REMOVE", expCtx->variablesParseState); auto optimizedExpr = expression->optimize(); ...
0
[ "CWE-835" ]
mongo
0a076417d1d7fba3632b73349a1fd29a83e68816
227,626,571,293,566,800,000,000,000,000,000,000,000
9
SERVER-38070 fix infinite loop in agg expression
static void tcp_tasklet_func(unsigned long data) { struct tsq_tasklet *tsq = (struct tsq_tasklet *)data; LIST_HEAD(list); unsigned long flags; struct list_head *q, *n; struct tcp_sock *tp; struct sock *sk; local_irq_save(flags); list_splice_init(&tsq->head, &list); local_irq_restore(flags); list_for_each_sa...
0
[ "CWE-190" ]
net
3b4929f65b0d8249f19a50245cd88ed1a2f78cff
46,681,236,521,972,660,000,000,000,000,000,000,000
25
tcp: limit payload size of sacked skbs Jonathan Looney reported that TCP can trigger the following crash in tcp_shifted_skb() : BUG_ON(tcp_skb_pcount(skb) < pcount); This can happen if the remote peer has advertized the smallest MSS that linux TCP accepts : 48 An skb can hold 17 fragments, and each fragment can ho...
pn_ssl_t *pn_ssl(pn_transport_t *transport) { if (!transport) return NULL; if (transport->ssl) return (pn_ssl_t *) transport; pni_ssl_t *ssl = (pni_ssl_t *) calloc(1, sizeof(pni_ssl_t)); if (!ssl) return NULL; ssl->out_size = APP_BUF_SIZE; uint32_t max_frame = pn_transport_get_max_frame(transport); ssl->...
0
[]
qpid-proton
4aea0fd8502f5e9af7f22fd60645eeec07bce0b2
53,999,039,843,268,700,000,000,000,000,000,000,000
33
PROTON-2014: [c] Ensure SSL mutual authentication (cherry picked from commit 97c7733f07712665f3d08091c82c393e4c3adbf7)
char *php_http_url_authority_to_string(const php_http_url_t *url, char **url_str, size_t *url_len) { php_http_buffer_t buf; php_http_buffer_init(&buf); if (url->user && *url->user) { php_http_buffer_appendl(&buf, url->user); if (url->pass && *url->pass) { php_http_buffer_appends(&buf, ":"); php_http_buff...
0
[ "CWE-119" ]
ext-http
3724cd76a28be1d6049b5537232e97ac567ae1f5
12,768,609,332,766,779,000,000,000,000,000,000,000
35
fix bug #71719 (Buffer overflow in HTTP url parsing functions) The parser's offset was not reset when we softfail in scheme parsing and continue to parse a path. Thanks to hlt99 at blinkenshell dot org for the report.
pk_transaction_resolve (PkTransaction *transaction, GVariant *params, GDBusMethodInvocation *context) { gboolean ret; guint i; guint length; PkBitfield filter; gchar **packages; _cleanup_error_free_ GError *error = NULL; _cleanup_free_ gchar *packages_temp = NULL; g_return_if_fail (PK_IS_TRANSACTION (tra...
0
[ "CWE-287" ]
PackageKit
f176976e24e8c17b80eff222572275517c16bdad
311,431,697,671,257,760,000,000,000,000,000,000,000
71
Reinstallation and downgrade require authorization Added new policy actions: * org.freedesktop.packagekit.package-reinstall * org.freedesktop.packagekit.package-downgrade The first does not depend or require any other actions to be authorized except for org.freedesktop.packagekit.package-install-untrusted in case o...
int ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_ITEM *it, int tag, int aclass, char opt, ASN1_TLC *ctx) { int rv; rv = asn1_item_embed_d2i(pval, in, len, it, tag, aclass, opt, ctx, 0); if (rv <= 0) ASN1_item_ex_free(pva...
0
[ "CWE-400", "CWE-674", "CWE-787" ]
openssl
2ac4c6f7b2b2af20c0e2b0ba05367e454cd11b33
128,847,281,592,529,840,000,000,000,000,000,000,000
10
Limit ASN.1 constructed types recursive definition depth Constructed types with a recursive definition (such as can be found in PKCS7) could eventually exceed the stack given malicious input with excessive recursion. Therefore we limit the stack depth. CVE-2018-0739 Credit to OSSFuzz for finding this issue. Reviewe...
static int hclge_shaper_para_calc(u32 ir, u8 shaper_level, u8 *ir_b, u8 *ir_u, u8 *ir_s) { #define DIVISOR_CLK (1000 * 8) #define DIVISOR_IR_B_126 (126 * DIVISOR_CLK) const u16 tick_array[HCLGE_SHAPER_LVL_CNT] = { 6 * 256, /* Prioriy level */ 6 * 32, /* Prioriy group level */ 6 * 8, ...
1
[ "CWE-125" ]
linux
04f25edb48c441fc278ecc154c270f16966cbb90
318,854,730,901,951,220,000,000,000,000,000,000,000
73
net: hns3: add some error checking in hclge_tm module When hdev->tx_sch_mode is HCLGE_FLAG_VNET_BASE_SCH_MODE, the hclge_tm_schd_mode_vnet_base_cfg calls hclge_tm_pri_schd_mode_cfg with vport->vport_id as pri_id, which is used as index for hdev->tm_info.tc_info, it will cause out of bound access issue if vport_id is e...
validate_and_copy_buf(unsigned int offset, unsigned int buffer_length, struct smb2_hdr *hdr, unsigned int minbufsize, char *data) { char *begin_of_buf = 4 /* RFC1001 len field */ + offset + (char *)hdr; int rc; if (!data) return -EINVAL; rc = validate_buf(offset, buffer_length, hdr, minbufsize)...
0
[ "CWE-476" ]
linux
cabfb3680f78981d26c078a26e5c748531257ebb
245,467,681,475,652,000,000,000,000,000,000,000,000
19
CIFS: Enable encryption during session setup phase In order to allow encryption on SMB connection we need to exchange a session key and generate encryption and decryption keys. Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
static void io_wq_destroy(struct io_wq *wq) { int node; cpuhp_state_remove_instance_nocalls(io_wq_online, &wq->cpuhp_node); for_each_node(node) { struct io_wqe *wqe = wq->wqes[node]; struct io_cb_cancel_data match = { .fn = io_wq_work_match_all, .cancel_all = true, }; io_wqe_cancel_pending_work(wqe,...
0
[ "CWE-200" ]
linux
713b9825a4c47897f66ad69409581e7734a8728e
131,414,815,648,690,330,000,000,000,000,000,000,000
19
io-wq: fix cancellation on create-worker failure WARNING: CPU: 0 PID: 10392 at fs/io_uring.c:1151 req_ref_put_and_test fs/io_uring.c:1151 [inline] WARNING: CPU: 0 PID: 10392 at fs/io_uring.c:1151 req_ref_put_and_test fs/io_uring.c:1146 [inline] WARNING: CPU: 0 PID: 10392 at fs/io_uring.c:1151 io_req_complete_post+0xf5...
static int archinfo(RAnal *anal, int q) { return 2; /* :) */ }
0
[ "CWE-125" ]
radare2
77c47cf873dd55b396da60baa2ca83bbd39e4add
127,264,206,809,492,160,000,000,000,000,000,000,000
3
Fix #9903 - oobread in RAnal.sh
static long unix_stream_data_wait(struct sock *sk, long timeo, struct sk_buff *last, unsigned int last_len) { struct sk_buff *tail; DEFINE_WAIT(wait); unix_state_lock(sk); for (;;) { prepare_to_wait(sk_sleep(sk), &wait, TASK_INTERRUPTIBLE); tail = skb_peek_tail(&sk->sk_receive_queue); if (tail != las...
0
[]
net
712f4aad406bb1ed67f3f98d04c044191f0ff593
59,349,909,319,128,740,000,000,000,000,000,000,000
35
unix: properly account for FDs passed over unix sockets It is possible for a process to allocate and accumulate far more FDs than the process' limit by sending them over a unix socket then closing them to keep the process' fd count low. This change addresses this problem by keeping track of the number of FDs in fligh...
CmdResult RemoveSilence(LocalUser* user, const std::string& mask, uint32_t flags) { SilenceList* list = ext.get(user); if (list) { for (SilenceList::iterator iter = list->begin(); iter != list->end(); ++iter) { if (!irc::equals(iter->mask, mask) || iter->flags != flags) continue; list->erase...
0
[ "CWE-416" ]
inspircd
bcd65de1ec4bb71591ae417fee649d7ecd37cd57
210,099,398,048,556,530,000,000,000,000,000,000,000
20
Add the new implementation of the silence module. This module has significant improvements on the previous one: * Flags which actually make sense. * Better compatibility with other SILENCE implementations. * Support for blocking CTCPs. * Support for blocking TAGMSGs.
static int printuserlist(char *buf, int bufsize, struct userlist* ul, char * delim){ int printed = 0; for(; ul; ul = ul->next){ if(printed > (bufsize - 64)) break; printed += sprintf(buf+printed, "%s%s", ul->user, ul->next?delim:""); if(printed > (bufsize - 64)) { printed += sprintf(buf+printed, "..."); ...
0
[ "CWE-20", "CWE-787" ]
3proxy
3b67dc844789dc0f00e934270c7b349bcb547865
206,232,591,153,596,500,000,000,000,000,000,000,000
13
Fix: out-of-bounds write and few more bugs in 'admin' configuration upload
static void coalesced_mmio_destructor(struct kvm_io_device *this) { struct kvm_coalesced_mmio_dev *dev = to_mmio(this); list_del(&dev->list); kfree(dev); }
0
[ "CWE-787" ]
kvm
b60fe990c6b07ef6d4df67bc0530c7c90a62623a
222,826,640,963,357,840,000,000,000,000,000,000,000
8
KVM: coalesced_mmio: add bounds checking The first/last indexes are typically shared with a user app. The app can change the 'last' index that the kernel uses to store the next result. This change sanity checks the index before using it for writing to a potentially arbitrary address. This fixes CVE-2019-14821. Cc: ...
send_message (mu_message_t msg) { char *mailer_url = NULL; char *sendmail; int status; if (mailvar_get (&sendmail, mailvar_name_sendmail, mailvar_type_string, 0) == 0) { if (mailvar_is_true (mailvar_name_mailx)) { /* * Mailx compatibility: assume sendmail:// scheme. */ if (!mu_i...
0
[]
mailutils
4befcfd015256c568121653038accbd84820198f
135,196,814,594,025,600,000,000,000,000,000,000,000
81
mail: disable compose escapes in non-interctive mode. * NEWS: Document changes. * doc/texinfo/programs/mail.texi: Document changes. * mail/send.c (mail_compose_send): Recognize escapes only in interactive mode.
CModule::EModRet CModule::OnChanAction(CNick& Nick, CChan& Channel, CString& sMessage) { return CONTINUE; }
0
[ "CWE-20", "CWE-264" ]
znc
8de9e376ce531fe7f3c8b0aa4876d15b479b7311
117,561,009,124,910,750,000,000,000,000,000,000,000
4
Fix remote code execution and privilege escalation vulnerability. To trigger this, need to have a user already. Thanks for Jeriko One <jeriko.one@gmx.us> for finding and reporting this. CVE-2019-12816
static int bcm_notifier(struct notifier_block *nb, unsigned long msg, void *ptr) { struct net_device *dev = netdev_notifier_info_to_dev(ptr); if (dev->type != ARPHRD_CAN) return NOTIFY_DONE; if (msg != NETDEV_UNREGISTER && msg != NETDEV_DOWN) return NOTIFY_DONE; if (unlikely(bcm_busy_notifier)) /* Check for...
0
[ "CWE-362" ]
linux
d5f9023fa61ee8b94f37a93f08e94b136cf1e463
254,990,191,666,785,540,000,000,000,000,000,000,000
22
can: bcm: delay release of struct bcm_op after synchronize_rcu() can_rx_register() callbacks may be called concurrently to the call to can_rx_unregister(). The callbacks and callback data, though, are protected by RCU and the struct sock reference count. So the callback data is really attached to the life of sk, mean...
long BlockEntry::GetIndex() const { return m_index; }
0
[ "CWE-20" ]
libvpx
34d54b04e98dd0bac32e9aab0fbda0bf501bc742
338,753,393,023,270,970,000,000,000,000,000,000,000
1
update libwebm to libwebm-1.0.0.27-358-gdbf1d10 changelog: https://chromium.googlesource.com/webm/libwebm/+log/libwebm-1.0.0.27-351-g9f23fbc..libwebm-1.0.0.27-358-gdbf1d10 Change-Id: I28a6b3ae02a53fb1f2029eee11e9449afb94c8e3
void fpm_request_check_timed_out(struct fpm_child_s *child, struct timeval *now, int terminate_timeout, int slowlog_timeout, int track_finished) /* {{{ */ { struct fpm_scoreboard_proc_s proc, *proc_p; proc_p = fpm_scoreboard_proc_acquire(child->wp->scoreboard, child->scoreboard_i, 1); if (!proc_p) { zlog(ZLOG_WAR...
0
[ "CWE-787" ]
php-src
fadb1f8c1d08ae62b4f0a16917040fde57a3b93b
303,465,227,756,014,100,000,000,000,000,000,000,000
57
Fix bug #81026 (PHP-FPM oob R/W in root process leading to priv escalation) The main change is to store scoreboard procs directly to the variable sized array rather than indirectly through the pointer. Signed-off-by: Stanislav Malyshev <stas@php.net>
Value ExpressionArrayToObject::evaluate(const Document& root) const { const Value input = vpOperand[0]->evaluate(root); if (input.nullish()) { return Value(BSONNULL); } uassert(40386, str::stream() << "$arrayToObject requires an array input, found: " << typ...
0
[ "CWE-835" ]
mongo
0a076417d1d7fba3632b73349a1fd29a83e68816
178,512,287,121,546,900,000,000,000,000,000,000,000
92
SERVER-38070 fix infinite loop in agg expression
bool boolean() const { return *value() ? true : false; }
0
[ "CWE-613" ]
mongo
e55d6e2292e5dbe2f97153251d8193d1cc89f5d7
271,396,550,897,283,700,000,000,000,000,000,000,000
3
SERVER-38984 Validate unique User ID on UserCache hit
static int xen_netbk_tx_check_gop(struct xen_netbk *netbk, struct sk_buff *skb, struct gnttab_copy **gopp) { struct gnttab_copy *gop = *gopp; u16 pending_idx = *((u16 *)skb->data); struct pending_tx_info *pending_tx_info = netbk->pending_tx_info; struct xenvif *vif = pending_tx_info[pending_idx].vif; s...
1
[ "CWE-399" ]
linux
7d5145d8eb2b9791533ffe4dc003b129b9696c48
296,360,520,283,224,700,000,000,000,000,000,000,000
68
xen/netback: don't leak pages on failure in xen_netbk_tx_check_gop. Signed-off-by: Matthew Daley <mattjd@gmail.com> Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Jan Beulich <JBeulich@suse.com> Signed-off-by: David S. Miller <davem@davemloft.net>
long kvm_arch_vcpu_ioctl(struct file *filp, unsigned int ioctl, unsigned long arg) { struct kvm_vcpu *vcpu = filp->private_data; void __user *argp = (void __user *)arg; switch (ioctl) { case KVM_ARM_VCPU_INIT: { struct kvm_vcpu_init init; if (copy_from_user(&init, argp, sizeof(init))) return -EFAULT; ...
0
[ "CWE-399", "CWE-284" ]
linux
e8180dcaa8470ceca21109f143876fdcd9fe050a
83,488,418,944,349,560,000,000,000,000,000,000,000
52
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 ...
check_cpu_capacity(struct rq *rq, struct sched_domain *sd) { return ((rq->cpu_capacity * sd->imbalance_pct) < (rq->cpu_capacity_orig * 100)); }
0
[ "CWE-400", "CWE-703", "CWE-835" ]
linux
c40f7d74c741a907cfaeb73a7697081881c497d0
251,102,443,443,761,700,000,000,000,000,000,000,000
5
sched/fair: Fix infinite loop in update_blocked_averages() by reverting a9e7f6544b9c Zhipeng Xie, Xie XiuQi and Sargun Dhillon reported lockups in the scheduler under high loads, starting at around the v4.18 time frame, and Zhipeng Xie tracked it down to bugs in the rq->leaf_cfs_rq_list manipulation. Do a (manual) re...
Curves16Data* CurvesAlloc(cmsContext ContextID, int nCurves, int nElements, cmsToneCurve** G) { int i, j; Curves16Data* c16; c16 = _cmsMallocZero(ContextID, sizeof(Curves16Data)); if (c16 == NULL) return NULL; c16 ->nCurves = nCurves; c16 ->nElements = nElements; c16 ->Curves = _cmsCalloc...
0
[ "CWE-703" ]
Little-CMS
91c2db7f2559be504211b283bc3a2c631d6f06d9
26,660,474,045,227,056,000,000,000,000,000,000,000
45
Non happy-path fixes
static void com_property_delete(zval *object, zval *member, void **cache_slot) { php_error_docref(NULL, E_WARNING, "Cannot delete properties from a COM object"); }
0
[ "CWE-502" ]
php-src
115ee49b0be12e3df7d2c7027609fbe1a1297e42
66,048,146,825,926,560,000,000,000,000,000,000,000
4
Fix #77177: Serializing or unserializing COM objects crashes Firstly, we avoid returning NULL from the get_property handler, but instead return an empty HashTable, which already prevents the crashes. Secondly, since (de-)serialization obviously makes no sense for COM, DOTNET and VARIANT objects (at least with the curr...
static int smack_inode_copy_up(struct dentry *dentry, struct cred **new) { struct task_smack *tsp; struct smack_known *skp; struct inode_smack *isp; struct cred *new_creds = *new; if (new_creds == NULL) { new_creds = prepare_creds(); if (new_creds == NULL) return -ENOMEM; } tsp = smack_cred(new_creds);...
0
[ "CWE-416" ]
linux
a3727a8bac0a9e77c70820655fd8715523ba3db7
103,991,078,253,746,620,000,000,000,000,000,000,000
25
selinux,smack: fix subjective/objective credential use mixups Jann Horn reported a problem with commit eb1231f73c4d ("selinux: clarify task subjective and objective credentials") where some LSM hooks were attempting to access the subjective credentials of a task other than the current task. Generally speaking, it is ...
ofputil_versions_from_strings(char ** const s, size_t count) { uint32_t bitmap = 0; while (count--) { int version = ofputil_version_from_string(s[count]); if (!version) { VLOG_WARN("Unknown OpenFlow version: \"%s\"", s[count]); } else { bitmap |= 1u << version; ...
0
[ "CWE-772" ]
ovs
77ad4225d125030420d897c873e4734ac708c66b
26,121,994,084,373,835,000,000,000,000,000,000,000
15
ofp-util: Fix memory leaks on error cases in ofputil_decode_group_mod(). Found by libFuzzer. Reported-by: Bhargava Shastry <bshastry@sec.t-labs.tu-berlin.de> Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Justin Pettit <jpettit@ovn.org>
static int fdc_configure(void) { /* Turn on FIFO */ output_byte(FD_CONFIGURE); if (need_more_output() != MORE_OUTPUT) return 0; output_byte(0); output_byte(0x10 | (no_fifo & 0x20) | (fifo_depth & 0xf)); output_byte(0); /* pre-compensation from track 0 upwards */ return 1; }
0
[ "CWE-264", "CWE-754" ]
linux
ef87dbe7614341c2e7bfe8d32fcb7028cc97442c
287,795,327,469,765,800,000,000,000,000,000,000,000
12
floppy: ignore kernel-only members in FDRAWCMD ioctl input Always clear out these floppy_raw_cmd struct members after copying the entire structure from userspace so that the in-kernel version is always valid and never left in an interdeterminate state. Signed-off-by: Matthew Daley <mattd@bugfuzz.com> Signed-off-by: L...
static void phys_page_set_level(PhysPageMap *map, PhysPageEntry *lp, hwaddr *index, hwaddr *nb, uint16_t leaf, int level) { PhysPageEntry *p; int i; hwaddr step = (hwaddr)1 << (level * P_L2_BITS); if (lp->skip && lp->ptr == PHYS_MAP_NODE_N...
0
[]
qemu
c3c1bb99d1c11978d9ce94d1bdcf0705378c1459
6,921,096,161,364,239,000,000,000,000,000,000,000
34
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...
sctp_disposition_t sctp_sf_eat_auth(struct net *net, const struct sctp_endpoint *ep, const struct sctp_association *asoc, const sctp_subtype_t type, void *arg, sctp_cmd_seq_t *commands) { struct sctp_authhdr *auth_hdr; struct sctp_chunk *chunk = arg; struct sctp_chunk *err_chu...
0
[]
linux
196d67593439b03088913227093e374235596e33
239,600,549,014,196,980,000,000,000,000,000,000,000
73
sctp: Add support to per-association statistics via a new SCTP_GET_ASSOC_STATS call The current SCTP stack is lacking a mechanism to have per association statistics. This is an implementation modeled after OpenSolaris' SCTP_GET_ASSOC_STATS. Userspace part will follow on lksctp if/when there is a general ACK on this. ...
skip_short_body (int fd, wgint contlen, bool chunked) { enum { SKIP_SIZE = 512, /* size of the download buffer */ SKIP_THRESHOLD = 4096 /* the largest size we read */ }; wgint remaining_chunk_size = 0; char dlbuf[SKIP_SIZE + 1]; dlbuf[SKIP_SIZE] = '\0'; /* so DEBUGP can sa...
1
[ "CWE-119" ]
wget
d892291fb8ace4c3b734ea5125770989c215df3f
256,953,861,412,338,600,000,000,000,000,000,000,000
75
Fix stack overflow in HTTP protocol handling (CVE-2017-13089) * src/http.c (skip_short_body): Return error on negative chunk size Reported-by: Antti Levomäki, Christian Jalio, Joonas Pihlaja from Forcepoint Reported-by: Juhani Eronen from Finnish National Cyber Security Centre
static void bind_image_locs(struct vrend_linked_shader_program *sprog, int shader_type) { int i; char name[32]; const char *prefix = pipe_shader_to_prefix(shader_type); const struct vrend_shader_info *sinfo = &sprog->ss[shader_type]->sel->sinfo; uint32_t mask = sinfo->images_...
0
[ "CWE-787" ]
virglrenderer
95e581fd181b213c2ed7cdc63f2abc03eaaa77ec
152,554,357,596,715,170,000,000,000,000,000,000,000
47
vrend: Add test to resource OOB write and fix it v2: Also check that no depth != 1 has been send when none is due Closes: #250 Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
void ntlm_generate_timestamp(NTLM_CONTEXT* context) { if (memcmp(context->ChallengeTimestamp, NTLM_NULL_BUFFER, 8) != 0) CopyMemory(context->Timestamp, context->ChallengeTimestamp, 8); else ntlm_current_time(context->Timestamp); }
0
[ "CWE-125" ]
FreeRDP
c098f21fdaadca57ff649eee1674f6cc321a2ec4
222,441,413,085,543,270,000,000,000,000,000,000,000
7
Fixed oob read in ntlm_read_ntlm_v2_response
errno_t sssctl_logs_fetch(struct sss_cmdline *cmdline, struct sss_tool_ctx *tool_ctx, void *pvt) { const char *file; const char *cmd; errno_t ret; /* Parse command line. */ ret = sss_tool_popt_ex(cmdline, NULL, SSS_TOOL_OPT_OPTIONAL, NULL, NULL, ...
1
[ "CWE-78" ]
sssd
7ab83f97e1cbefb78ece17232185bdd2985f0bbe
128,590,677,359,120,540,000,000,000,000,000,000,000
30
TOOLS: replace system() with execvp() to avoid execution of user supplied command :relnote: A flaw was found in SSSD, where the sssctl command was vulnerable to shell command injection via the logs-fetch and cache-expire subcommands. This flaw allows an attacker to trick the root user into running a specially crafted ...
Method* InstanceKlass::method_with_orig_idnum(int idnum) { if (idnum >= methods()->length()) { return NULL; } Method* m = methods()->at(idnum); if (m != NULL && m->orig_method_idnum() == idnum) { return m; } // Obsolete method idnum does not match the original idnum for (int index = 0; index < met...
0
[]
jdk17u
f8eb9abe034f7c6bea4da05a9ea42017b3f80730
181,475,389,001,294,500,000,000,000,000,000,000,000
18
8270386: Better verification of scan methods Reviewed-by: coleenp Backport-of: ac329cef45979bd0159ecd1347e36f7129bb2ce4
mypair(int fg, int bg) { int pair = (fg * COLORS) + bg; return (pair >= COLOR_PAIRS) ? -1 : pair; }
0
[]
ncurses
790a85dbd4a81d5f5d8dd02a44d84f01512ef443
177,610,112,309,951,870,000,000,000,000,000,000,000
5
ncurses 6.2 - patch 20200531 + correct configure version-check/warnng for g++ to allow for 10.x + re-enable "bel" in konsole-base (report by Nia Huang) + add linux-s entry (patch by Alexandre Montaron). + drop long-obsolete convert_configure.pl + add test/test_parm.c, for checking tparm changes. + improve parameter-ch...
static int lsi_dma_ti64bit(LSIState *s) { if ((s->ccntl1 & LSI_CCNTL1_EN64TIBMV) == LSI_CCNTL1_EN64TIBMV) return 1; return 0; }
0
[ "CWE-835" ]
qemu
de594e47659029316bbf9391efb79da0a1a08e08
297,380,082,209,265,800,000,000,000,000,000,000,000
6
scsi: lsi: exit infinite loop while executing script (CVE-2019-12068) When executing script in lsi_execute_script(), the LSI scsi adapter emulator advances 's->dsp' index to read next opcode. This can lead to an infinite loop if the next opcode is empty. Move the existing loop exit after 10k iterations so that it cove...
static void fuse_write_fill(struct fuse_req *req, struct fuse_file *ff, loff_t pos, size_t count) { struct fuse_write_in *inarg = &req->misc.write.in; struct fuse_write_out *outarg = &req->misc.write.out; inarg->fh = ff->fh; inarg->offset = pos; inarg->size = count; req->in.h.opcode = FUSE_WRITE; req->in...
0
[]
linux-2.6
0bd87182d3ab18a32a8e9175d3f68754c58e3432
291,822,429,538,925,400,000,000,000,000,000,000,000
22
fuse: fix kunmap in fuse_ioctl_copy_user Looks like another victim of the confusing kmap() vs kmap_atomic() API differences. Reported-by: Todor Gyumyushev <yodor1@gmail.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com> Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Cc: Tejun Heo <tj@kernel.org> Cc: stable@kern...
static int mod_session_init (void *instance, eap_handler_t *handler) { pwd_session_t *session; eap_pwd_t *inst = (eap_pwd_t *)instance; VALUE_PAIR *vp; pwd_id_packet_t *packet; if (!inst || !handler) { ERROR("rlm_eap_pwd: Initiate, NULL data provided"); return 0; } /* * make sure the server's been configu...
0
[ "CWE-662" ]
freeradius-server
6b522f8780813726799e6b8cf0f1f8e0ce2c8ebf
164,334,297,639,545,200,000,000,000,000,000,000,000
100
EAP-pwd: fix DoS due to multithreaded BN_CTX access The EAP-pwd module created one global OpenSSL BN_CTX instance, and used this instance in all incoming requests. This means that different threads used the same BN_CTX instance, which can result in a crash. An adversary can trigger these crashes by concurrently initia...
int main(void) { char *str; int i, id; id_init(); #define N_CELLS_PER_SLOT 8 #define N_STRINGS ((2 * N_CELLS_PER_SLOT) + 3) char *strings[N_STRINGS]; int ids[N_STRINGS]; for (i = 0; i < N_STRINGS; i++) { str = malloc(10); sprintf(str, "%d", i); strings[i] = str; id = id_create(str); if (id < 0) { ...
0
[ "CWE-264" ]
nspluginwrapper
7e4ab8e1189846041f955e6c83f72bc1624e7a98
110,546,631,333,200,010,000,000,000,000,000,000,000
67
Support all the new variables added
static int test_halt(struct usbtest_dev *tdev, int ep, struct urb *urb) { int retval; /* shouldn't look or act halted now */ retval = verify_not_halted(tdev, ep, urb); if (retval < 0) return retval; /* set halt (protocol test only), verify it worked */ retval = usb_control_msg(urb->dev, usb_sndctrlpipe(urb->d...
0
[ "CWE-476" ]
linux
7c80f9e4a588f1925b07134bb2e3689335f6c6d8
120,929,714,525,361,770,000,000,000,000,000,000,000
45
usb: usbtest: fix NULL pointer dereference If the usbtest driver encounters a device with an IN bulk endpoint but no OUT bulk endpoint, it will try to dereference a NULL pointer (out->desc.bEndpointAddress). The problem can be solved by adding a missing test. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Rep...
int __init audit_register_class(int class, unsigned *list) { __u32 *p = kzalloc(AUDIT_BITMASK_SIZE * sizeof(__u32), GFP_KERNEL); if (!p) return -ENOMEM; while (*list != ~0U) { unsigned n = *list++; if (n >= AUDIT_BITMASK_SIZE * 32 - AUDIT_SYSCALL_CLASSES) { kfree(p); return -EINVAL; } p[AUDIT_WORD(n)...
0
[ "CWE-362" ]
linux-2.6
8f7b0ba1c853919b85b54774775f567f30006107
339,720,827,878,889,770,000,000,000,000,000,000,000
20
Fix inotify watch removal/umount races Inotify watch removals suck violently. To kick the watch out we need (in this order) inode->inotify_mutex and ih->mutex. That's fine if we have a hold on inode; however, for all other cases we need to make damn sure we don't race with umount. We can *NOT* just grab a reference...
Word wasi_unstable_fd_seekHandler(void*, Word, int64_t, Word, Word) { throw WasmException("wasi_unstable fd_seek"); }
0
[ "CWE-476" ]
envoy
8788a3cf255b647fd14e6b5e2585abaaedb28153
116,950,981,030,425,300,000,000,000,000,000,000,000
3
1.4 - Do not call into the VM unless the VM Context has been created. (#24) * Ensure that the in VM Context is created before onDone is called. Signed-off-by: John Plevyak <jplevyak@gmail.com> * Update as per offline discussion. Signed-off-by: John Plevyak <jplevyak@gmail.com> * Set in_vm_context_created_ in onNet...
static int bnxt_re_build_rdma_wqe(const struct ib_send_wr *wr, struct bnxt_qplib_swqe *wqe) { switch (wr->opcode) { case IB_WR_RDMA_WRITE: wqe->type = BNXT_QPLIB_SWQE_TYPE_RDMA_WRITE; break; case IB_WR_RDMA_WRITE_WITH_IMM: wqe->type = BNXT_QPLIB_SWQE_TYPE_RDMA_WRITE_WITH_IMM; wqe->rdma.imm_data = wr->e...
0
[ "CWE-400", "CWE-401" ]
linux
4a9d46a9fe14401f21df69cea97c62396d5fb053
150,969,926,382,120,900,000,000,000,000,000,000,000
31
RDMA: Fix goto target to release the allocated memory In bnxt_re_create_srq(), when ib_copy_to_udata() fails allocated memory should be released by goto fail. Fixes: 37cb11acf1f7 ("RDMA/bnxt_re: Add SRQ support for Broadcom adapters") Link: https://lore.kernel.org/r/20190910222120.16517-1-navid.emamdoost@gmail.com Si...
nautilus_file_get_type_as_string (NautilusFile *file) { if (file == NULL) { return NULL; } if (nautilus_file_is_broken_symbolic_link (file)) { return g_strdup (_("link (broken)")); } return update_description_for_link (file, get_description (file)); }
0
[]
nautilus
7632a3e13874a2c5e8988428ca913620a25df983
157,287,234,645,200,900,000,000,000,000,000,000,000
12
Check for trusted desktop file launchers. 2009-02-24 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-directory-async.c: Check for trusted desktop file launchers. * libnautilus-private/nautilus-file-private.h: * libnautilus-private/nautilus-file.c: * libnautilus-...
static struct l2cap_conn *l2cap_conn_add(struct hci_conn *hcon, u8 status) { struct l2cap_conn *conn = hcon->l2cap_data; if (conn || status) return conn; conn = kzalloc(sizeof(struct l2cap_conn), GFP_ATOMIC); if (!conn) return NULL; hcon->l2cap_data = conn; conn->hcon = hcon; BT_DBG("hcon %p conn %p", hc...
0
[ "CWE-200", "CWE-119", "CWE-787" ]
linux
f2fcfcd670257236ebf2088bbdf26f6a8ef459fe
23,488,839,383,371,334,000,000,000,000,000,000,000
32
Bluetooth: Add configuration support for ERTM and Streaming mode Add support to config_req and config_rsp to configure ERTM and Streaming mode. If the remote device specifies ERTM or Streaming mode, then the same mode is proposed. Otherwise ERTM or Basic mode is used. And in case of a state 2 device, the remote device...
l2f(UINT8 *out_, const UINT8 *in, int xsize) { int x; for (x = 0; x < xsize; x++, out_ += 4) { FLOAT32 f = (FLOAT32)*in++; memcpy(out_, &f, sizeof(f)); } }
0
[ "CWE-120" ]
Pillow
518ee3722a99d7f7d890db82a20bd81c1c0327fb
194,994,625,378,900,560,000,000,000,000,000,000,000
7
Use snprintf instead of sprintf
static int atif_probe_device(struct atalk_iface *atif) { int netrange = ntohs(atif->nets.nr_lastnet) - ntohs(atif->nets.nr_firstnet) + 1; int probe_net = ntohs(atif->address.s_net); int probe_node = atif->address.s_node; int netct, nodect; /* Offset the network we start probing with */ if (probe_net == ATADDR...
0
[]
history
7ab442d7e0a76402c12553ee256f756097cae2d2
243,992,334,275,135,330,000,000,000,000,000,000,000
44
[DDP]: Convert to new protocol interface. Convert ddp to the new protocol interface which means it has to handle fragmented skb's. The only big change is in the checksum routine which has to do more work (like skb_checksum). Minor speedup is folding the carry to avoid a branch. Tested against a 2.4 system and by ru...
scanner_detect_invalid_let (parser_context_t *context_p, /**< context */ lexer_lit_location_t *let_literal_p) /**< let literal */ { if (let_literal_p->type & (SCANNER_LITERAL_IS_ARG | SCANNER_LITERAL_IS_VAR | SCANNER_LITERAL_IS_LOCA...
0
[ "CWE-416" ]
jerryscript
3bcd48f72d4af01d1304b754ef19fe1a02c96049
333,297,500,483,389,700,000,000,000,000,000,000,000
15
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
flatpak_dir_get_unmaintained_extension_dir (FlatpakDir *self, const char *name, const char *arch, const char *branch) { g_autofree char *unmaintained_ref = NULL; unmaintained_ref = g_...
0
[ "CWE-668" ]
flatpak
cd2142888fc4c199723a0dfca1f15ea8788a5483
125,479,510,755,228,130,000,000,000,000,000,000,000
10
Don't expose /proc when running apply_extra As shown by CVE-2019-5736, it is sometimes possible for the sandbox app to access outside files using /proc/self/exe. This is not typically an issue for flatpak as the sandbox runs as the user which has no permissions to e.g. modify the host files. However, when installing ...
*/ bool rps_may_expire_flow(struct net_device *dev, u16 rxq_index, u32 flow_id, u16 filter_id) { struct netdev_rx_queue *rxqueue = dev->_rx + rxq_index; struct rps_dev_flow_table *flow_table; struct rps_dev_flow *rflow; bool expire = true; unsigned int cpu; rcu_read_lock(); flow_table = rcu_dereference(rxq...
0
[ "CWE-416" ]
linux
a4270d6795b0580287453ea55974d948393e66ef
769,164,417,281,901,800,000,000,000,000,000,000
23
net-gro: fix use-after-free read in napi_gro_frags() If a network driver provides to napi_gro_frags() an skb with a page fragment of exactly 14 bytes, the call to gro_pull_from_frag0() will 'consume' the fragment by calling skb_frag_unref(skb, 0), and the page might be freed and reused. Reading eth->h_proto at the en...
static GF_Err gf_dump_to_ogg(GF_MediaExporter *dumper, char *szName, u32 track) { #ifdef GPAC_DISABLE_OGG return GF_NOT_SUPPORTED; #else FILE *out; ogg_stream_state os; ogg_packet op; ogg_page og; u32 count, i, di, theora_kgs, nb_i, nb_p; Bool flush_first = GF_TRUE; GF_BitStream *bs; GF_ISOSample *samp; GF_ES...
0
[ "CWE-476" ]
gpac
00194f5fe462123f70b0bae7987317b52898b868
220,941,570,089,935,300,000,000,000,000,000,000,000
152
fixed #1769 (fuzz)
TEST_P(Http2CodecImplTest, PriorityFloodOverride) { max_inbound_priority_frames_per_stream_ = 2147483647; priorityFlood(); EXPECT_NO_THROW(client_->sendPendingFrames()); }
0
[ "CWE-400" ]
envoy
0e49a495826ea9e29134c1bd54fdeb31a034f40c
182,083,633,938,022,800,000,000,000,000,000,000,000
6
http/2: add stats and stream flush timeout (#139) This commit adds a new stream flush timeout to guard against a remote server that does not open window once an entire stream has been buffered for flushing. Additional stats have also been added to better understand the codecs view of active streams as well as amount o...
**/ CImgList<T>& assign(const unsigned int n, const unsigned int width, const unsigned int height=1, const unsigned int depth=1, const unsigned int spectrum=1) { assign(n); cimglist_apply(*this,assign)(width,height,depth,spectrum); return *this;
0
[ "CWE-125" ]
CImg
10af1e8c1ad2a58a0a3342a856bae63e8f257abb
168,561,945,939,751,710,000,000,000,000,000,000,000
6
Fix other issues in 'CImg<T>::load_bmp()'.
template<typename T> inline T median(T val0, T val1, T val2, T val3, T val4) { T tmp = std::min(val0,val1); val1 = std::max(val0,val1); val0 = tmp; tmp = std::min(val3,val4); val4 = std::max(val3,val4); val3 = std::max(val0,tmp); val1 = std::min(val1,val4); tmp = std::min(val1,val2); val2 = s...
0
[ "CWE-125" ]
CImg
10af1e8c1ad2a58a0a3342a856bae63e8f257abb
230,226,239,418,733,400,000,000,000,000,000,000,000
7
Fix other issues in 'CImg<T>::load_bmp()'.
static void test_bug4231() { MYSQL_STMT *stmt; MYSQL_BIND my_bind[2]; MYSQL_TIME tm[2]; const char *stmt_text; int rc; myheader("test_bug4231"); stmt_text= "DROP TABLE IF EXISTS t1"; rc= mysql_real_query(mysql, stmt_text, strlen(stmt_text)); myquery(rc); stmt_text= "CREATE TABLE t1 (a int)"; rc...
0
[ "CWE-284", "CWE-295" ]
mysql-server
3bd5589e1a5a93f9c224badf983cd65c45215390
210,358,360,715,407,900,000,000,000,000,000,000,000
71
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...
bool contains(Object_handle h) const /*{\Mop returns true iff the object |h| is contained in the set represented by |\Mvar|.}*/ { Slocator PL(pm()); return PL.mark(h); }
0
[ "CWE-269" ]
cgal
618b409b0fbcef7cb536a4134ae3a424ef5aae45
289,358,905,783,052,880,000,000,000,000,000,000,000
4
Fix Nef_2 and Nef_S2 IO
static void no_memory_bailout(size_t allocate_size, char *error) { zend_accel_error(ACCEL_LOG_FATAL, "Unable to allocate shared memory segment of %ld bytes: %s: %s (%d)", allocate_size, error?error:"unknown", strerror(errno), errno ); }
0
[ "CWE-416" ]
php-src
777c39f4042327eac4b63c7ee87dc1c7a09a3115
168,721,820,608,208,520,000,000,000,000,000,000,000
4
Fixed #68677
intrusive_ptr<Expression> ExpressionDateToParts::optimize() { _date = _date->optimize(); if (_timeZone) { _timeZone = _timeZone->optimize(); } if (_iso8601) { _iso8601 = _iso8601->optimize(); } if (ExpressionConstant::allNullOrConstant({_date, _iso8601, _timeZone})) { //...
0
[ "CWE-835" ]
mongo
0a076417d1d7fba3632b73349a1fd29a83e68816
278,770,746,129,643,860,000,000,000,000,000,000,000
16
SERVER-38070 fix infinite loop in agg expression
static char *print_object(cJSON *item,int depth,int fmt,printbuffer *p) { char **entries=0,**names=0; char *out=0,*ptr,*ret,*str;int len=7,i=0,j; cJSON *child=item->child; int numentries=0,fail=0; size_t tmplen=0; /* Count the number of entries. */ while (child) numentries++,child=child->next; /* Explicitly han...
0
[ "CWE-120", "CWE-119", "CWE-787" ]
iperf
91f2fa59e8ed80dfbf400add0164ee0e508e412a
308,849,115,084,009,700,000,000,000,000,000,000,000
109
Fix a buffer overflow / heap corruption issue that could occur if a malformed JSON string was passed on the control channel. This issue, present in the cJSON library, was already fixed upstream, so was addressed here in iperf3 by importing a newer version of cJSON (plus local ESnet modifications). Discovered and repo...
MagickExport MagickBooleanType StripImage(Image *image) { MagickBooleanType status; assert(image != (Image *) NULL); if (image->debug != MagickFalse) (void) LogMagickEvent(TraceEvent,GetMagickModule(),"..."); DestroyImageProfiles(image); (void) DeleteImageProperty(image,"comment"); (void) DeleteIma...
0
[ "CWE-665" ]
ImageMagick6
27b1c74979ac473a430e266ff6c4b645664bc805
112,729,275,574,944,030,000,000,000,000,000,000,000
16
https://github.com/ImageMagick/ImageMagick/issues/1522
conntrack_flush(struct conntrack *ct, const uint16_t *zone) { for (unsigned i = 0; i < CONNTRACK_BUCKETS; i++) { struct conntrack_bucket *ctb = &ct->buckets[i]; ovs_mutex_lock(&ctb->cleanup_mutex); ct_lock_lock(&ctb->lock); for (unsigned j = 0; j < N_CT_TM; j++) { struct ...
0
[ "CWE-400" ]
ovs
abd7a457652e6734902720fe6a5dddb3fc0d1e3b
58,860,675,489,592,090,000,000,000,000,000,000,000
20
flow: Support extra padding length. Although not required, padding can be optionally added until the packet length is MTU bytes. A packet with extra padding currently fails sanity checks. Vulnerability: CVE-2020-35498 Fixes: fa8d9001a624 ("miniflow_extract: Properly handle small IP packets.") Reported-by: Joakim Hind...
double app_tminterval(int stop,int usertime) { FILETIME now; double ret=0; static ULARGE_INTEGER tmstart; static int warning=1; #ifdef _WIN32_WINNT static HANDLE proc=NULL; if (proc==NULL) { if (GetVersion() < 0x80000000) proc = OpenProcess(PROCESS_QUERY_INFORMATION,FALSE, GetCurrentProcessId(...
0
[]
openssl
a70da5b3ecc3160368529677006801c58cb369db
110,632,353,464,515,830,000,000,000,000,000,000,000
53
New functions to check a hostname email or IP address against a certificate. Add options to s_client, s_server and x509 utilities to print results of checks.
static int v9fs_complete_rename(V9fsPDU *pdu, V9fsFidState *fidp, int32_t newdirfid, V9fsString *name) { char *end; int err = 0; V9fsPath new_path; V9fsFidState *tfidp; V9fsState *s = pdu->s; V9fsFidState *dirfidp = NULL; char *old_name, *new_name; v9fs_p...
0
[ "CWE-399", "CWE-772" ]
qemu
e95c9a493a5a8d6f969e86c9f19f80ffe6587e19
160,758,213,456,810,400,000,000,000,000,000,000,000
56
9pfs: fix potential host memory leak in v9fs_read In 9pfs read dispatch function, it doesn't free two QEMUIOVector object thus causing potential memory leak. This patch avoid this. Signed-off-by: Li Qiang <liqiang6-s@360.cn> Signed-off-by: Greg Kurz <groug@kaod.org>
inline cimg_long ftell(FILE *stream) { #if defined(WIN64) || defined(_WIN64) || defined(__WIN64__) return (cimg_long)_ftelli64(stream); #else return (cimg_long)std::ftell(stream); #endif }
0
[ "CWE-770" ]
cimg
619cb58dd90b4e03ac68286c70ed98acbefd1c90
123,407,017,774,968,800,000,000,000,000,000,000,000
7
CImg<>::load_bmp() and CImg<>::load_pandore(): Check that dimensions encoded in file does not exceed file size.
static int ntop_rrd_graph(lua_State* vm) { char **calcpr; int i, xsize, ysize; double ymin, ymax; int status; int argc; char **argv = read_string_array(vm, 1, &argc); reset_rrd_state(); status = rrd_graph(argc, argv, &calcpr, &xsize, &ysize, NULL, &ymin, &ymax); if(status != 0) { /* No data, mus...
0
[ "CWE-254" ]
ntopng
2e0620be3410f5e22c9aa47e261bc5a12be692c6
196,080,164,299,785,840,000,000,000,000,000,000,000
38
Added security fix to avoid escalating privileges to non-privileged users Many thanks to Dolev Farhi for reporting it
rdpUpdate* update_new(rdpRdp* rdp) { const wObject cb = { NULL, NULL, NULL, update_free_queued_message, NULL }; rdpUpdate* update; OFFSCREEN_DELETE_LIST* deleteList; update = (rdpUpdate*) calloc(1, sizeof(rdpUpdate)); if (!update) return NULL; update->log = WLog_Get("com.freerdp.core.update"); update->point...
0
[ "CWE-119", "CWE-787" ]
FreeRDP
445a5a42c500ceb80f8fa7f2c11f3682538033f3
294,548,242,242,115,300,000,000,000,000,000,000,000
56
Fixed CVE-2018-8786 Thanks to Eyal Itkin from Check Point Software Technologies.
book_backend_ldap_get_contact (EBookBackend *backend, EDataBook *book, guint32 opid, GCancellable *cancellable, const gchar *id) { LDAPGetContactOp *get_contact_op; EBookBackendLDAP *bl = E_BOOK...
0
[]
evolution-data-server
34bad61738e2127736947ac50e0c7969cc944972
96,261,825,012,215,940,000,000,000,000,000,000,000
98
Bug 796174 - strcat() considered unsafe for buffer overflow
TEST_F(QuicUnencryptedServerTransportTest, TestUnencryptedStream) { auto data = IOBuf::copyBuffer("bad data"); PacketNum nextPacket = clientNextInitialPacketNum++; StreamId streamId = 3; auto initialCipher = getInitialCipher(); auto headerCipher = getInitialHeaderCipher(); auto packetData = packetToBufClear...
0
[ "CWE-617", "CWE-703" ]
mvfst
a67083ff4b8dcbb7ee2839da6338032030d712b0
242,559,505,221,964,570,000,000,000,000,000,000,000
22
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
bool ByteArray::CopyFrom(InputStream* is) { ByteVector b(COPY_BUFFER_SIZE); int32_t bytes_read = 0; int32_t index = 0; int32_t buffer_length = COPY_BUFFER_SIZE; while ((bytes_read = is->Read(&b, 0, buffer_length)) > 0) { if (Put(index, &b[0], 0, bytes_read) != bytes_read) { #if defined (SFNTLY_NO_EXCEPTIO...
0
[ "CWE-119", "CWE-703" ]
sfntly
c56b85408bab232efd7e650f0994272a174e3b92
166,186,156,544,795,260,000,000,000,000,000,000,000
17
Add a bounds check to ByteArray::Get().
struct net_device *dev_getbyhwaddr(unsigned short type, char *ha) { struct net_device *dev; ASSERT_RTNL(); for (dev = dev_base; dev; dev = dev->next) if (dev->type == type && !memcmp(dev->dev_addr, ha, dev->addr_len)) break; return dev; }
0
[]
linux
e89e9cf539a28df7d0eb1d0a545368e9920b34ac
306,849,218,068,556,230,000,000,000,000,000,000,000
12
[IPv4/IPv6]: UFO Scatter-gather approach Attached is kernel patch for UDP Fragmentation Offload (UFO) feature. 1. This patch incorporate the review comments by Jeff Garzik. 2. Renamed USO as UFO (UDP Fragmentation Offload) 3. udp sendfile support with UFO This patches uses scatter-gather feature of skb to generate l...
GF_Err Media_SetDuration(GF_TrackBox *trak) { GF_Err e; GF_ESD *esd; u64 DTS; GF_SttsEntry *ent; u32 nbSamp; if (!trak || !trak->Media || !trak->Media->information || !trak->Media->information->sampleTable) return GF_ISOM_INVALID_FILE; if (!trak->Media->information->sampleTable->SampleSize || !trak->Media->i...
0
[ "CWE-787" ]
gpac
328def7d3b93847d64ecb6e9e0399684e57c3eca
321,577,560,285,880,650,000,000,000,000,000,000,000
94
fixed #1766 (fuzz)
fm_mgr_general_query ( IN p_hsm_com_client_hdl_t client_hdl, IN fm_mgr_action_t action, IN fm_datatype_t data_type_id, IN int data_len, OUT void *data, OUT fm_msg_ret_code_t *ret_code ) { fm_co...
0
[ "CWE-362" ]
opa-fm
c5759e7b76f5bf844be6c6641cc1b356bbc83869
76,897,154,518,098,520,000,000,000,000,000,000,000
65
Fix scripts and code that use well-known tmp files.
static void intern_rec(value *dest) { unsigned int code; tag_t tag; mlsize_t size, len, ofs_ind; value v; asize_t ofs; header_t header; unsigned char digest[16]; struct custom_operations * ops; char * codeptr; struct intern_item * sp; sp = intern_stack; /* Initially let's try to read the first...
1
[ "CWE-200" ]
ocaml
659615c7b100a89eafe6253e7a5b9d84d0e8df74
209,693,496,443,409,530,000,000,000,000,000,000,000
237
fix PR#7003 and a few other bugs caused by misuse of Int_val git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16525 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
int main(int argc, char **argv) { g_test_init(&argc, &argv, NULL); qtest_add_func("fuzz/lsi53c895a/lsi_do_dma_empty_queue", test_lsi_do_dma_empty_queue); return g_test_run(); }
1
[]
qemu
4367a20cc442c56b05611b4224de9a61908f9eac
246,687,419,500,171,000,000,000,000,000,000,000,000
9
scsi/lsi53c895a: really fix use-after-free in lsi_do_msgout (CVE-2022-0216) Set current_req to NULL, not current_req->req, to prevent reusing a free'd buffer in case of repeated SCSI cancel requests. Also apply the fix to CLEAR QUEUE and BUS DEVICE RESET messages as well, since they also cancel the request. Thanks t...
xmlDOMWrapNewCtxt(void) { xmlDOMWrapCtxtPtr ret; ret = xmlMalloc(sizeof(xmlDOMWrapCtxt)); if (ret == NULL) { xmlTreeErrMemory("allocating DOM-wrapper context"); return (NULL); } memset(ret, 0, sizeof(xmlDOMWrapCtxt)); return (ret); }
0
[ "CWE-20" ]
libxml2
bdd66182ef53fe1f7209ab6535fda56366bd7ac9
67,891,974,930,273,680,000,000,000,000,000,000,000
12
Avoid building recursive entities For https://bugzilla.gnome.org/show_bug.cgi?id=762100 When we detect a recusive entity we should really not build the associated data, moreover if someone bypass libxml2 fatal errors and still tries to serialize a broken entity make sure we don't risk to get ito a recursion * parser...
static inline Quantum ClampToQuantum(const MagickRealType value) { #if defined(MAGICKCORE_HDRI_SUPPORT) return((Quantum) value); #else if (value <= 0.0f) return((Quantum) 0); if (value >= (MagickRealType) QuantumRange) return(QuantumRange); return((Quantum) (value+0.5f)); #endif }
1
[ "CWE-190" ]
ImageMagick
564f2a35e523e2b6cce9485018157f03ec05a947
8,810,807,481,291,094,000,000,000,000,000,000,000
12
https://github.com/ImageMagick/ImageMagick/issues/1741
handle_viminfo_history( garray_T *values, int writing) { int type; long_u len; char_u *val; char_u *p; bval_T *vp = (bval_T *)values->ga_data; // Check the format: // |{bartype},{histtype},{timestamp},{separator},"text" if (values->ga_len < 4 || vp[0].bv_type != BVAL_NR ...
0
[ "CWE-416" ]
vim
9f1a39a5d1cd7989ada2d1cb32f97d84360e050f
267,456,357,403,045,740,000,000,000,000,000,000,000
73
patch 8.2.4040: keeping track of allocated lines is too complicated Problem: Keeping track of allocated lines in user functions is too complicated. Solution: Instead of freeing individual lines keep them all until the end.
static bool contains(RList *list, const char *name) { RListIter *iter; const char *n; r_list_foreach (list, iter, n) { if (!strcmp (name, n)) return true; } return false; }
0
[ "CWE-125", "CWE-787" ]
radare2
a1bc65c3db593530775823d6d7506a457ed95267
47,502,428,830,353,270,000,000,000,000,000,000,000
9
Fix #12375 - Crash in bd+ao (#12382)
void TiffImage::writeMetadata() { #ifdef DEBUG std::cerr << "Writing TIFF file " << io_->path() << "\n"; #endif ByteOrder bo = byteOrder(); byte* pData = 0; long size = 0; IoCloser closer(*io_); if (io_->open() == 0) { // Ensure that this is the correc...
0
[ "CWE-787" ]
exiv2
afb98cbc6e288dc8ea75f3394a347fb9b37abc55
105,177,728,909,327,980,000,000,000,000,000,000,000
42
Allocate correct amount of memory for the ICC profile
SliceDeque(SliceDeque&& rhs) noexcept { // This custom move constructor is needed so that ring_ will be updated properly. std::move(rhs.inline_ring_, rhs.inline_ring_ + InlineRingCapacity, inline_ring_); external_ring_ = std::move(rhs.external_ring_); ring_ = (external_ring_ != nullptr) ? external_rin...
0
[ "CWE-401" ]
envoy
5eba69a1f375413fb93fab4173f9c393ac8c2818
74,307,805,745,290,330,000,000,000,000,000,000,000
9
[buffer] Add on-drain hook to buffer API and use it to avoid fragmentation due to tracking of H2 data and control frames in the output buffer (#144) Signed-off-by: antonio <avd@google.com>
static void netlink_ring_set_copied(struct sock *sk, struct sk_buff *skb) { struct netlink_sock *nlk = nlk_sk(sk); struct netlink_ring *ring = &nlk->rx_ring; struct nl_mmap_hdr *hdr; spin_lock_bh(&sk->sk_receive_queue.lock); hdr = netlink_current_frame(ring, NL_MMAP_STATUS_UNUSED); if (hdr == NULL) { spin_unlo...
0
[ "CWE-20", "CWE-269" ]
linux
f3d3342602f8bcbf37d7c46641cb9bca7618eb1c
258,956,131,744,983,200,000,000,000,000,000,000,000
25
net: rework recvmsg handler msg_name and msg_namelen logic This patch now always passes msg->msg_namelen as 0. recvmsg handlers must set msg_namelen to the proper size <= sizeof(struct sockaddr_storage) to return msg_name to the user. This prevents numerous uninitialized memory leaks we had in the recvmsg handlers an...
static int find_sym_flag(const void *a1, const void *a2) { const RzFlagItem *f = (const RzFlagItem *)a2; return f->space && !strcmp(f->space->name, RZ_FLAGS_FS_SYMBOLS) ? 0 : 1; }
0
[ "CWE-703" ]
rizin
6ce71d8aa3dafe3cdb52d5d72ae8f4b95916f939
323,985,820,046,533,400,000,000,000,000,000,000,000
4
Initialize retctx,ctx before freeing the inner elements In rz_core_analysis_type_match retctx structure was initialized on the stack only after a "goto out_function", where a field of that structure was freed. When the goto path is taken, the field is not properly initialized and it cause cause a crash of Rizin or hav...
static zend_bool php_openssl_validate_iv(char **piv, int *piv_len, int iv_required_len TSRMLS_DC) { char *iv_new; /* Best case scenario, user behaved */ if (*piv_len == iv_required_len) { return 0; } iv_new = ecalloc(1, iv_required_len + 1); if (*piv_len <= 0) { /* BC behavior */ *piv_len = iv_required_l...
0
[ "CWE-200" ]
php-src
270a406ac94b5fc5cc9ef59fc61e3b4b95648a3e
32,088,998,811,531,430,000,000,000,000,000,000,000
33
Fix bug #61413 ext\openssl\tests\openssl_encrypt_crash.phpt fails 5.3 only
static void hardware_disable_all(void) { raw_spin_lock(&kvm_count_lock); hardware_disable_all_nolock(); raw_spin_unlock(&kvm_count_lock);
0
[ "CWE-459" ]
linux
683412ccf61294d727ead4a73d97397396e69a6b
259,159,931,533,666,950,000,000,000,000,000,000,000
6
KVM: SEV: add cache flush to solve SEV cache incoherency issues Flush the CPU caches when memory is reclaimed from an SEV guest (where reclaim also includes it being unmapped from KVM's memslots). Due to lack of coherency for SEV encrypted memory, failure to flush results in silent data corruption if userspace is mal...
v8::Local<v8::Promise> WebContents::TakeHeapSnapshot( v8::Isolate* isolate, const base::FilePath& file_path) { gin_helper::Promise<void> promise(isolate); v8::Local<v8::Promise> handle = promise.GetHandle(); base::ThreadRestrictions::ScopedAllowIO allow_io; base::File file(file_path, ...
0
[ "CWE-200", "CWE-668" ]
electron
07a1c2a3e5845901f7e2eda9506695be58edc73c
239,698,714,174,230,360,000,000,000,000,000,000,000
42
fix: restrict sendToFrame to same-process frames by default (#26875)
static void esp_finalize(Object *obj) { ESPState *s = ESP(obj); fifo8_destroy(&s->fifo); fifo8_destroy(&s->cmdfifo); }
0
[ "CWE-476" ]
qemu
0db895361b8a82e1114372ff9f4857abea605701
49,126,703,293,861,720,000,000,000,000,000,000,000
7
esp: always check current_req is not NULL before use in DMA callbacks After issuing a SCSI command the SCSI layer can call the SCSIBusInfo .cancel callback which resets both current_req and current_dev to NULL. If any data is left in the transfer buffer (async_len != 0) then the next TI (Transfer Information) command ...
sc_parse_ef_gdo_content(const unsigned char *gdo, size_t gdo_len, unsigned char *iccsn, size_t *iccsn_len, unsigned char *chn, size_t *chn_len) { int r = SC_SUCCESS, iccsn_found = 0, chn_found = 0; const unsigned char *p = gdo; size_t left = gdo_len; while (left >= 2) { unsigned int cla, tag; size_t tag_le...
0
[ "CWE-125" ]
OpenSC
8fe377e93b4b56060e5bbfb6f3142ceaeca744fa
155,933,428,030,661,970,000,000,000,000,000,000,000
55
fixed out of bounds reads Thanks to Eric Sesterhenn from X41 D-SEC GmbH for reporting and suggesting security fixes.
static int PNMComment(Image *image,CommentInfo *comment_info) { int c; register char *p; /* Read comment. */ p=comment_info->comment+strlen(comment_info->comment); for (c='#'; (c != EOF) && (c != (int) '\n') && (c != (int) '\r'); p++) { if ((size_t) (p-comment_info->comment+1) >= comment...
0
[ "CWE-401" ]
ImageMagick6
210474b2fac6a661bfa7ed563213920e93e76395
192,161,980,316,092,060,000,000,000,000,000,000,000
33
Fix ultra rare but potential memory-leak
dispose_fd_bitmap (fdbp) struct fd_bitmap *fdbp; { FREE (fdbp->bitmap); free (fdbp); }
0
[]
bash
955543877583837c85470f7fb8a97b7aa8d45e6c
314,027,448,966,057,670,000,000,000,000,000,000,000
6
bash-4.4-rc2 release
PHP_FUNCTION(curl_setopt) { zval *zid, **zvalue; long options; php_curl *ch; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rlZ", &zid, &options, &zvalue) == FAILURE) { return; } ZEND_FETCH_RESOURCE(ch, php_curl *, &zid, -1, le_curl_name, le_curl); if (options <= 0 && options != CURLOP...
0
[]
php-src
5fdfab743d964bb13602effc9efcd6f747e2f58c
259,151,314,528,344,300,000,000,000,000,000,000,000
23
Fixed bug #71523 (Copied handle with new option CURLOPT_HTTPHEADER crashes while curl_multi_exec)
PackLinuxElf64::elf_find_dynamic(unsigned int key) const { Elf64_Dyn const *dynp= dynseg; if (dynp) for (; Elf64_Dyn::DT_NULL!=dynp->d_tag; ++dynp) if (get_te64(&dynp->d_tag)==key) { upx_uint64_t const t= elf_get_offset_from_address(get_te64(&dynp->d_val)); if (t) { return (size_...
0
[ "CWE-476" ]
upx
ef336dbcc6dc8344482f8cf6c909ae96c3286317
44,953,727,692,970,960,000,000,000,000,000,000,000
13
Protect against bad crafted input. https://github.com/upx/upx/issues/128 modified: p_lx_elf.cpp
template<typename tc1, typename tc2, typename tc3> CImg<T>& draw_triangle(const int x0, const int y0, const int x1, const int y1, const int x2, const int y2, const tc1 *const color1, const tc2 *const colo...
0
[ "CWE-125" ]
CImg
10af1e8c1ad2a58a0a3342a856bae63e8f257abb
292,246,844,582,860,130,000,000,000,000,000,000,000
12
Fix other issues in 'CImg<T>::load_bmp()'.
gin::Handle<WebContents> WebContents::New( v8::Isolate* isolate, const gin_helper::Dictionary& options) { gin::Handle<WebContents> handle = gin::CreateHandle(isolate, new WebContents(isolate, options)); v8::TryCatch try_catch(isolate); gin_helper::CallMethod(isolate, handle.get(), "_init"); if (tr...
0
[]
electron
e9fa834757f41c0b9fe44a4dffe3d7d437f52d34
42,935,311,445,887,760,000,000,000,000,000,000,000
12
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 int extract_variable_from_show(DYNAMIC_STRING* ds, char* value) { char *value_start, *value_end; size_t len; /* The query returns "datadir\t<datadir>\n", skip past the tab */ if ((value_start= strchr(ds->str, '\t')) == NULL) return 1; /* Unexpected result */ value_start++; /* Don't co...
0
[ "CWE-295" ]
mysql-server
b3e9211e48a3fb586e88b0270a175d2348935424
204,331,334,186,167,500,000,000,000,000,000,000,000
22
WL#9072: Backport WL#8785 to 5.5
static Image *ReadPDFImage(const ImageInfo *image_info,ExceptionInfo *exception) { char command[MagickPathExtent], *density, filename[MagickPathExtent], input_filename[MagickPathExtent], message[MagickPathExtent], *options, postscript_filename[MagickPathExtent]; const char *option; ...
1
[ "CWE-91" ]
ImageMagick
89a1c73ee2693ded91a72d00bdf3aba410f349f1
47,558,419,553,359,320,000,000,000,000,000,000,000
357
fix shell injection vulnerability via the -authenticate option
void moveOffset(uint16_t by) { d_notyouroffset += by; if(d_notyouroffset > d_packet.length()) throw std::out_of_range("dns packet out of range: "+lexical_cast<string>(d_notyouroffset) +" > " + lexical_cast<string>(d_packet.length()) ); }
0
[ "CWE-399" ]
pdns
adb10be102ddd4d2baf7a8adbb5673946fe5e555
194,716,883,107,086,800,000,000,000,000,000,000,000
7
fix forward reference-check in getLabelFromContent()