func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
void testPervertedQueryString() { helperTestQueryString("http://example.org/?&&=&&&=&&&&==&===&====", 5); }
0
[ "CWE-787" ]
uriparser
864f5d4c127def386dd5cc926ad96934b297f04e
296,256,685,474,661,120,000,000,000,000,000,000,000
3
UriQuery.c: Fix out-of-bounds-write in ComposeQuery and ...Ex Reported by Google Autofuzz team
void RECORD_LAYER_clear(RECORD_LAYER *rl) { unsigned int pipes; rl->rstate = SSL_ST_READ_HEADER; /* * Do I need to clear read_ahead? As far as I can tell read_ahead did not * previously get reset by SSL_clear...so I'll keep it that way..but is * that right? */ rl->packet = NULL; ...
0
[ "CWE-20" ]
openssl
63658103d4441924f8dbfc517b99bb54758a98b9
204,956,983,017,809,400,000,000,000,000,000,000,000
37
Fix a hang with SSL_peek() If while calling SSL_peek() we read an empty record then we go into an infinite loop, continually trying to read data from the empty record and never making any progress. This could be exploited by a malicious peer in a Denial Of Service attack. CVE-2016-6305 GitHub Issue #1563 Reviewed-b...
R_API ut64 r_bin_java_annotation_calc_size(RBinJavaAnnotation *annotation) { ut64 sz = 0; RListIter *iter, *iter_tmp; RBinJavaElementValuePair *ev_pairs = NULL; if (!annotation) { // TODO eprintf allocation fail return sz; } // annotation->type_idx = R_BIN_JAVA_USHORT (buffer, offset); sz += 2; // annotatio...
0
[ "CWE-125" ]
radare2
e9ce0d64faf19fa4e9c260250fbdf25e3c11e152
62,389,555,382,559,690,000,000,000,000,000,000,000
19
Fix #10498 - Fix crash in fuzzed java files (#10511)
inline char32_t decode_codepoint(const char *s8, size_t l) { char32_t out = 0; decode_codepoint(s8, l, out); return out; }
0
[ "CWE-125" ]
cpp-peglib
b3b29ce8f3acf3a32733d930105a17d7b0ba347e
242,508,951,945,634,940,000,000,000,000,000,000,000
5
Fix #122
static int mov_read_fiel(MOVContext *c, AVIOContext *pb, MOVAtom atom) { AVStream *st; unsigned mov_field_order; enum AVFieldOrder decoded_field_order = AV_FIELD_UNKNOWN; if (c->fc->nb_streams < 1) // will happen with jp2 files return 0; st = c->fc->streams[c->fc->nb_streams-1]; if (ato...
0
[ "CWE-703" ]
FFmpeg
c953baa084607dd1d84c3bfcce3cf6a87c3e6e05
100,139,250,375,712,880,000,000,000,000,000,000,000
33
avformat/mov: Check count sums in build_open_gop_key_points() Fixes: ffmpeg.md Fixes: Out of array access Fixes: CVE-2022-2566 Found-by: Andy Nguyen <theflow@google.com> Found-by: 3pvd <3pvd@google.com> Reviewed-by: Andy Nguyen <theflow@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
static int ZEND_FASTCALL ZEND_INIT_ARRAY_SPEC_UNUSED_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS) { zend_op *opline = EX(opline); array_init(&EX_T(opline->result.u.var).tmp_var); if (IS_UNUSED == IS_UNUSED) { ZEND_VM_NEXT_OPCODE(); #if 0 || IS_UNUSED != IS_UNUSED } else { return ZEND_ADD_ARRAY_ELEMENT_SPEC_UNUSED...
0
[]
php-src
ce96fd6b0761d98353761bf78d5bfb55291179fd
109,421,710,118,845,880,000,000,000,000,000,000,000
13
- 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 kvm_mmu_notifier_clear_young(struct mmu_notifier *mn, struct mm_struct *mm, unsigned long start, unsigned long end) { trace_kvm_age_hva(start, end); /* * Even though we do not flush TLB, this will still adversely * affect performance on pre-Haswell Intel EPT, where there is * no EPT ...
0
[ "CWE-459" ]
linux
683412ccf61294d727ead4a73d97397396e69a6b
212,185,260,347,408,480,000,000,000,000,000,000,000
22
KVM: SEV: add cache flush to solve SEV cache incoherency issues Flush the CPU caches when memory is reclaimed from an SEV guest (where reclaim also includes it being unmapped from KVM's memslots). Due to lack of coherency for SEV encrypted memory, failure to flush results in silent data corruption if userspace is mal...
ex_at(exarg_T *eap) { int c; int prev_len = typebuf.tb_len; curwin->w_cursor.lnum = eap->line2; check_cursor_col(); #ifdef USE_ON_FLY_SCROLL dont_scroll = TRUE; // disallow scrolling here #endif // get the register name. No name means to use the previous one c = *eap->arg; if (c =...
0
[ "CWE-122" ]
vim
35a319b77f897744eec1155b736e9372c9c5575f
74,902,420,362,020,420,000,000,000,000,000,000,000
39
patch 8.2.3489: ml_get error after search with range Problem: ml_get error after search with range. Solution: Limit the line number to the buffer line count.
static int hso_get_activity(struct hso_device *hso_dev) { if (hso_dev->usb->state == USB_STATE_SUSPENDED) { if (!hso_dev->is_active) { hso_dev->is_active = 1; schedule_work(&hso_dev->async_get_intf); } } if (hso_dev->usb->state != USB_STATE_CONFIGURED) return -EAGAIN; usb_mark_last_busy(hso_dev->usb);...
0
[ "CWE-125" ]
linux
5146f95df782b0ac61abde36567e718692725c89
260,705,757,178,688,900,000,000,000,000,000,000,000
16
USB: hso: Fix OOB memory access in hso_probe/hso_get_config_data The function hso_probe reads if_num from the USB device (as an u8) and uses it without a length check to index an array, resulting in an OOB memory read in hso_probe or hso_get_config_data. Add a length check for both locations and updated hso_probe to ...
WindowsServiceControl::WindowsServiceControl( const QString& name ) : m_name( name ), m_serviceManager( nullptr ), m_serviceHandle( nullptr ) { m_serviceManager = OpenSCManager( nullptr, nullptr, SC_MANAGER_ALL_ACCESS ); if( m_serviceManager ) { m_serviceHandle = OpenService( m_serviceManager, WindowsCoreFunct...
0
[ "CWE-428", "CWE-295" ]
veyon
f231ec511b9a09f43f49b2c7bb7c60b8046276b1
71,082,278,082,709,960,000,000,000,000,000,000,000
21
WindowsServiceControl: quote service binary path Fix unquoted service path vulnerability. Closes #657.
static void inode_tree_add(struct inode *inode) { struct btrfs_root *root = BTRFS_I(inode)->root; struct btrfs_inode *entry; struct rb_node **p; struct rb_node *parent; struct rb_node *new = &BTRFS_I(inode)->rb_node; u64 ino = btrfs_ino(inode); if (inode_unhashed(inode)) return; parent = NULL; spin_lock(&ro...
0
[ "CWE-200" ]
linux
0305cd5f7fca85dae392b9ba85b116896eb7c1c7
317,976,522,641,648,220,000,000,000,000,000,000,000
35
Btrfs: fix truncation of compressed and inlined extents When truncating a file to a smaller size which consists of an inline extent that is compressed, we did not discard (or made unusable) the data between the new file size and the old file size, wasting metadata space and allowing for the truncated data to be leaked...
enum_vcol_info_type get_vcol_type() const { return vcol_type; }
0
[ "CWE-416", "CWE-703" ]
server
08c7ab404f69d9c4ca6ca7a9cf7eec74c804f917
54,985,683,571,561,250,000,000,000,000,000,000,000
4
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 struct sock *rose_make_new(struct sock *osk) { struct sock *sk; struct rose_sock *rose, *orose; if (osk->sk_type != SOCK_SEQPACKET) return NULL; sk = sk_alloc(sock_net(osk), PF_ROSE, GFP_ATOMIC, &rose_proto); if (sk == NULL) return NULL; rose = rose_sk(sk); sock_init_data(NULL, sk); skb_queue_he...
0
[ "CWE-200" ]
linux-2.6
17ac2e9c58b69a1e25460a568eae1b0dc0188c25
75,756,857,788,043,910,000,000,000,000,000,000,000
45
rose: Fix rose_getname() leak rose_getname() can leak kernel memory to user. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
scanner_append_argument (parser_context_t *context_p, /**< context */ scanner_context_t *scanner_context_p) /**< scanner context */ { scanner_literal_pool_t *literal_pool_p = scanner_context_p->active_literal_pool_p; parser_list_iterator_t literal_iterator; parser_list_iterator_init (&lit...
1
[ "CWE-416" ]
jerryscript
3bcd48f72d4af01d1304b754ef19fe1a02c96049
52,666,282,383,481,710,000,000,000,000,000,000,000
66
Improve parse_identifier (#4691) Ascii string length is no longer computed during string allocation. JerryScript-DCO-1.0-Signed-off-by: Daniel Batiz batizjob@gmail.com
BPF_CALL_4(bpf_sk_redirect_map, struct sk_buff *, skb, struct bpf_map *, map, u32, key, u64, flags) { struct tcp_skb_cb *tcb = TCP_SKB_CB(skb); /* If user passes invalid input drop the packet. */ if (unlikely(flags & ~(BPF_F_INGRESS))) return SK_DROP; tcb->bpf.key = key; tcb->bpf.flags = flags; tcb->bpf.m...
0
[ "CWE-120" ]
linux
050fad7c4534c13c8eb1d9c2ba66012e014773cb
2,133,727,482,083,212,000,000,000,000,000,000,000
15
bpf: fix truncated jump targets on heavy expansions Recently during testing, I ran into the following panic: [ 207.892422] Internal error: Accessing user space memory outside uaccess.h routines: 96000004 [#1] SMP [ 207.901637] Modules linked in: binfmt_misc [...] [ 207.966530] CPU: 45 PID: 2256 Comm: test_ve...
runandhide_restore_hidden(i_ctx_t *i_ctx_p, ref *obj, ref *attrs) { os_ptr op = osp; push(1); /* restore the hidden_object and its type_attrs */ ref_assign(op, obj); r_clear_attrs(op, a_all); r_set_attrs(op, attrs->value.intval); return 0; }
0
[ "CWE-200" ]
ghostpdl
34cc326eb2c5695833361887fe0b32e8d987741c
262,427,920,262,047,000,000,000,000,000,000,000,000
11
Bug 699927: don't include operator arrays in execstack output When we transfer the contents of the execution stack into the array, take the extra step of replacing any operator arrays on the stack with the operator that reference them. This prevents the contents of Postscript defined, internal only operators (those c...
void *Type_XYZ_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag) { cmsCIEXYZ* xyz; *nItems = 0; xyz = (cmsCIEXYZ*) _cmsMallocZero(self ->ContextID, sizeof(cmsCIEXYZ)); if (xyz == NULL) return NULL; if (!_cmsReadXYZNumber(io, xyz)) { ...
0
[]
Little-CMS
41d222df1bc6188131a8f46c32eab0a4d4cdf1b6
123,199,428,756,080,960,000,000,000,000,000,000,000
18
Memory squeezing fix: lcms2 cmsPipeline construction When creating a new pipeline, lcms would often try to allocate a stage and pass it to cmsPipelineInsertStage without checking whether the allocation succeeded. cmsPipelineInsertStage would then assert (or crash) if it had not. The fix here is to change cmsPipelineI...
static int get_rx_bufs(struct vhost_virtqueue *vq, struct vring_used_elem *heads, int datalen, unsigned *iovcount, struct vhost_log *log, unsigned *log_num, unsigned int quota) { unsigned int out, in; int seg = 0; int headcount = 0; unsigned d; int r, nlogs = 0...
0
[ "CWE-787" ]
linux
e2b3b35eb9896f26c98b9a2c047d9111638059a2
284,614,629,610,197,700,000,000,000,000,000,000,000
66
vhost_net: batch used ring update in rx This patch tries to batched used ring update during RX. This is pretty fit for the case when guest is much faster (e.g dpdk based backend). In this case, used ring is almost empty: - we may get serious cache line misses/contending on both used ring and used idx. - at most 1 p...
static int rsi_reset_card(struct rsi_hw *adapter) { int ret; rsi_dbg(INFO_ZONE, "Resetting Card...\n"); rsi_usb_master_reg_write(adapter, RSI_TA_HOLD_REG, 0xE, 4); /* This msleep will ensure Thread-Arch processor to go to hold * and any pending dma transfers to rf in device to finish. */ msleep(100); ret =...
0
[ "CWE-415" ]
wireless-drivers
8b51dc7291473093c821195c4b6af85fadedbc2f
274,240,367,432,996,250,000,000,000,000,000,000,000
69
rsi: fix a double free bug in rsi_91x_deinit() `dev` (struct rsi_91x_usbdev *) field of adapter (struct rsi_91x_usbdev *) is allocated and initialized in `rsi_init_usb_interface`. If any error is detected in information read from the device side, `rsi_init_usb_interface` will be freed. However, in the higher level e...
static inline void sock_rps_save_rxhash(struct sock *sk, const struct sk_buff *skb) { #ifdef CONFIG_RPS if (unlikely(sk->sk_rxhash != skb->rxhash)) { sock_rps_reset_flow(sk); sk->sk_rxhash = skb->rxhash; } #endif }
0
[]
linux
7bced397510ab569d31de4c70b39e13355046387
223,617,349,900,922,800,000,000,000,000,000,000,000
10
net_dma: simple removal Per commit "77873803363c net_dma: mark broken" net_dma is no longer used and there is no plan to fix it. This is the mechanical removal of bits in CONFIG_NET_DMA ifdef guards. Reverting the remainder of the net_dma induced changes is deferred to subsequent patches. Marked for stable due to Ro...
event_basic_db_equal(LEX_STRING db, Event_basic *et) { return !sortcmp_lex_string(et->dbname, db, system_charset_info); }
0
[ "CWE-284" ]
server
0b5a5258abbeaf8a0c3a18c7e753699787fdf46e
298,246,772,767,078,060,000,000,000,000,000,000,000
4
MW-416 DDL replication moved after acl checking galera_events test shows a regression with the original fix for MW-416 Reason was that Events::drop_event() can be called also from inside event execution, and there we have a speacial treatment for event, which executes "DROP EVENT" statement, and runs TOI replication i...
static int __init con_init(void) { const char *display_desc = NULL; struct vc_data *vc; unsigned int currcons = 0, i; console_lock(); if (!conswitchp) conswitchp = &dummy_con; display_desc = conswitchp->con_startup(); if (!display_desc) { fg_console = 0; console_unlock(); return 0; } for (i = 0; i <...
0
[ "CWE-125" ]
linux
3c4e0dff2095c579b142d5a0693257f1c58b4804
42,199,906,820,938,097,000,000,000,000,000,000,000
67
vt: Disable KD_FONT_OP_COPY It's buggy: On Fri, Nov 06, 2020 at 10:30:08PM +0800, Minh Yuan wrote: > We recently discovered a slab-out-of-bounds read in fbcon in the latest > kernel ( v5.10-rc2 for now ). The root cause of this vulnerability is that > "fbcon_do_set_font" did not handle "vc->vc_font.data" and > "vc->...
read_channel_data (PSDchannel *channel, const guint16 bps, const guint16 compression, const guint16 *rle_pack_len, FILE *f, GError **error) { gchar *raw_data; gchar *src; gchar *dst; ...
1
[ "CWE-190" ]
gimp
88eccea84aa375197cc04a2a0e2e29debb56bfa5
234,229,337,346,220,130,000,000,000,000,000,000,000
80
Harden the PSD plugin against integer overflows. Issues discovered by Stefan Cornelius, Secunia Research, advisory SA37232 and CVE identifier CVE-2009-3909. Fixes bug #600741. (cherry picked from commit 9cc8d78ff33b7a36852b74e64b427489cad44d0e)
recursive_call_check(Node* node) { int r; switch (NODE_TYPE(node)) { case NODE_LIST: case NODE_ALT: r = 0; do { r |= recursive_call_check(NODE_CAR(node)); } while (IS_NOT_NULL(node = NODE_CDR(node))); break; case NODE_ANCHOR: if (! ANCHOR_HAS_BODY(ANCHOR_(node))) { r = 0; ...
0
[ "CWE-476" ]
oniguruma
410f5916429e7d2920e1d4867388514f605413b8
30,587,315,988,138,666,000,000,000,000,000,000,000
69
fix #87: Read unknown address in onig_error_code_to_str()
static ssize_t bad_file_sendpage(struct file *file, struct page *page, int off, size_t len, loff_t *pos, int more) { return -EIO; }
0
[]
linux-2.6
be6aab0e9fa6d3c6d75aa1e38ac972d8b4ee82b8
150,363,939,086,674,300,000,000,000,000,000,000,000
5
[PATCH] fix memory corruption from misinterpreted bad_inode_ops return values CVE-2006-5753 is for a case where an inode can be marked bad, switching the ops to bad_inode_ops, which are all connected as: static int return_EIO(void) { return -EIO; } #define EIO_ERROR ((void *) (return_EIO)) static struct ino...
lzw_read_byte (GifContext *context) { int code, incode; gint retval; gint my_retval; register int i; if (context->lzw_code_pending != -1) { retval = context->lzw_code_pending; context->lzw_code_pending = -1; return retval; } if (context->lzw_fresh) { context->lzw_fresh = FALSE; do { retval = get_c...
0
[ "CWE-20" ]
gdk-pixbuf
3bac204e0d0241a0d68586ece7099e6acf0e9bea
84,482,254,193,014,230,000,000,000,000,000,000,000
112
Initial stab at getting the focus code to work. Fri Jun 1 18:54:47 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at getting the focus code to work. (gtk_tree_view_class_init): Add a bunch of keybindings. * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_c...
static boolean ReadICCProfile(j_decompress_ptr jpeg_info) { char magick[12]; ErrorManager *error_manager; ExceptionInfo *exception; Image *image; MagickBooleanType status; register ssize_t i; register unsigned char *p; size_t length; StringInfo *icc_profile,...
0
[ "CWE-416" ]
ImageMagick
39f226a9c137f547e12afde972eeba7551124493
210,390,959,369,092,050,000,000,000,000,000,000,000
111
https://github.com/ImageMagick/ImageMagick/issues/1641
static OPJ_BOOL opj_tcd_code_block_dec_allocate(opj_tcd_cblk_dec_t * p_code_block) { if (! p_code_block->segs) { p_code_block->segs = (opj_tcd_seg_t *) opj_calloc(OPJ_J2K_DEFAULT_NB_SEGS, sizeof(opj_tcd_seg_t)); if (! p_code_block->segs) { return OPJ...
0
[ "CWE-119", "CWE-787" ]
openjpeg
afb308b9ccbe129608c9205cf3bb39bbefad90b9
304,913,731,601,068,540,000,000,000,000,000,000,000
34
Encoder: grow buffer size in opj_tcd_code_block_enc_allocate_data() to avoid write heap buffer overflow in opj_mqc_flush (#982)
static void ath10k_usb_cleanup_recv_urb(struct ath10k_urb_context *urb_context) { dev_kfree_skb(urb_context->skb); urb_context->skb = NULL; ath10k_usb_free_urb_to_pipe(urb_context->pipe, urb_context); }
0
[ "CWE-476" ]
linux
bfd6e6e6c5d2ee43a3d9902b36e01fc7527ebb27
29,908,616,257,262,500,000,000,000,000,000,000,000
7
ath10k: Fix a NULL-ptr-deref bug in ath10k_usb_alloc_urb_from_pipe The `ar_usb` field of `ath10k_usb_pipe_usb_pipe` objects are initialized to point to the containing `ath10k_usb` object according to endpoint descriptors read from the device side, as shown below in `ath10k_usb_setup_pipe_resources`: for (i = 0; i < i...
static void ipa_draw_pixel(wmfAPI * API, wmfDrawPixel_t * draw_pixel) { /* Save graphic wand */ (void) PushDrawingWand(WmfDrawingWand); draw_stroke_color_string(WmfDrawingWand,"none"); draw_fill_color_rgb(API,&(draw_pixel->color)); DrawRectangle(WmfDrawingWand, XC(draw_pixel->pt.x), ...
0
[ "CWE-772" ]
ImageMagick
b2b48d50300a9fbcd0aa0d9230fd6d7a08f7671e
46,192,899,805,311,220,000,000,000,000,000,000,000
18
https://github.com/ImageMagick/ImageMagick/issues/544
TfLiteStatus Prepare(TfLiteContext* context, TfLiteNode* node) { const auto* op_data = static_cast<const OpData*>(node->user_data); switch (op_data->kernel_type) { case kTfLiteLSTMFullKernel: return full::Prepare(context, node); case kTfLiteLSTMBasicKernel: return basic::Prepare(context, node); ...
0
[ "CWE-125", "CWE-787" ]
tensorflow
1970c2158b1ffa416d159d03c3370b9a462aee35
104,825,609,820,221,040,000,000,000,000,000,000,000
12
[tflite]: Insert `nullptr` checks when obtaining tensors. As part of ongoing refactoring, `tflite::GetInput`, `tflite::GetOutput`, `tflite::GetTemporary` and `tflite::GetIntermediates` will return `nullptr` in some cases. Hence, we insert the `nullptr` checks on all usages. We also insert `nullptr` checks on usages o...
int EmitCIEBasedA(cmsIOHANDLER* m, cmsToneCurve* Curve, cmsCIEXYZ* BlackPoint) { _cmsIOPrintf(m, "[ /CIEBasedA\n"); _cmsIOPrintf(m, " <<\n"); _cmsIOPrintf(m, "/DecodeA "); Emit1Gamma(m, Curve); _cmsIOPrintf(m, " \n"); _cmsIOPrintf(m, "/MatrixA [ 0.9642 1.0000 0.8249 ]\n"); _cmsIOPrintf...
0
[]
Little-CMS
d1fcbdc6bcdd50432ae95e9c6f83e79338f87690
156,810,355,206,870,230,000,000,000,000,000,000
23
Buffer overflow fix. BuildColorantList() concatenates 32 bit data in each iteration. The max value of iteration can be 16. Thus buffer overflow can occur with storage of 128 bytes. It would need 512 bytes in worst case.
static u32 vmx_segment_access_rights(struct kvm_segment *var) { u32 ar; if (var->unusable) ar = 1 << 16; else { ar = var->type & 15; ar |= (var->s & 1) << 4; ar |= (var->dpl & 3) << 5; ar |= (var->present & 1) << 7; ar |= (var->avl & 1) << 12; ar |= (var->l & 1) << 13; ar |= (var->db & 1) << 14; a...
0
[ "CWE-20" ]
linux-2.6
16175a796d061833aacfbd9672235f2d2725df65
22,435,920,369,251,806,000,000,000,000,000,000,000
21
KVM: VMX: Don't allow uninhibited access to EFER on i386 vmx_set_msr() does not allow i386 guests to touch EFER, but they can still do so through the default: label in the switch. If they set EFER_LME, they can oops the host. Fix by having EFER access through the normal channel (which will check for EFER_LME) even o...
static NTSTATUS dcesrv_lsa_Close(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct lsa_Close *r) { enum dcerpc_transport_t transport = dcerpc_binding_get_transport(dce_call->conn->endpoint->ep_description); struct dcesrv_handle *h; if (transport != NCACN_NP && transport != NCALRPC) { DCESRV_F...
0
[ "CWE-200" ]
samba
0a3aa5f908e351201dc9c4d4807b09ed9eedff77
330,008,850,153,561,300,000,000,000,000,000,000,000
21
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...
window_can_be_closed (NautilusWindow *window) { if (!NAUTILUS_IS_DESKTOP_WINDOW (window)) { return TRUE; } return FALSE; }
0
[]
nautilus
1e1c916f5537eb5e4144950f291f4a3962fc2395
172,684,354,341,079,830,000,000,000,000,000,000,000
8
Add "interactive" argument to nautilus_file_mark_desktop_file_trusted. 2009-02-24 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-file-operations.c: * libnautilus-private/nautilus-file-operations.h: * libnautilus-private/nautilus-mime-actions.c: Add "interactive" ...
static void zynq_slcr_ps_clk_callback(void *opaque) { ZynqSLCRState *s = (ZynqSLCRState *) opaque; zynq_slcr_compute_clocks(s); zynq_slcr_propagate_clocks(s); }
0
[]
qemu
98a8cc741dad9cb4738f81a994bcf8d77d619152
123,862,523,309,664,640,000,000,000,000,000,000,000
6
hw/misc/zynq_slcr: Avoid #DIV/0! error Malicious user can set the feedback divisor for the PLLs to zero, triggering a floating-point exception (SIGFPE). As the datasheet [*] is not clear how hardware behaves when these bits are zeroes, use the maximum divisor possible (128) to avoid the software FPE. [*] Zynq-7000 T...
vhost_scsi_mapal(struct vhost_scsi_cmd *cmd, size_t prot_bytes, struct iov_iter *prot_iter, size_t data_bytes, struct iov_iter *data_iter) { int sgl_count, ret; bool write = (cmd->tvc_data_direction == DMA_FROM_DEVICE); if (prot_bytes) { sgl_count = vhost_scsi_calc_sgls(prot_iter, prot_bytes, VHOST_S...
0
[ "CWE-200", "CWE-119" ]
linux
59c816c1f24df0204e01851431d3bab3eb76719c
222,811,884,807,750,400,000,000,000,000,000,000,000
44
vhost/scsi: potential memory corruption This code in vhost_scsi_make_tpg() is confusing because we limit "tpgt" to UINT_MAX but the data type of "tpg->tport_tpgt" and that is a u16. I looked at the context and it turns out that in vhost_scsi_set_endpoint(), "tpg->tport_tpgt" is used as an offset into the vs_tpg[] arr...
static void removevars (FuncState *fs, int tolevel) { fs->ls->dyd->actvar.n -= (fs->nactvar - tolevel); while (fs->nactvar > tolevel) { LocVar *var = localdebuginfo(fs, --fs->nactvar); if (var) /* does it have debug information? */ var->endpc = fs->pc; } }
0
[ "CWE-125" ]
lua
1f3c6f4534c6411313361697d98d1145a1f030fa
325,271,953,180,989,700,000,000,000,000,000,000,000
8
Bug: Lua can generate wrong code when _ENV is <const>
extract_bitmap_resource(WinLibrary *fi, WinResource *wr, int *ressize) { Win32BitmapInfoHeader info; uint8_t *result; uint8_t *resentry; uint32_t offbits; int size; resentry=(uint8_t *)(get_resource_entry(fi,wr,&size)); /* Bitmap file consists of: * 1) File header (14 bytes) * 2)...
0
[ "CWE-190" ]
icoutils
1a108713ac26215c7568353f6e02e727e6d4b24a
256,903,869,609,577,120,000,000,000,000,000,000,000
78
wrestool: Fix an index, additional check
test_sync_op_during_handshake (TestConnection *test, gconstpointer data) { GIOStream *connection; GError *error = NULL; #ifdef BACKEND_IS_OPENSSL g_test_skip ("this is not yet passing with openssl"); return; #endif connection = start_async_server_and_connect_to_it (test, G_T...
0
[ "CWE-295" ]
glib-networking
29513946809590c4912550f6f8620468f9836d94
292,503,651,850,731,950,000,000,000,000,000,000,000
32
Return bad identity error if identity is unset When the server-identity property of GTlsClientConnection is unset, the documentation sasy we need to fail the certificate verification with G_TLS_CERTIFICATE_BAD_IDENTITY. This is important because otherwise, it's easy for applications to fail to specify server identity....
static int dgram_setsockopt(struct sock *sk, int level, int optname, char __user *optval, unsigned int optlen) { struct dgram_sock *ro = dgram_sk(sk); struct net *net = sock_net(sk); int val; int err = 0; if (optlen < sizeof(int)) return -EINVAL; if (get_user(val, (int __user *)optval)) return -EFAUL...
0
[ "CWE-276" ]
linux
e69dbd4619e7674c1679cba49afd9dd9ac347eef
204,004,264,340,455,900,000,000,000,000,000,000,000
72
ieee802154: enforce CAP_NET_RAW for raw sockets When creating a raw AF_IEEE802154 socket, CAP_NET_RAW needs to be checked first. Signed-off-by: Ori Nimron <orinimron123@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Acked-by: Stefan Schmidt <stefan@datenfreihafen.org> Signed-off-by: David S...
static int memcmp_pages(struct page *page1, struct page *page2) { char *addr1, *addr2; int ret; addr1 = kmap_atomic(page1, KM_USER0); addr2 = kmap_atomic(page2, KM_USER1); ret = memcmp(addr1, addr2, PAGE_SIZE); kunmap_atomic(addr2, KM_USER1); kunmap_atomic(addr1, KM_USER0); return ret; }
0
[ "CWE-362", "CWE-125" ]
linux
2b472611a32a72f4a118c069c2d62a1a3f087afd
214,709,462,369,281,480,000,000,000,000,000,000,000
12
ksm: fix NULL pointer dereference in scan_get_next_rmap_item() Andrea Righi reported a case where an exiting task can race against ksmd::scan_get_next_rmap_item (http://lkml.org/lkml/2011/6/1/742) easily triggering a NULL pointer dereference in ksmd. ksm_scan.mm_slot == &ksm_mm_head with only one registered mm CPU 1...
int LibRaw::unpack_thumb(void) { CHECK_ORDER_LOW(LIBRAW_PROGRESS_IDENTIFY); CHECK_ORDER_BIT(LIBRAW_PROGRESS_THUMB_LOAD); try { if (!libraw_internal_data.internal_data.input) return LIBRAW_INPUT_CLOSED; if (!ID.toffset && !(imgdata.thumbnail.tlength > 0 && load_raw == &LibRaw::broadcom_load_raw) // RPi ...
0
[ "CWE-787" ]
LibRaw
8682ad204392b914ab1cc6ebcca9c27c19c1a4b4
125,301,598,054,686,580,000,000,000,000,000,000,000
120
0.18.17
int __kvm_set_memory_region(struct kvm *kvm, struct kvm_userspace_memory_region *mem, int user_alloc) { int r; gfn_t base_gfn; unsigned long npages; unsigned long i; struct kvm_memory_slot *memslot; struct kvm_memory_slot old, new; struct kvm_memslots *slots, *old_memslots; r = check_memory_regio...
1
[ "CWE-399" ]
linux
12d6e7538e2d418c08f082b1b44ffa5fb7270ed8
291,579,153,703,809,020,000,000,000,000,000,000,000
167
KVM: perform an invalid memslot step for gpa base change PPC must flush all translations before the new memory slot is visible. Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
static int handle_NPP_StreamAsFile(rpc_connection_t *connection) { D(bug("handle_NPP_StreamAsFile\n")); PluginInstance *plugin; NPStream *stream; char *fname; int error = rpc_method_get_args(connection, RPC_TYPE_NPW_PLUGIN_INSTANCE, &plugin, RPC_TYPE_NP_STREAM, &stream, RPC_TYPE...
0
[ "CWE-264" ]
nspluginwrapper
7e4ab8e1189846041f955e6c83f72bc1624e7a98
218,347,249,134,132,260,000,000,000,000,000,000,000
25
Support all the new variables added
void usbredirparser_send_buffered_bulk_packet(struct usbredirparser *parser, uint64_t id, struct usb_redir_buffered_bulk_packet_header *buffered_bulk_header, uint8_t *data, int data_len) { usbredirparser_queue(parser, usb_redir_buffered_bulk_packet, id, buffered_bulk_header, dat...
0
[]
usbredir
03c519ff5831ba75120e00ebebbf1d5a1f7220ab
22,719,041,206,348,844,000,000,000,000,000,000,000
8
Avoid use-after-free in serialization Serializing parsers with large amounts of buffered write data (e.g. in case of a slow or blocked write destination) would cause "serialize_data" to reallocate the state buffer whose default size is 64kB (USBREDIRPARSER_SERIALIZE_BUF_SIZE). The pointer to the position for the write...
static void writer_print_data_hash(WriterContext *wctx, const char *name, uint8_t *data, int size) { char *p, buf[AV_HASH_MAX_SIZE * 2 + 64] = { 0 }; if (!hash) return; av_hash_init(hash); av_hash_update(hash, data, size); snprintf(buf, sizeof(buf), "%s:",...
0
[ "CWE-476" ]
FFmpeg
837cb4325b712ff1aab531bf41668933f61d75d2
206,286,556,402,004,620,000,000,000,000,000,000,000
14
ffprobe: Fix null pointer dereference with color primaries Found-by: AD-lab of venustech Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
static int intAppendEntry(Header h, rpmtd td) { indexEntry entry; int length; if (td->type == RPM_STRING_TYPE || td->type == RPM_I18NSTRING_TYPE) { /* we can't do this */ return 0; } /* Find the tag entry in the header. */ entry = findEntry(h, td->tag, td->type); if (!entry) return 0; ...
0
[ "CWE-125" ]
rpm
8f4b3c3cab8922a2022b9e47c71f1ecf906077ef
323,179,519,176,044,720,000,000,000,000,000,000,000
36
hdrblobInit() needs bounds checks too Users can pass untrusted data to hdrblobInit() and it must be robust against this.
input_buffer& HandShakeHeader::set(input_buffer& in) { return in >> *this; }
0
[]
mysql-server
b9768521bdeb1a8069c7b871f4536792b65fd79b
176,091,123,495,897,500,000,000,000,000,000,000,000
4
Updated yassl to yassl-2.3.8 (cherry picked from commit 7f9941eab55ed672bfcccd382dafbdbcfdc75aaa)
static void build_dirs(char *src, char *dst, size_t src_prefix_len, size_t dst_prefix_len) { char *p = src + src_prefix_len + 1; char *q = dst + dst_prefix_len + 1; char *r = dst + dst_prefix_len; struct stat s; bool last = false; *r = '\0'; for (; !last; p++, q++) { if (*p == '\0') { last = true; } if ...
1
[ "CWE-269", "CWE-94" ]
firejail
dab835e7a0eb287822016f5ae4e87f46e1d363e7
78,778,619,275,753,800,000,000,000,000,000,000,000
32
CVE-2022-31214: fixing the fix
static void rtl8723bu_set_ps_tdma(struct rtl8xxxu_priv *priv, u8 arg1, u8 arg2, u8 arg3, u8 arg4, u8 arg5) { struct h2c_cmd h2c; memset(&h2c, 0, sizeof(struct h2c_cmd)); h2c.b_type_dma.cmd = H2C_8723B_B_TYPE_TDMA; h2c.b_type_dma.data1 = arg1; h2c.b_type_dma.data2 = arg2; h2c.b_type_dma.data3 = arg3; h2c.b...
0
[ "CWE-400", "CWE-401" ]
linux
a2cdd07488e666aa93a49a3fc9c9b1299e27ef3c
232,079,990,707,075,920,000,000,000,000,000,000,000
14
rtl8xxxu: prevent leaking urb In rtl8xxxu_submit_int_urb if usb_submit_urb fails the allocated urb should be released. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Reviewed-by: Chris Chiu <chiu@endlessm.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
dtls1_reassemble_fragment(SSL *s, const struct hm_header_st *msg_hdr, int *ok) { hm_fragment *frag = NULL; pitem *item = NULL; int i = -1, is_complete; unsigned char seq64be[8]; unsigned long frag_len = msg_hdr->frag_len; if ((msg_hdr->frag_off + frag_len) > msg_hdr->msg_len || msg_hdr-...
0
[ "CWE-399" ]
openssl
00a4c1421407b6ac796688871b0a49a179c694d9
86,527,800,609,635,630,000,000,000,000,000,000,000
103
Fix DTLS buffered message DoS attack DTLS can handle out of order record delivery. Additionally since handshake messages can be bigger than will fit into a single packet, the messages can be fragmented across multiple records (as with normal TLS). That means that the messages can arrive mixed up, and we have to reasse...
static inline unsigned int rfcomm_room(struct rfcomm_dlc *dlc) { /* We can't let it be zero, because we don't get a callback when tx_credits becomes nonzero, hence we'd never wake up */ return dlc->mtu * (dlc->tx_credits?:1); }
0
[ "CWE-200" ]
linux
f9432c5ec8b1e9a09b9b0e5569e3c73db8de432a
214,134,501,878,364,500,000,000,000,000,000,000,000
6
Bluetooth: RFCOMM - Fix info leak in ioctl(RFCOMMGETDEVLIST) The RFCOMM code fails to initialize the two padding bytes of struct rfcomm_dev_list_req inserted for alignment before copying it to userland. Additionally there are two padding bytes in each instance of struct rfcomm_dev_info. The ioctl() that for disclosure...
blk_eh_timer_return megasas_reset_timer(struct scsi_cmnd *scmd) { struct megasas_instance *instance; unsigned long flags; if (time_after(jiffies, scmd->jiffies_at_alloc + (scmd_timeout * 2) * HZ)) { return BLK_EH_DONE; } instance = (struct megasas_instance *)scmd->device->host->hostdata; if (!(instance->f...
0
[ "CWE-476" ]
linux
bcf3b67d16a4c8ffae0aa79de5853435e683945c
87,045,468,929,455,830,000,000,000,000,000,000,000
23
scsi: megaraid_sas: return error when create DMA pool failed when create DMA pool for cmd frames failed, we should return -ENOMEM, instead of 0. In some case in: megasas_init_adapter_fusion() -->megasas_alloc_cmds() -->megasas_create_frame_pool create DMA pool failed, --> megasas_fre...
PJ_DEF(void) pj_scan_advance_n( pj_scanner *scanner, unsigned N, pj_bool_t skip_ws) { if (scanner->curptr + N > scanner->end) { pj_scan_syntax_err(scanner); return; } scanner->curptr += N; if (PJ_SCAN_IS_PROBABLY_SPACE(*scanner->curptr) && skip_ws) { pj_scan_skip_whitespace(scanner); } }
0
[ "CWE-125" ]
pjproject
077b465c33f0aec05a49cd2ca456f9a1b112e896
131,155,493,183,526,870,000,000,000,000,000,000,000
14
Merge pull request from GHSA-7fw8-54cv-r7pm
static void rsync_panic_handler(UNUSED(int whatsig)) { char cmd_buf[300]; int ret, pid_int = getpid(); snprintf(cmd_buf, sizeof cmd_buf, get_panic_action(), pid_int, pid_int); /* Unless we failed to execute gdb, we allow the process to * continue. I'm not sure if that's right. */ ret = shell_exec(cmd_buf); i...
0
[]
rsync
b7231c7d02cfb65d291af74ff66e7d8c507ee871
278,573,395,303,425,680,000,000,000,000,000,000,000
13
Some extra file-list safety checks.
bool operator==(const HeaderMap& rhs) const override { return HeaderMapImpl::operator==(rhs); }
0
[]
envoy
2c60632d41555ec8b3d9ef5246242be637a2db0f
458,632,785,881,338,660,000,000,000,000,000,000
1
http: header map security fixes for duplicate headers (#197) Previously header matching did not match on all headers for non-inline headers. This patch changes the default behavior to always logically match on all headers. Multiple individual headers will be logically concatenated with ',' similar to what is done with...
exif_mnote_data_pentax_get_description (ExifMnoteData *d, unsigned int n) { ExifMnoteDataPentax *note = (ExifMnoteDataPentax *) d; if (!note) return NULL; if (note->count <= n) return NULL; return mnote_pentax_tag_get_description (note->entries[n].tag); }
0
[ "CWE-125" ]
libexif
435e21f05001fb03f9f186fa7cbc69454afd00d1
119,357,413,789,642,120,000,000,000,000,000,000,000
8
Fix MakerNote tag size overflow issues at read time. Check for a size overflow while reading tags, which ensures that the size is always consistent for the given components and type of the entry, making checking further down superfluous. This provides an alternate fix for https://sourceforge.net/p/libexif/bugs/125/ C...
__acquires(RCU) { int i; struct net_device *dev; rcu_read_lock(); if (*pos == 0) return SEQ_START_TOKEN; i = 1; for_each_netdev_rcu(&init_net, dev) { if (!is_dn_dev(dev)) continue; if (i++ == *pos) return dev; } return NULL; }
0
[ "CWE-264" ]
net
90f62cf30a78721641e08737bda787552428061e
194,796,347,032,192,850,000,000,000,000,000,000,000
21
net: Use netlink_ns_capable to verify the permisions of netlink messages It is possible by passing a netlink socket to a more privileged executable and then to fool that executable into writing to the socket data that happens to be valid netlink message to do something that privileged executable did not intend to do. ...
int cdk_pk_get_npkey(int algo) { if (is_RSA(algo)) return RSA_PUBLIC_PARAMS; else if (is_DSA(algo)) return DSA_PUBLIC_PARAMS; else if (is_ELG(algo)) return 3; else { gnutls_assert(); return 0; } }
0
[ "CWE-119" ]
gnutls
5140422e0d7319a8e2fe07f02cbcafc4d6538732
13,040,098,957,109,177,000,000,000,000,000,000,000
13
opencdk: cdk_pk_get_keyid: fix stack overflow Issue found using oss-fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=340 Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
tiff_save_seek (thandle_t handle, toff_t offset, int whence) { TiffSaveContext *context = (TiffSaveContext *)handle; switch (whence) { case SEEK_SET: context->pos = offset; break; case SEEK_CUR: context->pos += offset; brea...
0
[]
gdk-pixbuf
31a6cff3dfc6944aad4612a9668b8ad39122e48b
107,299,484,722,720,570,000,000,000,000,000,000,000
19
tiff: Check for integer overflows in multiplication The checks currently in use are not sufficient, because they depend on undefined behaviour: rowstride = width * 4; if (rowstride / 4 != width) { /* overflow */ If the multiplication has already overflowed, the compiler may decide to optimize the if out and ...
static OPJ_BOOL opj_pi_next_cprl(opj_pi_iterator_t * pi) { opj_pi_comp_t *comp = NULL; opj_pi_resolution_t *res = NULL; OPJ_UINT32 index = 0; if (pi->poc.compno0 >= pi->numcomps || pi->poc.compno1 >= pi->numcomps + 1) { opj_event_msg(pi->manager, EVT_ERROR, "op...
0
[ "CWE-125" ]
openjpeg
8f5aff1dff510a964d3901d0fba281abec98ab63
324,070,886,835,885,660,000,000,000,000,000,000,000
134
pi.c: avoid out of bounds access with POC (fixes #1302)
QPDF::copyForeignObject(QPDFObjectHandle foreign, bool) { // This method will be removed next time the ABI is changed. return copyForeignObject(foreign); }
0
[ "CWE-787" ]
qpdf
d71f05ca07eb5c7cfa4d6d23e5c1f2a800f52e8e
319,955,491,686,321,040,000,000,000,000,000,000,000
5
Fix sign and conversion warnings (major) This makes all integer type conversions that have potential data loss explicit with calls that do range checks and raise an exception. After this commit, qpdf builds with no warnings when -Wsign-conversion -Wconversion is used with gcc or clang or when -W3 -Wd4800 is used with ...
static int io_timeout_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe, bool is_timeout_link) { struct io_timeout_data *data; unsigned flags; u32 off = READ_ONCE(sqe->off); if (unlikely(req->ctx->flags & IORING_SETUP_IOPOLL)) return -EINVAL; if (sqe->ioprio || sqe->buf_index || sqe->len != 1) ...
0
[ "CWE-125" ]
linux
89c2b3b74918200e46699338d7bcc19b1ea12110
308,270,066,176,279,800,000,000,000,000,000,000,000
36
io_uring: reexpand under-reexpanded iters [ 74.211232] BUG: KASAN: stack-out-of-bounds in iov_iter_revert+0x809/0x900 [ 74.212778] Read of size 8 at addr ffff888025dc78b8 by task syz-executor.0/828 [ 74.214756] CPU: 0 PID: 828 Comm: syz-executor.0 Not tainted 5.14.0-rc3-next-20210730 #1 [ 74.216525] Hardware n...
check_buffer(struct magic_set *ms, struct magic_map *map, const char *dbname) { uint32_t *ptr; uint32_t entries, nentries; uint32_t version; int i, needsbyteswap; ptr = CAST(uint32_t *, map->p); if (*ptr != MAGICNO) { if (swap4(*ptr) != MAGICNO) { file_error(ms, 0, "bad magic in `%s'", dbname); return -1...
0
[ "CWE-399" ]
file
90018fe22ff8b74a22fcd142225b0a00f3f12677
84,326,746,053,542,220,000,000,000,000,000,000,000
54
bump recursion to 15, and allow it to be set from the command line.
void rds_inc_put(struct rds_incoming *inc) { rdsdebug("put inc %p ref %d\n", inc, refcount_read(&inc->i_refcount)); if (refcount_dec_and_test(&inc->i_refcount)) { BUG_ON(!list_empty(&inc->i_item)); inc->i_conn->c_trans->inc_free(inc); } }
0
[ "CWE-200", "CWE-909" ]
linux
7d0a06586b2686ba80c4a2da5f91cb10ffbea736
305,338,635,285,435,480,000,000,000,000,000,000,000
9
net/rds: Fix info leak in rds6_inc_info_copy() The rds6_inc_info_copy() function has a couple struct members which are leaking stack information. The ->tos field should hold actual information and the ->flags field needs to be zeroed out. Fixes: 3eb450367d08 ("rds: add type of service(tos) infrastructure") Fixes: b7...
load_none(UnpicklerObject *self) { PDATA_APPEND(self->stack, Py_None, -1); return 0; }
0
[ "CWE-190", "CWE-369" ]
cpython
a4ae828ee416a66d8c7bf5ee71d653c2cc6a26dd
1,387,918,080,272,315,200,000,000,000,000,000,000
5
closes bpo-34656: Avoid relying on signed overflow in _pickle memos. (GH-9261)
OFCondition DcmSCP::sendMOVEResponse(const T_ASC_PresentationContextID presID, const Uint16 messageID, const OFString &sopClassUID, DcmDataset *rspDataset, const Uint16 rsp...
0
[ "CWE-264" ]
dcmtk
beaf5a5c24101daeeafa48c375120b16197c9e95
133,931,873,514,265,700,000,000,000,000,000,000,000
58
Make sure to handle setuid() return code properly. In some tools the return value of setuid() is not checked. In the worst case this could lead to privilege escalation since the process does not give up its root privileges and continue as root.
reassemble_files_name(const char *certfile, const char *keyfile) { char *ret; if (keyfile != NULL) { if (asprintf(&ret, "FILE:%s,%s", certfile, keyfile) < 0) return NULL; } else { if (asprintf(&ret, "FILE:%s", certfile) < 0) return NULL; } return ret; }
0
[ "CWE-476" ]
krb5
f249555301940c6df3a2cdda13b56b5674eebc2e
182,702,859,699,892,300,000,000,000,000,000,000,000
13
PKINIT null pointer deref [CVE-2013-1415] Don't dereference a null pointer when cleaning up. The KDC plugin for PKINIT can dereference a null pointer when a malformed packet causes processing to terminate early, leading to a crash of the KDC process. An attacker would need to have a valid PKINIT certificate or have ...
get_font_name( XOC oc, char *pattern) { char **list, *name; int count = 0; list = XListFonts(oc->core.om->core.display, pattern, 1, &count); if (list == NULL) return NULL; name = strdup(*list); XFreeFontNames(list); return name; }
0
[ "CWE-190" ]
libx11
acdaaadcb3d85c61fd43669fc5dddf0f8c3f911d
97,276,098,001,431,510,000,000,000,000,000,000,000
17
Fix an integer overflow in init_om() CVE-2020-14363 This can lead to a double free later, as reported by Jayden Rivers. Signed-off-by: Matthieu Herrb <matthieu@herrb.eu>
TEST_F(QueryPlannerTest, CannotTrimIxisectAndHashWithOrChild) { params.options = QueryPlannerParams::CANNOT_TRIM_IXISECT; params.options |= QueryPlannerParams::INDEX_INTERSECTION; params.options |= QueryPlannerParams::NO_TABLE_SCAN; addIndex(BSON("a" << 1)); addIndex(BSON("b" << 1)); addIndex(B...
0
[]
mongo
64095239f41e9f3841d8be9088347db56d35c891
86,853,219,372,656,470,000,000,000,000,000,000,000
31
SERVER-51083 Reject invalid UTF-8 from $regex match expressions
UserNameIterator AuthorizationSessionImpl::getAuthenticatedUserNames() { return _authenticatedUsers.getNames(); }
0
[ "CWE-613" ]
mongo
e55d6e2292e5dbe2f97153251d8193d1cc89f5d7
159,428,622,906,767,550,000,000,000,000,000,000,000
3
SERVER-38984 Validate unique User ID on UserCache hit
static int ax88179_link_reset(struct usbnet *dev) { struct ax88179_data *ax179_data = (struct ax88179_data *)dev->data; u8 tmp[5], link_sts; u16 mode, tmp16, delay = HZ / 10; u32 tmp32 = 0x40000000; unsigned long jtimeout; jtimeout = jiffies + delay; while (tmp32 & 0x40000000) { mode = 0; ax88179_write_cmd(...
0
[ "CWE-787" ]
linux
57bc3d3ae8c14df3ceb4e17d26ddf9eeab304581
219,143,850,136,564,100,000,000,000,000,000,000,000
71
net: usb: ax88179_178a: Fix out-of-bounds accesses in RX fixup ax88179_rx_fixup() contains several out-of-bounds accesses that can be triggered by a malicious (or defective) USB device, in particular: - The metadata array (hdr_off..hdr_off+2*pkt_cnt) can be out of bounds, causing OOB reads and (on big-endian syst...
long kvm_arch_vcpu_ioctl(struct file *filp, unsigned int ioctl, unsigned long arg) { struct kvm_vcpu *vcpu = filp->private_data; void __user *argp = (void __user *)arg; int r; union { struct kvm_lapic_state *lapic; struct kvm_xsave *xsave; struct kvm_xcrs *xcrs; void *buffer; } u; vcpu_load(vcpu); ...
0
[ "CWE-476" ]
linux
e97f852fd4561e77721bb9a4e0ea9d98305b1e93
199,498,013,414,167,140,000,000,000,000,000,000,000
357
KVM: X86: Fix scan ioapic use-before-initialization Reported by syzkaller: BUG: unable to handle kernel NULL pointer dereference at 00000000000001c8 PGD 80000003ec4da067 P4D 80000003ec4da067 PUD 3f7bfa067 PMD 0 Oops: 0000 [#1] PREEMPT SMP PTI CPU: 7 PID: 5059 Comm: debug Tainted: G OE 4.19.0-rc5 #16...
Log_to_csv_event_handler::Log_to_csv_event_handler() { }
0
[ "CWE-264" ]
mysql-server
48bd8b16fe382be302c6f0b45931be5aa6f29a0e
210,917,585,944,244,500,000,000,000,000,000,000,000
3
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...
libssh2_session_set_timeout(LIBSSH2_SESSION * session, long timeout) { session->api_timeout = timeout; }
0
[ "CWE-787" ]
libssh2
dc109a7f518757741590bb993c0c8412928ccec2
121,332,679,038,818,740,000,000,000,000,000,000,000
4
Security fixes (#315) * Bounds checks Fixes for CVEs https://www.libssh2.org/CVE-2019-3863.html https://www.libssh2.org/CVE-2019-3856.html * Packet length bounds check CVE https://www.libssh2.org/CVE-2019-3855.html * Response length check CVE https://www.libssh2.org/CVE-2019-3859.html * Bounds ch...
int ldb_kv_key_dn_from_idx(struct ldb_module *module, struct ldb_kv_private *ldb_kv, TALLOC_CTX *mem_ctx, struct ldb_dn *dn, struct ldb_val *ldb_key) { struct ldb_context *ldb = ldb_module_get_ctx(module); int ret; int index = 0; enum key_truncation truncation = KEY_NOT_TRUNCATED; struct dn...
0
[ "CWE-703" ]
samba
08c9016cb9f25105c39488770113a1b00f8a4223
286,852,191,354,786,820,000,000,000,000,000,000,000
123
CVE-2021-3670 ldb: Confirm the request has not yet timed out in ldb filter processing The LDB filter processing is where the time is spent in the LDB stack but the timeout event will not get run while this is ongoing, so we must confirm we have not yet timed out manually. RN: Ensure that the LDB request has not timed...
static void l2cap_handle_srej(struct l2cap_chan *chan, struct l2cap_ctrl *control) { struct sk_buff *skb; BT_DBG("chan %p, control %p", chan, control); if (control->reqseq == chan->next_tx_seq) { BT_DBG("Invalid reqseq %d, disconnecting", control->reqseq); l2cap_send_disconn_req(chan, ECONNRESET); r...
0
[ "CWE-787" ]
linux
e860d2c904d1a9f38a24eb44c9f34b8f915a6ea3
282,192,006,848,743,600,000,000,000,000,000,000,000
57
Bluetooth: Properly check L2CAP config option output buffer length Validate the output buffer length for L2CAP config requests and responses to avoid overflowing the stack buffer used for building the option blocks. Cc: stable@vger.kernel.org Signed-off-by: Ben Seri <ben@armis.com> Signed-off-by: Marcel Holtmann <mar...
static CURLcode imap_state_starttls_resp(struct connectdata *conn, int imapcode, imapstate instate) { CURLcode result = CURLE_OK; struct SessionHandle *data = conn->data; (void)instate; /* no use for this yet */ if(imapcode != 'O...
0
[ "CWE-89" ]
curl
75ca568fa1c19de4c5358fed246686de8467c238
67,430,418,443,009,370,000,000,000,000,000,000,000
32
URL sanitize: reject URLs containing bad data Protocols (IMAP, POP3 and SMTP) that use the path part of a URL in a decoded manner now use the new Curl_urldecode() function to reject URLs with embedded control codes (anything that is or decodes to a byte value less than 32). URLs containing such codes could easily oth...
static int mov_open_dref(MOVContext *c, AVIOContext **pb, const char *src, MOVDref *ref) { /* try relative path, we do not try the absolute because it can leak information about our system to an attacker */ if (ref->nlvl_to > 0 && ref->nlvl_from > 0) { char filename[1025]; const char *src...
0
[ "CWE-703" ]
FFmpeg
c953baa084607dd1d84c3bfcce3cf6a87c3e6e05
44,925,780,906,827,540,000,000,000,000,000,000,000
71
avformat/mov: Check count sums in build_open_gop_key_points() Fixes: ffmpeg.md Fixes: Out of array access Fixes: CVE-2022-2566 Found-by: Andy Nguyen <theflow@google.com> Found-by: 3pvd <3pvd@google.com> Reviewed-by: Andy Nguyen <theflow@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
static int expandrow(UINT8* dest, UINT8* src, int n, int z) { UINT8 pixel, count; for (;n > 0; n--) { pixel = *src++; if (n == 1 && pixel != 0) return n; count = pixel & RLE_MAX_RUN; if (!count) return count; if (pixel & RLE_COPY_FLAG) { ...
1
[ "CWE-120", "CWE-787" ]
Pillow
a79b65c47c7dc6fe623aadf09aa6192fc54548f3
8,628,129,027,453,074,000,000,000,000,000,000,000
30
Catch SGI buffer overruns
char * mobi_get_cncx_string_utf8(const MOBIPdbRecord *cncx_record, const uint32_t cncx_offset, MOBIEncoding cncx_encoding) { char *string = mobi_get_cncx_string(cncx_record, cncx_offset); if (string != NULL && cncx_encoding == MOBI_CP1252) { size_t in_len = strlen(string); size_t out_len = in_le...
0
[ "CWE-125", "CWE-787" ]
libmobi
eafc415bc6067e72577f70d6dd5acbf057ce6e6f
66,822,647,001,624,190,000,000,000,000,000,000,000
15
Fix wrong boundary checks in inflections parser resulting in stack buffer over-read with corrupt input
cleanup(void) { if( is_locked ) { if( !dotlock_release (lockhandle) ) is_locked = 0; } }
0
[ "CWE-20" ]
gnupg
2183683bd633818dd031b090b5530951de76f392
216,594,189,267,169,770,000,000,000,000,000,000,000
7
Use inline functions to convert buffer data to scalars. * common/host2net.h (buf16_to_ulong, buf16_to_uint): New. (buf16_to_ushort, buf16_to_u16): New. (buf32_to_size_t, buf32_to_ulong, buf32_to_uint, buf32_to_u32): New. -- Commit 91b826a38880fd8a989318585eb502582636ddd8 was not enough to avoid all sign extension on ...
static int SFD_MIDump(SplineFont *sf,EncMap *map,char *dirname, int mm_pos) { char *instance = malloc(strlen(dirname)+1+10+20); char *fontprops; FILE *ssfd; int err = false; /* I'd like to use the font name, but the order of the instances is */ /* crucial and I must enforce an ordering on them...
0
[ "CWE-416" ]
fontforge
048a91e2682c1a8936ae34dbc7bd70291ec05410
132,522,053,728,160,400,000,000,000,000,000,000,000
23
Fix for #4084 Use-after-free (heap) in the SFD_GetFontMetaData() function Fix for #4086 NULL pointer dereference in the SFDGetSpiros() function Fix for #4088 NULL pointer dereference in the SFD_AssignLookups() function Add empty sf->fontname string if it isn't set, fixing #4089 #4090 and many other potential issues (...
static int bcf_set_variant_types(bcf1_t *b) { if ( !(b->unpacked & BCF_UN_STR) ) bcf_unpack(b, BCF_UN_STR); bcf_dec_t *d = &b->d; if ( d->n_var < b->n_allele ) { d->var = (variant_t *) realloc(d->var, sizeof(variant_t)*b->n_allele); d->n_var = b->n_allele; } int i; b->d.var_t...
0
[ "CWE-787" ]
htslib
dcd4b7304941a8832fba2d0fc4c1e716e7a4e72c
61,124,219,128,025,310,000,000,000,000,000,000,000
21
Fix check for VCF record size The check for excessive record size in vcf_parse_format() only looked at individual fields. It was therefore possible to exceed the limit and overflow fmt_aux_t::offset by having multiple fields with a combined size that went over INT_MAX. Fix by including the amount of memory used so fa...
symbol_is_dummy (symbol const *sym) { return sym->tag[0] == '@' || (sym->tag[0] == '$' && sym->tag[1] == '@'); }
0
[]
bison
b7aab2dbad43aaf14eebe78d54aafa245a000988
38,529,116,456,060,376,000,000,000,000,000,000,000
4
fix: crash when redefining the EOF token Reported by Agency for Defense Development. https://lists.gnu.org/r/bug-bison/2020-08/msg00008.html On an empty such as %token FOO BAR FOO 0 %% input: %empty we crash because when we find FOO 0, we decrement ntokens (since FOO was discovered...
find_map(const struct usbmix_name_map *p, int unitid, int control) { if (!p) return NULL; for (; p->id; p++) { if (p->id == unitid && (!control || !p->control || control == p->control)) return p; } return NULL; }
0
[ "CWE-674" ]
sound
19bce474c45be69a284ecee660aa12d8f1e88f18
198,584,294,873,218,820,000,000,000,000,000,000,000
12
ALSA: usb-audio: Fix a stack buffer overflow bug in check_input_term `check_input_term` recursively calls itself with input from device side (e.g., uac_input_terminal_descriptor.bCSourceID) as argument (id). In `check_input_term`, if `check_input_term` is called with the same `id` argument as the caller, it triggers e...
void tipc_node_delete_links(struct net *net, int bearer_id) { struct tipc_net *tn = net_generic(net, tipc_net_id); struct tipc_node *n; rcu_read_lock(); list_for_each_entry_rcu(n, &tn->node_list, list) { tipc_node_link_down(n, bearer_id, true); } rcu_read_unlock(); }
0
[]
linux
0217ed2848e8538bcf9172d97ed2eeb4a26041bb
78,745,150,280,238,080,000,000,000,000,000,000,000
11
tipc: better validate user input in tipc_nl_retrieve_key() Before calling tipc_aead_key_size(ptr), we need to ensure we have enough data to dereference ptr->keylen. We probably also want to make sure tipc_aead_key_size() wont overflow with malicious ptr->keylen values. Syzbot reported: BUG: KMSAN: uninit-value in _...
static ulong emulator_read_gpr(struct x86_emulate_ctxt *ctxt, unsigned reg) { return kvm_register_read_raw(emul_to_vcpu(ctxt), reg); }
0
[ "CWE-476" ]
linux
55749769fe608fa3f4a075e42e89d237c8e37637
195,396,464,299,905,150,000,000,000,000,000,000,000
4
KVM: x86: Fix wall clock writes in Xen shared_info not to mark page dirty When dirty ring logging is enabled, any dirty logging without an active vCPU context will cause a kernel oops. But we've already declared that the shared_info page doesn't get dirty tracking anyway, since it would be kind of insane to mark it di...
int tls_construct_next_proto(SSL *s, WPACKET *pkt) { size_t len, padding_len; unsigned char *padding = NULL; len = s->ext.npn_len; padding_len = 32 - ((len + 2) % 32); if (!WPACKET_sub_memcpy_u8(pkt, s->ext.npn, len) || !WPACKET_sub_allocate_bytes_u8(pkt, padding_len, &padding)) { ...
0
[ "CWE-835" ]
openssl
758754966791c537ea95241438454aa86f91f256
155,478,991,406,331,670,000,000,000,000,000,000,000
18
Fix invalid handling of verify errors in libssl In the event that X509_verify() returned an internal error result then libssl would mishandle this and set rwstate to SSL_RETRY_VERIFY. This subsequently causes SSL_get_error() to return SSL_ERROR_WANT_RETRY_VERIFY. That return code is supposed to only ever be returned i...
print_attr_address(netdissect_options *ndo, register const u_char *data, u_int length, u_short attr_code) { if (length != 4) { ND_PRINT((ndo, "ERROR: length %u != 4", length)); return; } ND_TCHECK2(data[0],4); switch(attr_code) { case FRM_IPADDR: case LOG...
0
[ "CWE-125", "CWE-787" ]
tcpdump
1bc78d795cd5cad5525498658f414a11ea0a7e9c
36,400,045,628,449,240,000,000,000,000,000,000,000
34
CVE-2017-13032/RADIUS: Check whether a byte exists before testing its value. Reverse the test in a for loop to test the length before testing whether we have a null byte. This fixes a buffer over-read discovered by Bhargava Shastry. Add a test using the capture file supplied by the reporter(s), modified so the captu...
static enum_func_status php_mysqlnd_chg_user_read(MYSQLND_CONN_DATA * conn, void * _packet) { MYSQLND_PACKET_CHG_USER_RESPONSE *packet= (MYSQLND_PACKET_CHG_USER_RESPONSE *) _packet; MYSQLND_ERROR_INFO * error_info = conn->error_info; MYSQLND_PFC * pfc = conn->protocol_frame_codec; MYSQLND_VIO * vio = conn->vio; MY...
0
[ "CWE-120" ]
php-src
58006537fc5f133ae8549efe5118cde418b3ace9
37,951,315,065,447,280,000,000,000,000,000,000,000
65
Fix bug #81719: mysqlnd/pdo password buffer overflow
PackLinuxElf32::elf_find_ptype(unsigned type, Elf32_Phdr const *phdr, unsigned phnum) { for (unsigned j = 0; j < phnum; ++j, ++phdr) { if (type == get_te32(&phdr->p_type)) { return phdr; } } return 0; }
0
[ "CWE-476" ]
upx
ef336dbcc6dc8344482f8cf6c909ae96c3286317
3,228,677,631,228,216,000,000,000,000,000,000,000
9
Protect against bad crafted input. https://github.com/upx/upx/issues/128 modified: p_lx_elf.cpp
void mono_reflection_setup_internal_class (MonoReflectionTypeBuilder *tb) { MonoError error; MonoClass *klass, *parent; MONO_ARCH_SAVE_REGS; RESOLVE_TYPE (tb->parent); mono_loader_lock (); if (tb->parent) { /* check so we can compile corlib correctly */ if (strcmp (mono_object_class (tb->parent)->name, "T...
0
[ "CWE-20" ]
mono
cf1ec146f7c6acdc6697032b3aaafc68ffacdcac
84,105,815,724,831,560,000,000,000,000,000,000,000
116
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 void update_node_properties(struct device_node *np, struct device_node *dup) { struct property *prop; struct property *save_next; struct device_node *child; int ret; for_each_child_of_node(np, child) child->parent = dup; /* * "unittest internal error: unable to add testdata property" * * ...
0
[ "CWE-401" ]
linux
e13de8fe0d6a51341671bbe384826d527afe8d44
225,169,380,783,156,970,000,000,000,000,000,000,000
39
of: unittest: fix memory leak in unittest_data_add In unittest_data_add, a copy buffer is created via kmemdup. This buffer is leaked if of_fdt_unflatten_tree fails. The release for the unittest_data buffer is added. Fixes: b951f9dc7f25 ("Enabling OF selftest to run without machine's devicetree") Signed-off-by: Navid ...
static noinline int may_destroy_subvol(struct btrfs_root *root) { struct btrfs_path *path; struct btrfs_dir_item *di; struct btrfs_key key; u64 dir_id; int ret; path = btrfs_alloc_path(); if (!path) return -ENOMEM; /* Make sure this root isn't set as the default subvol */ dir_id = btrfs_super_root_dir(root...
0
[ "CWE-200" ]
linux
8039d87d9e473aeb740d4fdbd59b9d2f89b2ced9
288,287,516,962,398,440,000,000,000,000,000,000,000
49
Btrfs: fix file corruption and data loss after cloning inline extents Currently the clone ioctl allows to clone an inline extent from one file to another that already has other (non-inlined) extents. This is a problem because btrfs is not designed to deal with files having inline and regular extents, if a file has an ...
int evdns_resolve_ipv4(const char *name, int flags, evdns_callback_type callback, void *ptr) { return evdns_base_resolve_ipv4(current_base, name, flags, callback, ptr) ? 0 : -1; }
0
[ "CWE-125" ]
libevent
96f64a022014a208105ead6c8a7066018449d86d
33,994,867,113,457,290,000,000,000,000,000,000,000
6
evdns: name_parse(): fix remote stack overread @asn-the-goblin-slayer: "the name_parse() function in libevent's DNS code is vulnerable to a buffer overread. 971 if (cp != name_out) { 972 if (cp + 1 >= end) return -1; 973 *cp++ = '.'; 974 } 975 if (cp + ...
static void io_queue_linked_timeout(struct io_kiocb *req) { struct io_ring_ctx *ctx = req->ctx; spin_lock_irq(&ctx->completion_lock); /* * If the back reference is NULL, then our linked request finished * before we got a chance to setup the timer */ if (req->timeout.head) { struct io_timeout_data *data = ...
0
[ "CWE-787" ]
linux
d1f82808877bb10d3deee7cf3374a4eb3fb582db
64,108,447,062,268,335,000,000,000,000,000,000,000
20
io_uring: truncate lengths larger than MAX_RW_COUNT on provide buffers Read and write operations are capped to MAX_RW_COUNT. Some read ops rely on that limit, and that is not guaranteed by the IORING_OP_PROVIDE_BUFFERS. Truncate those lengths when doing io_add_buffers, so buffer addresses still use the uncapped lengt...
MouseLimit(TScreen *screen) { int mouse_limit; switch (screen->extend_coords) { default: mouse_limit = MOUSE_LIMIT; break; case SET_EXT_MODE_MOUSE: mouse_limit = EXT_MOUSE_LIMIT; break; case SET_SGR_EXT_MODE_MOUSE: case SET_URXVT_EXT_MODE_MOUSE: case SET_PIXEL_POSITION_MOUSE: mouse_lim...
0
[ "CWE-399" ]
xterm-snapshots
82ba55b8f994ab30ff561a347b82ea340ba7075c
15,424,720,103,081,590,000,000,000,000,000,000,000
19
snapshot of project "xterm", label xterm-365d
static void simplify_merges(struct rev_info *revs) { struct commit_list *list, *next; struct commit_list *yet_to_do, **tail; struct commit *commit; if (!revs->prune) return; /* feed the list reversed */ yet_to_do = NULL; for (list = revs->commits; list; list = next) { commit = list->item; next = list->ne...
0
[ "CWE-119", "CWE-787" ]
git
34fa79a6cde56d6d428ab0d3160cb094ebad3305
243,479,780,135,392,840,000,000,000,000,000,000,000
49
prefer memcpy to strcpy When we already know the length of a string (e.g., because we just malloc'd to fit it), it's nicer to use memcpy than strcpy, as it makes it more obvious that we are not going to overflow the buffer (because the size we pass matches the size in the allocation). This also eliminates calls to st...