func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
f_complete_info(typval_T *argvars, typval_T *rettv) { list_T *what_list = NULL; if (rettv_dict_alloc(rettv) == FAIL) return; if (in_vim9script() && check_for_opt_list_arg(argvars, 0) == FAIL) return; if (argvars[0].v_type != VAR_UNKNOWN) { if (argvars[0].v_type != VAR_LIST) { emsg(_(e_li...
0
[ "CWE-125" ]
vim
f12129f1714f7d2301935bb21d896609bdac221c
81,269,951,261,176,500,000,000,000,000,000,000,000
21
patch 9.0.0020: with some completion reading past end of string Problem: With some completion reading past end of string. Solution: Check the length of the string.
Event_db_repository::open_event_table(THD *thd, enum thr_lock_type lock_type, TABLE **table) { TABLE_LIST tables; DBUG_ENTER("Event_db_repository::open_event_table"); tables.init_one_table(&MYSQL_SCHEMA_NAME, &MYSQL_EVENT_NAME, 0, lock_type); if (open_and_lock_tables(thd,...
1
[ "CWE-416", "CWE-703" ]
server
08c7ab404f69d9c4ca6ca7a9cf7eec74c804f917
134,497,752,500,423,660,000,000,000,000,000,000,000
23
MDEV-24176 Server crashes after insert in the table with virtual column generated using date_format() and if() vcol_info->expr is allocated on expr_arena at parsing stage. Since expr item is allocated on expr_arena all its containee items must be allocated on expr_arena too. Otherwise fix_session_expr() will encounter...
static int __issue_discard_cmd(struct f2fs_sb_info *sbi, bool issue_cond) { struct discard_cmd_control *dcc = SM_I(sbi)->dcc_info; struct list_head *pend_list; struct discard_cmd *dc, *tmp; struct blk_plug plug; int iter = 0, issued = 0; int i; bool io_interrupted = false; mutex_lock(&dcc->cmd_lock); f2fs_bug...
0
[ "CWE-20" ]
linux
638164a2718f337ea224b747cf5977ef143166a4
231,049,053,866,021,850,000,000,000,000,000,000,000
58
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...
void set_data(ACL_PROXY_USER *grant) { with_grant= grant->with_grant; }
0
[]
mysql-server
25d1b7e03b9b375a243fabdf0556c063c7282361
55,037,276,552,546,510,000,000,000,000,000,000,000
4
Bug #22722946: integer overflow may lead to wrong results in get_56_lenc_string
void CZNC::Loop() { while (true) { CString sError; ConfigState eState = GetConfigState(); switch (eState) { case ECONFIG_NEED_REHASH: SetConfigState(ECONFIG_NOTHING); if (RehashConfig(sError)) { Broadcast("Rehashing succeeded"...
0
[ "CWE-20" ]
znc
64613bc8b6b4adf1e32231f9844d99cd512b8973
267,868,582,668,562,330,000,000,000,000,000,000,000
58
Don't crash if user specified invalid encoding. This is CVE-2019-9917
RawTile TileManager::getTile( int resolution, int tile, int xangle, int yangle, int layers, CompressionType ctype ){ RawTile* rawtile = NULL; string tileCompression; string compName; // Time the tile retrieval if( loglevel >= 3 ) tile_timer.start(); /* Try to get the encoded tile directly from our cach...
0
[ "CWE-190" ]
iipsrv
882925b295a80ec992063deffc2a3b0d803c3195
56,769,289,197,833,260,000,000,000,000,000,000,000
136
- Modified TileManager.cc to verify that malloc() has correctly allocated memory. - Updated numerical types to std::size_t in RawTile.h, TileManager.cc, KakaduImage.cc, OpenJPEG.cc and Transforms.cc when allocating memory via new to avoid integer overflow - fixes remaining problems identified in https://github.com/ruve...
void appendCommand(client *c) { size_t totlen; robj *o, *append; o = lookupKeyWrite(c->db,c->argv[1]); if (o == NULL) { /* Create the key */ c->argv[2] = tryObjectEncoding(c->argv[2]); dbAdd(c->db,c->argv[1],c->argv[2]); incrRefCount(c->argv[2]); totlen = stringO...
0
[ "CWE-190" ]
redis
92e3b1802f72ca0c5b0bde97f01d9b57a758d85c
282,498,789,696,906,100,000,000,000,000,000,000,000
32
Fix integer overflow in STRALGO LCS (CVE-2021-29477) An integer overflow bug in Redis version 6.0 or newer could be exploited using the STRALGO LCS command to corrupt the heap and potentially result with remote code execution. (cherry picked from commit f0c5f920d0f88bd8aa376a2c05af4902789d1ef9)
static int kvm_vcpu_check_block(struct kvm_vcpu *vcpu) { if (kvm_arch_vcpu_runnable(vcpu)) { kvm_make_request(KVM_REQ_UNHALT, vcpu); return -EINTR; } if (kvm_cpu_has_pending_timer(vcpu)) return -EINTR; if (signal_pending(current)) return -EINTR; return 0; }
0
[ "CWE-416", "CWE-284" ]
linux
a0f1d21c1ccb1da66629627a74059dd7f5ac9c61
26,485,788,094,483,124,000,000,000,000,000,000,000
13
KVM: use after free in kvm_ioctl_create_device() We should move the ops->destroy(dev) after the list_del(&dev->vm_node) so that we don't use "dev" after freeing it. Fixes: a28ebea2adc4 ("KVM: Protect device ops->create and list_add with kvm->lock") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: ...
create_string_node( char *str ) { string_node *sn; sn = emalloc_zero(sizeof(*sn)); sn->s = str; return sn; }
0
[ "CWE-20" ]
ntp
52e977d79a0c4ace997e5c74af429844da2f27be
201,484,046,933,615,370,000,000,000,000,000,000,000
11
[Bug 1773] openssl not detected during ./configure. [Bug 1774] Segfaults if cryptostats enabled and built without OpenSSL.
MagickExport const StringInfo *GetImageProfile(const Image *image, const char *name) { const StringInfo *profile; assert(image != (Image *) NULL); assert(image->signature == MagickCoreSignature); if (image->debug != MagickFalse) (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename)...
0
[ "CWE-190", "CWE-125" ]
ImageMagick
d8ab7f046587f2e9f734b687ba7e6e10147c294b
16,986,114,770,583,104,000,000,000,000,000,000,000
16
Improve checking of EXIF profile to prevent integer overflow (bug report from Ibrahim el-sayed)
static NTSTATUS dcesrv_lsa_CreateSecret(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct lsa_CreateSecret *r) { struct auth_session_info *session_info = dcesrv_call_session_info(dce_call); struct dcesrv_handle *policy_handle; struct lsa_policy_state *policy_state; struct lsa_secret_state *secr...
0
[ "CWE-200" ]
samba
0a3aa5f908e351201dc9c4d4807b09ed9eedff77
334,044,251,821,185,600,000,000,000,000,000,000,000
160
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...
input_buffer& HandShakeBase::set(input_buffer& in) { return in; }
0
[]
mysql-server
b9768521bdeb1a8069c7b871f4536792b65fd79b
287,661,054,721,441,130,000,000,000,000,000,000,000
4
Updated yassl to yassl-2.3.8 (cherry picked from commit 7f9941eab55ed672bfcccd382dafbdbcfdc75aaa)
static const char* oidc_util_hdr_out_get(const request_rec *r, const char *name) { return apr_table_get(r->headers_out, name); }
0
[ "CWE-79" ]
mod_auth_openidc
55ea0a085290cd2c8cdfdd960a230cbc38ba8b56
151,114,398,964,727,710,000,000,000,000,000,000,000
3
Add a function to escape Javascript characters
smtp_server_connection_create_from_streams( struct smtp_server *server, struct istream *input, struct ostream *output, const struct ip_addr *remote_ip, in_port_t remote_port, const struct smtp_server_settings *set, const struct smtp_server_callbacks *callbacks, void *context) { struct smtp_server_connection *conn...
0
[ "CWE-77" ]
core
321c339756f9b2b98fb7326359d1333adebb5295
36,381,184,232,214,500,000,000,000,000,000,000,000
37
lib-smtp: smtp-server-connection - Fix STARTTLS command injection vulnerability. The input handler kept reading more commands even though the input was locked by the STARTTLS command, thereby causing it to read the command pipelined beyond STARTTLS. This causes a STARTTLS command injection vulerability.
line_capability(const char *name) { bool result = FALSE; static const char *table[] = { "csr", /* change_scroll_region */ "clear", /* clear_screen */ "ed", /* clr_eos */ "cwin", /* create_window */ "cup", /* cursor_address ...
0
[]
ncurses
790a85dbd4a81d5f5d8dd02a44d84f01512ef443
52,377,820,775,608,970,000,000,000,000,000,000,000
42
ncurses 6.2 - patch 20200531 + correct configure version-check/warnng for g++ to allow for 10.x + re-enable "bel" in konsole-base (report by Nia Huang) + add linux-s entry (patch by Alexandre Montaron). + drop long-obsolete convert_configure.pl + add test/test_parm.c, for checking tparm changes. + improve parameter-ch...
sv_mail (name) char *name; { /* If the time interval for checking the files has changed, then reset the mail timer. Otherwise, one of the pathname vars to the users mailbox has changed, so rebuild the array of filenames. */ if (name[4] == 'C') /* if (strcmp (name, "MAILCHECK") == 0) */ res...
0
[]
bash
863d31ae775d56b785dc5b0105b6d251515d81d5
39,266,070,445,451,520,000,000,000,000,000,000,000
15
commit bash-20120224 snapshot
__ip_vs_svc_fwm_find(struct net *net, int af, __u32 fwmark) { unsigned int hash; struct ip_vs_service *svc; /* Check for fwmark addressed entries */ hash = ip_vs_svc_fwm_hashkey(net, fwmark); list_for_each_entry(svc, &ip_vs_svc_fwm_table[hash], f_list) { if (svc->fwmark == fwmark && svc->af == af && net_...
0
[ "CWE-200" ]
linux
2d8a041b7bfe1097af21441cb77d6af95f4f4680
47,849,725,757,309,375,000,000,000,000,000,000,000
18
ipvs: fix info leak in getsockopt(IP_VS_SO_GET_TIMEOUT) If at least one of CONFIG_IP_VS_PROTO_TCP or CONFIG_IP_VS_PROTO_UDP is not set, __ip_vs_get_timeouts() does not fully initialize the structure that gets copied to userland and that for leaks up to 12 bytes of kernel stack. Add an explicit memset(0) before passing...
static unsigned long cpu_runnable_load(struct rq *rq) { return cfs_rq_runnable_load_avg(&rq->cfs); }
0
[ "CWE-400", "CWE-703" ]
linux
de53fd7aedb100f03e5d2231cfce0e4993282425
253,442,526,178,222,200,000,000,000,000,000,000,000
4
sched/fair: Fix low cpu usage with high throttling by removing expiration of cpu-local slices It has been observed, that highly-threaded, non-cpu-bound applications running under cpu.cfs_quota_us constraints can hit a high percentage of periods throttled while simultaneously not consuming the allocated amount of quota...
header_cache_t* imap_hcache_open (IMAP_DATA* idata, const char* path) { IMAP_MBOX mx; ciss_url_t url; char cachepath[LONG_STRING]; char mbox[LONG_STRING]; if (path) imap_cachepath (idata, path, mbox, sizeof (mbox)); else { if (!idata->ctx || imap_parse_path (idata->ctx->path, &mx) < 0) retu...
1
[ "CWE-22" ]
mutt
31eef6c766f47df8281942d19f76e35f475c781d
84,645,968,872,721,890,000,000,000,000,000,000,000
24
Selectively cache headers. Thanks to NeoMutt and Jeriko One for the patch, which was slightly modified to apply to the Mutt code.
static int svm_nmi_allowed(struct kvm_vcpu *vcpu, bool for_injection) { struct vcpu_svm *svm = to_svm(vcpu); if (svm->nested.nested_run_pending) return -EBUSY; if (svm_nmi_blocked(vcpu)) return 0; /* An NMI must not be injected into L2 if it's supposed to VM-Exit. */ if (for_injection && is_guest_mode(vcpu)...
0
[ "CWE-703" ]
linux
6cd88243c7e03845a450795e134b488fc2afb736
255,142,298,684,972,570,000,000,000,000,000,000,000
14
KVM: x86: do not report a vCPU as preempted outside instruction boundaries If a vCPU is outside guest mode and is scheduled out, it might be in the process of making a memory access. A problem occurs if another vCPU uses the PV TLB flush feature during the period when the vCPU is scheduled out, and a virtual address ...
bool trans_has_updated_non_trans_table(const THD* thd) { return (thd->transaction.all.modified_non_trans_table || thd->transaction.stmt.modified_non_trans_table); }
0
[ "CWE-264" ]
mysql-server
48bd8b16fe382be302c6f0b45931be5aa6f29a0e
225,070,375,843,917,920,000,000,000,000,000,000,000
5
Bug#24388753: PRIVILEGE ESCALATION USING MYSQLD_SAFE [This is the 5.5/5.6 version of the bugfix]. The problem was that it was possible to write log files ending in .ini/.cnf that later could be parsed as an options file. This made it possible for users to specify startup options without the permissions to do so. Thi...
void CLASS foveon_interpolate() { static const short hood[] = { -1,-1, -1,0, -1,1, 0,-1, 0,1, 1,-1, 1,0, 1,1 }; short *pix, prev[3], *t_curve[8], (*t_shrink)[3]; float cfilt=0, ddft[3][3][2], ppm[3][3][3]; float cam_xyz[3][3], correct[3][3], last[3][3], trans[3][3]; float chroma_dq[3], color_dq[3], diag[3][3]...
0
[ "CWE-119", "CWE-787", "CWE-190" ]
LibRaw-demosaic-pack-GPL2
194f592e205990ea8fce72b6c571c14350aca716
273,813,011,209,047,300,000,000,000,000,000,000,000
419
Fixed possible foveon buffer overrun (Secunia SA750000)
int nfc_genl_llc_send_sdres(struct nfc_dev *dev, struct hlist_head *sdres_list) { struct sk_buff *msg; struct nlattr *sdp_attr, *uri_attr; struct nfc_llcp_sdp_tlv *sdres; struct hlist_node *n; void *hdr; int rc = -EMSGSIZE; int i; msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); if (!msg) return -ENOMEM; ...
0
[ "CWE-476" ]
linux
385097a3675749cbc9e97c085c0e5dfe4269ca51
308,880,474,394,749,600,000,000,000,000,000,000,000
65
nfc: Ensure presence of required attributes in the deactivate_target handler Check that the NFC_ATTR_TARGET_INDEX attributes (in addition to NFC_ATTR_DEVICE_INDEX) are provided by the netlink client prior to accessing them. This prevents potential unhandled NULL pointer dereference exceptions which can be triggered by...
cr_input_unref (CRInput * a_this) { g_return_val_if_fail (a_this && PRIVATE (a_this), FALSE); if (PRIVATE (a_this)->ref_count) { PRIVATE (a_this)->ref_count--; } if (PRIVATE (a_this)->ref_count == 0) { cr_input_destroy (a_this); return TR...
0
[ "CWE-125" ]
libcroco
898e3a8c8c0314d2e6b106809a8e3e93cf9d4394
21,991,694,030,313,610,000,000,000,000,000,000,000
14
input: check end of input before reading a byte When reading bytes we weren't check that the index wasn't out of bound and this could produce an invalid read which could deal to a security bug.
static void compat_exit_robust_list(struct task_struct *curr) { struct compat_robust_list_head __user *head = curr->compat_robust_list; struct robust_list __user *entry, *next_entry, *pending; unsigned int limit = ROBUST_LIST_LIMIT, pi, pip; unsigned int uninitialized_var(next_pi); compat_uptr_t uentry, next_uentr...
0
[ "CWE-416" ]
tip
8019ad13ef7f64be44d4f892af9c840179009254
216,801,107,574,530,740,000,000,000,000,000,000,000
70
futex: Fix inode life-time issue As reported by Jann, ihold() does not in fact guarantee inode persistence. And instead of making it so, replace the usage of inode pointers with a per boot, machine wide, unique inode identifier. This sequence number is global, but shared (file backed) futexes are rare enough that thi...
inline bool WireFormatLite::ReadMessage(io::CodedInputStream* input, MessageType* value) { int length; if (!input->ReadVarintSizeAsInt(&length)) return false; std::pair<io::CodedInputStream::Limit, int> p = input->IncrementRecursionDepthAndPushLimit(length); if (p.s...
0
[ "CWE-703" ]
protobuf
d1635e1496f51e0d5653d856211e8821bc47adc4
257,793,442,887,120,640,000,000,000,000,000,000,000
11
Apply patch
static void bnx2x_igu_clear_sb(struct bnx2x *bp, u8 idu_sb_id) { bnx2x_igu_clear_sb_gen(bp, BP_FUNC(bp), idu_sb_id, true /*PF*/); }
0
[ "CWE-20" ]
linux
8914a595110a6eca69a5e275b323f5d09e18f4f9
216,126,649,394,820,900,000,000,000,000,000,000,000
4
bnx2x: disable GSO where gso_size is too big for hardware If a bnx2x card is passed a GSO packet with a gso_size larger than ~9700 bytes, it will cause a firmware error that will bring the card down: bnx2x: [bnx2x_attn_int_deasserted3:4323(enP24p1s0f0)]MC assert! bnx2x: [bnx2x_mc_assert:720(enP24p1s0f0)]XSTORM_ASSERT...
unref_var_dict(dict_T *dict) { // Now the dict needs to be freed if no one else is using it, go back to // normal reference counting. dict->dv_refcount -= DO_NOT_FREE_CNT - 1; dict_unref(dict); }
0
[ "CWE-476" ]
vim
0f6e28f686dbb59ab3b562408ab9b2234797b9b1
157,276,718,693,752,590,000,000,000,000,000,000,000
7
patch 8.2.4428: crash when switching tabpage while in the cmdline window Problem: Crash when switching tabpage while in the cmdline window. Solution: Disallow switching tabpage when in the cmdline window.
static unsigned int __db_chain_op_priority(enum scmp_compare op) { /* the distinction between LT/LT and GT/GE is mostly to make the * ordering as repeatable as possible regardless of the order in which * the rules are added */ switch (op) { case SCMP_CMP_MASKED_EQ: case SCMP_CMP_EQ: case SCMP_CMP_NE: return ...
0
[]
libseccomp
c5bf78de480b32b324e0f511c88ce533ed280b37
137,582,308,749,776,370,000,000,000,000,000,000,000
20
db: fix 64-bit argument comparisons Our approach to doing 64-bit comparisons using 32-bit operators was just plain wrong, leading to a number of potential problems with filters that used the LT, GT, LE, or GE operators. This patch fixes this problem and a few other related issues that came to light in the course of f...
static int hdb_samba4_fill_fast_cookie(krb5_context context, struct samba_kdc_db_context *kdc_db_ctx) { struct ldb_message *msg = ldb_msg_new(kdc_db_ctx); int ldb_ret; uint8_t secretbuffer[32]; struct ldb_val val = data_blob_const(secretbuffer, sizeof(secretbuffer)); if (msg == NULL) { DBG...
0
[ "CWE-288" ]
samba
484c6980befb86f7d81d708829ed4ceb819538eb
167,452,485,470,395,070,000,000,000,000,000,000,000
35
CVE-2022-32744 s4:kdc: Modify HDB plugin to only look up kpasswd principal This plugin is now only used by the kpasswd service. Thus, ensuring we only look up the kadmin/changepw principal means we can't be fooled into accepting tickets for other service principals. We make sure not to specify a specific kvno, to ensu...
static int get_v4l2_buffer32(struct v4l2_buffer *kp, struct v4l2_buffer32 __user *up) { struct v4l2_plane32 __user *uplane32; struct v4l2_plane __user *uplane; compat_caddr_t p; int ret; if (!access_ok(VERIFY_READ, up, sizeof(*up)) || get_user(kp->index, &up->index) || get_user(kp->type, &up->type) || ...
1
[ "CWE-787" ]
linux
a1dfb4c48cc1e64eeb7800a27c66a6f7e88d075a
71,764,564,110,094,860,000,000,000,000,000,000,000
80
media: v4l2-compat-ioctl32.c: refactor compat ioctl32 logic The 32-bit compat v4l2 ioctl handling is implemented based on its 64-bit equivalent. It converts 32-bit data structures into its 64-bit equivalents and needs to provide the data to the 64-bit ioctl in user space memory which is commonly allocated using compat...
void CLASS parse_fuji (int offset) { unsigned entries, tag, len, save, c; fseek (ifp, offset, SEEK_SET); entries = get4(); if (entries > 255) return; while (entries--) { tag = get2(); len = get2(); save = ftell(ifp); if (tag == 0x100) { raw_height = get2(); raw_width = get2(); ...
0
[ "CWE-129" ]
LibRaw
89d065424f09b788f443734d44857289489ca9e2
281,805,250,383,016,850,000,000,000,000,000,000,000
47
fixed two more problems found by fuzzer
STACK_OF(X509) *X509_STORE_CTX_get1_chain(X509_STORE_CTX *ctx) { int i; X509 *x; STACK_OF(X509) *chain; if (!ctx->chain || !(chain = sk_X509_dup(ctx->chain))) return NULL; for (i = 0; i < sk_X509_num(chain); i++) { x = sk_X509_value(chain, i); CRYPTO_add(&x->references, 1, CRYPTO_LOCK_X509); } return cha...
0
[]
openssl
d65b8b2162f33ac0d53dace588a0847ed827626c
174,023,793,720,528,200,000,000,000,000,000,000,000
13
Backport OCSP fixes.
static void yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, int yyrule, void *yyscanner, RE_LEX_ENVIRONMENT *lex_env) { unsigned long int yylno = yyrline[yyrule]; int yynrhs = yyr2[yyrule]; int yyi; YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n", yyrule - 1, yylno); /* The sy...
0
[ "CWE-674", "CWE-787" ]
yara
925bcf3c3b0a28b5b78e25d9efda5c0bf27ae699
10,687,377,929,674,060,000,000,000,000,000,000,000
18
Fix issue #674. Move regexp limits to limits.h.
static int aac_send_raw_srb(struct aac_dev* dev, void __user * arg) { struct fib* srbfib; int status; struct aac_srb *srbcmd = NULL; struct aac_hba_cmd_req *hbacmd = NULL; struct user_aac_srb *user_srbcmd = NULL; struct user_aac_srb __user *user_srb = arg; struct aac_srb_reply __user *user_reply; u32 chn; u32 ...
1
[ "CWE-200" ]
linux
342ffc26693b528648bdc9377e51e4f2450b4860
107,079,969,181,886,670,000,000,000,000,000,000,000
520
scsi: aacraid: Don't copy uninitialized stack memory to userspace Both aac_send_raw_srb() and aac_get_hba_info() may copy stack allocated structs to userspace without initializing all members of these structs. Clear out this memory to prevent information leaks. Fixes: 423400e64d377 ("scsi: aacraid: Include HBA direct...
psutil_disk_partitions(PyObject *self, PyObject *args) { DWORD num_bytes; char drive_strings[255]; char *drive_letter = drive_strings; char mp_buf[MAX_PATH]; char mp_path[MAX_PATH]; int all; int type; int ret; unsigned int old_mode = 0; char opts[20]; HANDLE mp_h; BOOL mp...
0
[ "CWE-415" ]
psutil
7d512c8e4442a896d56505be3e78f1156f443465
71,914,585,791,734,760,000,000,000,000,000,000,000
149
Use Py_CLEAR instead of Py_DECREF to also set the variable to NULL (#1616) These files contain loops that convert system data into python objects and during the process they create objects and dereference their refcounts after they have been added to the resulting list. However, in case of errors during the creat...
void OSDService::check_full_status(float ratio) { Mutex::Locker l(full_status_lock); cur_ratio = ratio; // The OSDMap ratios take precendence. So if the failsafe is .95 and // the admin sets the cluster full to .96, the failsafe moves up to .96 // too. (Not that having failsafe == full is ideal, but it's ...
0
[ "CWE-287", "CWE-284" ]
ceph
5ead97120e07054d80623dada90a5cc764c28468
189,819,068,589,886,020,000,000,000,000,000,000,000
76
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 ...
static Image *ReadWPGImage(const ImageInfo *image_info, ExceptionInfo *exception) { typedef struct { size_t FileId; MagickOffsetType DataOffset; unsigned int ProductType; unsigned int FileType; unsigned char MajorVersion; unsigned char MinorVersion; unsigned int EncryptKey; unsigne...
0
[ "CWE-119", "CWE-787" ]
ImageMagick
2130bf6f89ded32ef0c88a11694f107c52566c53
94,745,859,412,193,160,000,000,000,000,000,000,000
617
https://github.com/ImageMagick/ImageMagick/issues/85
static void dw_spi_debugfs_remove(struct dw_spi *dws) { debugfs_remove_recursive(dws->debugfs); }
0
[ "CWE-662" ]
linux
19b61392c5a852b4e8a0bf35aecb969983c5932d
202,790,773,598,616,100,000,000,000,000,000,000,000
4
spi: spi-dw: Add lock protect dw_spi rx/tx to prevent concurrent calls dw_spi_irq() and dw_spi_transfer_one concurrent calls. I find a panic in dw_writer(): txw = *(u8 *)(dws->tx), when dw->tx==null, dw->len==4, and dw->tx_end==1. When tpm driver's message overtime dw_spi_irq() and dw_spi_transfer_one may concurrent...
EIGEN_STRONG_INLINE QInt32 operator*(const QInt8 a, const QInt8 b) { return QInt32(static_cast<int32_t>(a.value) * static_cast<int32_t>(b.value)); }
0
[ "CWE-908", "CWE-787" ]
tensorflow
ace0c15a22f7f054abcc1f53eabbcb0a1239a9e2
204,493,967,047,224,300,000,000,000,000,000,000,000
3
Default initialize fixed point Eigen types. In certain cases, tensors are filled with default values of the type. But, for these fixed point types, these values were uninitialized. Thus, we would have uninitialized memory access bugs, some of which were caught by MSAN. PiperOrigin-RevId: 344101137 Change-Id: I14555fd...
void dup_userfaultfd_complete(struct list_head *fcs) { struct userfaultfd_fork_ctx *fctx, *n; list_for_each_entry_safe(fctx, n, fcs, list) { dup_fctx(fctx); list_del(&fctx->list); kfree(fctx); } }
0
[ "CWE-416" ]
linux
384632e67e0829deb8015ee6ad916b180049d252
108,657,623,783,328,570,000,000,000,000,000,000,000
10
userfaultfd: non-cooperative: fix fork use after free When reading the event from the uffd, we put it on a temporary fork_event list to detect if we can still access it after releasing and retaking the event_wqh.lock. If fork aborts and removes the event from the fork_event all is fine as long as we're still in the u...
Curl_cookie_add(struct Curl_easy *data, /* * The 'data' pointer here may be NULL at times, and thus * must only be used very carefully for things that can deal * with data being NULL. Such as infof() and similar */ struc...
0
[]
curl
8dfc93e573ca740544a2d79ebb0ed786592c65c3
231,302,820,522,755,000,000,000,000,000,000,000,000
722
cookie: reject cookies with "control bytes" Rejects 0x01 - 0x1f (except 0x09) plus 0x7f Reported-by: Axel Chong Bug: https://curl.se/docs/CVE-2022-35252.html CVE-2022-35252 Closes #9381
push_var_context (name, flags, tempvars) char *name; int flags; HASH_TABLE *tempvars; { VAR_CONTEXT *vc; vc = new_var_context (name, flags); vc->table = tempvars; if (tempvars) { /* Have to do this because the temp environment was created before variable_context was incremented. */ ...
0
[]
bash
863d31ae775d56b785dc5b0105b6d251515d81d5
262,341,327,050,201,460,000,000,000,000,000,000,000
21
commit bash-20120224 snapshot
int kvm_vm_ioctl_get_dirty_log(struct kvm *kvm, struct kvm_dirty_log *log) { int r; unsigned long n; struct kvm_memory_slot *memslot; int is_dirty = 0; mutex_lock(&kvm->slots_lock); r = -EINVAL; if (log->slot >= KVM_MEMORY_SLOTS) goto out; memslot = id_to_memslot(kvm->memslots, log->slot); r = -ENOENT; ...
0
[ "CWE-399" ]
kvm
5b40572ed5f0344b9dbee486a17c589ce1abe1a3
302,654,097,798,147,400,000,000,000,000,000,000,000
35
KVM: Ensure all vcpus are consistent with in-kernel irqchip settings If some vcpus are created before KVM_CREATE_IRQCHIP, then irqchip_in_kernel() and vcpu->arch.apic will be inconsistent, leading to potential NULL pointer dereferences. Fix by: - ensuring that no vcpus are installed when KVM_CREATE_IRQCHIP is called ...
static void esp_output_done(struct crypto_async_request *base, int err) { struct sk_buff *skb = base->data; kfree(ESP_SKB_CB(skb)->tmp); xfrm_output_resume(skb, err); }
0
[ "CWE-16" ]
linux-2.6
920fc941a9617f95ccb283037fe6f8a38d95bb69
199,851,497,095,640,200,000,000,000,000,000,000,000
7
[ESP]: Ensure IV is in linear part of the skb to avoid BUG() due to OOB access ESP does not account for the IV size when calling pskb_may_pull() to ensure everything it accesses directly is within the linear part of a potential fragment. This results in a BUG() being triggered when the both the IPv4 and IPv6 ESP stack...
rsRetVal rsCStrTruncate(cstr_t *pThis, size_t nTrunc) { rsCHECKVALIDOBJECT(pThis, OIDrsCStr); if(pThis->iStrLen < nTrunc) return RS_TRUNCAT_TOO_LARGE; pThis->iStrLen -= nTrunc; if(pThis->pszBuf != NULL) { /* in this case, we adjust the psz representation * by writing a new \0 terminator - this is by far ...
0
[ "CWE-189" ]
rsyslog
6bad782f154b7f838c7371bf99c13f6dc4ec4101
301,001,804,246,419,700,000,000,000,000,000,000,000
20
bugfix: abort if imfile reads file line of more than 64KiB Thanks to Peter Eisentraut for reporting and analysing this problem. bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=221
S3BootScriptCloseTable ( VOID ) { UINT8 *S3TableBase; UINT32 TableLength; UINT8 *Buffer; EFI_STATUS Status; EFI_BOOT_SCRIPT_TABLE_HEADER *ScriptTableInfo; S3TableBase = mS3BootScriptTablePt...
0
[ "CWE-787" ]
edk2
322ac05f8bbc1bce066af1dabd1b70ccdbe28891
218,444,394,858,222,000,000,000,000,000,000,000,000
45
MdeModulePkg/PiDxeS3BootScriptLib: Fix potential numeric truncation (CVE-2019-14563) REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2001 For S3BootScriptLib APIs: S3BootScriptSaveIoWrite S3BootScriptSaveMemWrite S3BootScriptSavePciCfgWrite S3BootScriptSavePciCfg2Write S3BootScriptSaveSmbusExecute S3BootScriptSav...
ssize_t __weak cpu_show_itlb_multihit(struct device *dev, struct device_attribute *attr, char *buf) { return sprintf(buf, "Not affected\n"); }
1
[ "CWE-787" ]
linux
aa838896d87af561a33ecefea1caa4c15a68bc47
127,644,320,539,030,520,000,000,000,000,000,000,000
5
drivers core: Use sysfs_emit and sysfs_emit_at for show(device *...) functions Convert the various sprintf fmaily calls in sysfs device show functions to sysfs_emit and sysfs_emit_at for PAGE_SIZE buffer safety. Done with: $ spatch -sp-file sysfs_emit_dev.cocci --in-place --max-width=80 . And cocci script: $ cat s...
static int cpia2_usb_suspend(struct usb_interface *intf, pm_message_t message) { struct camera_data *cam = usb_get_intfdata(intf); mutex_lock(&cam->v4l2_lock); if (cam->streaming) { cpia2_usb_stream_stop(cam); cam->streaming = 1; } mutex_unlock(&cam->v4l2_lock); dev_info(&intf->dev, "going into suspend..\n"...
0
[ "CWE-416" ]
linux
eff73de2b1600ad8230692f00bc0ab49b166512a
216,224,659,198,985,600,000,000,000,000,000,000,000
14
media: cpia2_usb: first wake up, then free in disconnect Kasan reported a use after free in cpia2_usb_disconnect() It first freed everything and then woke up those waiting. The reverse order is correct. Fixes: 6c493f8b28c67 ("[media] cpia2: major overhaul to get it in a working state again") Signed-off-by: Oliver Ne...
static int parsePagedResults ( Operation *op, SlapReply *rs, LDAPControl *ctrl ) { BerElementBuffer berbuf; BerElement *ber = (BerElement *)&berbuf; struct berval cookie; PagedResultsState *ps; int rc = LDAP_SUCCESS; ber_tag_t tag; ber_int_t size; if ( op->o_pagedresults != SLAP_CONTROL_NONE ) { rs->sr_t...
0
[ "CWE-125" ]
openldap
21981053a1195ae1555e23df4d9ac68d34ede9dd
239,416,280,862,997,500,000,000,000,000,000,000,000
87
ITS#9408 fix vrfilter double-free
gxht_thresh_planes(gx_image_enum *penum, fixed xrun, int dest_width, int dest_height, byte *thresh_align, gx_device * dev, int offset_contone[], int contone_stride) { int thresh_width, thresh_height, dx; int left_rem_end, left_width, vdi; int num_full...
0
[ "CWE-119" ]
ghostpdl
362ec9daadb9992b0def3520cd1dc6fa52edd1c4
16,328,832,677,014,157,000,000,000,000,000,000,000
299
Fix bug 697459 Buffer overflow in fill_threshold_buffer There was an overflow check for ht_buffer size, but none for the larger threshold_buffer. Note that this file didn't fail on Windows because the combination of the ht_buffer and the size of the (miscalculated due to overflow) threshold_buffer would have exceeded ...
void WebContents::AddWorkSpace(gin::Arguments* args, const base::FilePath& path) { if (path.empty()) { gin_helper::ErrorThrower(args->isolate()) .ThrowError("path cannot be empty"); return; } DevToolsAddFileSystem(std::string(), path); }
0
[]
electron
e9fa834757f41c0b9fe44a4dffe3d7d437f52d34
194,466,990,965,058,700,000,000,000,000,000,000,000
9
fix: ensure ElectronBrowser mojo service is only bound to appropriate render frames (#33344) * fix: ensure ElectronBrowser mojo service is only bound to authorized render frames Notes: no-notes * refactor: extract electron API IPC to its own mojo interface * fix: just check main frame not primary main frame ...
CiffComponent* CiffDirectory::doFindComponent(uint16_t crwTagId, uint16_t crwDir) const { CiffComponent* cc = nullptr; const Components::const_iterator b = components_.begin(); const Components::const_iterator e = components_.end(); ...
0
[ "CWE-125" ]
exiv2
9628f82084ed30d494ddd4f7360d233801e22967
297,625,504,565,044,080,000,000,000,000,000,000,000
12
Avoid integer overflow. (cherry picked from commit c0ecc2ae36f34462be98623deb85ba1747ae2175)
static int hwsim_dump_radio_nl(struct sk_buff *skb, struct netlink_callback *cb) { int idx = cb->args[0]; struct mac80211_hwsim_data *data = NULL; int res; spin_lock_bh(&hwsim_radio_lock); if (idx == hwsim_radio_idx) goto done; list_for_each_entry(data, &hwsim_radios, list) { if (data->idx < idx)...
0
[ "CWE-703", "CWE-772" ]
linux
0ddcff49b672239dda94d70d0fcf50317a9f4b51
33,776,169,240,026,250,000,000,000,000,000,000,000
35
mac80211_hwsim: fix possible memory leak in hwsim_new_radio_nl() 'hwname' is malloced in hwsim_new_radio_nl() and should be freed before leaving from the error handling cases, otherwise it will cause memory leak. Fixes: ff4dd73dd2b4 ("mac80211_hwsim: check HWSIM_ATTR_RADIO_NAME length") Signed-off-by: Wei Yongjun <we...
XMLRPC_VALUE_TYPE_EASY XMLRPC_GetValueTypeEasy (XMLRPC_VALUE value) { if (value) { switch (value->type) { case xmlrpc_vector: switch (value->v->type) { case xmlrpc_vector_none: return xmlrpc_type_none; case xmlrpc_vector_struct: return xmlrpc_type_struct; case xmlrpc_vector_mixed: return xm...
0
[ "CWE-119" ]
php-src
88412772d295ebf7dd34409534507dc9bcac726e
234,524,017,780,567,940,000,000,000,000,000,000,000
21
Fix bug #68027 - fix date parsing in XMLRPC lib
const char *crypt_get_device_name(struct crypt_device *cd) { const char *path; if (!cd) return NULL; path = device_block_path(cd->device); if (!path) path = device_path(cd->device); return path; }
0
[ "CWE-345" ]
cryptsetup
0113ac2d889c5322659ad0596d4cfc6da53e356c
152,838,425,851,055,430,000,000,000,000,000,000,000
13
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...
static size_t consume_u32_r(RBuffer *b, ut64 bound, ut32 *out) { size_t n = 0; ut32 tmp = consume_r (b, bound, &n, read_u32_leb128); if (out) { *out = tmp; } return n; }
0
[ "CWE-787" ]
radare2
b4ca66f5d4363d68a6379e5706353b3bde5104a4
35,393,741,248,326,560,000,000,000,000,000,000,000
8
Fix #20336 - wasm bin parser ##crash
static bool wake_up_full_nohz_cpu(int cpu) { if (tick_nohz_full_cpu(cpu)) { if (cpu != smp_processor_id() || tick_nohz_tick_stopped()) smp_send_reschedule(cpu); return true; } return false; }
0
[ "CWE-200" ]
linux
4efbc454ba68def5ef285b26ebfcfdb605b52755
263,316,711,467,386,440,000,000,000,000,000,000,000
11
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 ...
R_API int r_egg_raw(REgg *egg, const ut8 *b, int len) { int outlen = len * 2; // two hexadecimal digits per byte char *out = malloc (outlen + 1); if (!out) { return false; } (void)r_hex_bin2str (b, len, out); r_buf_append_bytes (egg->buf, (const ut8 *)".hex ", 5); r_buf_append_bytes (egg->buf, (const ut8 *)out...
0
[ "CWE-125" ]
radare2
e710401ebb4a892a87b0c709d709af8b5dcbbb01
176,321,047,728,996,800,000,000,000,000,000,000,000
13
patch #14211 heap buffer overflow in large ragg2 inputs. this should be refactored to use an RBuffer to enable dynamic resizing, but for now just patching it to bail out if we are about to overwrite the allocated statically sized buffer
STATIC SSize_t S_study_chunk(pTHX_ RExC_state_t *pRExC_state, regnode **scanp, SSize_t *minlenp, SSize_t *deltap, regnode *last, scan_data_t *data, I32 stopparen, U32 recursed_depth, regnode_ssc *and_withp, U32 flags, U32 depth) /* scanp: Start here (rea...
1
[ "CWE-190" ]
perl5
0a320d753fe7fca03df259a4dfd8e641e51edaa8
238,717,741,564,628,680,000,000,000,000,000,000,000
1,997
study_chunk: extract rck_elide_nothing (CVE-2020-10878) (cherry picked from commit 93dee06613d4e1428fb10905ce1c3c96f53113dc)
ExpressionCoerceToBool::ExpressionCoerceToBool(const intrusive_ptr<ExpressionContext>& expCtx, intrusive_ptr<Expression> pExpression) : Expression(expCtx, {std::move(pExpression)}), pExpression(_children[0]) {}
0
[ "CWE-190" ]
mongo
21d8699ed6c517b45e1613e20231cd8eba894985
259,103,725,299,409,850,000,000,000,000,000,000,000
3
SERVER-43699 $mod should not overflow for large negative values
putCharAndDots(FileInfo *nested, widechar c, widechar d, TranslationTableHeader **table) { TranslationTableOffset bucket; CharOrDots *cdPtr; CharOrDots *oldcdPtr = NULL; TranslationTableOffset offset; unsigned long int makeHash; if (!(cdPtr = getCharOrDots(c, 0, *table))) { if (!allocateSpaceInTable(nested, &of...
0
[ "CWE-787" ]
liblouis
fb2bfce4ed49ac4656a8f7e5b5526e4838da1dde
268,880,967,647,576,850,000,000,000,000,000,000,000
42
Fix yet another buffer overflow in the braille table parser Reported by Henri Salo Fixes #592
ar6000_btcoex_config_event(struct ar6_softc *ar, u8 *ptr, u32 len) { WMI_BTCOEX_CONFIG_EVENT *pBtcoexConfig = (WMI_BTCOEX_CONFIG_EVENT *)ptr; WMI_BTCOEX_CONFIG_EVENT *pArbtcoexConfig =&ar->arBtcoexConfig; AR_DEBUG_PRINTF(ATH_DEBUG_INFO,("AR6000 BTCOEX CONFIG EVENT \n")); A_PRINTF("received config ev...
0
[ "CWE-703", "CWE-264" ]
linux
550fd08c2cebad61c548def135f67aba284c6162
209,624,026,273,704,330,000,000,000,000,000,000,000
35
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...
NOEXPORT int crl_init(SERVICE_OPTIONS *section) { X509_STORE *store; store=SSL_CTX_get_cert_store(section->ctx); if(section->crl_file) { if(load_file_lookup(store, section->crl_file)) return 1; /* FAILED */ } if(section->crl_dir) { #if OPENSSL_VERSION_NUMBER<0x10100000L ...
0
[ "CWE-295" ]
stunnel
ebad9ddc4efb2635f37174c9d800d06206f1edf9
152,151,156,117,708,500,000,000,000,000,000,000,000
19
stunnel-5.57
static void wait_all() { WaitForSingleObject(cimg::Win32_attr().wait_event,INFINITE);
0
[ "CWE-125" ]
CImg
10af1e8c1ad2a58a0a3342a856bae63e8f257abb
266,623,450,356,985,120,000,000,000,000,000,000,000
3
Fix other issues in 'CImg<T>::load_bmp()'.
static int ZEND_FASTCALL ZEND_FETCH_CONSTANT_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS) { zend_op *opline = EX(opline); if (IS_CONST == IS_UNUSED) { /* namespaced constant */ if (!zend_get_constant_ex(Z_STRVAL(opline->op2.u.constant), Z_STRLEN(opline->op2.u.constant), &EX_T(opline->result.u.var).tmp_var...
0
[]
php-src
ce96fd6b0761d98353761bf78d5bfb55291179fd
2,695,367,538,946,156,400,000,000,000,000,000,000
56
- fix #39863, do not accept paths with NULL in them. See http://news.php.net/php.internals/50191, trunk will have the patch later (adding a macro and/or changing (some) APIs. Patch by Rasmus
int main(int argc, const char **argv) // ignore_convention { #if defined(CONF_FAMILY_WINDOWS) for(int i = 1; i < argc; i++) // ignore_convention { if(str_comp("-s", argv[i]) == 0 || str_comp("--silent", argv[i]) == 0) // ignore_convention { ShowWindow(GetConsoleWindow(), SW_HIDE); break; } } #endif CSe...
0
[ "CWE-20" ]
teeworlds
a766cb44bcffcdb0b88e776d01c5ee1323d44f85
182,037,594,731,622,960,000,000,000,000,000,000,000
80
fixed a server crash
xmlParseNotationDecl(xmlParserCtxtPtr ctxt) { const xmlChar *name; xmlChar *Pubid; xmlChar *Systemid; if (CMP10(CUR_PTR, '<', '!', 'N', 'O', 'T', 'A', 'T', 'I', 'O', 'N')) { xmlParserInputPtr input = ctxt->input; SHRINK; SKIP(10); if (!IS_BLANK_CH(CUR)) { xmlFatalErrMsg(ctxt, XML_ERR_SPACE_REQ...
0
[ "CWE-119" ]
libxml2
6a36fbe3b3e001a8a840b5c1fdd81cefc9947f0d
101,092,047,398,447,880,000,000,000,000,000,000,000
55
Fix potential out of bound access
command_parse_error(void) { LOG_FATAL("Could not parse %s directive at line %d%s%s", processed_command, line_number, processed_file ? " in file " : "", processed_file ? processed_file : ""); }
0
[ "CWE-59" ]
chrony
e18903a6b56341481a2e08469c0602010bf7bfe3
148,803,637,633,210,110,000,000,000,000,000,000,000
6
switch to new util file functions Replace all fopen(), rename(), and unlink() calls with the new util functions.
storeAtts(XML_Parser parser, const ENCODING *enc, const char *attStr, TAG_NAME *tagNamePtr, BINDING **bindingsPtr) { DTD * const dtd = _dtd; /* save one level of indirection */ ELEMENT_TYPE *elementType; int nDefaultAtts; const XML_Char **appAtts; /* the attribute list for the application...
0
[ "CWE-119" ]
libexpat
ba0f9c3b40c264b8dd392e02a7a060a8fa54f032
220,702,985,093,492,100,000,000,000,000,000,000,000
347
CVE-2015-1283 Sanity check size calculations. r=peterv, a=abillings https://sourceforge.net/p/expat/bugs/528/
nonce_verify(krb5_context ctx, krb5_keyblock *armor_key, const krb5_data *nonce) { krb5_error_code retval; krb5_timestamp ts; krb5_data *er = NULL; if (armor_key == NULL || nonce->data == NULL) { retval = EINVAL; goto out; } /* Decode the PA-OTP-ENC-REQUEST structu...
0
[ "CWE-284", "CWE-264" ]
krb5
e3b5a5e5267818c97750b266df50b6a3d4649604
309,534,613,273,795,950,000,000,000,000,000,000,000
29
Prevent requires_preauth bypass [CVE-2015-2694] In the OTP kdcpreauth module, don't set the TKT_FLG_PRE_AUTH bit until the request is successfully verified. In the PKINIT kdcpreauth module, don't respond with code 0 on empty input or an unconfigured realm. Together these bugs could cause the KDC preauth framework to...
static void zend_generator_iterator_get_key(zend_object_iterator *iterator, zval *key) /* {{{ */ { zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data), *root; zend_generator_ensure_initialized(generator); root = zend_generator_get_current(generator); if (EXPECTED(Z_TYPE(root->key) != IS_UNDEF)) { ...
0
[]
php-src
83e2b9e2202da6cc25bdaac67a58022b90be88e7
61,796,403,866,306,400,000,000,000,000,000,000,000
17
Fixed bug #76946
fascist_firewall_choose_address_node(const node_t *node, firewall_connection_t fw_connection, int pref_only, tor_addr_port_t *ap) { if (!node) { return 0; } node_assert_ok(node); const int pref_ipv6_node = (fw_connection == FIREWALL...
0
[]
tor
1afc2ed956a35b40dfd1d207652af5b50c295da7
2,383,821,251,470,023,600,000,000,000,000,000,000
36
Fix policies.c instance of the "if (r=(a-b)) return r" pattern I think this one probably can't underflow, since the input ranges are small. But let's not tempt fate. This patch also replaces the "cmp" functions here with just "eq" functions, since nothing actually checked for anything besides 0 and nonzero. Related...
date_s__iso8601(VALUE klass, VALUE str) { return date__iso8601(str); }
1
[]
date
3959accef8da5c128f8a8e2fd54e932a4fb253b0
334,709,582,802,170,330,000,000,000,000,000,000,000
4
Add length limit option for methods that parses date strings `Date.parse` now raises an ArgumentError when a given date string is longer than 128. You can configure the limit by giving `limit` keyword arguments like `Date.parse(str, limit: 1000)`. If you pass `limit: nil`, the limit is disabled. Not only `Date.parse`...
word32 CertDecoder::GetDigest() { if (source_.GetError().What()) return 0; byte b = source_.next(); if (b != OCTET_STRING) { source_.SetError(OCTET_STR_E); return 0; } sigLength_ = GetLength(source_); signature_ = NEW_TC byte[sigLength_]; memcpy(signature_, source_.get_cur...
0
[ "CWE-254" ]
mysql-server
e7061f7e5a96c66cb2e0bf46bec7f6ff35801a69
61,657,962,647,737,900,000,000,000,000,000,000,000
18
Bug #22738607: YASSL FUNCTION X509_NAME_GET_INDEX_BY_NID IS NOT WORKING AS EXPECTED.
static void setup_windows_event_source() { HKEY hRegKey= NULL; DWORD dwError= 0; TCHAR szPath[MAX_PATH]; DWORD dwTypes; if (eventSource) // Ensure that we are only called once return; eventSource= 1; // Create the event source registry key dwError= RegCreateKey(HKEY_LOCAL_MACH...
0
[ "CWE-264" ]
mysql-server
48bd8b16fe382be302c6f0b45931be5aa6f29a0e
13,966,162,128,889,178,000,000,000,000,000,000,000
31
Bug#24388753: PRIVILEGE ESCALATION USING MYSQLD_SAFE [This is the 5.5/5.6 version of the bugfix]. The problem was that it was possible to write log files ending in .ini/.cnf that later could be parsed as an options file. This made it possible for users to specify startup options without the permissions to do so. Thi...
mono_image_fill_export_table_from_type_forwarders (MonoReflectionAssemblyBuilder *assemblyb, MonoDynamicImage *assembly) { MonoClass *klass; int i; if (!assemblyb->type_forwarders) return; for (i = 0; i < mono_array_length (assemblyb->type_forwarders); ++i) { MonoReflectionType *t = mono_array_get (assemblyb-...
0
[ "CWE-20" ]
mono
4905ef1130feb26c3150b28b97e4a96752e0d399
271,327,552,531,692,900,000,000,000,000,000,000
22
Handle invalid instantiation of generic methods. * verify.c: Add new function to internal verifier API to check method instantiations. * reflection.c (mono_reflection_bind_generic_method_parameters): Check the instantiation before returning it. Fixes #655847
static int bnxt_re_set_page(struct ib_mr *ib_mr, u64 addr) { struct bnxt_re_mr *mr = container_of(ib_mr, struct bnxt_re_mr, ib_mr); if (unlikely(mr->npages == mr->qplib_frpl.max_pg_ptrs)) return -ENOMEM; mr->pages[mr->npages++] = addr; return 0; }
0
[ "CWE-400", "CWE-401" ]
linux
4a9d46a9fe14401f21df69cea97c62396d5fb053
186,791,421,843,818,840,000,000,000,000,000,000,000
10
RDMA: Fix goto target to release the allocated memory In bnxt_re_create_srq(), when ib_copy_to_udata() fails allocated memory should be released by goto fail. Fixes: 37cb11acf1f7 ("RDMA/bnxt_re: Add SRQ support for Broadcom adapters") Link: https://lore.kernel.org/r/20190910222120.16517-1-navid.emamdoost@gmail.com Si...
ipf_is_first_v4_frag(const struct dp_packet *pkt) { const struct ip_header *l3 = dp_packet_l3(pkt); if (!(l3->ip_frag_off & htons(IP_FRAG_OFF_MASK)) && l3->ip_frag_off & htons(IP_MORE_FRAGMENTS)) { return true; } return false; }
0
[ "CWE-401" ]
ovs
803ed12e31b0377c37d7aa8c94b3b92f2081e349
316,654,421,315,390,900,000,000,000,000,000,000,000
9
ipf: release unhandled packets from the batch Since 640d4db788ed ("ipf: Fix a use-after-free error, ...") the ipf framework unconditionally allocates a new dp_packet to track individual fragments. This prevents a use-after-free. However, an additional issue was present - even when the packet buffer is cloned, if the...
static int ZEND_FASTCALL zend_pre_incdec_property_helper_SPEC_VAR_TMP(incdec_t incdec_op, ZEND_OPCODE_HANDLER_ARGS) { zend_op *opline = EX(opline); zend_free_op free_op1, free_op2; zval **object_ptr = _get_zval_ptr_ptr_var(&opline->op1, EX(Ts), &free_op1 TSRMLS_CC); zval *object; zval *property = _get_zval_ptr_tmp...
0
[]
php-src
ce96fd6b0761d98353761bf78d5bfb55291179fd
208,805,113,617,423,080,000,000,000,000,000,000,000
86
- fix #39863, do not accept paths with NULL in them. See http://news.php.net/php.internals/50191, trunk will have the patch later (adding a macro and/or changing (some) APIs. Patch by Rasmus
static int fts3IncrmergeHintPop(Blob *pHint, i64 *piAbsLevel, int *pnInput){ const int nHint = pHint->n; int i; i = pHint->n-2; while( i>0 && (pHint->a[i-1] & 0x80) ) i--; while( i>0 && (pHint->a[i-1] & 0x80) ) i--; pHint->n = i; i += sqlite3Fts3GetVarint(&pHint->a[i], piAbsLevel); i += fts3GetVarint3...
0
[ "CWE-787" ]
sqlite
c72f2fb7feff582444b8ffdc6c900c69847ce8a9
302,724,552,255,363,780,000,000,000,000,000,000,000
15
More improvements to shadow table corruption detection in FTS3. FossilOrigin-Name: 51525f9c3235967bc00a090e84c70a6400698c897aa4742e817121c725b8c99d
void CLASS colorcheck() { #define NSQ 24 // Coordinates of the GretagMacbeth ColorChecker squares // width, height, 1st_column, 1st_row int cut[NSQ][4]; // you must set these // ColorChecker Chart under 6500-kelvin illumination static const double gmb_xyY[NSQ][3] = { { 0.400, 0.350, 10.1 }, // Dark Skin ...
0
[ "CWE-703" ]
LibRaw
11909cc59e712e09b508dda729b99aeaac2b29ad
39,268,339,829,723,690,000,000,000,000,000,000,000
67
cumulated data checks patch
bgp_encode_nlri_ip6(struct bgp_write_state *s, struct bgp_bucket *buck, byte *buf, uint size) { byte *pos = buf; while (!EMPTY_LIST(buck->prefixes) && (size >= BGP_NLRI_MAX)) { struct bgp_prefix *px = HEAD(buck->prefixes); struct net_addr_ip6 *net = (void *) px->net; /* Encode path ID */ if (s->...
0
[ "CWE-787" ]
bird
8388f5a7e14108a1458fea35bfbb5a453e2c563c
305,884,091,807,678,240,000,000,000,000,000,000,000
35
BGP: Fix bugs in handling of shutdown messages There is an improper check for valid message size, which may lead to stack overflow and buffer leaks to log when a large message is received. Thanks to Daniel McCarney for bugreport and analysis.
static bool nested_vmx_exit_handled(struct kvm_vcpu *vcpu) { u32 intr_info = vmcs_read32(VM_EXIT_INTR_INFO); struct vcpu_vmx *vmx = to_vmx(vcpu); struct vmcs12 *vmcs12 = get_vmcs12(vcpu); u32 exit_reason = vmx->exit_reason; trace_kvm_nested_vmexit(kvm_rip_read(vcpu), exit_reason, vmcs_readl(EXIT_QUALIFICATION...
0
[ "CWE-399" ]
linux
54a20552e1eae07aa240fa370a0293e006b5faed
75,972,958,303,893,100,000,000,000,000,000,000,000
135
KVM: x86: work around infinite loop in microcode when #AC is delivered It was found that a guest can DoS a host by triggering an infinite stream of "alignment check" (#AC) exceptions. This causes the microcode to enter an infinite loop where the core never receives another interrupt. The host kernel panics pretty qu...
bool VideoTrack::SetStereoMode(uint64_t stereo_mode) { if (stereo_mode != kMono && stereo_mode != kSideBySideLeftIsFirst && stereo_mode != kTopBottomRightIsFirst && stereo_mode != kTopBottomLeftIsFirst && stereo_mode != kSideBySideRightIsFirst) return false; stereo_mode_ = stereo_mode; retu...
0
[ "CWE-20" ]
libvpx
f00890eecdf8365ea125ac16769a83aa6b68792d
144,565,050,881,165,090,000,000,000,000,000,000,000
10
update libwebm to libwebm-1.0.0.27-352-g6ab9fcf https://chromium.googlesource.com/webm/libwebm/+log/af81f26..6ab9fcf Change-Id: I9d56e1fbaba9b96404b4fbabefddc1a85b79c25d
TEST_F(QueryPlannerTest, ContainedOrPathLevelMultikeyCannotCompoundFields) { MultikeyPaths multikeyPaths{{0U}, {0U}}; addIndex(BSON("a.c" << 1 << "a.b" << 1), multikeyPaths); addIndex(BSON("d" << 1)); runQuery(fromjson("{$and: [{'a.b': 5}, {$or: [{'a.c': 6}, {d: 7}]}]}")); assertNumSolutions(2); ...
0
[]
mongo
ee97c0699fd55b498310996ee002328e533681a3
128,192,171,279,796,320,000,000,000,000,000,000,000
15
SERVER-36993 Fix crash due to incorrect $or pushdown for indexed $expr.
void reftype_del(GF_Box *s) { GF_TrackReferenceTypeBox *ptr = (GF_TrackReferenceTypeBox *)s; if (!ptr) return; if (ptr->trackIDs) gf_free(ptr->trackIDs); gf_free(ptr);
0
[ "CWE-400", "CWE-401" ]
gpac
d2371b4b204f0a3c0af51ad4e9b491144dd1225c
311,425,130,312,584,500,000,000,000,000,000,000,000
7
prevent dref memleak on invalid input (#1183)
nbd_unlocked_aio_pread (struct nbd_handle *h, void *buf, size_t count, uint64_t offset, nbd_completion_callback *completion, uint32_t flags) { struct command_cb cb = { .completion = *completion }; SET_CALLBACK_TO_NULL (*completion); return n...
0
[ "CWE-252" ]
libnbd
56d2611bd6fcdb559ee5ff11532dec75eb2f8472
7,181,951,554,495,645,000,000,000,000,000,000,000
11
api: Drop server control of memset() prior to NBD_CMD_READ The recent CVE-2022-0485 demonstrated that clients that pass in an uninitialized buffer to nbd_pread and friends, but are then not careful about checking for read errors, were subjected to server-dependent behavior on whether their use of the buffer after fail...
void __init msg_init(void) { msg_init_ns(&init_ipc_ns); printk(KERN_INFO "msgmni has been set to %d\n", init_ipc_ns.msg_ctlmni); ipc_init_proc_interface("sysvipc/msg", " key msqid perms cbytes qnum lspid lrpid uid gid cuid cgid stime rtime ctime\n", IPC_MSG_IDS,...
0
[ "CWE-703", "CWE-189" ]
linux
6062a8dc0517bce23e3c2f7d2fea5e22411269a3
6,543,720,138,551,930,000,000,000,000,000,000,000
11
ipc,sem: fine grained locking for semtimedop Introduce finer grained locking for semtimedop, to handle the common case of a program wanting to manipulate one semaphore from an array with multiple semaphores. If the call is a semop manipulating just one semaphore in an array with multiple semaphores, only take the loc...
static OPJ_BOOL opj_pi_next_lrcp(opj_pi_iterator_t * pi) { opj_pi_comp_t *comp = NULL; opj_pi_resolution_t *res = NULL; OPJ_UINT32 index = 0; if (!pi->first) { comp = &pi->comps[pi->compno]; res = &comp->resolutions[pi->resno]; goto LABEL_SKIP; } else { pi->first = 0; } for (pi->layno = pi->poc.layno0...
0
[ "CWE-190", "CWE-125", "CWE-787" ]
openjpeg
c16bc057ba3f125051c9966cf1f5b68a05681de4
27,183,525,349,363,340,000,000,000,000,000,000,000
39
Fix an integer overflow issue (#809) Prevent an integer overflow issue in function opj_pi_create_decode of pi.c.
sig_handler_t mingw_signal(int sig, sig_handler_t handler) { sig_handler_t old; switch (sig) { case SIGALRM: old = timer_fn; timer_fn = handler; break; case SIGINT: old = sigint_fn; sigint_fn = handler; break; default: return signal(sig, handler); } return old; }
0
[ "CWE-20" ]
git
6d8684161ee9c03bed5cb69ae76dfdddb85a0003
268,123,857,516,652,670,000,000,000,000,000,000,000
21
mingw: fix quoting of arguments We need to be careful to follow proper quoting rules. For example, if an argument contains spaces, we have to quote them. Double-quotes need to be escaped. Backslashes need to be escaped, but only if they are followed by a double-quote character. We need to be _extra_ careful to consid...
SPL_METHOD(SplObjectStorage, removeAllExcept) { zval *obj; spl_SplObjectStorage *intern = (spl_SplObjectStorage *)zend_object_store_get_object(getThis() TSRMLS_CC); spl_SplObjectStorage *other; spl_SplObjectStorageElement *element; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O", &obj, spl_ce_SplObjectSt...
0
[]
php-src
a374dfab567ff7f0ab0dc150f14cc891b0340b47
183,797,600,521,812,900,000,000,000,000,000,000,000
26
Fix bug #67492: unserialize() SPL ArrayObject / SPLObjectStorage Type Confusion
static int agp_get_key(void) { int bit; bit = find_first_zero_bit(agp_bridge->key_list, MAXKEY); if (bit < MAXKEY) { set_bit(bit, agp_bridge->key_list); return bit; } return -1; }
0
[ "CWE-190" ]
linux-2.6
194b3da873fd334ef183806db751473512af29ce
272,563,685,088,253,840,000,000,000,000,000,000,000
11
agp: fix arbitrary kernel memory writes pg_start is copied from userspace on AGPIOC_BIND and AGPIOC_UNBIND ioctl cmds of agp_ioctl() and passed to agpioc_bind_wrap(). As said in the comment, (pg_start + mem->page_count) may wrap in case of AGPIOC_BIND, and it is not checked at all in case of AGPIOC_UNBIND. As a resu...
asmlinkage long sys_prctl(int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5) { long error; error = security_task_prctl(option, arg2, arg3, arg4, arg5); if (error) return error; switch (option) { case PR_SET_PDEATHSIG: if (!valid_signal(arg2)) { error = -EIN...
0
[ "CWE-20" ]
linux-2.6
9926e4c74300c4b31dee007298c6475d33369df0
261,004,715,017,878,950,000,000,000,000,000,000,000
103
CPU time limit patch / setrlimit(RLIMIT_CPU, 0) cheat fix As discovered here today, the change in Kernel 2.6.17 intended to inhibit users from setting RLIMIT_CPU to 0 (as that is equivalent to unlimited) by "cheating" and setting it to 1 in such a case, does not make a difference, as the check is done in the wrong pla...
int SSL_set_session_ticket_ext_cb(SSL *s, tls_session_ticket_ext_cb_fn cb, void *arg) { if (s == NULL) return(0); s->tls_session_ticket_ext_cb = cb; s->tls_session_ticket_ext_cb_arg = arg; return(1); }
0
[]
openssl
edc032b5e3f3ebb1006a9c89e0ae00504f47966f
31,705,907,523,008,890,000,000,000,000,000,000,000
8
Add SRP support.
mysql_autodetect_character_set(MYSQL *mysql) { const char *csname= MYSQL_DEFAULT_CHARSET_NAME; #ifdef __WIN__ char cpbuf[64]; { UINT cp= GetConsoleCP(); if (cp == 0) cp= GetACP(); my_snprintf(cpbuf, sizeof(cpbuf), "cp%d", (int)cp); csname= my_os_charset_to_mysql_charset(cpbuf); } #elif de...
0
[ "CWE-254" ]
server
f0d774d48416bb06063184380b684380ca005a41
129,400,446,106,016,550,000,000,000,000,000,000,000
26
MDEV-9212 ssl-validate-cert incorrect hostname check Reimplement ssl_verify_server_cert() using the logic from https://wiki.openssl.org/index.php/Hostname_validation The bug was discovered by Alex Gaynor.
get_job_arg(typval_T *tv) { job_T *job; if (tv->v_type != VAR_JOB) { semsg(_(e_invarg2), tv_get_string(tv)); return NULL; } job = tv->vval.v_job; if (job == NULL) emsg(_("E916: not a valid job")); return job; }
0
[ "CWE-78" ]
vim
8c62a08faf89663e5633dc5036cd8695c80f1075
16,150,277,254,800,582,000,000,000,000,000,000,000
15
patch 8.1.0881: can execute shell commands in rvim through interfaces Problem: Can execute shell commands in rvim through interfaces. Solution: Disable using interfaces in restricted mode. Allow for writing file with writefile(), histadd() and a few others.
static int ql_get_link_ksettings(struct net_device *ndev, struct ethtool_link_ksettings *cmd) { struct ql3_adapter *qdev = netdev_priv(ndev); u32 supported, advertising; supported = ql_supported_modes(qdev); if (test_bit(QL_LINK_OPTICAL, &qdev->flags)) { cmd->base.port = PORT_FIBRE; } else { cmd->base....
0
[ "CWE-401" ]
linux
1acb8f2a7a9f10543868ddd737e37424d5c36cf4
154,637,118,741,370,730,000,000,000,000,000,000,000
26
net: qlogic: Fix memory leak in ql_alloc_large_buffers In ql_alloc_large_buffers, a new skb is allocated via netdev_alloc_skb. This skb should be released if pci_dma_mapping_error fails. Fixes: 0f8ab89e825f ("qla3xxx: Check return code from pci_map_single() in ql_release_to_lrg_buf_free_list(), ql_populate_free_queue...
explicit v8_action_t(ActionFeature const& actionFeature) : TRI_action_t(), _actionFeature(actionFeature), _callbacks(), _callbacksLock() {}
0
[ "CWE-918" ]
arangodb
d9b7f019d2435f107b19a59190bf9cc27d5f34dd
62,027,072,458,371,000,000,000,000,000,000,000,000
2
[APM-78] Disable installation from remote URL (#15292)
static int vnc_refresh_server_surface(VncDisplay *vd) { int y; uint8_t *guest_row; uint8_t *server_row; int cmp_bytes; VncState *vs; int has_dirty = 0; struct timeval tv = { 0, 0 }; if (!vd->non_adaptive) { gettimeofday(&tv, NULL); has_dirty = vnc_update_stats(vd, &tv);...
1
[ "CWE-125" ]
qemu
9f64916da20eea67121d544698676295bbb105a7
36,396,451,493,660,760,000,000,000,000,000,000,000
56
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...