func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
fs_print(netdissect_options *ndo, register const u_char *bp, int length) { int fs_op; unsigned long i; if (length <= (int)sizeof(struct rx_header)) return; if (ndo->ndo_snapend - bp + 1 <= (int)(sizeof(struct rx_header) + sizeof(int32_t))) { goto trunc; } /* * Print out the afs call we're invoki...
0
[ "CWE-125" ]
tcpdump
c24922e692a52121e853a84ead6b9337f4c08a94
331,189,182,032,717,750,000,000,000,000,000,000,000
168
(for 4.9.3) CVE-2018-14466/Rx: fix an over-read bug In rx_cache_insert() and rx_cache_find() properly read the serviceId field of the rx_header structure as a 16-bit integer. When those functions tried to read 32 bits the extra 16 bits could be outside of the bounds checked in rx_print() for the rx_header structure, a...
TEST(RegexMatchExpression, MatchesNull) { RegexMatchExpression regex("a", "b", ""); ASSERT(!regex.matchesBSON(BSONObj(), NULL)); ASSERT(!regex.matchesBSON(BSON("a" << BSONNULL), NULL)); }
0
[]
mongo
64095239f41e9f3841d8be9088347db56d35c891
193,009,804,061,745,470,000,000,000,000,000,000,000
5
SERVER-51083 Reject invalid UTF-8 from $regex match expressions
static void JS_ExecuteGlobalContextFunction(v8::FunctionCallbackInfo<v8::Value> const& args) { TRI_V8_TRY_CATCH_BEGIN(isolate); v8::HandleScope scope(isolate); if (args.Length() != 1) { TRI_V8_THROW_EXCEPTION_USAGE( "executeGlobalContextFunction(<function-type>)"); } // extract the action name ...
0
[ "CWE-918" ]
arangodb
d9b7f019d2435f107b19a59190bf9cc27d5f34dd
119,677,339,881,860,600,000,000,000,000,000,000,000
28
[APM-78] Disable installation from remote URL (#15292)
goa_web_view_fake_mobile (GoaWebView *self) { WebKitWebSettings *settings; settings = webkit_web_view_get_settings (WEBKIT_WEB_VIEW (self->priv->web_view)); /* This is based on the HTC Wildfire's user agent. Some * providers, like Google, refuse to provide the mobile * version of their authentication page...
0
[ "CWE-310" ]
gnome-online-accounts
edde7c63326242a60a075341d3fea0be0bc4d80e
189,377,238,754,288,500,000,000,000,000,000,000,000
24
Guard against invalid SSL certificates None of the branded providers (eg., Google, Facebook and Windows Live) should ever have an invalid certificate. So set "ssl-strict" on the SoupSession object being used by GoaWebView. Providers like ownCloud and Exchange might have to deal with certificates that are not up to th...
static void retire_playback_urb(struct snd_usb_substream *subs, struct urb *urb) { unsigned long flags; struct snd_pcm_runtime *runtime = subs->pcm_substream->runtime; struct snd_usb_endpoint *ep = subs->data_endpoint; int processed = urb->transfer_buffer_length / ep->stride; int est_delay; /* ignore t...
0
[]
sound
447d6275f0c21f6cc97a88b3a0c601436a4cdf2a
155,446,362,058,357,080,000,000,000,000,000,000,000
48
ALSA: usb-audio: Add sanity checks for endpoint accesses Add some sanity check codes before actually accessing the endpoint via get_endpoint() in order to avoid the invalid access through a malformed USB descriptor. Mostly just checking bNumEndpoints, but in one place (snd_microii_spdif_default_get()), the validity o...
R_API RIOBank *r_io_bank_new(const char *name) { r_return_val_if_fail (name, NULL); RIOBank *bank = R_NEW0 (RIOBank); if (!bank) { return NULL; } bank->name = strdup (name); bank->submaps = r_crbtree_new (free); if (!bank->submaps) { free (bank); return NULL; } bank->maprefs = r_list_newf (free); if (!b...
0
[ "CWE-416" ]
radare2
b5cb90b28ec71fda3504da04e3cc94a362807f5e
116,705,219,378,810,620,000,000,000,000,000,000,000
27
Prefer memleak over usaf in io.bank's rbtree bug ##crash * That's a workaround, proper fix will come later * Reproducer: bins/fuzzed/iobank-crash * Reported by Akyne Choi via huntr.dev
char* r_pkcs7_signerinfos_dump (RX509CertificateRevocationList *crl, char* buffer, ut32 length, const char* pad) { RASN1String *algo = NULL, *last = NULL, *next = NULL; ut32 i, p; int r; char *tmp, *pad2, *pad3; if (!crl || !buffer || !length) { return NULL; } if (!pad) { pad = ""; } pad3 = r_str_newf ("%s...
0
[ "CWE-476" ]
radare2
7ab66cca5bbdf6cb2d69339ef4f513d95e532dbf
269,194,926,474,473,970,000,000,000,000,000,000,000
49
Fix #7152 - Null deref in cms
int ip6_append_data(struct sock *sk, int getfrag(void *from, char *to, int offset, int len, int odd, struct sk_buff *skb), void *from, int length, int transhdrlen, int hlimit, int tclass, struct ipv6_txoptions *opt, struct flowi6 *fl6, struct rt6_info *rt, unsigned int flags, int dontfrag) { struct inet_sock *inet...
0
[ "CWE-399" ]
linux
75a493e60ac4bbe2e977e7129d6d8cbb0dd236be
332,823,874,634,141,530,000,000,000,000,000,000,000
344
ipv6: ip6_append_data_mtu did not care about pmtudisc and frag_size If the socket had an IPV6_MTU value set, ip6_append_data_mtu lost track of this when appending the second frame on a corked socket. This results in the following splat: [37598.993962] ------------[ cut here ]------------ [37598.994008] kernel BUG at ...
ASC_setAPTitles(T_ASC_Parameters * params, const char* callingAPTitle, const char* calledAPTitle, const char* respondingAPTitle) { if (callingAPTitle) OFStandard::strlcpy(params->DULparams.callingAPTitle, callingAPTitle, sizeof(params->DULparam...
0
[ "CWE-415", "CWE-703", "CWE-401" ]
dcmtk
a9697dfeb672b0b9412c00c7d36d801e27ec85cb
94,132,187,881,298,680,000,000,000,000,000,000,000
17
Fixed poss. NULL pointer dereference/double free. Thanks to Jinsheng Ba <bajinsheng@u.nus.edu> for the report and some patches.
static bool blacklisted_word(char *name) { const char *list[] = { "__stack_chk_guard", "__stderrp", "__stdinp", "__stdoutp", "_DefaultRuneLocale" }; int i; for (i = 0; i < sizeof(list) / sizeof(list[0]); i++) { if (strstr(name, list[i])) { return true; } } return false; }
0
[ "CWE-703" ]
rizin
6ce71d8aa3dafe3cdb52d5d72ae8f4b95916f939
79,241,388,016,089,880,000,000,000,000,000,000,000
16
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...
xmlParseTextDecl(xmlParserCtxtPtr ctxt) { xmlChar *version; const xmlChar *encoding; /* * We know that '<?xml' is here. */ if ((CMP5(CUR_PTR, '<', '?', 'x', 'm', 'l')) && (IS_BLANK_CH(NXT(5)))) { SKIP(5); } else { xmlFatalErr(ctxt, XML_ERR_XMLDECL_NOT_STARTED, NULL); return; } ...
0
[ "CWE-125" ]
libxml2
77404b8b69bc122d12231807abf1a837d121b551
13,488,440,894,657,011,000,000,000,000,000,000,000
62
Make sure the parser returns when getting a Stop order patch backported from chromiun bug fixes, assuming author is Chris
init_ft_lib (void) { static gsize ft_init = 0; if (g_once_init_enter (&ft_init)) { FT_Init_FreeType (&ft_lib); g_once_init_leave (&ft_init, (gsize)1); } }
0
[ "CWE-125" ]
libgxps
b458226e162fe1ffe7acb4230c114a52ada5131b
294,784,531,433,228,570,000,000,000,000,000,000,000
10
gxps-archive: Ensure gxps_archive_read_entry() fills the GError in case of failure And fix the callers to not overwrite the GError.
static void _send_back_fd(int socket, int fd) { struct msghdr msg = { 0 }; struct cmsghdr *cmsg; char buf[CMSG_SPACE(sizeof(fd))]; memset(buf, '\0', sizeof(buf)); msg.msg_iov = NULL; msg.msg_iovlen = 0; msg.msg_control = buf; msg.msg_controllen = sizeof(buf); cmsg = CMSG_FIRSTHDR(&msg); cmsg->cmsg_level = S...
0
[ "CWE-20" ]
slurm
df545955e4f119974c278bff0c47155257d5afc7
181,581,648,272,781,040,000,000,000,000,000,000,000
23
Validate gid and user_name values provided to slurmd up front. Do not defer until later, and do not potentially miss out on proper validation of the user_name field which can lead to improper authentication handling. CVE-2018-10995.
static OPJ_BOOL opj_tcd_t1_encode(opj_tcd_t *p_tcd) { opj_t1_t * l_t1; const OPJ_FLOAT64 * l_mct_norms; OPJ_UINT32 l_mct_numcomps = 0U; opj_tcp_t * l_tcp = p_tcd->tcp; l_t1 = opj_t1_create(OPJ_TRUE); if (l_t1 == 00) { return OPJ_FALSE; } if (l_tcp->mct == 1) { l_mct_num...
0
[ "CWE-119", "CWE-787" ]
openjpeg
397f62c0a838e15d667ef50e27d5d011d2c79c04
312,802,516,396,534,030,000,000,000,000,000,000,000
35
Fix write heap buffer overflow in opj_mqc_byteout(). Discovered by Ke Liu of Tencent's Xuanwu LAB (#835)
**/ double magnitude(const int magnitude_type=2) const { if (is_empty()) throw CImgInstanceException(_cimg_instance "magnitude(): Empty instance.", cimg_instance); double res = 0; switch (magnitude_type) { ca...
0
[ "CWE-125" ]
CImg
10af1e8c1ad2a58a0a3342a856bae63e8f257abb
211,074,537,051,114,700,000,000,000,000,000,000,000
20
Fix other issues in 'CImg<T>::load_bmp()'.
clusterip_hashfn(const struct sk_buff *skb, const struct clusterip_config *config) { const struct iphdr *iph = ip_hdr(skb); unsigned long hashval; u_int16_t sport = 0, dport = 0; int poff; poff = proto_ports_offset(iph->protocol); if (poff >= 0) { const u_int16_t *ports; u16 _ports[2]; ports = skb_head...
0
[ "CWE-120" ]
linux-2.6
961ed183a9fd080cf306c659b8736007e44065a5
109,843,367,418,307,150,000,000,000,000,000,000,000
49
netfilter: ipt_CLUSTERIP: fix buffer overflow 'buffer' string is copied from userspace. It is not checked whether it is zero terminated. This may lead to overflow inside of simple_strtoul(). Changli Gao suggested to copy not more than user supplied 'size' bytes. It was introduced before the git epoch. Files "ipt_C...
int ndo_dflt_fdb_dump(struct sk_buff *skb, struct netlink_callback *cb, struct net_device *dev, struct net_device *filter_dev, int *idx) { int err; netif_addr_lock_bh(dev); err = nlmsg_populate_fdb(skb, cb, dev, idx, &dev->uc); if (err) goto out; err = nlmsg_populate_fdb(skb, cb,...
0
[ "CWE-476" ]
linux
f428fe4a04cc339166c8bbd489789760de3a0cee
286,946,665,899,675,470,000,000,000,000,000,000,000
17
rtnetlink: give a user socket to get_target_net() This function is used from two places: rtnl_dump_ifinfo and rtnl_getlink. In rtnl_getlink(), we give a request skb into get_target_net(), but in rtnl_dump_ifinfo, we give a response skb into get_target_net(). The problem here is that NETLINK_CB() isn't initialized for ...
static PHP_MINIT_FUNCTION(pcre) { REGISTER_INI_ENTRIES(); REGISTER_LONG_CONSTANT("PREG_PATTERN_ORDER", PREG_PATTERN_ORDER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("PREG_SET_ORDER", PREG_SET_ORDER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("PREG_OFFSET_CAPTURE", PREG_OFFSET_CAPTURE, CONST_C...
1
[]
php-src
03964892c054d0c736414c10b3edc7a40318b975
150,462,792,178,042,290,000,000,000,000,000,000,000
22
Fix bug #70345 (Multiple vulnerabilities related to PCRE functions)
static status ParseFormat (AFfilehandle filehandle, AFvirtualfile *fp, uint32_t id, size_t size) { _Track *track; uint16_t formatTag, channelCount; uint32_t sampleRate, averageBytesPerSecond; uint16_t blockAlign; _WAVEInfo *wave; assert(filehandle != NULL); assert(fp != NULL); assert(!memcmp(&id, "fmt ", 4))...
1
[ "CWE-119" ]
audiofile
e8cf0095b3f319739f9aa1ab5a1aa52b76be8cdd
300,307,562,423,779,900,000,000,000,000,000,000,000
220
Fix decoding of multi-channel ADPCM audio files.
char *compose_path(ctrl_t *ctrl, char *path) { struct stat st; static char rpath[PATH_MAX]; char *name, *ptr; char dir[PATH_MAX] = { 0 }; strlcpy(dir, ctrl->cwd, sizeof(dir)); DBG("Compose path from cwd: %s, arg: %s", ctrl->cwd, path ?: ""); if (!path || !strlen(path)) goto check; if (path) { if (path[0] ...
0
[ "CWE-22" ]
uftpd
455b47d3756aed162d2d0ef7f40b549f3b5b30fe
212,469,610,446,127,300,000,000,000,000,000,000,000
69
FTP/TFTP: Fix directory traversal regression, reported by Aaron Esau Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
proto_read_attribute_buffer (p11_rpc_message *msg, CK_ATTRIBUTE_PTR *result, CK_ULONG *n_result) { CK_ATTRIBUTE_PTR attrs; uint32_t n_attrs, i; uint32_t value; assert (msg != NULL); assert (result != NULL); assert (n_result != NULL); assert (msg->input !...
1
[ "CWE-190" ]
p11-kit
5307a1d21a50cacd06f471a873a018d23ba4b963
53,747,167,130,001,490,000,000,000,000,000,000,000
53
Check for arithmetic overflows before allocating
do_shell() { static char exec[100] = EXEC; screen_ok = FALSE; c_token++; if (user_shell) { if (system(safe_strncpy(&exec[sizeof(EXEC) - 1], user_shell, sizeof(exec) - sizeof(EXEC) - 1))) os_error(NO_CARET, "system() failed"); } (void) putc('\n', stderr); }
0
[ "CWE-415" ]
gnuplot
052cbd17c3cbbc602ee080b2617d32a8417d7563
330,107,301,588,369,200,000,000,000,000,000,000,000
14
successive failures of "set print <foo>" could cause double-free Bug #2312
is_midi_dev(struct seq_oss_devinfo *dp, int dev) { if (dev < 0 || dev >= dp->max_synthdev) return 0; if (dp->synths[dev].is_midi) return 1; return 0; }
0
[ "CWE-200" ]
linux-2.6
82e68f7ffec3800425f2391c8c86277606860442
72,584,795,862,229,590,000,000,000,000,000,000,000
8
sound: ensure device number is valid in snd_seq_oss_synth_make_info snd_seq_oss_synth_make_info() incorrectly reports information to userspace without first checking for the validity of the device number, leading to possible information leak (CVE-2008-3272). Reported-By: Tobias Klein <tk@trapkit.de> Acked-and-tested-...
template<typename t> CImgList(const CImgList<t>& list):_width(0),_allocated_width(0),_data(0) { assign(list._width); cimglist_for(*this,l) _data[l].assign(list[l],false);
0
[ "CWE-125" ]
CImg
10af1e8c1ad2a58a0a3342a856bae63e8f257abb
296,840,927,940,466,000,000,000,000,000,000,000,000
4
Fix other issues in 'CImg<T>::load_bmp()'.
static int check_cond_jmp_op(struct bpf_verifier_env *env, struct bpf_insn *insn, int *insn_idx) { struct bpf_verifier_state *other_branch, *this_branch = env->cur_state; struct bpf_reg_state *regs = this_branch->regs, *dst_reg; u8 opcode = BPF_OP(insn->code); int err; if (opcode > BPF_JSLE) { verbose(e...
0
[ "CWE-20" ]
linux
c131187db2d3fa2f8bf32fdf4e9a4ef805168467
119,365,402,783,253,200,000,000,000,000,000,000,000
117
bpf: fix branch pruning logic when the verifier detects that register contains a runtime constant and it's compared with another constant it will prune exploration of the branch that is guaranteed not to be taken at runtime. This is all correct, but malicious program may be constructed in such a way that it always has...
PLy_init_interp(void) { static PyObject *PLy_interp_safe_globals = NULL; PyObject *mainmod; mainmod = PyImport_AddModule("__main__"); if (mainmod == NULL || PyErr_Occurred()) PLy_elog(ERROR, "could not import \"__main__\" module"); Py_INCREF(mainmod); PLy_interp_globals = PyModule_GetDict(mainmod); PLy_inte...
0
[ "CWE-264" ]
postgres
537cbd35c893e67a63c59bc636c3e888bd228bc7
208,005,832,945,715,760,000,000,000,000,000,000,000
18
Prevent privilege escalation in explicit calls to PL validators. The primary role of PL validators is to be called implicitly during CREATE FUNCTION, but they are also normal functions that a user can call explicitly. Add a permissions check to each validator to ensure that a user cannot use explicit validator calls ...
static inline spl_dllist_object *spl_dllist_from_obj(zend_object *obj) /* {{{ */ { return (spl_dllist_object*)((char*)(obj) - XtOffsetOf(spl_dllist_object, std)); }
0
[ "CWE-415" ]
php-src
28a6ed9f9a36b9c517e4a8a429baf4dd382fc5d5
30,912,266,698,401,950,000,000,000,000,000,000,000
3
Fix bug #71735: Double-free in SplDoublyLinkedList::offsetSet
static int set_wcr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *rd, const struct kvm_one_reg *reg, void __user *uaddr) { __u64 *r = &vcpu->arch.vcpu_debug_state.dbg_wcr[rd->reg]; if (copy_from_user(r, uaddr, KVM_REG_SIZE(reg->id)) != 0) return -EFAULT; return 0; }
0
[ "CWE-20", "CWE-617" ]
linux
9e3f7a29694049edd728e2400ab57ad7553e5aa9
128,869,915,507,562,370,000,000,000,000,000,000,000
9
arm64: KVM: pmu: Fix AArch32 cycle counter access We're missing the handling code for the cycle counter accessed from a 32bit guest, leading to unexpected results. Cc: stable@vger.kernel.org # 4.6+ Signed-off-by: Wei Huang <wei@redhat.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
void ConnectDialog::udpReply() { QUdpSocket *sock = qobject_cast<QUdpSocket *>(sender()); while (sock->hasPendingDatagrams()) { char blob[64]; QHostAddress host; unsigned short port; qint64 len = sock->readDatagram(blob+4, 24, &host, &port); if (len == 24) { if (host.scopeId() == QLatin1String("0")) ...
0
[ "CWE-59", "CWE-61" ]
mumble
e59ee87abe249f345908c7d568f6879d16bfd648
216,118,053,624,622,100,000,000,000,000,000,000,000
38
FIX(client): Only allow "http"/"https" for URLs in ConnectDialog Our public server list registration script doesn't have an URL scheme whitelist for the website field. Turns out a malicious server can register itself with a dangerous URL in an attempt to attack a user's machine. User interaction is required, as the ...
static void php_sk_X509_free(STACK_OF(X509) * sk) /* {{{ */ { for (;;) { X509* x = sk_X509_pop(sk); if (!x) break; X509_free(x); } sk_X509_free(sk); }
0
[ "CWE-200" ]
php-src
270a406ac94b5fc5cc9ef59fc61e3b4b95648a3e
175,567,413,243,225,160,000,000,000,000,000,000,000
9
Fix bug #61413 ext\openssl\tests\openssl_encrypt_crash.phpt fails 5.3 only
static MagickBooleanType OpenPixelCacheOnDisk(CacheInfo *cache_info, const MapMode mode) { int file; /* Open pixel cache on disk. */ if ((cache_info->file != -1) && (cache_info->mode == mode)) return(MagickTrue); /* cache already open and in the proper mode */ if (*cache_info->cache_filename =...
0
[ "CWE-119", "CWE-787" ]
ImageMagick
aecd0ada163a4d6c769cec178955d5f3e9316f2f
208,046,160,488,968,540,000,000,000,000,000,000,000
48
Set pixel cache to undefined if any resource limit is exceeded
SPL_METHOD(SplHeap, valid) { spl_heap_object *intern = (spl_heap_object*)zend_object_store_get_object(getThis() TSRMLS_CC); if (zend_parse_parameters_none() == FAILURE) { return; } RETURN_BOOL(intern->heap->count != 0); }
0
[]
php-src
1cbd25ca15383394ffa9ee8601c5de4c0f2f90e1
168,406,287,294,107,700,000,000,000,000,000,000,000
10
Fix bug #69737 - Segfault when SplMinHeap::compare produces fatal error
bool HeaderMapImpl::operator!=(const HeaderMap& rhs) const { return !operator==(rhs); }
0
[]
envoy
2c60632d41555ec8b3d9ef5246242be637a2db0f
107,609,711,462,019,680,000,000,000,000,000,000,000
1
http: header map security fixes for duplicate headers (#197) Previously header matching did not match on all headers for non-inline headers. This patch changes the default behavior to always logically match on all headers. Multiple individual headers will be logically concatenated with ',' similar to what is done with...
int ssl3_get_new_session_ticket(SSL *s) { int ok, al, ret = 0, ticklen; long n; const unsigned char *p; unsigned char *d; n = s->method->ssl_get_message(s, SSL3_ST_CR_SESSION_TICKET_A, SSL3_ST_CR_SESSION_TICKET_B, ...
0
[ "CWE-362" ]
openssl
98ece4eebfb6cd45cc8d550c6ac0022965071afc
196,560,909,821,547,730,000,000,000,000,000,000,000
94
Fix race condition in NewSessionTicket If a NewSessionTicket is received by a multi-threaded client when attempting to reuse a previous ticket then a race condition can occur potentially leading to a double free of the ticket data. CVE-2015-1791 This also fixes RT#3808 where a session ID is changed for a session alr...
static int do_new_mount(struct path *path, const char *fstype, int flags, int mnt_flags, const char *name, void *data) { struct file_system_type *type; struct vfsmount *mnt; int err; if (!fstype) return -EINVAL; type = get_fs_type(fstype); if (!type) return -ENODEV; mnt = vfs_kern_mount(type, flags, na...
0
[ "CWE-400", "CWE-703" ]
linux
d29216842a85c7970c536108e093963f02714498
197,863,404,742,321,070,000,000,000,000,000,000,000
33
mnt: Add a per mount namespace limit on the number of mounts CAI Qian <caiqian@redhat.com> pointed out that the semantics of shared subtrees make it possible to create an exponentially increasing number of mounts in a mount namespace. mkdir /tmp/1 /tmp/2 mount --make-rshared / for i in $(seq 1 20) ; do mo...
rs_filter_get_size(RSFilter *filter, const RSFilterRequest *request) { RSFilterResponse *response = NULL; g_return_val_if_fail(RS_IS_FILTER(filter), NULL); g_return_val_if_fail(RS_IS_FILTER_REQUEST(request), NULL); if (RS_FILTER_GET_CLASS(filter)->get_size && filter->enabled) response = RS_FILTER_GET_CLASS(filt...
0
[ "CWE-59" ]
rawstudio
9c2cd3c93c05d009a91d84eedbb85873b0cb505d
153,033,768,933,806,180,000,000,000,000,000,000,000
14
Fixes insecure use of temporary file (CVE-2014-4978).
custom_basename_to_string (char *format, va_list va) { GFile *file; GFileInfo *info; char *name, *basename, *tmp; file = va_arg (va, GFile *); info = g_file_query_info (file, G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME, 0, g_cancellable_get_current (), NULL); name = NULL; if (info) { nam...
0
[]
nautilus
ca2fd475297946f163c32dcea897f25da892b89d
44,937,870,673,672,980,000,000,000,000,000,000,000
39
Add nautilus_file_mark_desktop_file_trusted(), this now adds a #! line if 2009-02-24 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-file-operations.c: * libnautilus-private/nautilus-file-operations.h: Add nautilus_file_mark_desktop_file_trusted(), this now adds a #! line if th...
TfLiteRegistration* Register_DIV_REF() { static TfLiteRegistration r = {div::Init, div::Free, div::Prepare, div::Eval<div::kReference>}; return &r; }
0
[ "CWE-125", "CWE-787" ]
tensorflow
1970c2158b1ffa416d159d03c3370b9a462aee35
217,986,194,809,220,600,000,000,000,000,000,000,000
5
[tflite]: Insert `nullptr` checks when obtaining tensors. As part of ongoing refactoring, `tflite::GetInput`, `tflite::GetOutput`, `tflite::GetTemporary` and `tflite::GetIntermediates` will return `nullptr` in some cases. Hence, we insert the `nullptr` checks on all usages. We also insert `nullptr` checks on usages o...
njs_generate_throw_end(njs_vm_t *vm, njs_generator_t *generator, njs_parser_node_t *node) { njs_vmcode_throw_t *throw; njs_generate_code(generator, njs_vmcode_throw_t, throw, NJS_VMCODE_THROW, 1, node); node->index = node->right->index; throw->retval = node->index; retu...
0
[ "CWE-703", "CWE-754" ]
njs
404553896792b8f5f429dc8852d15784a59d8d3e
126,186,514,166,864,700,000,000,000,000,000,000,000
13
Fixed break instruction in a try-catch block. Previously, JUMP offset for a break instruction inside a try-catch block was not set to a correct offset during code generation when a return instruction was present in inner try-catch block. The fix is to update the JUMP offset appropriately. This closes #553 issue on G...
void ProtocolV2::accept() { ldout(cct, 1) << __func__ << dendl; state = START_ACCEPT; }
0
[ "CWE-323" ]
ceph
20b7bb685c5ea74c651ca1ea547ac66b0fee7035
149,178,633,992,860,900,000,000,000,000,000,000,000
4
msg/async/ProtocolV2: avoid AES-GCM nonce reuse vulnerabilities The secure mode uses AES-128-GCM with 96-bit nonces consisting of a 32-bit counter followed by a 64-bit salt. The counter is incremented after processing each frame, the salt is fixed for the duration of the session. Both are initialized from the sessio...
static int add_uint64_element(struct ldb_context *ldb, struct ldb_message *msg, const char *attr, uint64_t v) { int ret; if (ldb_msg_find_element(msg, attr) != NULL) { return LDB_SUCCESS; } /* always set as replace. This works because on add ops, the flag is ignored */ ret = samdb_msg_append_uint6...
0
[ "CWE-200" ]
samba
0a3aa5f908e351201dc9c4d4807b09ed9eedff77
193,472,273,992,674,600,000,000,000,000,000,000,000
18
CVE-2022-32746 ldb: Make use of functions for appending to an ldb_message This aims to minimise usage of the error-prone pattern of searching for a just-added message element in order to make modifications to it (and potentially finding the wrong element). BUG: https://bugzilla.samba.org/show_bug.cgi?id=15009 Signed...
static int find_shared_ctxt(struct file *fp, const struct hfi1_user_info *uinfo) { int devmax, ndev, i; int ret = 0; struct hfi1_filedata *fd = fp->private_data; devmax = hfi1_count_units(NULL, NULL); for (ndev = 0; ndev < devmax; ndev++) { struct hfi1_devdata *dd = hfi1_lookup(ndev); if (!(dd && (dd...
0
[ "CWE-284", "CWE-264" ]
linux
e6bd18f57aad1a2d1ef40e646d03ed0f2515c9e3
224,646,147,975,865,470,000,000,000,000,000,000,000
46
IB/security: Restrict use of the write() interface The drivers/infiniband stack uses write() as a replacement for bi-directional ioctl(). This is not safe. There are ways to trigger write calls that result in the return structure that is normally written to user space being shunted off to user specified kernel memory...
img_by_client_id(GraphicsManager *self, uint32_t id) { for (size_t i = 0; i < self->image_count; i++) { if (self->images[i].client_id == id) return self->images + i; } return NULL; }
0
[ "CWE-787" ]
kitty
82c137878c2b99100a3cdc1c0f0efea069313901
243,093,431,481,557,230,000,000,000,000,000,000,000
6
Graphics protocol: Dont return filename in the error message when opening file fails, since filenames can contain control characters Fixes #3128
void CL_StartHunkUsers( qboolean rendererOnly ) { if (!com_cl_running) { return; } if ( !com_cl_running->integer ) { return; } if ( !cls.rendererStarted ) { cls.rendererStarted = qtrue; CL_InitRenderer(); } if ( rendererOnly ) { return; } if ( !cls.soundStarted ) { cls.soundStarted = qtrue; S...
0
[ "CWE-269" ]
ioq3
376267d534476a875d8b9228149c4ee18b74a4fd
162,311,054,260,126,800,000,000,000,000,000,000,000
37
Don't load .pk3s as .dlls, and don't load user config files from .pk3s.
smb2_get_dfs_refer(const unsigned int xid, struct cifs_ses *ses, const char *search_name, struct dfs_info3_param **target_nodes, unsigned int *num_of_nodes, const struct nls_table *nls_codepage, int remap) { int rc; __le16 *utf16_path = NULL; int utf16_path_len = 0; struct cifs_tcon *tcon; stru...
0
[ "CWE-476" ]
linux
d6f5e358452479fa8a773b5c6ccc9e4ec5a20880
282,637,663,911,416,140,000,000,000,000,000,000,000
99
cifs: fix NULL ptr dereference in smb2_ioctl_query_info() When calling smb2_ioctl_query_info() with invalid smb_query_info::flags, a NULL ptr dereference is triggered when trying to kfree() uninitialised rqst[n].rq_iov array. This also fixes leaked paths that are created in SMB2_open_init() which required SMB2_open_f...
static void atl2_check_for_link(struct atl2_adapter *adapter) { struct net_device *netdev = adapter->netdev; u16 phy_data = 0; spin_lock(&adapter->stats_lock); atl2_read_phy_reg(&adapter->hw, MII_BMSR, &phy_data); atl2_read_phy_reg(&adapter->hw, MII_BMSR, &phy_data); spin_unlock(&adapter->stats_lock); /* notif...
0
[ "CWE-200" ]
linux
f43bfaeddc79effbf3d0fcb53ca477cca66f3db8
168,929,922,581,521,660,000,000,000,000,000,000,000
22
atl2: Disable unimplemented scatter/gather feature atl2 includes NETIF_F_SG in hw_features even though it has no support for non-linear skbs. This bug was originally harmless since the driver does not claim to implement checksum offload and that used to be a requirement for SG. Now that SG and checksum offload are i...
ccp_run_passthru_nomap_cmd(struct ccp_cmd_queue *cmd_q, struct ccp_cmd *cmd) { struct ccp_passthru_nomap_engine *pt = &cmd->u.passthru_nomap; struct ccp_dm_workarea mask; struct ccp_op op; int ret; if (!pt->final && (pt->src_len & (CCP_PASSTHRU_BLOCKSIZE - 1))) return -EINVAL; if (!pt->src_dma || !p...
0
[ "CWE-400", "CWE-401" ]
linux
128c66429247add5128c03dc1e144ca56f05a4e2
159,595,493,021,308,090,000,000,000,000,000,000,000
63
crypto: ccp - Release all allocated memory if sha type is invalid Release all allocated memory if sha type is invalid: In ccp_run_sha_cmd, if the type of sha is invalid, the allocated hmac_buf should be released. v2: fix the goto. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Acked-by: Gary R Hook <gary...
MagickExport Image *ImplodeImage(const Image *image,const double amount, const PixelInterpolateMethod method,ExceptionInfo *exception) { #define ImplodeImageTag "Implode/Image" CacheView *canvas_view, *implode_view, *interpolate_view; double radius; Image *canvas_image, *implode_imag...
0
[ "CWE-369" ]
ImageMagick
94174beff065cb5683d09d79e992c3ebbdead311
198,961,458,052,933,550,000,000,000,000,000,000,000
183
https://github.com/ImageMagick/ImageMagick/issues/3296
static void explainAppendTerm( StrAccum *pStr, /* The text expression being built */ Index *pIdx, /* Index to read column names from */ int nTerm, /* Number of terms */ int iTerm, /* Zero-based index of first term. */ int bAnd, /* ...
0
[ "CWE-476" ]
sqlite
57f7ece78410a8aae86aa4625fb7556897db384c
247,410,546,359,839,760,000,000,000,000,000,000,000
29
Fix a problem that comes up when using generated columns that evaluate to a constant in an index and then making use of that index in a join. FossilOrigin-Name: 8b12e95fec7ce6e0de82a04ca3dfcf1a8e62e233b7382aa28a8a9be6e862b1af
ComparisonOpModel(const TensorData& input1, const TensorData& input2, TensorType input_type, BuiltinOperator op) { input1_ = AddInput(input1); input2_ = AddInput(input2); output_ = AddOutput(TensorType_BOOL); ConfigureBuiltinOp(op); BuildInterpreter({GetShape(input1_), GetShape...
0
[ "CWE-20", "CWE-703" ]
tensorflow
a989426ee1346693cc015792f11d715f6944f2b8
209,595,239,844,147,200,000,000,000,000,000,000,000
8
Improve to cover scale value greater than one PiperOrigin-RevId: 433050921
xsltNewKeyTable(const xmlChar *name, const xmlChar *nameURI) { xsltKeyTablePtr cur; cur = (xsltKeyTablePtr) xmlMalloc(sizeof(xsltKeyTable)); if (cur == NULL) { xsltTransformError(NULL, NULL, NULL, "xsltNewKeyTable : malloc failed\n"); return(NULL); } memset(cur, 0, sizeof(xsltKeyTable)); if...
0
[]
libxslt
dc11b6b379a882418093ecc8adf11f6166682e8d
176,694,903,636,806,860,000,000,000,000,000,000,000
17
Fix crash with empty xsl:key/@match attribute See https://bugzilla.gnome.org/show_bug.cgi?id=685328 Also improve some xsl:key error messages.
static void send_ACK(GDHCPServer *dhcp_server, struct dhcp_packet *client_packet, uint32_t dest) { struct dhcp_packet packet; uint32_t lease_time_sec; struct in_addr addr; init_packet(dhcp_server, &packet, client_packet, DHCPACK); packet.yiaddr = htonl(dest); lease_time_sec = dhcp_server->lease_seconds; dhc...
0
[]
connman
58d397ba74873384aee449690a9070bacd5676fa
241,095,135,710,608,400,000,000,000,000,000,000,000
27
gdhcp: Avoid reading invalid data in dhcp_get_option
parse_command_modifiers( exarg_T *eap, char **errormsg, cmdmod_T *cmod, int skip_only) { char_u *orig_cmd = eap->cmd; char_u *cmd_start = NULL; int did_plus_cmd = FALSE; char_u *p; int starts_with_colon = FALSE; int vim9script = in_vim9script(); int has_...
0
[ "CWE-122" ]
vim
f50808ed135ab973296bca515ae4029b321afe47
265,983,627,826,843,870,000,000,000,000,000,000,000
358
patch 8.2.4763: using invalid pointer with "V:" in Ex mode Problem: Using invalid pointer with "V:" in Ex mode. Solution: Correctly handle the command being changed to "+".
static int ati_remote2_set_mask(const char *val, const struct kernel_param *kp, unsigned int max) { unsigned int mask; int ret; if (!val) return -EINVAL; ret = kstrtouint(val, 0, &mask); if (ret) return ret; if (mask & ~max) return -EINVAL; *(unsigned int *)kp->arg = mask; return 0; }
0
[ "CWE-703" ]
linux
950336ba3e4a1ffd2ca60d29f6ef386dd2c7351d
163,539,719,444,871,930,000,000,000,000,000,000,000
21
Input: ati_remote2 - fix crashes on detecting device with invalid descriptor The ati_remote2 driver expects at least two interfaces with one endpoint each. If given malicious descriptor that specify one interface or no endpoints, it will crash in the probe function. Ensure there is at least two interfaces and one endp...
njs_is_concat_spreadable(njs_vm_t *vm, njs_value_t *value) { njs_int_t ret; njs_value_t retval; static const njs_value_t key = njs_wellknown_symbol(NJS_SYMBOL_IS_CONCAT_SPREADABLE); if (njs_slow_path(!njs_is_object(value))) { return NJS_DECLINED; } ret = ...
0
[ "CWE-703" ]
njs
2e00e95473861846aa8538be87db07699d9f676d
80,040,544,142,616,950,000,000,000,000,000,000,000
23
Fixed Array.prototype.slice() with slow "this" argument. Previously, when "this" argument was not a fast array, but the "deleted" array was a fast array, the "deleted" array may be left in uninitialized state if "this" argument had gaps. This fix is to ensure that "deleted" is properly initialized. This fixes #485 i...
static int __set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask, bool check) { unsigned long flags; struct rq *rq; unsigned int dest_cpu; int ret = 0; rq = task_rq_lock(p, &flags); /* * Must re-check here, to close a race against __kthread_bind(), * sched_setaffinity() is not g...
0
[ "CWE-119" ]
linux
29d6455178a09e1dc340380c582b13356227e8df
10,040,299,571,443,614,000,000,000,000,000,000,000
55
sched: panic on corrupted stack end Until now, hitting this BUG_ON caused a recursive oops (because oops handling involves do_exit(), which calls into the scheduler, which in turn raises an oops), which caused stuff below the stack to be overwritten until a panic happened (e.g. via an oops in interrupt context, cause...
struct DIFF { bool operator()(bool b1, bool b2) const { return b1&&!b2; } };
0
[ "CWE-269" ]
cgal
618b409b0fbcef7cb536a4134ae3a424ef5aae45
136,877,037,173,010,440,000,000,000,000,000,000,000
1
Fix Nef_2 and Nef_S2 IO
xsltPreprocessStylesheet(xsltStylesheetPtr style, xmlNodePtr cur) { xmlNodePtr deleteNode, styleelem; int internalize = 0; if ((style == NULL) || (cur == NULL)) return; if ((cur->doc != NULL) && (style->dict != NULL) && (cur->doc->dict == style->dict)) internalize = 1; else ...
0
[]
libxslt
e03553605b45c88f0b4b2980adfbbb8f6fca2fd6
166,407,928,027,102,700,000,000,000,000,000,000,000
198
Fix security framework bypass xsltCheckRead and xsltCheckWrite return -1 in case of error but callers don't check for this condition and allow access. With a specially crafted URL, xsltCheckRead could be tricked into returning an error because of a supposedly invalid URL that would still be loaded succesfully later on...
static PyObject *Input_readlines(InputObject *self, PyObject *args) { long hint = 0; long length = 0; PyObject *result = NULL; PyObject *line = NULL; PyObject *rlargs = NULL; if (!self->r) { PyErr_SetString(PyExc_RuntimeError, "request object has expired"); return NULL; } ...
0
[ "CWE-254" ]
mod_wsgi
545354a80b9cc20d8b6916ca30542eab36c3b8bd
288,782,610,770,693,900,000,000,000,000,000,000,000
59
When there is any sort of error in setting up daemon process group, kill the process rather than risk running in an unexpected state.
static void snoop_urb(struct usb_device *udev, void __user *userurb, int pipe, unsigned length, int timeout_or_status, enum snoop_when when, unsigned char *data, unsigned data_len) { static const char *types[] = {"isoc", "int", "ctrl", "bulk"}; static const char *dirs[] = {"out", "in"}; int ep; const char *t,...
0
[ "CWE-200" ]
linux
681fef8380eb818c0b845fca5d2ab1dcbab114ee
151,428,847,665,878,450,000,000,000,000,000,000,000
44
USB: usbfs: fix potential infoleak in devio The stack object “ci” has a total size of 8 bytes. Its last 3 bytes are padding bytes which are not initialized and leaked to userland via “copy_to_user”. Signed-off-by: Kangjie Lu <kjlu@gatech.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
coolkey_pin_cmd(sc_card_t *card, struct sc_pin_cmd_data *data, int *tries_left) { int r; coolkey_private_data_t * priv = COOLKEY_DATA(card); size_t rbuflen; u8 *rbuf; /* COOLKEY uses a separate pin from the card pin, managed by the applet. * if we successfully log into coolkey, we will get a nonce, which we app...
0
[ "CWE-415" ]
OpenSC
c246f6f69a749d4f68626b40795a4f69168008f4
290,041,246,549,989,900,000,000,000,000,000,000,000
53
coolkey: Make sure the object ID is unique when filling list Thanks to oss-fuzz https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19208
bool TestSettings() { bool pass = true; std::cout << "\nTesting Settings...\n\n"; word32 w; const byte s[] = "\x01\x02\x03\x04"; #if (CRYPTOPP_MSC_VERSION >= 1410) std::copy(s, s+4, stdext::make_checked_array_iterator(reinterpret_cast<byte*>(&w), sizeof(w))); #else std::copy(s, s+4, reinterpret_...
0
[ "CWE-190", "CWE-125" ]
cryptopp
07dbcc3d9644b18e05c1776db2a57fe04d780965
177,512,091,629,309,500,000,000,000,000,000,000,000
174
Add Inflator::BadDistanceErr exception (Issue 414) The improved validation and excpetion clears the Address Sanitizer and Undefined Behavior Sanitizer findings
void bn_sqr_comba8(BN_ULONG *r, const BN_ULONG *a) { #ifdef BN_LLONG BN_ULLONG t,tt; #else BN_ULONG bl,bh; #endif BN_ULONG t1,t2; BN_ULONG c1,c2,c3; c1=0; c2=0; c3=0; sqr_add_c(a,0,c1,c2,c3); r[0]=c1; c1=0; sqr_add_c2(a,1,0,c2,c3,c1); r[1]=c2; c2=0; sqr_add_c(a,1,c3,c1,c2); sqr_add_c2(a,2,0,c3,c1,c2); ...
1
[ "CWE-310" ]
openssl
a7a44ba55cb4f884c6bc9ceac90072dea38e66d0
311,445,466,172,533,400,000,000,000,000,000,000,000
80
Fix for CVE-2014-3570 (with minor bn_asm.c revamp). Reviewed-by: Emilia Kasper <emilia@openssl.org>
_rpc_terminate_batch_job(uint32_t job_id, uint32_t user_id, char *node_name) { int rc = SLURM_SUCCESS; int nsteps = 0; int delay; time_t now = time(NULL); slurm_ctl_conf_t *cf; job_env_t job_env; task_g_slurmd_release_resources(job_id); if (_waiter_init(job_id) == SLURM_ERROR) ...
0
[ "CWE-20" ]
slurm
df545955e4f119974c278bff0c47155257d5afc7
160,967,989,240,109,500,000,000,000,000,000,000,000
106
Validate gid and user_name values provided to slurmd up front. Do not defer until later, and do not potentially miss out on proper validation of the user_name field which can lead to improper authentication handling. CVE-2018-10995.
static zend_bool early_find_sid_in(zval *dest, int where, php_session_rfc1867_progress *progress) /* {{{ */ { zval *ppid; if (Z_ISUNDEF(PG(http_globals)[where])) { return 0; } if ((ppid = zend_hash_str_find(Z_ARRVAL(PG(http_globals)[where]), PS(session_name), progress->sname_len)) && Z_TYPE_P(ppid) == IS_STR...
0
[ "CWE-476" ]
php-src
d76f7c6c636b8240e06a1fa29eebb98ad005008a
105,581,576,585,259,300,000,000,000,000,000,000,000
18
Fix bug #79221 - Null Pointer Dereference in PHP Session Upload Progress
void do_append_file(struct st_command *command) { do_write_file_command(command, TRUE); }
0
[ "CWE-284", "CWE-295" ]
mysql-server
3bd5589e1a5a93f9c224badf983cd65c45215390
173,715,050,252,994,760,000,000,000,000,000,000,000
4
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...
TfLiteStatus MaxEval(TfLiteContext* context, TfLiteNode* node) { auto* params = reinterpret_cast<TfLitePoolParams*>(node->builtin_data); OpData* data = reinterpret_cast<OpData*>(node->user_data); TfLiteTensor* output = GetOutput(context, node, 0); const TfLiteTensor* input = GetInput(context, node, 0); switc...
1
[ "CWE-125", "CWE-787" ]
tensorflow
1970c2158b1ffa416d159d03c3370b9a462aee35
76,085,104,609,252,670,000,000,000,000,000,000,000
29
[tflite]: Insert `nullptr` checks when obtaining tensors. As part of ongoing refactoring, `tflite::GetInput`, `tflite::GetOutput`, `tflite::GetTemporary` and `tflite::GetIntermediates` will return `nullptr` in some cases. Hence, we insert the `nullptr` checks on all usages. We also insert `nullptr` checks on usages o...
static int test_is_prime(int i) { int ret = 0; BIGNUM *r = NULL; int trial; if (!TEST_ptr(r = BN_new())) goto err; for (trial = 0; trial <= 1; ++trial) { if (!TEST_true(BN_set_word(r, primes[i])) || !TEST_int_eq(BN_check_prime(r, ctx, NULL), ...
0
[]
openssl
336923c0c8d705cb8af5216b29a205662db0d590
247,093,998,512,648,430,000,000,000,000,000,000,000
21
Fix a carry overflow bug in bn_sqr_comba4/8 for mips 32-bit targets bn_sqr_comba8 does for instance compute a wrong result for the value: a=0x4aaac919 62056c84 fba7334e 1a6be678 022181ba fd3aa878 899b2346 ee210f45 The correct result is: r=0x15c72e32 605a3061 d11b1012 3c187483 6df96999 bd0c22ba d3e7d437 4724a82f 9...
static void *dummy_create_image(void *a, Uint b, Uint c, Uint d) { return NULL; }
0
[ "CWE-20" ]
evince
d4139205b010ed06310d14284e63114e88ec6de2
77,884,088,575,307,200,000,000,000,000,000,000,000
4
backends: Fix several security issues in the dvi-backend. See CVE-2010-2640, CVE-2010-2641, CVE-2010-2642 and CVE-2010-2643.
_compare_tor_version_str_ptr(const void **_a, const void **_b) { const char *a = *_a, *b = *_b; int ca, cb; tor_version_t va, vb; ca = tor_version_parse(a, &va); cb = tor_version_parse(b, &vb); /* If they both parse, compare them. */ if (!ca && !cb) return tor_version_compare(&va,&vb); /* If one par...
0
[ "CWE-399" ]
tor
57e35ad3d91724882c345ac709666a551a977f0f
241,611,401,218,118,300,000,000,000,000,000,000,000
19
Avoid possible segfault when handling networkstatus vote with bad flavor Fix for 6530; fix on 0.2.2.6-alpha.
void dns_server_move_back_and_unmark(DnsServer *s) { DnsServer *tail; assert(s); if (!s->marked) return; s->marked = false; if (!s->linked || !s->servers_next) return; /* Move us to the end of the list, so that the order is * ...
0
[ "CWE-416" ]
systemd
904dcaf9d4933499f8334859f52ea8497f2d24ff
17,805,487,267,230,636,000,000,000,000,000,000,000
41
resolved: take particular care when detaching DnsServer from its default stream DnsStream and DnsServer have a symbiotic relationship: one DnsStream is the current "default" stream of the server (and thus reffed by it), but each stream also refs the server it is connected to. This cyclic dependency can result in weird...
MagickExport MagickBooleanType SigmoidalContrastImage(Image *image, const MagickBooleanType sharpen,const double contrast,const double midpoint, ExceptionInfo *exception) { #define SigmoidalContrastImageTag "SigmoidalContrast/Image" #define ScaledSig(x) ( ClampToQuantum(QuantumRange* \ ScaledSigmoidal(contrast,Q...
0
[ "CWE-125" ]
ImageMagick
76401e172ea3a55182be2b8e2aca4d07270f6da6
218,801,521,316,655,400,000,000,000,000,000,000,000
144
Evaluate lazy pixel cache morphology to prevent buffer overflow (bug report from Ibrahim M. El-Sayed)
void ContentSettingsObserver::ClearBlockedContentSettings() { cached_storage_permissions_.clear(); cached_script_permissions_.clear(); }
0
[ "CWE-20", "CWE-200" ]
muon
c18663aa171c6cdf03da3e8c70df8663645b97c4
10,113,900,797,063,220,000,000,000,000,000,000,000
4
Issue: 15232 AllowScript should use atom::ContentSettingsManager like other Allow* methods in the observer
static int ax25_recvmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *msg, size_t size, int flags) { struct sock *sk = sock->sk; struct sk_buff *skb; int copied; int err = 0; lock_sock(sk); /* * This works for seqpacket too. The receiver has ordered the * queue for us! We do one quick check first...
1
[ "CWE-200" ]
linux
ef3313e84acbf349caecae942ab3ab731471f1a1
179,757,986,959,385,760,000,000,000,000,000,000,000
70
ax25: fix info leak via msg_name in ax25_recvmsg() When msg_namelen is non-zero the sockaddr info gets filled out, as requested, but the code fails to initialize the padding bytes of struct sockaddr_ax25 inserted by the compiler for alignment. Additionally the msg_namelen value is updated to sizeof(struct full_sockadd...
find_vpnc (void) { static const char *vpnc_paths[] = { "/usr/sbin/vpnc", "/sbin/vpnc", "/usr/local/sbin/vpnc", NULL }; guint i; /* Find vpnc */ for (i = 0; vpnc_paths[i]; i++) { if (g_file_test (vpnc_paths[i], G_FILE_TEST_EXISTS)) return vpnc_paths[i]; } return NULL; }
0
[]
NetworkManager-vpnc
07ac18a32b4e361a27ef48ac757d36cbb46e8e12
14,528,448,415,012,715,000,000,000,000,000,000,000
17
service: disallow newlinies in configuration values (CVE-2018-10900) The vpnc configuration format doesn't allow those. vpnc(8): The values start exactly one space after the keywords, and run to the end of line. This lets you put any kind of weird character (except CR, LF and NUL) in your strings We have no ch...
static BOOL update_recv_secondary_order(rdpUpdate* update, wStream* s, BYTE flags) { BOOL rc = FALSE; BYTE* next; BYTE orderType; UINT16 extraFlags; UINT16 orderLength; rdpContext* context = update->context; rdpSettings* settings = context->settings; rdpSecondaryUpdate* secondary = update->secondary; const cha...
1
[ "CWE-125" ]
FreeRDP
192856cb59974ee4d7d3e72cbeafa676aa7565cf
156,867,765,287,874,200,000,000,000,000,000,000,000
148
Fixed #6012: CVE-2020-11526: Out of bounds read in update_recv_orders Thanks to @hac425xxx and Sunglin and HuanGMz from Knownsec 404
static int64_t FastTensorId(PyObject* tensor) { if (EagerTensor_CheckExact(tensor)) { return PyEagerTensor_ID(tensor); } PyObject* id_field = PyObject_GetAttrString(tensor, "_id"); if (id_field == nullptr) { return -1; } int64_t id = MakeInt(id_field); Py_DECREF(id_field); return id; }
0
[ "CWE-476", "CWE-908" ]
tensorflow
237822b59fc504dda2c564787f5d3ad9c4aa62d9
93,064,887,361,344,580,000,000,000,000,000,000,000
12
Fix tf.compat.v1.placeholder_with_default vulnerability with quantized types. When iterating through the tensor to extract shape values, an underlying missing kernel (`StridedSlice` for quantized types) causes an error, which then results in a `nullptr` being passed to `ParseDimensionValue()`, causing a segfault. The...
static int dispatch_raw_source_until_block(sd_event_source *event, void *userdata) { RemoteSource *source = userdata; int r; /* Make sure event stays around even if source is destroyed */ sd_event_source_ref(event); r = journal_remote_...
0
[ "CWE-770" ]
systemd
ef4d6abe7c7fab6cbff975b32e76b09feee56074
214,469,025,395,084,800,000,000,000,000,000,000,000
17
journal-remote: set a limit on the number of fields in a message Existing use of E2BIG is replaced with ENOBUFS (entry too long), and E2BIG is reused for the new error condition (too many fields). This matches the change done for systemd-journald, hence forming the second part of the fix for CVE-2018-16865 (https://b...
ex_substitute(exarg_T *eap) { linenr_T lnum; long i = 0; regmmatch_T regmatch; static subflags_T subflags = {FALSE, FALSE, FALSE, TRUE, FALSE, FALSE, FALSE, 0}; #ifdef FEAT_EVAL subflags_T subflags_save; #endif int save_do_all; // remember user specified 'g' flag int save_do_...
1
[ "CWE-416" ]
vim
37f47958b8a2a44abc60614271d9537e7f14e51a
260,216,811,169,709,730,000,000,000,000,000,000,000
1,121
patch 8.2.4253: using freed memory when substitute with function call Problem: Using freed memory when substitute uses a recursive function call. Solution: Make a copy of the substitute text.
int io_async_cancel_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe) { struct io_cancel *cancel = io_kiocb_to_cmd(req, struct io_cancel); if (unlikely(req->flags & REQ_F_BUFFER_SELECT)) return -EINVAL; if (sqe->off || sqe->len || sqe->splice_fd_in) return -EINVAL; cancel->addr = READ_ONCE(sqe->addr)...
0
[ "CWE-193" ]
linux
47abea041f897d64dbd5777f0cf7745148f85d75
291,632,005,337,437,260,000,000,000,000,000,000,000
21
io_uring: fix off-by-one in sync cancelation file check The passed in index should be validated against the number of registered files we have, it needs to be smaller than the index value to avoid going one beyond the end. Fixes: 78a861b94959 ("io_uring: add sync cancelation API through io_uring_register()") Reported...
int rtnl_wilddump_req_filter_fn(struct rtnl_handle *rth, int family, int type, req_filter_fn_t filter_fn) { struct { struct nlmsghdr nlh; struct ifinfomsg ifm; char buf[1024]; } req = { .nlh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)), .nlh.nlmsg_type = type, .nlh.nlmsg_flags = NLM_F_DUMP | NLM...
0
[]
iproute2
8c50b728b226f6254251282697ce38a72639a6fc
37,812,853,143,843,050,000,000,000,000,000,000,000
25
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 ...
static int snd_usb_pcm_open(struct snd_pcm_substream *substream, int direction) { struct snd_usb_stream *as = snd_pcm_substream_chip(substream); struct snd_pcm_runtime *runtime = substream->runtime; struct snd_usb_substream *subs = &as->substream[direction]; subs->interface = -1; subs->altset_idx = 0; runtime->h...
0
[]
sound
447d6275f0c21f6cc97a88b3a0c601436a4cdf2a
10,097,264,481,022,868,000,000,000,000,000,000,000
20
ALSA: usb-audio: Add sanity checks for endpoint accesses Add some sanity check codes before actually accessing the endpoint via get_endpoint() in order to avoid the invalid access through a malformed USB descriptor. Mostly just checking bNumEndpoints, but in one place (snd_microii_spdif_default_get()), the validity o...
enqueue (struct tree *tree, struct trie **last) { if (!tree) return; enqueue(tree->llink, last); enqueue(tree->rlink, last); (*last) = (*last)->next = tree->trie; }
0
[ "CWE-119" ]
grep
83a95bd8c8561875b948cadd417c653dbe7ef2e2
10,710,545,794,170,996,000,000,000,000,000,000,000
8
grep -F: fix a heap buffer (read) overrun grep's read buffer is often filled to its full size, except when reading the final buffer of a file. In that case, the number of bytes read may be far less than the size of the buffer. However, for certain unusual pattern/text combinations, grep -F would mistakenly examine b...
static void io_ring_ctx_free(struct io_ring_ctx *ctx) { io_finish_async(ctx); io_sqe_buffer_unregister(ctx); if (ctx->sqo_mm) { mmdrop(ctx->sqo_mm); ctx->sqo_mm = NULL; } io_sqe_files_unregister(ctx); io_eventfd_unregister(ctx); io_destroy_buffers(ctx); idr_destroy(&ctx->personality_idr); #if defined(CONF...
0
[ "CWE-416" ]
linux
6d816e088c359866f9867057e04f244c608c42fe
18,918,141,032,199,835,000,000,000,000,000,000,000
31
io_uring: hold 'ctx' reference around task_work queue + execute We're holding the request reference, but we need to go one higher to ensure that the ctx remains valid after the request has finished. If the ring is closed with pending task_work inflight, and the given io_kiocb finishes sync during issue, then we need a...
node_new(void) { Node* node; node = (Node* )xmalloc(sizeof(Node)); xmemset(node, 0, sizeof(*node)); #ifdef DEBUG_NODE_FREE fprintf(stderr, "node_new: %p\n", node); #endif return node; }
0
[ "CWE-476" ]
oniguruma
850bd9b0d8186eb1637722b46b12656814ab4ad2
47,014,367,998,209,690,000,000,000,000,000,000,000
12
fix #87: Read unknown address in onig_error_code_to_str()
size_t ring_buffer_nr_pages(struct trace_buffer *buffer, int cpu) { return buffer->buffers[cpu]->nr_pages; }
0
[ "CWE-362" ]
linux
bbeb97464eefc65f506084fd9f18f21653e01137
51,106,093,714,896,450,000,000,000,000,000,000,000
4
tracing: Fix race in trace_open and buffer resize call Below race can come, if trace_open and resize of cpu buffer is running parallely on different cpus CPUX CPUY ring_buffer_resize atomic_read(&buffer->resize_disabled) tracing_open tracing_reset_online_cpus ring_buffer_...
static int attach_to_pi_owner(u32 uval, union futex_key *key, struct futex_pi_state **ps) { pid_t pid = uval & FUTEX_TID_MASK; struct futex_pi_state *pi_state; struct task_struct *p; /* * We are the first waiter - try to look up the real owner and attach * the new pi_state to it, but bail out when TID...
0
[ "CWE-416" ]
linux
65d8fc777f6dcfee12785c057a6b57f679641c90
305,921,166,401,773,240,000,000,000,000,000,000,000
67
futex: Remove requirement for lock_page() in get_futex_key() When dealing with key handling for shared futexes, we can drastically reduce the usage/need of the page lock. 1) For anonymous pages, the associated futex object is the mm_struct which does not require the page lock. 2) For inode based, keys, we can check un...
int get_nohz_timer_target(void) { int cpu = smp_processor_id(); int i; struct sched_domain *sd; rcu_read_lock(); for_each_domain(cpu, sd) { for_each_cpu(i, sched_domain_span(sd)) { if (!idle_cpu(i)) { cpu = i; goto unlock; } } } unlock: rcu_read_unlock(); return cpu; }
0
[ "CWE-200" ]
linux
4efbc454ba68def5ef285b26ebfcfdb605b52755
291,828,372,236,658,160,000,000,000,000,000,000,000
19
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 ...
SpoolssEnumPrinterData_r(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep _U_) { guint32 value_len, type; char *value; proto_item *value_item; proto_tree *value_subtree; proto_item *hidden_item; hidden_item = proto_tree_add_uint( tree, hf_printerdat...
0
[ "CWE-399" ]
wireshark
b4d16b4495b732888e12baf5b8a7e9bf2665e22b
252,975,096,854,144,160,000,000,000,000,000,000,000
61
SPOOLSS: Try to avoid an infinite loop. Use tvb_reported_length_remaining in dissect_spoolss_uint16uni. Make sure our offset always increments in dissect_spoolss_keybuffer. Change-Id: I7017c9685bb2fa27161d80a03b8fca4ef630e793 Reviewed-on: https://code.wireshark.org/review/14687 Reviewed-by: Gerald Combs <gerald@wires...
static inline int alloc_debug_processing(struct kmem_cache *s, struct page *page, void *object, unsigned long addr) { return 0; }
0
[]
linux
fd4d9c7d0c71866ec0c2825189ebd2ce35bd95b8
176,802,224,347,440,160,000,000,000,000,000,000,000
2
mm: slub: add missing TID bump in kmem_cache_alloc_bulk() When kmem_cache_alloc_bulk() attempts to allocate N objects from a percpu freelist of length M, and N > M > 0, it will first remove the M elements from the percpu freelist, then call ___slab_alloc() to allocate the next element and repopulate the percpu freelis...
key_byname (GETKEY_CTX *retctx, strlist_t namelist, PKT_public_key *pk, int want_secret, int include_unusable, KBNODE * ret_kb, KEYDB_HANDLE * ret_kdbhd) { int rc = 0; int n; strlist_t r; GETKEY_CTX ctx; KBNODE help_kb = NULL; if (retctx) { /* Reset the returned context in case of ...
0
[ "CWE-310" ]
gnupg
4bde12206c5bf199dc6e12a74af8da4558ba41bf
92,806,482,789,659,680,000,000,000,000,000,000,000
94
gpg: Distinguish between missing and cleared key flags. * include/cipher.h (PUBKEY_USAGE_NONE): New. * g10/getkey.c (parse_key_usage): Set new flag. -- We do not want to use the default capabilities (derived from the algorithm) if any key flags are given in a signature. Thus if key flags are used in any way, the def...
static void sock_disable_timestamp(struct sock *sk, unsigned long flags) { if (sk->sk_flags & flags) { sk->sk_flags &= ~flags; if (sock_needs_netstamp(sk) && !(sk->sk_flags & SK_FLAGS_TIMESTAMP)) net_disable_timestamp(); } }
0
[ "CWE-119", "CWE-787" ]
linux
b98b0bc8c431e3ceb4b26b0dfc8db509518fb290
118,783,937,900,055,510,000,000,000,000,000,000,000
9
net: avoid signed overflows for SO_{SND|RCV}BUFFORCE CAP_NET_ADMIN users should not be allowed to set negative sk_sndbuf or sk_rcvbuf values, as it can lead to various memory corruptions, crashes, OOM... Note that before commit 82981930125a ("net: cleanups in sock_setsockopt()"), the bug was even more serious, since ...
static void launch(OpKernelContext* context, const Pool3dParameters& params, const Tensor& tensor_in, const Tensor& tensor_out, const Tensor& tensor_top_diff, Tensor* tensor_bottom_diff) { bool status = functor::MaxPool3dGradBackward<T>()( par...
0
[ "CWE-369", "CWE-787" ]
tensorflow
63c6a29d0f2d692b247f7bf81f8732d6442fad09
53,312,607,713,979,810,000,000,000,000,000,000,000
19
Add missing validation, prevent heap OOB PiperOrigin-RevId: 372246723 Change-Id: I1a454a643810e77d7d14821b342098c56a09fbbf
inbound_away (server *serv, char *nick, char *msg, const message_tags_data *tags_data) { struct away_msg *away = server_away_find_message (serv, nick); session *sess = NULL; GSList *list; if (away && !strcmp (msg, away->message)) /* Seen the msg before? */ { if (prefs.hex_away_show_once && !serv->inside_w...
0
[ "CWE-22" ]
hexchat
4e061a43b3453a9856d34250c3913175c45afe9d
4,328,652,032,680,276,400,000,000,000,000,000,000
40
Clean up handling CAP LS
static int netlink_sendmsg(struct kiocb *kiocb, struct socket *sock, struct msghdr *msg, size_t len) { struct sock_iocb *siocb = kiocb_to_siocb(kiocb); struct sock *sk = sock->sk; struct netlink_sock *nlk = nlk_sk(sk); struct sockaddr_nl *addr = msg->msg_name; u32 dst_pid; u32 dst_group; struct sk_buff *sk...
1
[]
linux-2.6
16e5726269611b71c930054ffe9b858c1cea88eb
243,661,389,643,755,760,000,000,000,000,000,000,000
78
af_unix: dont send SCM_CREDENTIALS by default Since commit 7361c36c5224 (af_unix: Allow credentials to work across user and pid namespaces) af_unix performance dropped a lot. This is because we now take a reference on pid and cred in each write(), and release them in read(), usually done from another process, eventua...
CImgDisplay& show_mouse() { if (is_empty()) return *this; Display *const dpy = cimg::X11_attr().display; cimg_lock_display(); XUndefineCursor(dpy,_window); cimg_unlock_display(); return *this; }
0
[ "CWE-770" ]
cimg
619cb58dd90b4e03ac68286c70ed98acbefd1c90
245,438,340,082,016,750,000,000,000,000,000,000,000
8
CImg<>::load_bmp() and CImg<>::load_pandore(): Check that dimensions encoded in file does not exceed file size.
template<typename t1, typename t2> CImg<T>& draw_quiver(const CImg<t1>& flow, const CImg<t2>& color, const float opacity=1, const unsigned int sampling=25, const float factor=-20, const bool is_arrow=true, const unsigned int pattern=~0U)...
0
[ "CWE-125" ]
CImg
10af1e8c1ad2a58a0a3342a856bae63e8f257abb
244,907,729,626,534,100,000,000,000,000,000,000,000
45
Fix other issues in 'CImg<T>::load_bmp()'.
static inline void npidentifier_info_destroy(NPIdentifierInfo *npi) { if (G_UNLIKELY(npi == NULL)) return; if (npi->string_len > 0) { NPW_MemFree(npi->u.string); npi->u.string = NULL; } NPW_MemFree(npi); }
0
[ "CWE-264" ]
nspluginwrapper
7e4ab8e1189846041f955e6c83f72bc1624e7a98
43,299,169,911,308,565,000,000,000,000,000,000,000
10
Support all the new variables added
dse_numsubordinates(Slapi_Entry *entry) { int ret = 0; Slapi_Attr *read_attr = NULL; size_t current_sub_count = 0; /* Get the present value of the subcount attr, or 0 if not present */ ret = slapi_entry_attr_find(entry, subordinatecount, &read_attr); if (0 == ret) { /* decode the value ...
0
[ "CWE-200", "CWE-203" ]
389-ds-base
b6aae4d8e7c8a6ddd21646f94fef1bf7f22c3f32
296,330,844,536,847,880,000,000,000,000,000,000,000
20
Issue 4609 - CVE - info disclosure when authenticating Description: If you bind as a user that does not exist. Error 49 is returned instead of error 32. As error 32 discloses that the entry does not exist. When you bind as an entry that does not have userpassword set then ...
static void ImportOpacityQuantum(const Image *image,QuantumInfo *quantum_info, const MagickSizeType number_pixels,const unsigned char *magick_restrict p, Quantum *magick_restrict q,ExceptionInfo *exception) { QuantumAny range; register ssize_t x; unsigned int pixel; assert(image != (Image *) ...
0
[ "CWE-125" ]
ImageMagick
430403b0029b37decf216d57f810899cab2317dd
149,148,002,355,844,300,000,000,000,000,000,000,000
116
https://github.com/ImageMagick/ImageMagick/issues/126