func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
FF_SYMVER(void, av_fast_malloc, (void *ptr, unsigned int *size, size_t min_size), LIBNAME) { av_fast_malloc(ptr, size, min_size); }
0
[ "CWE-703" ]
FFmpeg
e5c7229999182ad1cef13b9eca050dba7a5a08da
134,699,121,571,067,270,000,000,000,000,000,000,000
4
avcodec/utils: set AVFrame format unconditional Fixes inconsistency and out of array accesses Fixes: 10cdd7e63e7f66e3e66273939e0863dd-asan_heap-oob_1a4ff32_7078_cov_4056274555_mov_h264_aac__mp4box_frag.mp4 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
char *smb_vfs_call_realpath(struct vfs_handle_struct *handle, const char *path) { VFS_FIND(realpath); return handle->fns->realpath_fn(handle, path); }
0
[ "CWE-264" ]
samba
4278ef25f64d5fdbf432ff1534e275416ec9561e
164,330,919,591,301,670,000,000,000,000,000,000,000
5
CVE-2015-5252: s3: smbd: Fix symlink verification (file access outside the share). Ensure matching component ends in '/' or '\0'. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11395 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
Http2CustomSettingsTest() : Http2CustomSettingsTestBase(::testing::get<0>(GetParam()), ::testing::get<1>(GetParam()), ::testing::get<2>(GetParam())) {}
0
[ "CWE-400" ]
envoy
0e49a495826ea9e29134c1bd54fdeb31a034f40c
44,425,283,557,345,250,000,000,000,000,000,000,000
3
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...
int diskutil_mbr(const char *path, const char *type) { char *output = NULL; if (path && type) { output = pruntf(TRUE, "LD_PRELOAD='' %s %s --script %s mklabel %s", helpers_path[ROOTWRAP], helpers_path[PARTED], path, type); if (!output) { LOGERROR("cannot create an MBR\n"); ...
0
[]
eucalyptus
c252889a46f41b4c396b89e005ec89836f2524be
156,335,613,971,798,670,000,000,000,000,000,000,000
18
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
gs_grab_get_keyboard (GSGrab *grab, GdkWindow *window, GdkScreen *screen) { GdkGrabStatus status; g_return_val_if_fail (window != NULL, FALSE); g_return_val_if_fail (screen != NULL, FALSE); gs_debug ("Grabbing keyboard widget=%X", (guint32...
0
[]
gnome-screensaver
f93a22c175090cf02e80bc3ee676b53f1251f685
245,294,858,879,404,750,000,000,000,000,000,000,000
29
Nullify grab window variables when windows are destroyed If we don't do this then there is a time period where the grab window variables contain dangling pointers which can cause crashes. Part of fix for https://bugzilla.gnome.org/show_bug.cgi?id=609789
static int samldb_group_type_change(struct samldb_ctx *ac) { struct ldb_context *ldb = ldb_module_get_ctx(ac->module); uint32_t group_type, old_group_type, account_type; struct ldb_message_element *el; struct ldb_message *tmp_msg; int ret; struct ldb_result *res; const char * const attrs[] = { "groupType", NULL ...
0
[ "CWE-200" ]
samba
0a3aa5f908e351201dc9c4d4807b09ed9eedff77
302,927,997,612,692,050,000,000,000,000,000,000,000
101
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 inline unsigned long rb_page_write(struct buffer_page *bpage) { return local_read(&bpage->write) & RB_WRITE_MASK; }
0
[ "CWE-190" ]
linux-stable
59643d1535eb220668692a5359de22545af579f6
310,917,180,564,768,300,000,000,000,000,000,000,000
4
ring-buffer: Prevent overflow of size in ring_buffer_resize() If the size passed to ring_buffer_resize() is greater than MAX_LONG - BUF_PAGE_SIZE then the DIV_ROUND_UP() will return zero. Here's the details: # echo 18014398509481980 > /sys/kernel/debug/tracing/buffer_size_kb tracing_entries_write() processes this...
PS_GC_FUNC(files) { PS_FILES_DATA; /* we don't perform any cleanup, if dirdepth is larger than 0. we return SUCCESS, since all cleanup should be handled by an external entity (i.e. find -ctime x | xargs rm) */ if (data->dirdepth == 0) { *nrdels = ps_files_cleanup_dir(data->basedir, maxlifetime TSRMLS_CC)...
0
[ "CWE-264" ]
php-src
25e8fcc88fa20dc9d4c47184471003f436927cde
24,933,645,737,691,270,000,000,000,000,000,000,000
14
Strict session
enum ndr_err_code ndr_pull_NETLOGON_SAM_LOGON_REQUEST(struct ndr_pull *ndr, int ndr_flags, struct NETLOGON_SAM_LOGON_REQUEST *r) { if (ndr_flags & NDR_SCALARS) { NDR_CHECK(ndr_pull_align(ndr, 4)); NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->request_count)); { uint32_t _flags_save_string = ndr->flags; n...
0
[ "CWE-400" ]
samba
cc3a67760cf9faaad3af73b1eed9e2ef85276633
319,180,871,801,746,600,000,000,000,000,000,000,000
45
CVE-2020-10745: ndr/dns-utils: prepare for NBT compatibility NBT has a funny thing where it sometimes needs to send a trailing dot as part of the last component, because the string representation is a user name. In DNS, "example.com", and "example.com." are the same, both having three components ("example", "com", "")...
static inline int major_to_index(unsigned major) { return major % BLKDEV_MAJOR_HASH_SIZE; }
0
[ "CWE-416" ]
linux-stable
77da160530dd1dc94f6ae15a981f24e5f0021e84
24,792,649,192,150,100,000,000,000,000,000,000,000
4
block: fix use-after-free in seq file I got a KASAN report of use-after-free: ================================================================== BUG: KASAN: use-after-free in klist_iter_exit+0x61/0x70 at addr ffff8800b6581508 Read of size 8 by task trinity-c1/315 ======================================...
isofile_register_hardlink(struct archive_write *a, struct isofile *file) { struct iso9660 *iso9660 = a->format_data; struct hardlink *hl; const char *pathname; archive_entry_set_nlink(file->entry, 1); pathname = archive_entry_hardlink(file->entry); if (pathname == NULL) { /* This `file` is a hardlink target. *...
0
[ "CWE-190" ]
libarchive
3014e19820ea53c15c90f9d447ca3e668a0b76c6
210,930,588,286,961,100,000,000,000,000,000,000,000
38
Issue 711: Be more careful about verifying filename lengths when writing ISO9660 archives * Don't cast size_t to int, since this can lead to overflow on machines where sizeof(int) < sizeof(size_t) * Check a + b > limit by writing it as a > limit || b > limit || a + b > limit to avoid problems when a + b wraps...
uint64_t private_data_length() const { return private_data_length_; }
0
[ "CWE-20" ]
libvpx
f00890eecdf8365ea125ac16769a83aa6b68792d
221,793,584,445,329,140,000,000,000,000,000,000,000
1
update libwebm to libwebm-1.0.0.27-352-g6ab9fcf https://chromium.googlesource.com/webm/libwebm/+log/af81f26..6ab9fcf Change-Id: I9d56e1fbaba9b96404b4fbabefddc1a85b79c25d
void vhost_enable_zcopy(int vq) { vhost_zcopy_mask |= 0x1 << vq; }
0
[]
linux-2.6
bd97120fc3d1a11f3124c7c9ba1d91f51829eb85
172,614,275,854,653,140,000,000,000,000,000,000,000
4
vhost: fix length for cross region descriptor If a single descriptor crosses a region, the second chunk length should be decremented by size translated so far, instead it includes the full descriptor length. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Jason Wang <jasowang@redhat.com> Signed-off-by: D...
irc_nick_find_color (const char *nickname) { return weechat_info_get ("nick_color", nickname); }
0
[ "CWE-120", "CWE-787" ]
weechat
40ccacb4330a64802b1f1e28ed9a6b6d3ca9197f
338,572,145,870,943,320,000,000,000,000,000,000,000
4
irc: fix crash when a new message 005 is received with longer nick prefixes Thanks to Stuart Nevans Locke for reporting the issue.
static void spl_heap_object_free_storage(void *object TSRMLS_DC) /* {{{ */ { int i; spl_heap_object *intern = (spl_heap_object *)object; zend_object_std_dtor(&intern->std TSRMLS_CC); for (i = 0; i < intern->heap->count; ++i) { if (intern->heap->elements[i]) { zval_ptr_dtor((zval **)&intern->heap->elements[i]...
0
[]
php-src
1cbd25ca15383394ffa9ee8601c5de4c0f2f90e1
92,877,058,789,944,010,000,000,000,000,000,000,000
24
Fix bug #69737 - Segfault when SplMinHeap::compare produces fatal error
backup_support_option( char *program, g_option_t *g_options, char *disk, char *amdevice, GPtrArray **errarray) { pid_t supportpid; int supportin, supportout, supporterr; char *cmd; GPtrArray *argv_ptr = g_ptr_array_new(); FILE *streamout; FILE *s...
0
[ "CWE-264" ]
amanda
4bf5b9b356848da98560ffbb3a07a9cb5c4ea6d7
311,466,541,002,099,840,000,000,000,000,000,000,000
180
* Add a /etc/amanda-security.conf file git-svn-id: https://svn.code.sf.net/p/amanda/code/amanda/branches/3_3@6486 a8d146d6-cc15-0410-8900-af154a0219e0
static int ok_inflater_decode_length(ok_inflater *inflater, int value) { if (value < 8) { return value + 3; } else { int len = OK_INFLATER_LENGTH_TABLE[value]; unsigned int extra_bits = (unsigned int)((value >> 2) - 1); if (extra_bits <= 5) { if (!ok_inflater_load_bit...
0
[ "CWE-787" ]
ok-file-formats
e49cdfb84fb5eca2a6261f3c51a3c793fab9f62e
28,540,732,458,938,220,000,000,000,000,000,000,000
15
ok_png: Disallow multiple IHDR chunks (#15)
dataiterator_setpos_parent(Dataiterator *di) { if (!di->kv.parent || di->kv.parent->eof == 2) { pool_clear_pos(di->pool); return; } di->pool->pos.solvid = di->solvid; di->pool->pos.repo = di->repo; di->pool->pos.repodataid = di->data - di->repo->repodata; di->pool->pos.schema = di->kv.pare...
0
[ "CWE-125" ]
libsolv
fdb9c9c03508990e4583046b590c30d958f272da
239,031,704,529,118,700,000,000,000,000,000,000,000
13
repodata_schema2id: fix heap-buffer-overflow in memcmp When the length of last schema in data->schemadata is less than length of input schema, we got a read overflow in asan test. Signed-off-by: Zhipeng Xie <xiezhipeng1@huawei.com>
dwg_free (Dwg_Data *dwg) { BITCODE_BL i; if (dwg) { pdat.version = dwg->header.version; pdat.from_version = dwg->header.version; if (dwg->opts) { loglevel = dwg->opts & DWG_OPTS_LOGLEVEL; pdat.opts = dwg->opts; } #ifdef USE_TRACING /* Before starting, ...
0
[ "CWE-703", "CWE-835" ]
libredwg
c6f6668b82bfe595899cc820279ac37bb9ef16f5
167,068,887,273,600,220,000,000,000,000,000,000,000
75
cleanup tio.unknown not needed anymore, we only have UNKNOWN_OBJ or UNKNOWN_ENT with full common entity_data. Fixes GH #178 heap_overflow2
void server_connect_finished(SERVER_REC *server) { server->connect_time = time(NULL); servers = g_slist_append(servers, server); signal_emit("server connected", 1, server); }
0
[ "CWE-20" ]
irssi-proxy
85bbc05b21678e80423815d2ef1dfe26208491ab
184,647,626,715,323,350,000,000,000,000,000,000,000
7
Check if an SSL certificate matches the hostname of the server we are connecting to git-svn-id: http://svn.irssi.org/repos/irssi/trunk@5104 dbcabf3a-b0e7-0310-adc4-f8d773084564
int x86_emulate_instruction(struct kvm_vcpu *vcpu, unsigned long cr2, int emulation_type, void *insn, int insn_len) { int r; struct x86_emulate_ctxt *ctxt = &vcpu->arch.emulate_ctxt; bool writeback = true; bool write_fault_to_spt = vcpu->arch.write_fault_to_shadow_pgtable; /* * Clear...
0
[]
kvm
854e8bb1aa06c578c2c9145fa6bfe3680ef63b23
129,467,882,595,324,970,000,000,000,000,000,000,000
129
KVM: x86: Check non-canonical addresses upon WRMSR Upon WRMSR, the CPU should inject #GP if a non-canonical value (address) is written to certain MSRs. The behavior is "almost" identical for AMD and Intel (ignoring MSRs that are not implemented in either architecture since they would anyhow #GP). However, IA32_SYSENTE...
GC_INNER void GC_save_callers(struct callinfo info[NFRAMES]) { struct frame *frame; struct frame *fp; int nframes = 0; # ifdef I386 /* We assume this is turned on only with gcc as the compiler. */ asm("movl %%ebp,%0" : "=r"(frame)); fp = frame; # else frame = (struct frame *)GC_save_regs_in_stack(...
0
[ "CWE-119" ]
bdwgc
7292c02fac2066d39dd1bcc37d1a7054fd1e32ee
223,810,072,181,978,100,000,000,000,000,000,000,000
31
Fix malloc routines to prevent size value wrap-around See issue #135 on Github. * allchblk.c (GC_allochblk, GC_allochblk_nth): Use OBJ_SZ_TO_BLOCKS_CHECKED instead of OBJ_SZ_TO_BLOCKS. * malloc.c (GC_alloc_large): Likewise. * alloc.c (GC_expand_hp_inner): Type of "bytes" local variable changed from word to size_t; ca...
static int grow_islands(void) { int x, y, n, run; int diffs = 0, ct; /* * n.b. the way we scan here should keep an extension going, * and so also fill in gaps effectively... */ /* left to right: */ for (y=0; y < ntiles_y; y++) { run = 0; for (x=0; x <= ntiles_x - 2; x++) { ct = island_try(x, y, x+1,...
0
[ "CWE-862", "CWE-284", "CWE-732" ]
x11vnc
69eeb9f7baa14ca03b16c9de821f9876def7a36a
208,858,332,240,621,350,000,000,000,000,000,000,000
32
scan: limit access to shared memory segments to current user
static CURLcode file_do(struct connectdata *conn, bool *done) { /* This implementation ignores the host name in conformance with RFC 1738. Only local files (reachable via the standard file system) are supported. This means that files on remotely mounted directories (via NFS, Samba, NT sharing) can be a...
0
[]
curl
1b71bc532bde8621fd3260843f8197182a467ff2
177,582,976,976,008,100,000,000,000,000,000,000,000
176
file: on Windows, refuse paths that start with \\ ... as that might cause an unexpected SMB connection to a given host name. Reported-by: Fernando Muñoz CVE-2019-15601 Bug: https://curl.haxx.se/docs/CVE-2019-15601.html
filesystem_info_stop (NautilusDirectory *directory) { NautilusFile *file; if (directory->details->filesystem_info_state != NULL) { file = directory->details->filesystem_info_state->file; if (file != NULL) { g_assert (NAUTILUS_IS_FILE (file)); g_assert (file->details->directory == directory); if (is_nee...
0
[]
nautilus
7632a3e13874a2c5e8988428ca913620a25df983
95,098,311,452,413,590,000,000,000,000,000,000,000
21
Check for trusted desktop file launchers. 2009-02-24 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-directory-async.c: Check for trusted desktop file launchers. * libnautilus-private/nautilus-file-private.h: * libnautilus-private/nautilus-file.c: * libnautilus-...
static void test_field_flags() { int rc; MYSQL_RES *result; MYSQL_FIELD *field; unsigned int i; myheader("test_field_flags"); rc= mysql_query(mysql, "DROP TABLE IF EXISTS test_field_flags"); myquery(rc); rc= mysql_query(mysql, "CREATE TABLE test_field_flags(id int NOT NULL AUTO_INCREMEN...
0
[ "CWE-284", "CWE-295" ]
mysql-server
3bd5589e1a5a93f9c224badf983cd65c45215390
169,004,352,597,683,190,000,000,000,000,000,000,000
54
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...
f_setbufvar(typval_T *argvars, typval_T *rettv UNUSED) { buf_T *buf; char_u *varname, *bufvarname; typval_T *varp; char_u nbuf[NUMBUFLEN]; if (check_restricted() || check_secure()) return; (void)tv_get_number(&argvars[0]); /* issue errmsg if type error */ varname = tv_get_string_chk(&a...
1
[ "CWE-78" ]
vim
8c62a08faf89663e5633dc5036cd8695c80f1075
88,120,063,889,002,150,000,000,000,000,000,000,000
52
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.
Tags::SimpleTag::SimpleTag() {}
0
[ "CWE-20" ]
libvpx
34d54b04e98dd0bac32e9aab0fbda0bf501bc742
333,244,171,099,316,740,000,000,000,000,000,000,000
1
update libwebm to libwebm-1.0.0.27-358-gdbf1d10 changelog: https://chromium.googlesource.com/webm/libwebm/+log/libwebm-1.0.0.27-351-g9f23fbc..libwebm-1.0.0.27-358-gdbf1d10 Change-Id: I28a6b3ae02a53fb1f2029eee11e9449afb94c8e3
findoprnd(ITEM *ptr, int32 *pos) { if (ptr[*pos].type == VAL || ptr[*pos].type == VALTRUE) { ptr[*pos].left = 0; (*pos)++; } else if (ptr[*pos].val == (int32) '!') { ptr[*pos].left = 1; (*pos)++; findoprnd(ptr, pos); } else { ITEM *curitem = &ptr[*pos]; int32 tmp = *pos; (*pos)++; findopr...
1
[ "CWE-703", "CWE-189" ]
postgres
31400a673325147e1205326008e32135a78b4d8a
285,705,781,544,491,360,000,000,000,000,000,000,000
24
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...
GooString *JBIG2Stream::getPSFilter(int psLevel, const char *indent) { return nullptr; }
0
[ "CWE-476", "CWE-190" ]
poppler
27354e9d9696ee2bc063910a6c9a6b27c5184a52
294,662,438,037,671,930,000,000,000,000,000,000,000
4
JBIG2Stream: Fix crash on broken file https://github.com/jeffssh/CVE-2021-30860 Thanks to David Warren for the heads up
mono_type_is_value_type (MonoType *type, const char *namespace, const char *name) { return type->type == MONO_TYPE_VALUETYPE && !strcmp (namespace, type->data.klass->name_space) && !strcmp (name, type->data.klass->name); }
0
[ "CWE-20" ]
mono
4905ef1130feb26c3150b28b97e4a96752e0d399
58,314,161,038,132,920,000,000,000,000,000,000,000
6
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
DLLEXPORT tjhandle tjInitDecompress(void) { tjinstance *this; if ((this = (tjinstance *)malloc(sizeof(tjinstance))) == NULL) { snprintf(errStr, JMSG_LENGTH_MAX, "tjInitDecompress(): Memory allocation failure"); return NULL; } MEMZERO(this, sizeof(tjinstance)); snprintf(this->errStr, JMSG...
0
[ "CWE-787" ]
libjpeg-turbo
3d9c64e9f8aa1ee954d1d0bb3390fc894bb84da3
117,017,342,479,682,700,000,000,000,000,000,000,000
13
tjLoadImage(): Fix int overflow/segfault w/big BMP Fixes #304
void unlink_file_vma(struct vm_area_struct *vma) { struct file *file = vma->vm_file; if (file) { struct address_space *mapping = file->f_mapping; i_mmap_lock_write(mapping); __remove_shared_vm_struct(vma, file, mapping); i_mmap_unlock_write(mapping); } }
0
[ "CWE-119" ]
linux
1be7107fbe18eed3e319a6c3e83c78254b693acb
192,756,456,667,371,620,000,000,000,000,000,000,000
11
mm: larger stack guard gap, between vmas Stack guard page is a useful feature to reduce a risk of stack smashing into a different mapping. We have been using a single page gap which is sufficient to prevent having stack adjacent to a different mapping. But this seems to be insufficient in the light of the stack usage ...
BSONObj spec() { return BSON("$or" << BSON_ARRAY(0 << false)); }
0
[ "CWE-835" ]
mongo
0a076417d1d7fba3632b73349a1fd29a83e68816
215,391,436,969,022,870,000,000,000,000,000,000,000
3
SERVER-38070 fix infinite loop in agg expression
static void phar_do_404(phar_archive_data *phar, char *fname, int fname_len, char *f404, int f404_len, char *entry, size_t entry_len) /* {{{ */ { sapi_header_line ctr = {0}; phar_entry_info *info; if (phar && f404_len) { info = phar_get_entry_info(phar, f404, f404_len, NULL, 1); if (info) { phar_file_action...
0
[ "CWE-281" ]
php-src
e5c95234d87fcb8f6b7569a96a89d1e1544749a6
340,049,564,604,966,900,000,000,000,000,000,000,000
22
Fix bug #79082 - Files added to tar with Phar::buildFromIterator have all-access permissions
GF_Err gf_isom_get_edit(GF_ISOFile *the_file, u32 trackNumber, u32 SegmentIndex, u64 *EditTime, u64 *SegmentDuration, u64 *MediaTime, GF_ISOEditType *EditMode) { u32 i; u64 startTime; GF_TrackBox *trak; GF_EditListBox *elst; GF_EdtsEntry *ent; ent = NULL; trak = gf_isom_get_track_from_file(the_file, trackNumber...
0
[ "CWE-476" ]
gpac
ebfa346eff05049718f7b80041093b4c5581c24e
170,232,064,463,394,230,000,000,000,000,000,000,000
41
fixed #1706
ArgParser::argUnderlay() { parseUnderOverlayOptions(&o.underlay); }
0
[ "CWE-787" ]
qpdf
d71f05ca07eb5c7cfa4d6d23e5c1f2a800f52e8e
259,983,291,845,008,900,000,000,000,000,000,000,000
4
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 ...
void Item_func::split_sum_func(THD *thd, Ref_ptr_array ref_pointer_array, List<Item> &fields, uint flags) { Item **arg, **arg_end; for (arg= args, arg_end= args+arg_count; arg != arg_end ; arg++) (*arg)->split_sum_func2(thd, ref_pointer_array, fields, arg, ...
0
[ "CWE-120" ]
server
eca207c46293bc72dd8d0d5622153fab4d3fccf1
303,589,684,940,943,700,000,000,000,000,000,000,000
8
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...
NULL, }; static void iscsi_flashnode_conn_release(struct device *dev) { struct iscsi_bus_flash_conn *fnode_conn = iscsi_dev_to_flash_conn(dev); kfree(fnode_conn->ipaddress); kfree(fnode_conn->redirect_ipaddr);
0
[ "CWE-787" ]
linux
ec98ea7070e94cc25a422ec97d1421e28d97b7ee
37,794,196,693,914,720,000,000,000,000,000,000,000
9
scsi: iscsi: Ensure sysfs attributes are limited to PAGE_SIZE As the iSCSI parameters are exported back through sysfs, it should be enforcing that they never are more than PAGE_SIZE (which should be more than enough) before accepting updates through netlink. Change all iSCSI sysfs attributes to use sysfs_emit(). Cc:...
gen_session_key(kdc_realm_t *kdc_active_realm, krb5_kdc_req *req, krb5_db_entry *server, krb5_keyblock *skey, const char **status) { krb5_error_code retval; krb5_enctype useenctype = 0; /* * Some special care needs to be taken in the user-to-user * case, since we d...
0
[ "CWE-476" ]
krb5
d775c95af7606a51bf79547a94fa52ddd1cb7f49
262,979,907,266,601,540,000,000,000,000,000,000,000
35
Fix KDC null deref on TGS inner body null server After the KDC decodes a FAST inner body, it does not check for a null server. Prior to commit 39548a5b17bbda9eeb63625a201cfd19b9de1c5b this would typically result in an error from krb5_unparse_name(), but with the addition of get_local_tgt() it results in a null derefe...
Item *Item_sum_min::copy_or_same(THD* thd) { Item_sum_min *item= new (thd->mem_root) Item_sum_min(thd, this); item->setup_hybrid(thd, args[0], value); return item; }
0
[ "CWE-120" ]
server
eca207c46293bc72dd8d0d5622153fab4d3fccf1
221,004,696,821,704,400,000,000,000,000,000,000,000
6
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 send_space_homebrew(void) { off(); }
0
[ "CWE-416" ]
linux
56cd26b618855c9af48c8301aa6754ced8dd0beb
302,146,124,769,583,220,000,000,000,000,000,000,000
4
media: serial_ir: Fix use-after-free in serial_ir_init_module Syzkaller report this: BUG: KASAN: use-after-free in sysfs_remove_file_ns+0x5f/0x70 fs/sysfs/file.c:468 Read of size 8 at addr ffff8881dc7ae030 by task syz-executor.0/6249 CPU: 1 PID: 6249 Comm: syz-executor.0 Not tainted 5.0.0-rc8+ #3 Hardware name: QEMU...
ms_escher_read_Anchor (MSEscherState *state, MSEscherHeader *h) { /* only needed for clipboard info, like child anchor with dim 100,000 */ return FALSE; }
0
[ "CWE-119" ]
gnumeric
b5480b69345b3c6d56ee0ed9c9e9880bb2a08cdc
262,006,151,757,384,540,000,000,000,000,000,000,000
5
xls: fuzzed file crash.
save_config( struct recvbuf *rbufp, int restrict_mask ) { #ifdef SAVECONFIG static const char savedconfig_eq[] = "savedconfig="; char filespec[128]; char filename[128]; char fullpath[512]; char savedconfig[sizeof(savedconfig_eq) + sizeof(filename)]; time_t now; int fd; FILE *fptr; int prc; size_t reqlen;...
1
[ "CWE-254" ]
ntp
3680c2e4d5f88905ce062c7b43305d610a2c9796
210,800,736,872,807,400,000,000,000,000,000,000,000
164
[Bug 2938] ntpq saveconfig command allows dangerous characters in filenames. - make sure the file does not exist (no overwrite allowed) - ensure text mode where applicable (windows)
SetLedMapField(CompatInfo *info, LedInfo *ledi, const char *field, ExprDef *arrayNdx, ExprDef *value) { bool ok = true; if (istreq(field, "modifiers") || istreq(field, "mods")) { if (arrayNdx) return ReportLedNotArray(info, ledi, field); if (!ExprResolveModMask(info-...
0
[ "CWE-476" ]
libxkbcommon
96df3106d49438e442510c59acad306e94f3db4d
159,560,814,138,401,800,000,000,000,000,000,000,000
97
xkbcomp: Don't crash on no-op modmask expressions If we have an expression of the form 'l1' in an interp section, we unconditionally try to dereference its args, even if it has none. Signed-off-by: Daniel Stone <daniels@collabora.com>
xmlRelaxNGLoadExternalRef(xmlRelaxNGParserCtxtPtr ctxt, const xmlChar * URL, const xmlChar * ns) { xmlRelaxNGDocumentPtr ret = NULL; xmlDocPtr doc; xmlNodePtr root; int i; /* * check against recursion in the stack */ for (i = 0; i < ctxt->docNr; i++) { ...
0
[ "CWE-134" ]
libxml2
502f6a6d08b08c04b3ddfb1cd21b2f699c1b7f5b
272,079,562,301,526,080,000,000,000,000,000,000,000
77
More format string warnings with possible format string vulnerability For https://bugzilla.gnome.org/show_bug.cgi?id=761029 adds a new xmlEscapeFormatString() function to escape composed format strings
sasl_session_find_or_make(const struct sasl_message *const restrict smsg) { struct sasl_session *p; if (! (p = sasl_session_find(smsg->uid))) { p = smalloc(sizeof *p); p->server = smsg->server; (void) mowgli_strlcpy(p->uid, smsg->uid, sizeof p->uid); (void) mowgli_node_add(p, &p->node, &sasl_sessions); }...
0
[ "CWE-287", "CWE-288" ]
atheme
4e664c75d0b280a052eb8b5e81aa41944e593c52
336,313,295,080,062,240,000,000,000,000,000,000,000
16
saslserv/main: Track EID we're pending login to The existing model does not remember that we've sent a SVSLOGIN for a given SASL session, and simply assumes that if a client is introduced with a SASL session open, that session must have succeeded. The security of this approach requires ircd to implicitly abort SASL se...
static int airo_set_freq(struct net_device *dev, struct iw_request_info *info, struct iw_freq *fwrq, char *extra) { struct airo_info *local = dev->ml_priv; int rc = -EINPROGRESS; /* Call commit handler */ /* If setting by frequency, convert to a channel */ if(fwrq->e == 1) { int f = fwrq->m / 100000...
0
[ "CWE-703", "CWE-264" ]
linux
550fd08c2cebad61c548def135f67aba284c6162
157,884,906,928,466,400,000,000,000,000,000,000,000
36
net: Audit drivers to identify those needing IFF_TX_SKB_SHARING cleared After the last patch, We are left in a state in which only drivers calling ether_setup have IFF_TX_SKB_SHARING set (we assume that drivers touching real hardware call ether_setup for their net_devices and don't hold any state in their skbs. There...
static int sctp_sf_check_restart_addrs(const struct sctp_association *new_asoc, const struct sctp_association *asoc, struct sctp_chunk *init, sctp_cmd_seq_t *commands) { struct net *net = sock_net(new_asoc->base.sk); struct sctp_transport *new_addr; int ret = 1; /* Implementor's Gu...
0
[]
linux
196d67593439b03088913227093e374235596e33
317,011,917,907,543,800,000,000,000,000,000,000,000
34
sctp: Add support to per-association statistics via a new SCTP_GET_ASSOC_STATS call The current SCTP stack is lacking a mechanism to have per association statistics. This is an implementation modeled after OpenSolaris' SCTP_GET_ASSOC_STATS. Userspace part will follow on lksctp if/when there is a general ACK on this. ...
static uint16_t nvme_zrm_finish(NvmeNamespace *ns, NvmeZone *zone) { switch (nvme_get_zone_state(zone)) { case NVME_ZONE_STATE_FULL: return NVME_SUCCESS; case NVME_ZONE_STATE_IMPLICITLY_OPEN: case NVME_ZONE_STATE_EXPLICITLY_OPEN: nvme_aor_dec_open(ns); /* fallthrough */ case...
0
[]
qemu
736b01642d85be832385063f278fe7cd4ffb5221
8,929,466,463,404,265,000,000,000,000,000,000,000
21
hw/nvme: fix CVE-2021-3929 This fixes CVE-2021-3929 "locally" by denying DMA to the iomem of the device itself. This still allows DMA to MMIO regions of other devices (e.g. doing P2P DMA to the controller memory buffer of another NVMe device). Fixes: CVE-2021-3929 Reported-by: Qiuhao Li <Qiuhao.Li@outlook.com> Review...
static gint conv_anytodisp(gchar *outbuf, gint outlen, const gchar *inbuf) { gint r = 0; if (conv_anytoutf8(outbuf, outlen, inbuf) < 0) r = -1; if (g_utf8_validate(outbuf, -1, NULL) != TRUE) conv_unreadable_8bit(outbuf); return r; }
0
[ "CWE-119" ]
claws
d390fa07f5548f3173dd9cc13b233db5ce934c82
131,720,731,881,034,360,000,000,000,000,000,000,000
9
Make sure we don't run out of the output buffer. Maybe fixes bug #3557
processDataRcvd(tcps_sess_t *pThis, const char c, struct syslogTime *stTime, const time_t ttGenTime, multi_submit_t *pMultiSub, unsigned *const __restrict__ pnMsgs) { DEFiRet; const tcpLstnParams_t *const cnf_params = pThis->pLstnInfo->cnf_params; ISOBJ_TYPE_assert(pThis, tcps_sess); int iMaxLine = glbl.GetMax...
1
[ "CWE-787" ]
rsyslog
89955b0bcb1ff105e1374aad7e0e993faa6a038f
192,714,599,826,364,100,000,000,000,000,000,000,000
148
net bugfix: potential buffer overrun
virtual const Send_field *get_out_param_info() const { return NULL; }
0
[]
mysql-server
f7316aa0c9a3909fc7498e7b95d5d3af044a7e21
293,449,434,363,342,260,000,000,000,000,000,000,000
2
Bug#26361149 MYSQL SERVER CRASHES AT: COL IN(IFNULL(CONST, COL), NAME_CONST('NAME', NULL)) Backport of Bug#19143243 fix. NAME_CONST item can return NULL_ITEM type in case of incorrect arguments. NULL_ITEM has special processing in Item_func_in function. In Item_func_in::fix_length_and_dec an a...
dissect_kafka_alter_replica_log_dirs_response_topic(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, kafka_api_version_t api_version) { proto_item *subti, *subsubti; proto_tree *subtree, *subsubtree; int topic_start, topic_len; subtree =...
0
[ "CWE-401" ]
wireshark
f4374967bbf9c12746b8ec3cd54dddada9dd353e
229,219,600,770,587,850,000,000,000,000,000,000,000
23
Kafka: Limit our decompression size. Don't assume that the Internet has our best interests at heart when it gives us the size of our decompression buffer. Assign an arbitrary limit of 50 MB. This fixes #16739 in that it takes care of ** (process:17681): WARNING **: 20:03:07.440: Dissector bug, protocol Kafka, in pac...
static void calc_load_account_idle(struct rq *this_rq) { }
0
[ "CWE-703", "CWE-835" ]
linux
f26f9aff6aaf67e9a430d16c266f91b13a5bff64
81,546,575,876,625,410,000,000,000,000,000,000,000
3
Sched: fix skip_clock_update optimization idle_balance() drops/retakes rq->lock, leaving the previous task vulnerable to set_tsk_need_resched(). Clear it after we return from balancing instead, and in setup_thread_stack() as well, so no successfully descheduled or never scheduled task has it set. Need resched confus...
copyin_link(struct cpio_file_stat *file_hdr, int in_file_des) { char *link_name = NULL; /* Name of hard and symbolic links. */ int res; /* Result of various function calls. */ if (archive_format != arf_tar && archive_format != arf_ustar) { if (to_stdout_option) { tape_toss_input (...
1
[]
cpio
746f3ff670dcfcdd28fcc990e79cd6fccc7ae48d
127,721,149,805,995,400,000,000,000,000,000,000,000
50
Fix memory overrun on reading improperly created link records. See http://lists.gnu.org/archive/html/bug-cpio/2014-11/msg00007.html * src/copyin.c (get_link_name): New function. (list_file, copyin_link): use get_link_name * tests/symlink-bad-length.at: New file. * tests/symlink-long.at: New file. * tests/Makefile.am...
static inline int parse_value_and_bound( const string &input, int &output, const long lower_bound, const long upper_bound, const long default_val) { if (!input.empty()) { char *endptr; output = strtol(input.c_str(), &endptr, 10); if (endptr) { if (endptr == input.c_str()) return ...
0
[ "CWE-770" ]
ceph
ab29bed2fc9f961fe895de1086a8208e21ddaddc
338,897,518,506,030,770,000,000,000,000,000,000,000
30
rgw: fix issues with 'enforce bounds' patch The patch to enforce bounds on max-keys/max-uploads/max-parts had a few issues that would prevent us from compiling it. Instead of changing the code provided by the submitter, we're addressing them in a separate commit to maintain the DCO. Signed-off-by: Joao Eduardo Luis <...
ZEND_VM_HANDLER(83, ZEND_FETCH_W, CONST|TMPVAR|CV, UNUSED, VAR_FETCH) { ZEND_VM_DISPATCH_TO_HELPER(zend_fetch_var_address_helper, type, BP_VAR_W); }
0
[ "CWE-787" ]
php-src
f1ce8d5f5839cb2069ea37ff424fb96b8cd6932d
246,092,547,850,746,630,000,000,000,000,000,000,000
4
Fix #73122: Integer Overflow when concatenating strings We must avoid integer overflows in memory allocations, so we introduce an additional check in the VM, and bail out in the rare case of an overflow. Since the recent fix for bug #74960 still doesn't catch all possible overflows, we fix that right away.
insertEmphasisEnd(const EmphasisInfo *buffer, const int at, const EmphRuleNumber emphRule, const EmphasisClass class, const TranslationTableHeader *table, int pos, const InString *input, OutString *output, int *posMapping, int *cursorPosition, int *cursorStatus) { if (buffer[at].end & class) { const Translatio...
0
[ "CWE-125" ]
liblouis
5e4089659bb49b3095fa541fa6387b4c40d7396e
201,726,940,032,385,800,000,000,000,000,000,000,000
29
Fix a buffer overflow Fixes #635 Thanks to HongxuChen for reporting it
static int reencrypt_activate_hotzone_device(struct crypt_device *cd, const char *name, uint64_t device_size, uint32_t flags) { int r; uint64_t new_offset = reencrypt_get_data_offset_new(crypt_get_hdr(cd, CRYPT_LUKS2)) >> SECTOR_SHIFT; struct crypt_dm_active_device dmd = { .flags = flags, .uuid = crypt_get_uuid...
0
[ "CWE-345" ]
cryptsetup
0113ac2d889c5322659ad0596d4cfc6da53e356c
325,687,327,840,413,300,000,000,000,000,000,000,000
28
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 void tcp_add_reno_sack(struct sock *sk) { struct tcp_sock *tp = tcp_sk(sk); u32 prior_sacked = tp->sacked_out; tp->sacked_out++; tcp_check_reno_reordering(sk, 0); if (tp->sacked_out > prior_sacked) tp->delivered++; /* Some out-of-order packet is delivered */ tcp_verify_left_out(tp); }
0
[ "CWE-200" ]
net
75ff39ccc1bd5d3c455b6822ab09e533c551f758
204,562,143,899,066,000,000,000,000,000,000,000,000
11
tcp: make challenge acks less predictable Yue Cao claims that current host rate limiting of challenge ACKS (RFC 5961) could leak enough information to allow a patient attacker to hijack TCP sessions. He will soon provide details in an academic paper. This patch increases the default limit from 100 to 1000, and adds s...
bool MACH0_(is_pie)(struct MACH0_(obj_t) * bin) { return (bin && bin->hdr.filetype == MH_EXECUTE && bin->hdr.flags & MH_PIE); }
0
[ "CWE-787" ]
rizin
348b1447d1452f978b69631d6de5b08dd3bdf79d
60,315,003,987,391,650,000,000,000,000,000,000,000
3
fix #2956 - oob write in mach0.c
tsize_t t2p_write_pdf_trailer(T2P* t2p, TIFF* output) { tsize_t written = 0; char buffer[32]; int buflen = 0; size_t i = 0; for (i = 0; i < sizeof(t2p->pdf_fileid) - 8; i += 8) snprintf(t2p->pdf_fileid + i, 9, "%.8X", rand()); written += t2pWriteFile(output, (tdata_t) "trailer\n<<\n/Size ", 17); buflen = sn...
0
[ "CWE-787" ]
libtiff
7be2e452ddcf6d7abca88f41d3761e6edab72b22
102,674,366,197,253,070,000,000,000,000,000,000,000
37
tiff2pdf.c: properly calculate datasize when saving to JPEG YCbCr fixes #220
xmlGetLineNo(const xmlNode *node) { return(xmlGetLineNoInternal(node, 0)); }
0
[ "CWE-20" ]
libxml2
bdd66182ef53fe1f7209ab6535fda56366bd7ac9
28,374,010,793,761,135,000,000,000,000,000,000,000
4
Avoid building recursive entities For https://bugzilla.gnome.org/show_bug.cgi?id=762100 When we detect a recusive entity we should really not build the associated data, moreover if someone bypass libxml2 fatal errors and still tries to serialize a broken entity make sure we don't risk to get ito a recursion * parser...
static int disk_error(__G) __GDEF { /* OK to use slide[] here because this file is finished regardless */ Info(slide, 0x4a1, ((char *)slide, LoadFarString(DiskFullQuery), FnFilter1(G.filename))); #ifndef WINDLL fgets(G.answerbuf, sizeof(G.answerbuf), stdin); if (*G.answerbuf == 'y') /* stop...
0
[ "CWE-400" ]
unzip
41beb477c5744bc396fa1162ee0c14218ec12213
11,418,920,143,215,981,000,000,000,000,000,000,000
18
Fix bug in undefer_input() that misplaced the input state.
void dump_xml(Formatter *f) const { encode_xml("DeleteMarkerReplication", delete_marker_replication, f); encode_xml("Source", source, f); encode_xml("Destination", destination, f); encode_xml("Filter", filter, f); encode_xml("ID", id, f); encode_xml("Priority", priority, f); ...
0
[ "CWE-79" ]
ceph
8f90658c731499722d5f4393c8ad70b971d05f77
285,480,756,689,946,180,000,000,000,000,000,000,000
9
rgw: reject unauthenticated response-header actions Signed-off-by: Matt Benjamin <mbenjamin@redhat.com> Reviewed-by: Casey Bodley <cbodley@redhat.com> (cherry picked from commit d8dd5e513c0c62bbd7d3044d7e2eddcd897bd400)
void edge_sparse_csr_reader_double( const char* i_csr_file_in, unsigned int** o_row_idx, unsigned int** o_column_idx, double** o_values, un...
1
[ "CWE-119", "CWE-787" ]
libxsmm
151481489192e6d1997f8bde52c5c425ea41741d
216,526,150,583,898,360,000,000,000,000,000,000,000
109
Issue #287: made CSR/CSC readers more robust against invalid input (case #1).
GF_Err HintFile(GF_ISOFile *file, u32 MTUSize, u32 max_ptime, u32 rtp_rate, u32 base_flags, Bool copy_data, Bool interleave, Bool regular_iod, Bool single_group, Bool hint_no_offset) { GF_ESD *esd; GF_InitialObjectDescriptor *iod; u32 i, val, res, streamType; u32 sl_mode, prev_ocr, single_ocr, nb_done, tot_bw, bw,...
0
[ "CWE-787" ]
gpac
4e56ad72ac1afb4e049a10f2d99e7512d7141f9d
34,395,238,840,812,915,000,000,000,000,000,000,000
174
fixed #2216
static int io_timeout(struct io_kiocb *req) { struct io_ring_ctx *ctx = req->ctx; struct io_timeout_data *data = &req->io->timeout; struct list_head *entry; u32 tail, off = req->timeout.off; spin_lock_irq(&ctx->completion_lock); /* * sqe->off holds how many events that need to occur for this * timeout event...
0
[]
linux
0f2122045b946241a9e549c2a76cea54fa58a7ff
249,091,630,841,726,000,000,000,000,000,000,000,000
43
io_uring: don't rely on weak ->files references Grab actual references to the files_struct. To avoid circular references issues due to this, we add a per-task note that keeps track of what io_uring contexts a task has used. When the tasks execs or exits its assigned files, we cancel requests based on this tracking. W...
CImgDisplay& assign(const CImgDisplay &disp) { _no_display_exception(); return assign(disp._width,disp._height); }
0
[ "CWE-770" ]
cimg
619cb58dd90b4e03ac68286c70ed98acbefd1c90
80,041,911,033,980,340,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.
static void* transport_client_thread(void* arg) { DWORD status; DWORD nCount; HANDLE events[32]; freerdp* instance; rdpContext* context; rdpTransport* transport; TerminateEventArgs e; transport = (rdpTransport*) arg; instance = (freerdp*) transport->settings->instance; context = instance->context; while (1...
0
[ "CWE-476", "CWE-125" ]
FreeRDP
0773bb9303d24473fe1185d85a424dfe159aff53
332,931,675,801,783,200,000,000,000,000,000,000,000
42
nla: invalidate sec handle after creation If sec pointer isn't invalidated after creation it is not possible to check if the upper and lower pointers are valid. This fixes a segfault in the server part if the client disconnects before the authentication was finished.
static int ssl_parse_certificate_verify( ssl_context *ssl ) { int ret; size_t n = 0, n1, n2; unsigned char hash[48]; int hash_id; unsigned int hashlen; SSL_DEBUG_MSG( 2, ( "=> parse certificate verify" ) ); if( ssl->session_negotiate->peer_cert == NULL ) { SSL_DEBUG_MSG( 2, ( "...
1
[ "CWE-310" ]
polarssl
43f9799ce61c6392a014d0a2ea136b4b3a9ee194
3,224,737,290,986,507,000,000,000,000,000,000,000
92
RSA blinding on CRT operations to counter timing attacks
static void oz_usb_handle_ep_data(struct oz_usb_ctx *usb_ctx, struct oz_usb_hdr *usb_hdr, int len) { struct oz_data *data_hdr = (struct oz_data *)usb_hdr; switch (data_hdr->format) { case OZ_DATA_F_MULTIPLE_FIXED: { struct oz_multiple_fixed *body = (struct oz_multiple_fixed *)data_hdr; u8 *data = body->d...
0
[ "CWE-119", "CWE-787" ]
linux
9a59029bc218b48eff8b5d4dde5662fd79d3e1a8
27,381,233,880,691,940,000,000,000,000,000,000,000
45
ozwpan: unchecked signed subtraction leads to DoS The subtraction here was using a signed integer and did not have any bounds checking at all. This commit adds proper bounds checking, made easy by use of an unsigned integer. This way, a single packet won't be able to remotely trigger a massive loop, locking up the sys...
static void printMAPOpcodeVersion2(const uint8_t *buf) { char map_addr[INET6_ADDRSTRLEN]; syslog(LOG_DEBUG, "PCP MAP: v2 Opcode specific information."); syslog(LOG_DEBUG, "MAP nonce: \t%08x%08x%08x", READNU32(buf), READNU32(buf+4), READNU32(buf+8)); syslog(LOG_DEBUG, "MAP protocol:\t%d", (int)buf[12]); s...
0
[ "CWE-476" ]
miniupnp
cb8a02af7a5677cf608e86d57ab04241cf34e24f
163,027,045,144,838,430,000,000,000,000,000,000,000
12
pcpserver.c: copyIPv6IfDifferent() check for NULL src argument
Item_cache* get_cache(THD *thd) const { return type_handler()->Item_get_cache(thd, this); }
0
[ "CWE-617" ]
server
807945f2eb5fa22e6f233cc17b85a2e141efe2c8
228,921,579,533,763,680,000,000,000,000,000,000,000
4
MDEV-26402: A SEGV in Item_field::used_tables/update_depend_map_for_order... When doing condition pushdown from HAVING into WHERE, Item_equal::create_pushable_equalities() calls item->set_extraction_flag(IMMUTABLE_FL) for constant items. Then, Item::cleanup_excluding_immutables_processor() checks for this flag to see ...
int copy_creds(struct task_struct *p, unsigned long clone_flags) { #ifdef CONFIG_KEYS struct thread_group_cred *tgcred; #endif struct cred *new; int ret; mutex_init(&p->cred_guard_mutex); if ( #ifdef CONFIG_KEYS !p->cred->thread_keyring && #endif clone_flags & CLONE_THREAD ) { p->real_cred = get_cred(...
0
[]
linux-2.6
ee18d64c1f632043a02e6f5ba5e045bb26a5465f
243,281,047,762,106,400,000,000,000,000,000,000,000
75
KEYS: Add a keyctl to install a process's session keyring on its parent [try #6] Add a keyctl to install a process's session keyring onto its parent. This replaces the parent's session keyring. Because the COW credential code does not permit one process to change another process's credentials directly, the change is...
unsigned long long task_sched_runtime(struct task_struct *p) { unsigned long flags; struct rq *rq; u64 ns = 0; #if defined(CONFIG_64BIT) && defined(CONFIG_SMP) /* * 64-bit doesn't need locks to atomically read a 64bit value. * So we have a optimization chance when the task's delta_exec is 0. * Reading ->on_c...
0
[ "CWE-200" ]
linux
4efbc454ba68def5ef285b26ebfcfdb605b52755
172,882,170,010,614,800,000,000,000,000,000,000,000
26
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 ...
m_authenticate(struct Client *client_p, struct Client *source_p, int parc, const char *parv[]) { struct Client *agent_p = NULL; struct Client *saslserv_p = NULL; /* They really should use CAP for their own sake. */ if(!IsCapable(source_p, CLICAP_SASL)) return 0; if (strlen(client_p->id) == 3) { exit_client...
0
[ "CWE-703", "CWE-285" ]
charybdis
818a3fda944b26d4814132cee14cfda4ea4aa824
829,738,390,906,949,300,000,000,000,000,000,000
76
SASL: Disallow beginning : and space anywhere in AUTHENTICATE parameter This is a FIX FOR A SECURITY VULNERABILITY. All Charybdis users must apply this fix if you support SASL on your servers, or unload m_sasl.so in the meantime.
int sftp_reply_names(sftp_client_message msg) { ssh_buffer out; out = ssh_buffer_new(); if (out == NULL) { SSH_BUFFER_FREE(msg->attrbuf); return -1; } if (ssh_buffer_add_u32(out, msg->id) < 0 || ssh_buffer_add_u32(out, htonl(msg->attr_num)) < 0 || ssh_buffer_add_data(out, ssh_buffer_get(...
0
[ "CWE-476" ]
libssh-mirror
533d881b0f4b24c72b35ecc97fa35d295d063e53
220,408,887,943,965,180,000,000,000,000,000,000,000
27
sftpserver: Add missing NULL check for ssh_buffer_new() Thanks to Ramin Farajpour Cami for spotting this. Fixes T232 Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
int dtls1_check_timeout_num(SSL *s) { unsigned int mtu; s->d1->timeout.num_alerts++; /* Reduce MTU after 2 unsuccessful retransmissions */ if (s->d1->timeout.num_alerts > 2 && !(SSL_get_options(s) & SSL_OP_NO_QUERY_MTU)) { mtu = BIO_ctrl(SSL_get_wbio(s), BIO_CTRL_DGRAM_GET_...
0
[]
openssl
819418110b6fff4a7b96f01a5d68f71df3e3b736
241,539,745,774,922,040,000,000,000,000,000,000,000
24
Fix Seg fault in DTLSv1_listen The DTLSv1_listen function is intended to be stateless and processes the initial ClientHello from many peers. It is common for user code to loop over the call to DTLSv1_listen until a valid ClientHello is received with an associated cookie. A defect in the implementation of DTLSv1_listen...
ast_for_decorators(struct compiling *c, const node *n) { asdl_seq* decorator_seq; expr_ty d; int i; REQ(n, decorators); decorator_seq = _Py_asdl_seq_new(NCH(n), c->c_arena); if (!decorator_seq) return NULL; for (i = 0; i < NCH(n); i++) { d = ast_for_decorator(c, CHILD(n, i)...
0
[ "CWE-125" ]
cpython
a4d78362397fc3bced6ea80fbc7b5f4827aec55e
18,582,150,856,926,200,000,000,000,000,000,000,000
19
bpo-36495: Fix two out-of-bounds array reads (GH-12641) Research and fix by @bradlarsen.
email_developers_open(const char *subject) { char *tmp; FILE *mailer; /* ** According to the docs, if CONDOR_DEVELOPERS is not ** in the config file, it defaults to UW. If it is "NONE", ** nothing should be emailed. */ tmp = param ("CONDOR_DEVELOPERS"); if (tmp == NULL) { /* we strdup here since we...
0
[]
htcondor
e891cea9970496aac74caf72604475a2b7e6a0ca
238,871,343,103,383,000,000,000,000,000,000,000,000
31
Update command line flags for modern /bin/mail and add option to use sendmail. #4764
static UINT printer_process_irp(PRINTER_DEVICE* printer_dev, IRP* irp) { UINT error; switch (irp->MajorFunction) { case IRP_MJ_CREATE: if ((error = printer_process_irp_create(printer_dev, irp))) { WLog_ERR(TAG, "printer_process_irp_create failed with error %" PRIu32 "!", error); return error; } ...
0
[ "CWE-125" ]
FreeRDP
6b485b146a1b9d6ce72dfd7b5f36456c166e7a16
155,525,892,514,423,750,000,000,000,000,000,000,000
51
Fixed oob read in irp_write and similar
zend_bool php_std_auto_global_callback(char *name, uint name_len TSRMLS_DC) { zend_printf("%s\n", name); return 0; /* don't rearm */ }
0
[]
php-src
8d1099ac0574f3a42036085641c2df03a1d5f731
213,389,957,011,206,460,000,000,000,000,000,000,000
5
duplicate value's string for the SAPI filter reported by sesser; tyrael, do you take care of the bug/NEWS?
display_debug_lines_decoded (struct dwarf_section * section, unsigned char * start, unsigned char * data, unsigned char * end, void * fileptr) { static DWARF2_Internal_LineInfo saved_linfo; introduce (section, false); while (data < end) ...
0
[ "CWE-269" ]
binutils-gdb
e98e7d9a70dcc987bff0e925f20b78cd4a2979ed
294,838,035,418,162,140,000,000,000,000,000,000,000
766
Fix NULL pointer indirection when parsing corrupt DWARF data. PR 29290 * dwarf.c (read_and_display_attr_value): Check that debug_info_p is set before dereferencing it.
static int printer_func_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl) { struct printer_dev *dev = func_to_printer(f); struct usb_composite_dev *cdev = f->config->cdev; struct usb_request *req = cdev->req; u8 *buf = req->buf; int value = -EOPNOTSUPP; u16 wIndex = le16_to_cpu(ctrl->wInde...
0
[ "CWE-416" ]
linux
e8d5f92b8d30bb4ade76494490c3c065e12411b1
277,572,589,820,086,530,000,000,000,000,000,000,000
79
usb: gadget: function: printer: fix use-after-free in __lock_acquire Fix this by increase object reference count. BUG: KASAN: use-after-free in __lock_acquire+0x3fd4/0x4180 kernel/locking/lockdep.c:3831 Read of size 8 at addr ffff8880683b0018 by task syz-executor.0/3377 CPU: 1 PID: 3377 Comm: syz-executor.0 Not tain...
static int kvm_clear_dirty_log_protect(struct kvm *kvm, struct kvm_clear_dirty_log *log) { struct kvm_memslots *slots; struct kvm_memory_slot *memslot; int as_id, id; gfn_t offset; unsigned long i, n; unsigned long *dirty_bitmap; unsigned long *dirty_bitmap_buffer; bool flush; as_id = log->slot >> ...
0
[ "CWE-416" ]
linux
0774a964ef561b7170d8d1b1bfe6f88002b6d219
325,373,502,086,968,730,000,000,000,000,000,000,000
71
KVM: Fix out of range accesses to memslots Reset the LRU slot if it becomes invalid when deleting a memslot to fix an out-of-bounds/use-after-free access when searching through memslots. Explicitly check for there being no used slots in search_memslots(), and in the caller of s390's approximation variant. Fixes: 369...
void test_nghttp2_session_send_push_promise(void) { nghttp2_session *session; nghttp2_session_callbacks callbacks; nghttp2_outbound_item *item; nghttp2_frame *frame; nghttp2_stream *stream; nghttp2_settings_entry iv; my_user_data ud; nghttp2_mem *mem; mem = nghttp2_mem_default(); memset(&callbacks,...
0
[]
nghttp2
0a6ce87c22c69438ecbffe52a2859c3a32f1620f
241,997,742,871,322,800,000,000,000,000,000,000,000
83
Add nghttp2_option_set_max_outbound_ack
PHP_METHOD(Phar, copy) { char *oldfile, *newfile, *error; const char *pcr_error; size_t oldfile_len, newfile_len; phar_entry_info *oldentry, newentry = {0}, *temp; int tmp_len = 0; PHAR_ARCHIVE_OBJECT(); if (zend_parse_parameters(ZEND_NUM_ARGS(), "pp", &oldfile, &oldfile_len, &newfile, &newfile_len) == FAILURE...
0
[ "CWE-281" ]
php-src
e5c95234d87fcb8f6b7569a96a89d1e1544749a6
141,355,443,639,162,790,000,000,000,000,000,000,000
99
Fix bug #79082 - Files added to tar with Phar::buildFromIterator have all-access permissions
GF_Err pssh_box_size(GF_Box *s) { GF_ProtectionSystemHeaderBox *ptr = (GF_ProtectionSystemHeaderBox*)s; if (ptr->KID_count && !ptr->version) { ptr->version = 1; } ptr->size += 16; if (ptr->version) ptr->size += 4 + 16*ptr->KID_count; ptr->size += 4 + (ptr->private_data ? ptr->private_data_size : 0); return G...
0
[ "CWE-703" ]
gpac
f19668964bf422cf5a63e4dbe1d3c6c75edadcbb
149,468,803,994,446,920,000,000,000,000,000,000,000
13
fixed #1879
static void complete_nread_binary(conn *c) { assert(c != NULL); assert(c->cmd >= 0); switch(c->substate) { case bin_reading_set_header: if (c->cmd == PROTOCOL_BINARY_CMD_APPEND || c->cmd == PROTOCOL_BINARY_CMD_PREPEND) { process_bin_append_prepend(c); } else ...
0
[ "CWE-189" ]
memcached
6695ccbc525c36d693aaa3e8337b36aa0c784424
189,616,922,298,834,470,000,000,000,000,000,000,000
45
Fix segfault on specially crafted packet.
bool HeaderUtility::headerNameContainsUnderscore(const absl::string_view header_name) { return header_name.find('_') != absl::string_view::npos; }
0
[]
envoy
2c60632d41555ec8b3d9ef5246242be637a2db0f
286,565,871,985,263,430,000,000,000,000,000,000,000
3
http: header map security fixes for duplicate headers (#197) Previously header matching did not match on all headers for non-inline headers. This patch changes the default behavior to always logically match on all headers. Multiple individual headers will be logically concatenated with ',' similar to what is done with...
bool Item::check_type_scalar(const char *opname) const { /* fixed==true usually means than the Item has an initialized and reliable data type handler and attributes. Item_outer_ref is an exception. It copies the data type and the attributes from the referenced Item in the constructor, but then sets "f...
0
[ "CWE-416" ]
server
c02ebf3510850ba78a106be9974c94c3b97d8585
248,090,675,427,391,100,000,000,000,000,000,000,000
18
MDEV-24176 Preparations 1. moved fix_vcol_exprs() call to open_table() mysql_alter_table() doesn't do lock_tables() so it cannot win from fix_vcol_exprs() from there. Tests affected: main.default_session 2. Vanilla cleanups and comments.
get_current_reader (void) { struct vreader_s *vr; /* We only support one reader for now. */ vr = &vreader_table[0]; /* Initialize the vreader item if not yet done. */ if (!vr->valid) { vr->slot = -1; vr->valid = 1; } /* Try to open the reader. */ if (vr->slot == -1) { vr-...
0
[]
gnupg
b0b3803e8c2959dd67ca96debc54b5c6464f0d41
296,545,161,698,418,330,000,000,000,000,000,000,000
30
scd: Avoid double-free on error condition in scd * scd/command.c (cmd_readkey): avoid double-free of cert -- When ksba_cert_new() fails, cert will be double-freed. Debian-Bug-Id: 773471 Original patch changed by wk to do the free only at leave.
void stralgoCommand(client *c) { /* Select the algorithm. */ if (!strcasecmp(c->argv[1]->ptr,"lcs")) { stralgoLCS(c); } else { addReplyErrorObject(c,shared.syntaxerr); } }
0
[ "CWE-190" ]
redis
92e3b1802f72ca0c5b0bde97f01d9b57a758d85c
13,784,307,551,144,888,000,000,000,000,000,000,000
8
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)
long ssl3_ctx_callback_ctrl(SSL_CTX *ctx, int cmd, void (*fp)(void)) { CERT *cert; cert=ctx->cert; switch (cmd) { #ifndef OPENSSL_NO_RSA case SSL_CTRL_SET_TMP_RSA_CB: { cert->rsa_tmp_cb = (RSA *(*)(SSL *, int, int))fp; } break; #endif #ifndef OPENSSL_NO_DH case SSL_CTRL_SET_TMP_DH_CB: { cert->dh_t...
0
[]
openssl
edc032b5e3f3ebb1006a9c89e0ae00504f47966f
80,609,090,484,643,800,000,000,000,000,000,000,000
80
Add SRP support.
static size_t tok_strlen(const char *str) { return strnlen(str, MAX_TEXT+1); }
0
[]
nasm
6299a3114ce0f3acd55d07de201a8ca2f0a83059
36,713,461,552,470,825,000,000,000,000,000,000,000
4
BR 3392708: fix NULL pointer reference for invalid %stacksize After issuing an error message for a missing %stacksize argument, need to quit rather than continuing to try to access the pointer. Fold uses of tok_text() while we are at it. Reported-by: Suhwan <prada960808@gmail.com> Signed-off-by: H. Peter Anvin (Inte...
list_node_free_not_car(Node* node) { Node* next_node; start: if (IS_NULL(node)) return; next_node = NODE_CDR(node); xfree(node); node = next_node; goto start; }
0
[ "CWE-476" ]
oniguruma
850bd9b0d8186eb1637722b46b12656814ab4ad2
79,221,430,838,164,555,000,000,000,000,000,000,000
12
fix #87: Read unknown address in onig_error_code_to_str()
static void unpack_3(const uint8_t b[3], uint16_t s[16]) { int i; s[0] = (b[0] << 8) | b[1]; if (s[0] & 0x8000) s[0] &= 0x7fff; else s[0] = ~s[0]; for (i = 1; i < 16; i++) s[i] = s[0]; }
0
[ "CWE-787" ]
FFmpeg
b0a8b40294ea212c1938348ff112ef1b9bf16bb3
22,970,215,262,982,770,000,000,000,000,000,000,000
14
avcodec/exr: skip bottom clearing loop when its outside the image Fixes: signed integer overflow: 1633771809 * 32960 cannot be represented in type 'int' Fixes: 26532/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_EXR_fuzzer-5613925708857344 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tr...
check_CLEAR_ACTIONS(const struct ofpact_null *a OVS_UNUSED, const struct ofpact_check_params *cp OVS_UNUSED) { return 0; }
0
[ "CWE-416" ]
ovs
77cccc74deede443e8b9102299efc869a52b65b2
148,218,315,448,967,940,000,000,000,000,000,000,000
5
ofp-actions: Fix use-after-free while decoding RAW_ENCAP. While decoding RAW_ENCAP action, decode_ed_prop() might re-allocate ofpbuf if there is no enough space left. However, function 'decode_NXAST_RAW_ENCAP' continues to use old pointer to 'encap' structure leading to write-after-free and incorrect decoding. ==3...