func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
TEST_F(GroupVerifierTest, CanHandleUnexpectedEnd) { const char config[] = R"( providers: example_provider: issuer: https://example.com audiences: - example_service - http://example_service1 - https://example_service2/ remote_jwks: http_uri: uri: https://pubkey_server/pubkey_pat...
0
[ "CWE-303", "CWE-703" ]
envoy
ea39e3cba652bcc4b11bb0d5c62b017e584d2e5a
139,795,286,641,881,050,000,000,000,000,000,000,000
32
jwt_authn: fix a bug where JWT with wrong issuer is allowed in allow_missing case (#15194) [jwt] When allow_missing is used inside RequiresAny, the requests with JWT with wrong issuer are accepted. This is a bug, allow_missing should only allow requests without any JWT. This change fixed the above issue by preserving ...
camel_imapx_server_update_quota_info_sync (CamelIMAPXServer *is, CamelIMAPXMailbox *mailbox, GCancellable *cancellable, GError **error) { CamelIMAPXCommand *ic; gboolean success; g_return_val_if_fail (CAMEL_IS_IMAPX_SERVER (is), FALSE); g_return_val_if_fail (CAMEL_IS_IMAPX_MAILBOX (mailbox)...
0
[]
evolution-data-server
f26a6f672096790d0bbd76903db4c9a2e44f116b
110,712,644,488,248,640,000,000,000,000,000,000,000
36
[IMAPx] 'STARTTLS not supported' error ignored When a user has setup the STARTTLS encryption method, but the server doesn't support it, then an error should be shown to the user, instead of using unsecure connection. There had been two bugs in the existing code which prevented this error from being used and the failur...
ip_toUTF8(argc, argv, self) int argc; VALUE *argv; VALUE self; { VALUE str, encodename; if (rb_scan_args(argc, argv, "11", &str, &encodename) == 1) { encodename = Qnil; } return lib_toUTF8_core(self, str, encodename); }
0
[]
tk
ebd0fc80d62eeb7b8556522256f8d035e013eb65
273,298,890,427,954,900,000,000,000,000,000,000,000
12
tcltklib.c: check argument * ext/tk/tcltklib.c (ip_cancel_eval_core): check argument type and length. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ex_retab(exarg_T *eap) { linenr_T lnum; int got_tab = FALSE; long num_spaces = 0; long num_tabs; long len; long col; long vcol; long start_col = 0; // For start of white-space string long start_vcol = 0; // For start of white-space string long old_len; long new_len; ch...
0
[ "CWE-122", "CWE-787" ]
vim
0e8e938d497260dd57be67b4966cb27a5f72376f
204,681,392,637,541,300,000,000,000,000,000,000,000
230
patch 8.2.5122: lisp indenting my run over the end of the line Problem: Lisp indenting my run over the end of the line. Solution: Check for NUL earlier.
void uwsgi_setup_post_buffering() { if (!uwsgi.post_buffering_bufsize) uwsgi.post_buffering_bufsize = 8192; if (uwsgi.post_buffering_bufsize < uwsgi.post_buffering) { uwsgi.post_buffering_bufsize = uwsgi.post_buffering; uwsgi_log("setting request body buffering size to %lu bytes\n", (unsigned long) uwsgi.post...
0
[ "CWE-119", "CWE-703", "CWE-787" ]
uwsgi
cb4636f7c0af2e97a4eef7a3cdcbd85a71247bfe
124,824,256,486,035,950,000,000,000,000,000,000,000
11
improve uwsgi_expand_path() to sanitize input, avoiding stack corruption and potential security issue
int enc_untrusted_fstatfs(int fd, struct statfs *statbuf) { struct klinux_statfs statfs_kernel; int result = EnsureInitializedAndDispatchSyscall( asylo::system_call::kSYS_fstatfs, fd, &statfs_kernel); if (FromkLinuxStatFs(&statfs_kernel, statbuf)) { statbuf->f_flags = FromkLinuxStatFsFlags(statfs_kerne...
0
[ "CWE-125" ]
asylo
b1d120a2c7d7446d2cc58d517e20a1b184b82200
331,206,033,230,806,200,000,000,000,000,000,000,000
10
Check for return size in enc_untrusted_read Check return size does not exceed requested. The returned result and content still cannot be trusted, but it's expected behavior when not using a secure file system. PiperOrigin-RevId: 333827386 Change-Id: I0bdec0aec9356ea333dc8c647eba5d2772875f29
static void bio_copy_kern_endio(struct bio *bio) { bio_free_pages(bio); bio_put(bio); }
0
[ "CWE-772", "CWE-787" ]
linux
95d78c28b5a85bacbc29b8dba7c04babb9b0d467
335,357,421,508,946,750,000,000,000,000,000,000,000
5
fix unbalanced page refcounting in bio_map_user_iov bio_map_user_iov and bio_unmap_user do unbalanced pages refcounting if IO vector has small consecutive buffers belonging to the same page. bio_add_pc_page merges them into one, but the page reference is never dropped. Cc: stable@vger.kernel.org Signed-off-by: Vitaly...
static int selinux_kernel_read_file(struct file *file, enum kernel_read_file_id id) { int rc = 0; switch (id) { case READING_MODULE: rc = selinux_kernel_module_from_file(file); break; default: break; } return rc; }
0
[ "CWE-682" ]
linux-stable
0c461cb727d146c9ef2d3e86214f498b78b7d125
8,839,874,565,378,789,000,000,000,000,000,000,000
15
selinux: fix off-by-one in setprocattr SELinux tries to support setting/clearing of /proc/pid/attr attributes from the shell by ignoring terminating newlines and treating an attribute value that begins with a NUL or newline as an attempt to clear the attribute. However, the test for clearing attributes has always bee...
static int ct_hold(struct avrcp_player *player, uint8_t op) { struct avrcp *session = player->sessions->data; if (session == NULL) return -ENOTCONN; set_ct_player(session, player); return avctp_send_passthrough(session->conn, op, true); }
0
[ "CWE-200" ]
bluez
e2b0f0d8d63e1223bb714a9efb37e2257818268b
77,502,290,569,307,200,000,000,000,000,000,000,000
11
avrcp: Fix not checking if params_len match number of received bytes This makes sure the number of bytes in the params_len matches the remaining bytes received so the code don't end up accessing invalid memory.
int setup_arg_pages(struct linux_binprm *bprm, unsigned long stack_top, int executable_stack) { unsigned long ret; unsigned long stack_shift; struct mm_struct *mm = current->mm; struct vm_area_struct *vma = bprm->vma; struct vm_area_struct *prev = NULL; unsigned long vm_flags; unsigned long stack_bas...
0
[ "CWE-401" ]
linux
f612acfae86af7ecad754ae6a46019be9da05b8e
21,361,878,152,795,196,000,000,000,000,000,000,000
111
exec: Fix mem leak in kernel_read_file syzkaller report this: BUG: memory leak unreferenced object 0xffffc9000488d000 (size 9195520): comm "syz-executor.0", pid 2752, jiffies 4294787496 (age 18.757s) hex dump (first 32 bytes): ff ff ff ff ff ff ff ff a8 00 00 00 01 00 00 00 ................ 02 00 00 00 00...
xcf_load_layer_props (XcfInfo *info, GimpImage *image, GimpLayer **layer, GList **item_path, gboolean *apply_mask, gboolean *edit_mask, gboolean *show_mask, ...
0
[ "CWE-120" ]
gimp
4f99f1fcfd892ead19831b5adcd38a99d71214b6
307,664,424,463,022,260,000,000,000,000,000,000,000
409
app: fix #8120 GIMP 2.10.30 crashed when allocate large memory GIMP could crash if the information regarding old path properties read from XCF was incorrect. It did not check if xcf_old_path succeeded and kept trying to load more paths even if the last one failed to load. Instead we now stop loading paths as soon as ...
static int php_snmp_write_oid_output_format(php_snmp_object *snmp_object, zval *newval) { zval ztmp; int ret = SUCCESS; if (Z_TYPE_P(newval) != IS_LONG) { ZVAL_COPY(&ztmp, newval); convert_to_long(&ztmp); newval = &ztmp; } switch(Z_LVAL_P(newval)) { case NETSNMP_OID_OUTPUT_SUFFIX: case NETSNMP_OID_OUTPU...
0
[ "CWE-20" ]
php-src
6e25966544fb1d2f3d7596e060ce9c9269bbdcf8
82,702,645,845,579,450,000,000,000,000,000,000,000
30
Fixed bug #71704 php_snmp_error() Format String Vulnerability
tTcpIpPacketParsingResult ParaNdis_ReviewIPPacket(PVOID buffer, ULONG size, LPCSTR caller) { tTcpIpPacketParsingResult res = QualifyIpPacket((IPHeader *) buffer, size); PrintOutParsingResult(res, 1, caller); return res; }
1
[ "CWE-20" ]
kvm-guest-drivers-windows
723416fa4210b7464b28eab89cc76252e6193ac1
62,843,882,020,575,810,000,000,000,000,000,000,000
6
NetKVM: BZ#1169718: Checking the length only on read Signed-off-by: Joseph Hindin <yhindin@rehat.com>
static void usage() { print_version(); fprintf(stdout, ORACLE_WELCOME_COPYRIGHT_NOTICE("2013")); fprintf(stdout, "MySQL Configuration Utility."); fprintf(stdout, "Usage: %s [OPTIONS]\n", my_progname); my_print_help(my_connection_options); my_print_variables(my_connection_options); }
0
[ "CWE-284", "CWE-295" ]
mysql-server
3bd5589e1a5a93f9c224badf983cd65c45215390
87,265,882,302,202,730,000,000,000,000,000,000,000
9
WL#6791 : Redefine client --ssl option to imply enforced encryption # Changed the meaning of the --ssl=1 option of all client binaries to mean force ssl, not try ssl and fail over to eunecrypted # Added a new MYSQL_OPT_SSL_ENFORCE mysql_options() option to specify that an ssl connection is required. # Added a new macr...
eap_send_failure(esp) eap_state *esp; { u_char *outp; outp = outpacket_buf; MAKEHEADER(outp, PPP_EAP); PUTCHAR(EAP_FAILURE, outp); esp->es_server.ea_id++; PUTCHAR(esp->es_server.ea_id, outp); PUTSHORT(EAP_HEADERLEN, outp); output(esp->es_unit, outpacket_buf, EAP_HEADERLEN + PPP_HDRLEN); esp->es_server...
0
[ "CWE-120", "CWE-787" ]
ppp
8d7970b8f3db727fe798b65f3377fe6787575426
267,935,243,882,062,530,000,000,000,000,000,000,000
19
pppd: Fix bounds check in EAP code Given that we have just checked vallen < len, it can never be the case that vallen >= len + sizeof(rhostname). This fixes the check so we actually avoid overflowing the rhostname array. Reported-by: Ilja Van Sprundel <ivansprundel@ioactive.com> Signed-off-by: Paul Mackerras <paulus...
static int bb_cmpaddr(const void *_a, const void *_b) { const RzAnalysisBlock *a = _a, *b = _b; return a->addr > b->addr ? 1 : (a->addr < b->addr ? -1 : 0); }
0
[ "CWE-703" ]
rizin
6ce71d8aa3dafe3cdb52d5d72ae8f4b95916f939
38,476,346,644,017,138,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...
void DL_Dxf::writeBlockRecord(DL_WriterA& dw) { dw.dxfString( 0, "TABLE"); dw.dxfString( 2, "BLOCK_RECORD"); if (version==DL_VERSION_2000) { dw.dxfHex(5, 1); } //dw.dxfHex(330, 0); if (version==DL_VERSION_2000) { dw.dxfString(100, "AcDbSymbolTable"); } dw.dxfInt( 70, 1)...
0
[ "CWE-191" ]
qcad
1eeffc5daf5a06cf6213ffc19e95923cdebb2eb8
162,875,299,629,026,500,000,000,000,000,000,000,000
56
check vertexIndex which might be -1 for broken DXF
static int __ipv6_isatap_ifid(u8 *eui, __be32 addr) { if (addr == 0) return -1; eui[0] = (ipv4_is_zeronet(addr) || ipv4_is_private_10(addr) || ipv4_is_loopback(addr) || ipv4_is_linklocal_169(addr) || ipv4_is_private_172(addr) || ipv4_is_test_192(addr) || ipv4_is_anycast_6to4(addr) || ipv4_is_private_192...
0
[]
net
4b08a8f1bd8cb4541c93ec170027b4d0782dab52
145,915,108,638,514,910,000,000,000,000,000,000,000
16
ipv6: remove max_addresses check from ipv6_create_tempaddr Because of the max_addresses check attackers were able to disable privacy extensions on an interface by creating enough autoconfigured addresses: <http://seclists.org/oss-sec/2012/q4/292> But the check is not actually needed: max_addresses protects the kerne...
void setup_SSL_CTX(SSL_CTX* ctx) { #ifdef SSL_MODE_RELEASE_BUFFERS SSL_CTX_set_mode( ctx, SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER | SSL_MODE_ENABLE_PARTIAL_WRITE | SSL_MODE_RELEASE_BUFFERS); #else SSL_CTX_set_mode( ctx, SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER | SSL_MODE_ENABLE_PARTIAL_WRITE); #e...
0
[ "CWE-125" ]
folly
c321eb588909646c15aefde035fd3133ba32cdee
10,812,976,591,004,320,000,000,000,000,000,000,000
15
Handle close_notify as standard writeErr in AsyncSSLSocket. Summary: Fixes CVE-2019-11934 Reviewed By: mingtaoy Differential Revision: D18020613 fbshipit-source-id: db82bb250e53f0d225f1280bd67bc74abd417836
static void test_bug10760() { MYSQL_STMT *stmt; MYSQL_BIND my_bind[1]; int rc; const char *stmt_text; char id_buf[20]; ulong id_len; int i= 0; ulong type; myheader("test_bug10760"); mysql_query(mysql, "drop table if exists t1, t2"); /* create tables */ rc= mysql_query(mysql, "create table t1 ...
0
[ "CWE-416" ]
server
eef21014898d61e77890359d6546d4985d829ef6
10,207,352,682,119,561,000,000,000,000,000,000,000
107
MDEV-11933 Wrong usage of linked list in mysql_prune_stmt_list mysql_prune_stmt_list() was walking the list following element->next pointers, but inside the loop it was invoking list_add(element) that modified element->next. So, mysql_prune_stmt_list() failed to visit and reset all elements, and some of them were left...
port::StatusOr<DeviceMemory<uint8>> CreateRnnWorkspace( Stream* stream, const CudnnHandle& cudnn, const CudnnRnnDescriptor& rnn_desc, const CudnnRnnSequenceTensorDescriptor& input_desc, ScratchAllocator* workspace_allocator) { // Query the workspace size. size_t workspace_size_in_bytes = 0; RETURN...
0
[ "CWE-20" ]
tensorflow
14755416e364f17fb1870882fa778c7fec7f16e3
334,396,996,954,012,000,000,000,000,000,000,000,000
17
Prevent CHECK-fail in LSTM/GRU with zero-length input. PiperOrigin-RevId: 346239181 Change-Id: I5f233dbc076aab7bb4e31ba24f5abd4eaf99ea4f
static void rfbSendAuthCaps(rfbClientPtr cl) { rfbAuthenticationCapsMsg caps; rfbCapabilityInfo caplist[MAX_AUTH_CAPS]; int count = 0; int j; SecTypeData *s; AuthCapData *c; rfbCapabilityInfo *pcap; char tempstr[9]; if (!cl->reverseConnection) { int i; /* * When no preference order was ...
0
[ "CWE-787" ]
turbovnc
cea98166008301e614e0d36776bf9435a536136e
113,843,769,211,301,800,000,000,000,000,000,000,000
82
Server: Fix two issues identified by ASan 1. If the TLSPlain and X509Plain security types were both disabled, then rfbOptPamAuth() would overflow the name field in the secTypes structure when testing the "none" security type, since the name of that security type has less than five characters. This issue was ...
xmlSchemaCheckSRCSimpleType(xmlSchemaParserCtxtPtr ctxt, xmlSchemaTypePtr type) { /* * src-simple-type.1 The corresponding simple type definition, if any, * must satisfy the conditions set out in Constraints on Simple Type * Definition Schema Components ($3.14.6). */ if (WXS_IS_RESTRICTIO...
0
[ "CWE-134" ]
libxml2
4472c3a5a5b516aaf59b89be602fbce52756c3e9
144,366,355,008,842,130,000,000,000,000,000,000,000
32
Fix some format string warnings with possible format string vulnerability For https://bugzilla.gnome.org/show_bug.cgi?id=761029 Decorate every method in libxml2 with the appropriate LIBXML_ATTR_FORMAT(fmt,args) macro and add some cleanups following the reports.
double Item_func_pow::val_real() { DBUG_ASSERT(fixed == 1); double value= args[0]->val_real(); double val2= args[1]->val_real(); if ((null_value=(args[0]->null_value || args[1]->null_value))) return 0.0; /* purecov: inspected */ return check_float_overflow(pow(value,val2)); }
0
[ "CWE-120" ]
server
eca207c46293bc72dd8d0d5622153fab4d3fccf1
338,501,435,091,418,660,000,000,000,000,000,000,000
9
MDEV-25317 Assertion `scale <= precision' failed in decimal_bin_size And Assertion `scale >= 0 && precision > 0 && scale <= precision' failed in decimal_bin_size_inline/decimal_bin_size. Precision should be kept below DECIMAL_MAX_SCALE for computations. It can be bigger in Item_decimal. I'd fix this too but it changes...
static void ide_trim_bh_cb(void *opaque) { TrimAIOCB *iocb = opaque; iocb->common.cb(iocb->common.opaque, iocb->ret); qemu_bh_delete(iocb->bh); iocb->bh = NULL; qemu_aio_unref(iocb); }
0
[ "CWE-399" ]
qemu
3251bdcf1c67427d964517053c3d185b46e618e8
115,386,669,732,716,150,000,000,000,000,000,000,000
10
ide: Correct handling of malformed/short PRDTs This impacts both BMDMA and AHCI HBA interfaces for IDE. Currently, we confuse the difference between a PRDT having "0 bytes" and a PRDT having "0 complete sectors." When we receive an incomplete sector, inconsistent error checking leads to an infinite loop wherein the c...
get_compare_type(char_u *p, int *len, int *type_is) { exprtype_T type = EXPR_UNKNOWN; int i; switch (p[0]) { case '=': if (p[1] == '=') type = EXPR_EQUAL; else if (p[1] == '~') type = EXPR_MATCH; break; case '!': if (p[1] == '=') type = EXPR_NEQUAL; else if (p[1] == '~...
0
[ "CWE-200", "CWE-122" ]
vim
5f25c3855071bd7e26255c68bf458b1b5cf92f39
329,136,457,611,040,750,000,000,000,000,000,000,000
49
patch 8.2.4049: Vim9: reading before the start of the line with "$" Problem: Vim9: reading before the start of the line with "$" by itself. Solution: Do not subtract one when reporting the error.
is_equal_mml(MinMaxLen* a, MinMaxLen* b) { return (a->min == b->min && a->max == b->max) ? 1 : 0; }
0
[ "CWE-125" ]
php-src
c6e34d91b88638966662caac62c4d0e90538e317
219,154,394,833,489,400,000,000,000,000,000,000,000
4
Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
varbit_in(PG_FUNCTION_ARGS) { char *input_string = PG_GETARG_CSTRING(0); #ifdef NOT_USED Oid typelem = PG_GETARG_OID(1); #endif int32 atttypmod = PG_GETARG_INT32(2); VarBit *result; /* The resulting bit string */ char *sp; /* pointer into the character string */ bits8 *r; /* pointer i...
0
[ "CWE-703", "CWE-189" ]
postgres
31400a673325147e1205326008e32135a78b4d8a
80,625,910,355,552,850,000,000,000,000,000,000,000
126
Predict integer overflow to avoid buffer overruns. Several functions, mostly type input functions, calculated an allocation size such that the calculation wrapped to a small positive value when arguments implied a sufficiently-large requirement. Writes past the end of the inadvertent small allocation followed shortly...
void DelCTCP(const CString& sLine) { CString sUserName = sLine.Token(1); CString sCTCPRequest = sLine.Token(2, true); if (sCTCPRequest.empty()) { sCTCPRequest = sUserName; sUserName = GetUser()->GetUserName(); } CUser* pUser = FindUser(sUserName); ...
0
[ "CWE-20" ]
znc
64613bc8b6b4adf1e32231f9844d99cd512b8973
232,983,888,184,934,260,000,000,000,000,000,000,000
27
Don't crash if user specified invalid encoding. This is CVE-2019-9917
static int ldb_kv_index_traverse_store(struct tdb_context *tdb, TDB_DATA key, TDB_DATA data, void *state) { struct ldb_module *module = state; struct ldb_kv_private *ldb_kv = talloc_get_type( ldb_module_get_private(module), struct ldb_kv_private); struct ldb_dn *dn; struct ldb_...
0
[ "CWE-20" ]
samba
0998f2f1bced019db4000ef4b55887abcb65f6d2
294,435,645,229,035,730,000,000,000,000,000,000,000
37
CVE-2018-1140 Add NULL check for ldb_dn_get_casefold() in ltdb_index_dn_attr() Signed-off-by: Andrej Gessel <Andrej.Gessel@janztec.com> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> BUG: https://bugzilla.samba.org/show_bug.cgi?id=13374
void dpy_cursor_define(QemuConsole *con, QEMUCursor *cursor) { DisplayState *s = con->ds; DisplayChangeListener *dcl; if (!qemu_console_is_visible(con)) { return; } QLIST_FOREACH(dcl, &s->listeners, next) { if (con != (dcl->con ? dcl->con : active_console)) { continue; ...
0
[ "CWE-416" ]
qemu
a4afa548fc6dd9842ed86639b4d37d4d1c4ad480
234,876,907,340,678,640,000,000,000,000,000,000,000
17
char: move front end handlers in CharBackend Since the hanlders are associated with a CharBackend, rather than the CharDriverState, it is more appropriate to store in CharBackend. This avoids the handler copy dance in qemu_chr_fe_set_handlers() then mux_chr_update_read_handler(), by storing the CharBackend pointer dir...
sraRegion *sraRgnBBox(const sraRegion *src) { int xmin=((unsigned int)(int)-1)>>1,ymin=xmin,xmax=1-xmin,ymax=xmax; sraSpan *vcurr, *hcurr; if(!src) return sraRgnCreate(); vcurr = ((sraSpanList*)src)->front._next; while (vcurr != &(((sraSpanList*)src)->back)) { if(vcurr->start<ymin) ymin=vcurr-...
0
[ "CWE-476" ]
libvncserver
38e98ee61d74f5f5ab4aa4c77146faad1962d6d0
169,503,226,013,886,870,000,000,000,000,000,000,000
31
libvncserver: add missing NULL pointer checks
struct net_device *dev_getfirstbyhwtype(unsigned short type) { struct net_device *dev; rtnl_lock(); for (dev = dev_base; dev; dev = dev->next) { if (dev->type == type) { dev_hold(dev); break; } } rtnl_unlock(); return dev; }
0
[]
linux
e89e9cf539a28df7d0eb1d0a545368e9920b34ac
253,585,474,825,630,870,000,000,000,000,000,000,000
14
[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...
int diskutil_dd(const char *in, const char *out, const int bs, const long long count) { char *output = NULL; if (in && out) { LOGINFO("copying data from '%s'\n", in); LOGINFO(" to '%s' (blocks=%lld)\n", out, count); char if_str[MAX_PATH]; snprintf(if_str, sizeof(if_str), ...
0
[]
eucalyptus
c252889a46f41b4c396b89e005ec89836f2524be
47,151,311,653,623,010,000,000,000,000,000,000,000
26
Input validation, shellout hardening on back-end - validating bucketName and bucketPath in BundleInstance - validating device name in Attach and DetachVolume - removed some uses of system() and popen() Fixes EUCA-7572, EUCA-7520
name_column_sort_func (GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer user_data) { FileData *fdata1; FileData *fdata2; GtkSortType sort_order; int result; gtk_tree_sortable_get_sort_column_id (GTK_TREE_SORTABLE (model), NULL, &sort_order); gtk_tre...
0
[ "CWE-22" ]
file-roller
b147281293a8307808475e102a14857055f81631
71,685,554,501,092,390,000,000,000,000,000,000,000
26
libarchive: sanitize filenames before extracting
ipv4_to_ptr(uint32_t ipv4, char ptr[], size_t nm_len) { static const char IPV4_PTR_SUFFIX[] = "\07in-addr\04arpa"; int i; char* c = ptr; log_assert(nm_len == MAX_PTR_QNAME_IPV4); (void)nm_len; for (i = 0; i < 4; ++i) { *c = uitoa((unsigned int)(ipv4 % 256), c + 1); c += *c + 1; log...
0
[ "CWE-613", "CWE-703" ]
unbound
f6753a0f1018133df552347a199e0362fc1dac68
123,502,683,835,025,400,000,000,000,000,000,000,000
19
- Fix the novel ghost domain issues CVE-2022-30698 and CVE-2022-30699.
static void emmh32_init(emmh32_context *context) { /* prepare for new mic calculation */ context->accum = 0; context->position = 0; }
0
[ "CWE-703", "CWE-264" ]
linux
550fd08c2cebad61c548def135f67aba284c6162
171,740,155,538,110,620,000,000,000,000,000,000,000
6
net: Audit drivers to identify those needing IFF_TX_SKB_SHARING cleared After the last patch, We are left in a state in which only drivers calling ether_setup have IFF_TX_SKB_SHARING set (we assume that drivers touching real hardware call ether_setup for their net_devices and don't hold any state in their skbs. There...
CString CUser::GetRealName() const { // Not include version number via GetTag() because of // https://github.com/znc/znc/issues/818#issuecomment-70402820 return (!m_sRealName.Trim_n().empty()) ? m_sRealName : "ZNC - https://znc.in"; }
0
[ "CWE-20" ]
znc
64613bc8b6b4adf1e32231f9844d99cd512b8973
156,413,601,298,506,980,000,000,000,000,000,000,000
6
Don't crash if user specified invalid encoding. This is CVE-2019-9917
Item_name_const::Item_name_const(Item *name_arg, Item *val): value_item(val), name_item(name_arg) { Item::maybe_null= TRUE; valid_args= true; if (!name_item->basic_const_item()) goto err; if (value_item->basic_const_item()) return; // ok if (value_item->type() == FUNC_ITEM) { Item_func *va...
0
[]
server
b000e169562697aa072600695d4f0c0412f94f4f
28,290,166,697,581,570,000,000,000,000,000,000,000
26
Bug#26361149 MYSQL SERVER CRASHES AT: COL IN(IFNULL(CONST, COL), NAME_CONST('NAME', NULL)) based on: commit f7316aa0c9a Author: Ajo Robert <ajo.robert@oracle.com> Date: Thu Aug 24 17:03:21 2017 +0530 Bug#26361149 MYSQL SERVER CRASHES AT: COL IN(IFNULL(CONST, COL), NAME_CONST('NAME'...
message_send_groupchat_subject(const char *const roomjid, const char *const subject) { xmpp_ctx_t * const ctx = connection_get_ctx(); xmpp_stanza_t *message = stanza_create_room_subject_message(ctx, roomjid, subject); _send_message_stanza(message); xmpp_stanza_release(message); }
0
[ "CWE-20", "CWE-346" ]
profanity
8e75437a7e43d4c55e861691f74892e666e29b0b
298,810,281,291,614,240,000,000,000,000,000,000,000
8
Add carbons from check
virDomainObjSetMetadata(virDomainObjPtr vm, int type, const char *metadata, const char *key, const char *uri, virDomainXMLOptionPtr xmlopt, const char *stateDir, ...
0
[ "CWE-212" ]
libvirt
a5b064bf4b17a9884d7d361733737fb614ad8979
215,515,685,520,119,240,000,000,000,000,000,000,000
38
conf: Don't format http cookies unless VIR_DOMAIN_DEF_FORMAT_SECURE is used Starting with 3b076391befc3fe72deb0c244ac6c2b4c100b410 (v6.1.0-122-g3b076391be) we support http cookies. Since they may contain somewhat sensitive information we should not format them into the XML unless VIR_DOMAIN_DEF_FORMAT_SECURE is assert...
dns_cancel_pending_resolve(const char *address) { pending_connection_t *pend; cached_resolve_t search; cached_resolve_t *resolve, *tmp; edge_connection_t *pendconn; circuit_t *circ; strlcpy(search.address, address, sizeof(search.address)); resolve = HT_FIND(cache_map, &cache_root, &search); if (!resol...
0
[ "CWE-399" ]
tor
62637fa22405278758febb1743da9af562524d4c
25,799,600,169,750,390,000,000,000,000,000,000,000
69
Avoid hard (impossible?)-to-trigger double-free in dns_resolve() Fixes 6480; fix on 0.2.0.1-alpha; based on pseudonymous patch.
int X509_verify_cert(X509_STORE_CTX *ctx) { X509 *x, *xtmp, *xtmp2, *chain_ss = NULL; int bad_chain = 0; X509_VERIFY_PARAM *param = ctx->param; int depth, i, ok = 0; int num, j, retry; int (*cb) (int xok, X509_STORE_CTX *xctx); STACK_OF(X509) *sktmp = NULL; if (ctx->cert == NULL) { ...
1
[ "CWE-254" ]
openssl
cb22d2ae5a5b6069dbf66dbcce07223ac15a16de
157,510,682,266,880,130,000,000,000,000,000,000,000
285
Fix alt chains bug This is a follow up to the alternate chains certificate forgery issue (CVE-2015-1793). That issue is exacerbated in 1.0.1 by a related bug which means that we *always* check for an alternative chain, even if we have already found a chain. The code is supposed to stop as soon as it has found one (and...
bltincmd(int argc, char **argv) { /* * Preserve exitstatus of a previous possible redirection * as POSIX mandates */ return back_exitstatus; }
0
[]
dash
29d6f2148f10213de4e904d515e792d2cf8c968e
20,644,611,458,372,148,000,000,000,000,000,000,000
8
eval: Check nflag in evaltree instead of cmdloop This patch moves the nflag check from cmdloop into evaltree. This is so that nflag will be in force even if we enter the shell via a path other than cmdloop, e.g., through sh -c. Reported-by: Joey Hess <id@joeyh.name> Signed-off-by: Herbert Xu <herbert@gondor.apana.or...
static int coolkey_apdu_io(sc_card_t *card, int cla, int ins, int p1, int p2, const u8 * sendbuf, size_t sendbuflen, u8 ** recvbuf, size_t * recvbuflen, const u8 *nonce, size_t nonce_len) { int r; sc_apdu_t apdu; u8 rbufinitbuf[COOLKEY_MAX_SIZE]; u8 rsendbuf[COOLKEY_MAX_SIZE]; u8 *rbuf; size_t rbuflen; int cse...
0
[ "CWE-415" ]
OpenSC
c246f6f69a749d4f68626b40795a4f69168008f4
114,744,101,623,469,800,000,000,000,000,000,000,000
117
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
static const char *ai_name(const struct addrinfo *ai) { static char addr[NI_MAXHOST]; if (getnameinfo(ai->ai_addr, ai->ai_addrlen, addr, sizeof(addr), NULL, 0, NI_NUMERICHOST) != 0) strcpy(addr, "(unknown)"); return addr; }
0
[]
git
73bb33a94ec67a53e7d805b12ad9264fa25f4f8d
146,696,440,548,851,500,000,000,000,000,000,000,000
9
daemon: Strictly parse the "extra arg" part of the command Since 1.4.4.5 (49ba83fb67 "Add virtualization support to git-daemon") git daemon enters an infinite loop and never terminates if a client hides any extra arguments in the initial request line which is not exactly "\0host=blah\0". Since that change, a client m...
static ssize_t show_tabletODMCode(struct device *dev, struct device_attribute *attr, char *buf) { struct aiptek *aiptek = dev_get_drvdata(dev); return snprintf(buf, PAGE_SIZE, "0x%04x\n", aiptek->features.odmCode); }
0
[ "CWE-476", "CWE-401" ]
linux
8e20cf2bce122ce9262d6034ee5d5b76fbb92f96
155,587,743,630,083,000,000,000,000,000,000,000,000
6
Input: aiptek - fix crash on detecting device without endpoints The aiptek driver crashes in aiptek_probe() when a specially crafted USB device without endpoints is detected. This fix adds a check that the device has proper configuration expected by the driver. Also an error return value is changed to more matching on...
static void super_90_sync(struct mddev *mddev, struct md_rdev *rdev) { mdp_super_t *sb; struct md_rdev *rdev2; int next_spare = mddev->raid_disks; /* make rdev->sb match mddev data.. * * 1/ zero out disks * 2/ Add info for each disk, keeping track of highest desc_nr (next_spare); * 3/ any empty disks < nex...
0
[ "CWE-200" ]
linux
b6878d9e03043695dbf3fa1caa6dfc09db225b16
40,507,319,109,088,307,000,000,000,000,000,000,000
138
md: use kzalloc() when bitmap is disabled In drivers/md/md.c get_bitmap_file() uses kmalloc() for creating a mdu_bitmap_file_t called "file". 5769 file = kmalloc(sizeof(*file), GFP_NOIO); 5770 if (!file) 5771 return -ENOMEM; This structure is copied to user space at the end of the fun...
pwg_ppdize_resolution( ipp_attribute_t *attr, /* I - Attribute to convert */ int element, /* I - Element to convert */ int *xres, /* O - X resolution in DPI */ int *yres, /* O - Y resolution in DPI */ char *name, /* I - Name buffer */ size_t ...
0
[ "CWE-93" ]
cups
07428f6a640ff93aa0b4cc69ca372e2cf8490e41
69,719,731,079,115,450,000,000,000,000,000,000,000
27
Only list supported PDLs (Issue #4923)
static void macsec_fill_sectag(struct macsec_eth_header *h, const struct macsec_secy *secy, u32 pn, bool sci_present) { const struct macsec_tx_sc *tx_sc = &secy->tx_sc; memset(&h->tci_an, 0, macsec_sectag_len(sci_present)); h->eth.h_proto = htons(ETH_P_MACSEC); if (sci_present) { h->tci_an |...
0
[ "CWE-119" ]
net
5294b83086cc1c35b4efeca03644cf9d12282e5b
34,820,375,789,547,736,000,000,000,000,000,000,000
30
macsec: dynamically allocate space for sglist We call skb_cow_data, which is good anyway to ensure we can actually modify the skb as such (another error from prior). Now that we have the number of fragments required, we can safely allocate exactly that amount of memory. Fixes: c09440f7dcb3 ("macsec: introduce IEEE 80...
void __check_sit_bitmap(struct f2fs_sb_info *sbi, block_t start, block_t end) { #ifdef CONFIG_F2FS_CHECK_FS struct seg_entry *sentry; unsigned int segno; block_t blk = start; unsigned long offset, size, max_blocks = sbi->blocks_per_seg; unsigned long *map; while (blk < end) { segno = GET_SEGNO(sbi, blk); ...
0
[ "CWE-20" ]
linux
638164a2718f337ea224b747cf5977ef143166a4
181,701,713,655,222,300,000,000,000,000,000,000,000
26
f2fs: fix potential panic during fstrim As Ju Hyung Park reported: "When 'fstrim' is called for manual trim, a BUG() can be triggered randomly with this patch. I'm seeing this issue on both x86 Desktop and arm64 Android phone. On x86 Desktop, this was caused during Ubuntu boot-up. I have a cronjob installed which c...
QPDFObjectHandle::isMatrix() { if (! isArray()) { return false; } if (getArrayNItems() != 6) { return false; } for (int i = 0; i < 6; ++i) { if (! getArrayItem(i).isNumber()) { return false; } } return true; }
0
[ "CWE-787" ]
qpdf
d71f05ca07eb5c7cfa4d6d23e5c1f2a800f52e8e
62,775,300,738,171,350,000,000,000,000,000,000,000
19
Fix sign and conversion warnings (major) This makes all integer type conversions that have potential data loss explicit with calls that do range checks and raise an exception. After this commit, qpdf builds with no warnings when -Wsign-conversion -Wconversion is used with gcc or clang or when -W3 -Wd4800 is used with ...
static inline struct sfq_head *sfq_dep_head(struct sfq_sched_data *q, sfq_index val) { if (val < SFQ_MAX_FLOWS) return &q->slots[val].dep; return &q->dep[val - SFQ_MAX_FLOWS]; }
0
[ "CWE-330" ]
linux
55667441c84fa5e0911a0aac44fb059c15ba6da2
162,514,305,979,096,400,000,000,000,000,000,000,000
6
net/flow_dissector: switch to siphash UDP IPv6 packets auto flowlabels are using a 32bit secret (static u32 hashrnd in net/core/flow_dissector.c) and apply jhash() over fields known by the receivers. Attackers can easily infer the 32bit secret and use this information to identify a device and/or user, since this 32bi...
rdpsnd_queue_write(STREAM s, uint16 tick, uint8 index) { struct audio_packet *packet = &packet_queue[queue_hi]; unsigned int next_hi = (queue_hi + 1) % MAX_QUEUE; if (next_hi == queue_pending) { error("No space to queue audio packet\n"); return; } queue_hi = next_hi; packet->s = *s; packet->tick = tick; ...
0
[ "CWE-787" ]
rdesktop
766ebcf6f23ccfe8323ac10242ae6e127d4505d2
246,864,992,014,353,960,000,000,000,000,000,000,000
19
Malicious RDP server security fixes This commit includes fixes for a set of 21 vulnerabilities in rdesktop when a malicious RDP server is used. All vulnerabilities was identified and reported by Eyal Itkin. * Add rdp_protocol_error function that is used in several fixes * Refactor of process_bitmap_updates * Fix pos...
const T& operator()(const unsigned int x, const unsigned int y, const unsigned int z, const unsigned int c, const ulongT wh, const ulongT whd) const { return _data[x + y*_width + z*wh + c*whd]; }
0
[ "CWE-770" ]
cimg
619cb58dd90b4e03ac68286c70ed98acbefd1c90
303,468,668,212,002,470,000,000,000,000,000,000,000
4
CImg<>::load_bmp() and CImg<>::load_pandore(): Check that dimensions encoded in file does not exceed file size.
TEST_P(Http2IntegrationTest, BadMagic) { initialize(); Buffer::OwnedImpl buffer("hello"); std::string response; RawConnectionDriver connection( lookupPort("http"), buffer, [&](Network::ClientConnection&, const Buffer::Instance& data) -> void { response.append(data.toString()); }, ...
0
[ "CWE-400", "CWE-703" ]
envoy
afc39bea36fd436e54262f150c009e8d72db5014
128,737,874,543,407,700,000,000,000,000,000,000,000
14
Track byteSize of HeaderMap internally. Introduces a cached byte size updated internally in HeaderMap. The value is stored as an optional, and is cleared whenever a non-const pointer or reference to a HeaderEntry is accessed. The cached value can be set with refreshByteSize() which performs an iteration over the Heade...
void *Type_Screening_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag) { cmsScreening* sc = NULL; cmsUInt32Number i; sc = (cmsScreening*) _cmsMallocZero(self ->ContextID, sizeof(cmsScreening)); if (sc == NULL) return NULL; *nItems = 0;...
0
[]
Little-CMS
41d222df1bc6188131a8f46c32eab0a4d4cdf1b6
40,190,287,989,754,165,000,000,000,000,000,000,000
36
Memory squeezing fix: lcms2 cmsPipeline construction When creating a new pipeline, lcms would often try to allocate a stage and pass it to cmsPipelineInsertStage without checking whether the allocation succeeded. cmsPipelineInsertStage would then assert (or crash) if it had not. The fix here is to change cmsPipelineI...
static irqreturn_t tg3_msi(int irq, void *dev_id) { struct tg3_napi *tnapi = dev_id; struct tg3 *tp = tnapi->tp; prefetch(tnapi->hw_status); if (tnapi->rx_rcb) prefetch(&tnapi->rx_rcb[tnapi->rx_rcb_ptr]); /* * Writing any value to intr-mbox-0 clears PCI INTA# and * chip-internal interrupt pending events. ...
0
[ "CWE-476", "CWE-119" ]
linux
715230a44310a8cf66fbfb5a46f9a62a9b2de424
277,289,704,388,813,770,000,000,000,000,000,000,000
21
tg3: fix length overflow in VPD firmware parsing Commit 184b89044fb6e2a74611dafa69b1dce0d98612c6 ("tg3: Use VPD fw version when present") introduced VPD parsing that contained a potential length overflow. Limit the hardware's reported firmware string length (max 255 bytes) to stay inside the driver's firmware string ...
ofputil_make_set_packet_in_format(enum ofp_version ofp_version, enum nx_packet_in_format packet_in_format) { struct nx_set_packet_in_format *spif; struct ofpbuf *msg; msg = ofpraw_alloc(OFPRAW_NXT_SET_PACKET_IN_FORMAT, ofp_version, 0); spif = ofpbuf_put_zeros(msg, size...
0
[ "CWE-772" ]
ovs
77ad4225d125030420d897c873e4734ac708c66b
222,531,332,325,200,200,000,000,000,000,000,000,000
12
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>
bluetooth_client_dump_device (GtkTreeModel *model, GtkTreeIter *iter) { GDBusProxy *proxy; char *address, *alias, *name, *icon, **uuids; gboolean is_default, paired, trusted, connected, discoverable, discovering, powered, is_adapter; GtkTreeIter parent; BluetoothType type; gtk_tree_model_get (model, ite...
0
[]
gnome-bluetooth
6b5086d42ea64d46277f3c93b43984f331d12f89
14,973,394,637,986,178,000,000,000,000,000,000,000
66
lib: Fix Discoverable being reset when turned off Work-around race in bluetoothd which would reset the discoverable flag if a timeout change was requested before discoverable finished being set to off: See https://bugzilla.redhat.com/show_bug.cgi?id=1602985
void stop() { delay_lock.Lock(); stop_delayed_delivery = true; delay_cond.Signal(); delay_lock.Unlock(); }
0
[ "CWE-287", "CWE-284" ]
ceph
5ead97120e07054d80623dada90a5cc764c28468
220,914,064,445,833,900,000,000,000,000,000,000,000
6
auth/cephx: add authorizer challenge Allow the accepting side of a connection to reject an initial authorizer with a random challenge. The connecting side then has to respond with an updated authorizer proving they are able to decrypt the service's challenge and that the new authorizer was produced for this specific ...
UriBool URI_FUNC(CopyPath)(URI_TYPE(Uri) * dest, const URI_TYPE(Uri) * source, UriMemoryManager * memory) { if (source->pathHead == NULL) { /* No path component */ dest->pathHead = NULL; dest->pathTail = NULL; } else { /* Copy list but not the text contained */ URI_TYPE(PathSegment) * sourceWalker = sourc...
0
[ "CWE-476" ]
uriparser
f58c25069cf4a986fe17a80c5b38687e31feb539
330,413,210,559,744,460,000,000,000,000,000,000,000
39
ResetUri: Protect against NULL
static json_object *reencrypt_make_segment_old(struct crypt_device *cd, struct luks2_hdr *hdr, const struct luks2_reencrypt *rh, uint64_t data_offset, uint64_t segment_offset, const uint64_t *segment_length) { json_object *jobj_old_seg = NULL; switch (rh->mode) { case CRYPT_REENCRYPT_REENCRYPT: case CRYP...
0
[ "CWE-345" ]
cryptsetup
0113ac2d889c5322659ad0596d4cfc6da53e356c
136,305,479,369,872,900,000,000,000,000,000,000,000
25
Fix CVE-2021-4122 - LUKS2 reencryption crash recovery attack Fix possible attacks against data confidentiality through LUKS2 online reencryption extension crash recovery. An attacker can modify on-disk metadata to simulate decryption in progress with crashed (unfinished) reencryption step and persistently decrypt par...
GF_Err stss_box_read(GF_Box *s, GF_BitStream *bs) { u32 i; GF_SyncSampleBox *ptr = (GF_SyncSampleBox *)s; ISOM_DECREASE_SIZE(ptr, 4); ptr->nb_entries = gf_bs_read_u32(bs); if (ptr->size < ptr->nb_entries * 4) { GF_LOG(GF_LOG_ERROR, GF_LOG_CONTAINER, ("[iso file] Invalid number of entries %d in stss\n", ptr->nb...
0
[ "CWE-787" ]
gpac
388ecce75d05e11fc8496aa4857b91245007d26e
269,187,077,706,749,640,000,000,000,000,000,000,000
21
fixed #1587
static codel_time_t codel_skb_time_func(const struct sk_buff *skb) { const struct ieee80211_tx_info *info; info = (const struct ieee80211_tx_info *)skb->cb; return info->control.enqueue_time; }
0
[ "CWE-476" ]
linux
bddc0c411a45d3718ac535a070f349be8eca8d48
131,784,461,778,041,320,000,000,000,000,000,000,000
7
mac80211: Fix NULL ptr deref for injected rate info The commit cb17ed29a7a5 ("mac80211: parse radiotap header when selecting Tx queue") moved the code to validate the radiotap header from ieee80211_monitor_start_xmit to ieee80211_parse_tx_radiotap. This made is possible to share more code with the new Tx queue selecti...
do_execstack(i_ctx_t *i_ctx_p, bool include_marks, os_ptr op1) { os_ptr op = osp; ref *arefs = op1->value.refs; uint asize = r_size(op1); uint i; ref *rq; /* * Copy elements from the stack to the array, * optionally skipping executable nulls. * Clear the executable bit in any int...
1
[ "CWE-200" ]
ghostpdl
34cc326eb2c5695833361887fe0b32e8d987741c
100,077,967,879,339,050,000,000,000,000,000,000,000
49
Bug 699927: don't include operator arrays in execstack output When we transfer the contents of the execution stack into the array, take the extra step of replacing any operator arrays on the stack with the operator that reference them. This prevents the contents of Postscript defined, internal only operators (those c...
int vrend_create_shader(struct vrend_context *ctx, uint32_t handle, const struct pipe_stream_output_info *so_info, uint32_t req_local_mem, const char *shd_text, uint32_t offlen, uint32_t num_tokens, u...
0
[ "CWE-787" ]
virglrenderer
cbc8d8b75be360236cada63784046688aeb6d921
337,287,445,509,759,000,000,000,000,000,000,000,000
154
vrend: check transfer bounds for negative values too and report error Closes #138 Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
static CURLcode imap_state_fetch_resp(struct connectdata *conn, int imapcode, imapstate instate) { CURLcode result = CURLE_OK; struct Curl_easy *data = conn->data; struct imap_conn *imapc = &conn->proto.imapc; struct pingpong *pp = &imapc->pp; const char *ptr = data->stat...
1
[ "CWE-119" ]
curl
13c9a9ded3ae744a1e11cbc14e9146d9fa427040
253,160,008,529,177,830,000,000,000,000,000,000,000
94
imap: if a FETCH response has no size, don't call write callback CVE-2017-1000257 Reported-by: Brian Carpenter and 0xd34db347 Also detected by OSS-Fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3586
static void write_bin_error(conn *c, protocol_binary_response_status err, const char *errstr, int swallow) { size_t len; if (!errstr) { switch (err) { case PROTOCOL_BINARY_RESPONSE_ENOMEM: errstr = "Out of memory"; break; case PROTOCOL...
0
[]
memcached
f249724cedcab6605ca8a0769ac4b356a8124f63
257,774,583,106,559,500,000,000,000,000,000,000,000
56
crash fix: errstr wasn't initialized in metaget if meta_flag_preparse bailed out early it would try to read uninitialized memory.
lyd_diff_move_preprocess(struct diff_ordered *ordered, struct lyd_node *first, struct lyd_node *second) { struct ly_ctx *ctx = first->schema->module->ctx; struct lyd_node *iter; unsigned int pos = 0; int abs_dist; struct diff_ordered_dist *dist_aux; struct diff_ordered_dist *dist_iter, *dist_las...
0
[ "CWE-119" ]
libyang
32fb4993bc8bb49e93e84016af3c10ea53964be5
2,610,167,455,316,455,000,000,000,000,000,000,000
81
schema tree BUGFIX do not check features while still resolving schema Fixes #723
int vnc_raw_send_framebuffer_update(VncState *vs, int x, int y, int w, int h) { int i; uint8_t *row; VncDisplay *vd = vs->vd; row = vd->server->data + y * ds_get_linesize(vs->ds) + x * ds_get_bytes_per_pixel(vs->ds); for (i = 0; i < h; i++) { vs->write_pixels(vs, &vd->server->pf, row, w * d...
1
[ "CWE-125" ]
qemu
9f64916da20eea67121d544698676295bbb105a7
178,206,116,893,199,730,000,000,000,000,000,000,000
13
pixman/vnc: use pixman images in vnc. The vnc code uses *three* DisplaySurfaces: First is the surface of the actual QemuConsole, usually the guest screen, but could also be a text console (monitor/serial reachable via Ctrl-Alt-<nr> keys). This is left as-is. Second is the current server's view of the screen content...
static ssize_t store_uevent(struct module_attribute *mattr, struct module_kobject *mk, const char *buffer, size_t count) { int rc; rc = kobject_synth_uevent(&mk->kobj, buffer, count); return rc ? rc : count; }
0
[ "CWE-362", "CWE-347" ]
linux
0c18f29aae7ce3dadd26d8ee3505d07cc982df75
120,895,243,964,823,380,000,000,000,000,000,000,000
9
module: limit enabling module.sig_enforce Irrespective as to whether CONFIG_MODULE_SIG is configured, specifying "module.sig_enforce=1" on the boot command line sets "sig_enforce". Only allow "sig_enforce" to be set when CONFIG_MODULE_SIG is configured. This patch makes the presence of /sys/module/module/parameters/s...
S_alloc_code_blocks(pTHX_ int ncode) { struct reg_code_blocks *cbs; Newx(cbs, 1, struct reg_code_blocks); cbs->count = ncode; cbs->refcnt = 1; SAVEDESTRUCTOR_X(S_free_codeblocks, cbs); if (ncode) Newx(cbs->cb, ncode, struct reg_code_block); else cbs->cb = NULL; return c...
0
[ "CWE-125" ]
perl5
43b2f4ef399e2fd7240b4eeb0658686ad95f8e62
77,486,437,856,183,840,000,000,000,000,000,000,000
13
regcomp.c: Convert some strchr to memchr This allows things to work properly in the face of embedded NULs. See the branch merge message for more information.
expand_prompt_string (string, quoted, wflags) char *string; int quoted; int wflags; { WORD_LIST *value; WORD_DESC td; if (string == 0 || *string == 0) return ((WORD_LIST *)NULL); td.flags = wflags; td.word = savestring (string); no_longjmp_on_fatal_error = 1; value = expand_word_inte...
0
[]
bash
955543877583837c85470f7fb8a97b7aa8d45e6c
234,367,340,027,621,600,000,000,000,000,000,000,000
35
bash-4.4-rc2 release
enslave( struct net_device *dev, struct net_device *slave_dev ) { struct net_local *nl = (struct net_local *) dev->priv; struct net_local *snl = (struct net_local *) slave_dev->priv; if( nl->state & FL_SLAVE ) /* This isn't master or free device */ return -EBUSY; if( snl->state & FL_SLAVE ) /* That was a...
0
[ "CWE-264" ]
linux-2.6
f2455eb176ac87081bbfc9a44b21c7cd2bc1967e
40,237,212,024,833,555,000,000,000,000,000,000,000
32
wan: Missing capability checks in sbni_ioctl() There are missing capability checks in the following code: 1300 static int 1301 sbni_ioctl( struct net_device *dev, struct ifreq *ifr, int cmd) 1302 { [...] 1319 case SIOCDEVRESINSTATS : 1320 if( current->euid != 0 ) /* root only */ 1321 ...
static int sas_configure_phy(struct domain_device *dev, int phy_id, u8 *sas_addr, int include) { int index; int present; int res; res = sas_configure_present(dev, phy_id, sas_addr, &index, &present); if (res) return res; if (include ^ present) return sas_configure_set(dev, phy_id, sas_addr, index,inc...
0
[ "CWE-399", "CWE-772" ]
linux
4a491b1ab11ca0556d2fda1ff1301e862a2d44c4
40,425,200,557,291,146,000,000,000,000,000,000,000
15
scsi: libsas: fix memory leak in sas_smp_get_phy_events() We've got a memory leak with the following producer: while true; do cat /sys/class/sas_phy/phy-1:0:12/invalid_dword_count >/dev/null; done The buffer req is allocated and not freed after we return. Fix it. Fixes: 2908d778ab3e ("[SCSI] aic94xx: new driver") S...
TEST_P(Http2CodecImplDeferredResetTest, DeferredResetServer) { initialize(); InSequence s; TestRequestHeaderMapImpl request_headers; HttpTestUtility::addDefaultHeaders(request_headers); EXPECT_CALL(request_decoder_, decodeHeaders_(_, false)); request_encoder_->encodeHeaders(request_headers, false); // ...
1
[ "CWE-400" ]
envoy
0e49a495826ea9e29134c1bd54fdeb31a034f40c
258,069,860,062,392,620,000,000,000,000,000,000,000
31
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...
gpk_write_binary(sc_card_t *card, unsigned int offset, const u8 *buf, size_t count, unsigned long flags) { struct gpk_private_data *priv = DRVDATA(card); if (offset & priv->offset_mask) { sc_debug(card->ctx, SC_LOG_DEBUG_NORMAL, "Invalid file offset (not a multiple of %d)", priv->offset_mask + 1); return S...
0
[ "CWE-125" ]
OpenSC
8fe377e93b4b56060e5bbfb6f3142ceaeca744fa
64,675,840,131,560,115,000,000,000,000,000,000,000
13
fixed out of bounds reads Thanks to Eric Sesterhenn from X41 D-SEC GmbH for reporting and suggesting security fixes.
do_setup (GdmSessionWorker *worker) { GError *error; gboolean res; worker->priv->user_settings = gdm_session_settings_new (); g_signal_connect_swapped (worker->priv->user_settings, "notify::language-name", G_CALLBACK ...
0
[]
gdm
c25ef9245be4e0be2126ef3d075df4401949b570
211,542,376,757,305,180,000,000,000,000,000,000,000
56
Store the face and dmrc files in a cache. Refer to bug #565151.
list_table_status(MYSQL *mysql,const char *db,const char *wild) { char query[NAME_LEN + 100]; int len; MYSQL_RES *result; MYSQL_ROW row; len= sizeof(query); len-= my_snprintf(query, len, "show table status from `%s`", db); if (wild && wild[0] && len) strxnmov(query + strlen(query), len - 1, " like '"...
0
[ "CWE-284", "CWE-295" ]
mysql-server
3bd5589e1a5a93f9c224badf983cd65c45215390
253,178,348,175,606,730,000,000,000,000,000,000,000
32
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...
_dbus_validate_signature_with_reason (const DBusString *type_str, int type_pos, int len) { const unsigned char *p; const unsigned char *end; int last; int struct_depth; int array_depth; int dict_entry_dep...
1
[ "CWE-20" ]
dbus
7b10b46c5c8658449783ce45f1273dd35c353bce
213,008,185,461,133,900,000,000,000,000,000,000,000
239
Bug 17803: Panic from dbus_signature_validate * dbus/dbus-marshal-validate.c: Ensure we validate a basic type before calling is_basic on it. * dbus-marshal-validate-util.c: Test.
int cap_inode_setxattr(struct dentry *dentry, const char *name, const void *value, size_t size, int flags) { if (!strcmp(name, XATTR_NAME_CAPS)) { if (!capable(CAP_SETFCAP)) return -EPERM; return 0; } else if (!strncmp(name, XATTR_SECURITY_PREFIX, sizeof(XATTR_SECURITY_PREFIX) - 1) && !ca...
0
[]
linux-2.6
3318a386e4ca68c76e0294363d29bdc46fcad670
226,511,218,065,978,850,000,000,000,000,000,000,000
13
file caps: always start with clear bprm->caps_* While Linux doesn't honor setuid on scripts. However, it mistakenly behaves differently for file capabilities. This patch fixes that behavior by making sure that get_file_caps() begins with empty bprm->caps_*. That way when a script is loaded, its bprm->caps_* may be ...
static int indexedrange(i_ctx_t * i_ctx_p, ref *space, float *ptr) { ref hival; int code; code = array_get(imemory, space, 2, &hival); if (code < 0) return code; ptr[0] = 0; ptr[1] = (float)hival.value.intval; return 0; }
0
[]
ghostpdl
b326a71659b7837d3acde954b18bda1a6f5e9498
297,512,713,209,139,700,000,000,000,000,000,000,000
12
Bug 699655: Properly check the return value.... ...when getting a value from a dictionary
static inline void mpeg4_encode_dc(PutBitContext *s, int level, int n) { /* DC will overflow if level is outside the [-255,255] range. */ level += 256; if (n < 4) { /* luminance */ put_bits(s, uni_DCtab_lum_len[level], uni_DCtab_lum_bits[level]); } else { /* chrominance */ ...
0
[ "CWE-20" ]
FFmpeg
e1182fac1afba92a4975917823a5f644bee7e6e8
192,790,528,395,163,700,000,000,000,000,000,000,000
12
avcodec/mpeg4videoenc: Use 64 bit for times in mpeg4_encode_gop_header() Fixes truncation Fixes Assertion n <= 31 && value < (1U << n) failed at libavcodec/put_bits.h:169 Fixes: ffmpeg_crash_2.avi Found-by: Thuan Pham <thuanpv@comp.nus.edu.sg>, Marcel Böhme, Andrew Santosa and Alexandru RazvanCaciulescu with AFLSmart...
void usbredirparser_send_stop_interrupt_receiving(struct usbredirparser *parser, uint64_t id, struct usb_redir_stop_interrupt_receiving_header *stop_interrupt_receiving) { usbredirparser_queue(parser, usb_redir_stop_interrupt_receiving, id, stop_interrupt_receiving, NULL, 0); }
0
[]
usbredir
03c519ff5831ba75120e00ebebbf1d5a1f7220ab
8,247,604,594,032,034,000,000,000,000,000,000,000
7
Avoid use-after-free in serialization Serializing parsers with large amounts of buffered write data (e.g. in case of a slow or blocked write destination) would cause "serialize_data" to reallocate the state buffer whose default size is 64kB (USBREDIRPARSER_SERIALIZE_BUF_SIZE). The pointer to the position for the write...
execute_arith_for_command (arith_for_command) ARITH_FOR_COM *arith_for_command; { intmax_t expresult; int expok, body_status, arith_lineno, save_lineno; body_status = EXECUTION_SUCCESS; loop_level++; save_lineno = line_number; if (arith_for_command->flags & CMD_IGNORE_RETURN) arith_for_command->a...
1
[]
bash
955543877583837c85470f7fb8a97b7aa8d45e6c
30,189,288,678,148,716,000,000,000,000,000,000,000
82
bash-4.4-rc2 release
static int ca8210_net_rx(struct ieee802154_hw *hw, u8 *command, size_t len) { struct ca8210_priv *priv = hw->priv; unsigned long flags; u8 status; dev_dbg(&priv->spi->dev, "%s: CmdID = %d\n", __func__, command[0]); if (command[0] == SPI_MCPS_DATA_INDICATION) { /* Received data */ spin_lock_irqsave(&priv->loc...
0
[ "CWE-400", "CWE-401" ]
linux
6402939ec86eaf226c8b8ae00ed983936b164908
53,074,794,967,362,680,000,000,000,000,000,000,000
36
ieee802154: ca8210: prevent memory leak In ca8210_probe the allocated pdata needs to be assigned to spi_device->dev.platform_data before calling ca8210_get_platform_data. Othrwise when ca8210_get_platform_data fails pdata cannot be released. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Link: https://lor...
xmlSchemaCheckParticleRangeOK(int rmin, int rmax, int bmin, int bmax) { if (rmin < bmin) return (1); if ((bmax != UNBOUNDED) && (rmax > bmax)) return (1); return (0); }
0
[ "CWE-134" ]
libxml2
4472c3a5a5b516aaf59b89be602fbce52756c3e9
115,643,130,595,698,080,000,000,000,000,000,000,000
10
Fix some format string warnings with possible format string vulnerability For https://bugzilla.gnome.org/show_bug.cgi?id=761029 Decorate every method in libxml2 with the appropriate LIBXML_ATTR_FORMAT(fmt,args) macro and add some cleanups following the reports.
void sqlite3RenameTokenRemap(Parse *pParse, void *pTo, void *pFrom){ RenameToken *p; renameTokenCheckAll(pParse, pTo); for(p=pParse->pRename; p; p=p->pNext){ if( p->p==pFrom ){ p->p = pTo; break; } } }
0
[ "CWE-674", "CWE-787" ]
sqlite
38096961c7cd109110ac21d3ed7dad7e0cb0ae06
148,157,061,030,398,940,000,000,000,000,000,000,000
10
Avoid infinite recursion in the ALTER TABLE code when a view contains an unused CTE that references, directly or indirectly, the view itself. FossilOrigin-Name: 1d2e53a39b87e364685e21de137655b6eee725e4c6d27fc90865072d7c5892b5
static MemoryRegionSection *phys_page_find(AddressSpaceDispatch *d, hwaddr addr) { PhysPageEntry lp = d->phys_map, *p; Node *nodes = d->map.nodes; MemoryRegionSection *sections = d->map.sections; hwaddr index = addr >> TARGET_PAGE_BITS; int i; for (i = P_L2_LEVELS; lp.skip && (i -= lp.skip) >= ...
0
[ "CWE-125" ]
qemu
04bf2526ce87f21b32c9acba1c5518708c243ad0
213,607,909,735,269,200,000,000,000,000,000,000,000
22
exec: use qemu_ram_ptr_length to access guest ram When accessing guest's ram block during DMA operation, use 'qemu_ram_ptr_length' to get ram block pointer. It ensures that DMA operation of given length is possible; And avoids any OOB memory access situations. Reported-by: Alex <broscutamaker@gmail.com> Signed-off-by...
SG_Exception_Existential::SG_Exception_Existential(const char* container_name, const char* missing_name) { std::string cn_s(container_name); std::string mn_s(missing_name); this -> err_msg = "[" + cn_s + "] The property or the variable associated with " + mn_s ...
0
[ "CWE-787" ]
gdal
767e3a56144f676ca738ef8f700e0e56035bd05a
87,898,344,145,926,780,000,000,000,000,000,000,000
9
netCDF: avoid buffer overflow. master only. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=15143. Credit to OSS Fuzz
static void MP4_FreeBox_stsz( MP4_Box_t *p_box ) { FREENULL( p_box->data.p_stsz->i_entry_size ); }
0
[ "CWE-120", "CWE-191", "CWE-787" ]
vlc
2e7c7091a61aa5d07e7997b393d821e91f593c39
292,263,912,518,853,670,000,000,000,000,000,000,000
4
demux: mp4: fix buffer overflow in parsing of string boxes. We ensure that pbox->i_size is never smaller than 8 to avoid an integer underflow in the third argument of the subsequent call to memcpy. We also make sure no truncation occurs when passing values derived from the 64 bit integer p_box->i_size to arguments of ...
int dsdb_dc_functional_level(struct ldb_context *ldb) { int *dcFunctionality = talloc_get_type(ldb_get_opaque(ldb, "domainFunctionality"), int); if (!dcFunctionality) { /* this is expected during initial provision */ DEBUG(4,(__location__ ": WARNING: domainControllerFunctionality not setup\n")); return DS_DOM...
0
[ "CWE-200" ]
samba
0a3aa5f908e351201dc9c4d4807b09ed9eedff77
151,637,832,846,159,640,000,000,000,000,000,000,000
11
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 cipso_v4_parsetag_rbm(const struct cipso_v4_doi *doi_def, const unsigned char *tag, struct netlbl_lsm_secattr *secattr) { int ret_val; u8 tag_len = tag[1]; u32 level; ret_val = cipso_v4_map_lvl_ntoh(doi_def, tag[3], &level); if (ret_val != 0) return ret_val; secattr->attr.mls.lvl = level; ...
0
[ "CWE-416" ]
linux
ad5d07f4a9cd671233ae20983848874731102c08
129,392,437,049,740,650,000,000,000,000,000,000,000
30
cipso,calipso: resolve a number of problems with the DOI refcounts The current CIPSO and CALIPSO refcounting scheme for the DOI definitions is a bit flawed in that we: 1. Don't correctly match gets/puts in netlbl_cipsov4_list(). 2. Decrement the refcount on each attempt to remove the DOI from the DOI list, only re...
get_pseudo_mouse_code( int button, // eg MOUSE_LEFT int is_click, int is_drag) { int i; for (i = 0; mouse_table[i].pseudo_code; i++) if (button == mouse_table[i].button && is_click == mouse_table[i].is_click && is_drag == mouse_table[i].is_drag) { #ifdef FEAT_GUI //...
0
[ "CWE-476", "CWE-703" ]
vim
80525751c5ce9ed82c41d83faf9ef38667bf61b1
26,776,482,337,593,165,000,000,000,000,000,000,000
32
patch 9.0.0259: crash with mouse click when not initialized Problem: Crash with mouse click when not initialized. Solution: Check TabPageIdxs[] is not NULL.
static inline bool queue_pages_required(struct page *page, struct queue_pages *qp) { int nid = page_to_nid(page); unsigned long flags = qp->flags; return node_isset(nid, *qp->nmask) == !(flags & MPOL_MF_INVERT); }
0
[ "CWE-787" ]
linux
aa9f7d5172fac9bf1f09e678c35e287a40a7b7dd
172,724,325,209,856,020,000,000,000,000,000,000,000
8
mm: mempolicy: require at least one nodeid for MPOL_PREFERRED Using an empty (malformed) nodelist that is not caught during mount option parsing leads to a stack-out-of-bounds access. The option string that was used was: "mpol=prefer:,". However, MPOL_PREFERRED requires a single node number, which is not being provi...
in_any_block (MonoMethodHeader *header, guint offset) { int i; MonoExceptionClause *clause; for (i = 0; i < header->num_clauses; ++i) { clause = &header->clauses [i]; if (MONO_OFFSET_IN_CLAUSE (clause, offset)) return 1; if (MONO_OFFSET_IN_HANDLER (clause, offset)) return 1; if (MONO_OFFSET_IN_FILTER ...
0
[ "CWE-20" ]
mono
4905ef1130feb26c3150b28b97e4a96752e0d399
99,896,990,403,369,160,000,000,000,000,000,000,000
16
Handle invalid instantiation of generic methods. * verify.c: Add new function to internal verifier API to check method instantiations. * reflection.c (mono_reflection_bind_generic_method_parameters): Check the instantiation before returning it. Fixes #655847
int GENERAL_NAME_cmp(GENERAL_NAME *a, GENERAL_NAME *b) { int result = -1; if (!a || !b || a->type != b->type) return -1; switch (a->type) { case GEN_X400: case GEN_EDIPARTY: result = ASN1_TYPE_cmp(a->d.other, b->d.other); break; case GEN_OTHERNAME: result = OTHE...
1
[ "CWE-476" ]
openssl
b33c48b75aaf33c93aeda42d7138616b9e6a64cb
729,574,642,448,403,200,000,000,000,000,000,000
36
Correctly compare EdiPartyName in GENERAL_NAME_cmp() If a GENERAL_NAME field contained EdiPartyName data then it was incorrectly being handled as type "other". This could lead to a segmentation fault. Many thanks to David Benjamin from Google for reporting this issue. CVE-2020-1971 Reviewed-by: Tomas Mraz <tmraz@fe...
void video_sample_entry_del(GF_Box *s) { GF_MPEGVisualSampleEntryBox *ptr = (GF_MPEGVisualSampleEntryBox *)s; if (ptr == NULL) return; gf_isom_sample_entry_predestroy((GF_SampleEntryBox *)s); if (ptr->esd) gf_isom_box_del((GF_Box *)ptr->esd); if (ptr->slc) gf_odf_desc_del((GF_Descriptor *)ptr->slc); /*for publis...
0
[ "CWE-416" ]
gpac
6063b1a011c3f80cee25daade18154e15e4c058c
65,550,732,737,856,080,000,000,000,000,000,000,000
36
fix UAF in audio_sample_entry_Read (#1440)
static uint8_t *dhcp_get_option(dhcp_packet_t *packet, size_t packet_size, unsigned int option) { int overload = 0; int field = DHCP_OPTION_FIELD; size_t where, size; uint8_t *data = packet->options; where = 0; size = packet_size - offsetof(dhcp_packet_t, options); data = &packet->options[where]; whi...
0
[ "CWE-399" ]
freeradius-server
4dc7800b866f889a1247685bbaa6dd4238a56279
254,209,519,869,874,870,000,000,000,000,000,000,000
67
Fix endless loop when there are multiple DHCP options