func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
static void caps_reset_bit(int nr) { uint64_t mask = 1LLU << nr; filter &= ~mask; }
0
[ "CWE-269", "CWE-94" ]
firejail
27cde3d7d1e4e16d4190932347c7151dc2a84c50
298,053,589,352,218,500,000,000,000,000,000,000,000
4
fixing CVE-2022-31214
MagickExport Image *ImplodeImage(const Image *image,const double amount, const PixelInterpolateMethod method,ExceptionInfo *exception) { #define ImplodeImageTag "Implode/Image" CacheView *image_view, *implode_view, *interpolate_view; Image *implode_image; MagickBooleanType status; Mag...
0
[ "CWE-119", "CWE-703" ]
ImageMagick
3cbfb163cff9e5b8cdeace8312e9bfee810ed02b
308,969,705,476,527,700,000,000,000,000,000,000,000
174
https://github.com/ImageMagick/ImageMagick/issues/296
void mainwindows_redraw(void) { GSList *tmp; irssi_set_dirty(); for (tmp = mainwindows; tmp != NULL; tmp = tmp->next) { MAIN_WINDOW_REC *rec = tmp->data; rec->dirty = TRUE; } }
0
[ "CWE-476" ]
irssi
5b5bfef03596d95079c728f65f523570dd7b03aa
70,580,767,459,102,980,000,000,000,000,000,000,000
11
check the error condition of mainwindow_create
static BYTE get_bpp_bmf(UINT32 bpp, BOOL* pValid) { if (pValid) *pValid = TRUE; switch (bpp) { case 1: return 1; case 8: return 3; case 16: return 4; case 24: return 5; case 32: return 6; default: WLog_WARN(TAG, "Invalid color depth %" PRIu32, bpp); if (pValid) *pValid = FALSE;...
0
[ "CWE-125" ]
FreeRDP
b8beb55913471952f92770c90c372139d78c16c0
64,108,471,456,426,800,000,000,000,000,000,000,000
23
Fixed OOB read in update_read_cache_bitmap_v3_order CVE-2020-11096 thanks @antonio-morales for finding this.
static void kvm_gen_update_masterclock(struct kvm *kvm) { #ifdef CONFIG_X86_64 int i; struct kvm_vcpu *vcpu; struct kvm_arch *ka = &kvm->arch; spin_lock(&ka->pvclock_gtod_sync_lock); kvm_make_mclock_inprogress_request(kvm); /* no guest entries from this point */ pvclock_update_vm_gtod_copy(kvm); kvm_for_each_...
0
[]
kvm
854e8bb1aa06c578c2c9145fa6bfe3680ef63b23
126,463,139,934,038,380,000,000,000,000,000,000,000
22
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...
static void DefaultWarningHandler(const ExceptionType magick_unused(severity), const char *reason,const char *description) { magick_unreferenced(severity); if (reason == (char *) NULL) return; (void) FormatLocaleFile(stderr,"%s: %s",GetClientName(),reason); if (description != (char *) NULL) (void) Fo...
0
[ "CWE-120", "CWE-787" ]
ImageMagick
e45e48b881038487d0bc94d92a16c1537616cc0a
231,555,380,500,783,350,000,000,000,000,000,000,000
13
Suspend exception processing if too many exceptions
int ClientHandler::noop() { return 0; }
0
[]
nghttp2
95efb3e19d174354ca50c65d5d7227d92bcd60e1
218,084,357,760,029,430,000,000,000,000,000,000,000
1
Don't read too greedily
static int h264_frame_start(H264Context *h) { Picture *pic; int i, ret; const int pixel_shift = h->pixel_shift; release_unused_pictures(h, 1); h->cur_pic_ptr = NULL; i = find_unused_picture(h); if (i < 0) { av_log(h->avctx, AV_LOG_ERROR, "no frame buffer available\n"); retu...
0
[ "CWE-787" ]
FFmpeg
1f097d168d9cad473dd44010a337c1413a9cd198
333,555,836,308,166,230,000,000,000,000,000,000,000
83
h264: reset data partitioning at the beginning of each decode call Prevents using GetBitContexts with data from previous calls. Fixes access to freed memory. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC:libav-stable@libav.org
static Value performCastLongToInt(const boost::intrusive_ptr<ExpressionContext>& expCtx, Value inputValue) { long long longValue = inputValue.getLong(); uassert(ErrorCodes::ConversionFailure, str::stream() << "Conversion woul...
0
[ "CWE-190" ]
mongo
21d8699ed6c517b45e1613e20231cd8eba894985
30,967,566,304,554,490,000,000,000,000,000,000,000
12
SERVER-43699 $mod should not overflow for large negative values
int oz_hcd_heartbeat(void *hport) { int rc = 0; struct oz_port *port = hport; struct oz_hcd *ozhcd = port->ozhcd; struct oz_urb_link *urbl, *n; LIST_HEAD(xfr_list); struct urb *urb; struct oz_endpoint *ep; struct timespec ts, delta; getrawmonotonic(&ts); /* Check the OUT isoc endpoints to see if any URB data...
0
[ "CWE-703", "CWE-189" ]
linux
b1bb5b49373b61bf9d2c73a4d30058ba6f069e4c
83,246,177,607,851,720,000,000,000,000,000,000,000
142
ozwpan: Use unsigned ints to prevent heap overflow Using signed integers, the subtraction between required_size and offset could wind up being negative, resulting in a memcpy into a heap buffer with a negative length, resulting in huge amounts of network-supplied data being copied into the heap, which could potentiall...
int r_jwe_parsen_json_str(jwe_t * jwe, const char * jwe_json_str, size_t jwe_json_str_len, int x5u_flags) { json_t * jwe_json = NULL; int ret; jwe_json = json_loadb(jwe_json_str, jwe_json_str_len, JSON_DECODE_ANY, NULL); ret = r_jwe_parse_json_t(jwe, jwe_json, x5u_flags); json_decref(jwe_json); return ret...
0
[ "CWE-787" ]
rhonabwy
b4c2923a1ba4fabf9b55a89244127e153a3e549b
39,603,595,702,263,015,000,000,000,000,000,000,000
10
Fix buffer overflow on r_jwe_aesgcm_key_unwrap
TEST_F(Http1ClientConnectionImplTest, ResponseHeadersWithLargeValueRejected) { initialize(); NiceMock<MockResponseDecoder> response_decoder; Http::RequestEncoder& request_encoder = codec_->newStream(response_decoder); TestRequestHeaderMapImpl headers{{":method", "GET"}, {":path", "/"}, {":authority", "host"}};...
0
[ "CWE-770" ]
envoy
7ca28ff7d46454ae930e193d97b7d08156b1ba59
300,233,829,525,590,930,000,000,000,000,000,000,000
17
[http1] Include request URL in request header size computation, and reject partial headers that exceed configured limits (#145) Signed-off-by: antonio <avd@google.com>
HTStyle *LYstyles(int style_number) { if (styles[style_number] == 0) get_styles(); return styles[style_number]; }
0
[ "CWE-416" ]
lynx-snapshots
280a61b300a1614f6037efc0902ff7ecf17146e9
223,023,634,841,306,670,000,000,000,000,000,000,000
6
snapshot of project "lynx", label v2-8-9dev_15b
static int nl80211_tx_mgmt(struct sk_buff *skb, struct genl_info *info) { struct cfg80211_registered_device *rdev = info->user_ptr[0]; struct net_device *dev = info->user_ptr[1]; struct ieee80211_channel *chan; enum nl80211_channel_type channel_type = NL80211_CHAN_NO_HT; bool channel_type_valid = false; u32 freq...
0
[ "CWE-362", "CWE-119" ]
linux
208c72f4fe44fe09577e7975ba0e7fa0278f3d03
70,941,248,512,566,710,000,000,000,000,000,000,000
85
nl80211: fix check for valid SSID size in scan operations In both trigger_scan and sched_scan operations, we were checking for the SSID length before assigning the value correctly. Since the memory was just kzalloc'ed, the check was always failing and SSID with over 32 characters were allowed to go through. This was...
flatpak_run_add_x11_args (GPtrArray *argv_array, GArray *fd_array, char ***envp_p, gboolean allowed) { g_autofree char *x11_socket = NULL; const char *display; /* Always cover /tmp/.X11-unix, that way we never see the host one in...
0
[ "CWE-20" ]
flatpak
902fb713990a8f968ea4350c7c2a27ff46f1a6c4
121,698,551,391,608,900,000,000,000,000,000,000,000
86
Use seccomp to filter out TIOCSTI ioctl This would otherwise let the sandbox add input to the controlling tty.
do_system(const char *cmd) { int ierr; /* (am, 19980929) * OS/2 related note: cmd.exe returns 255 if called w/o argument. * i.e. calling a shell by "!" will always end with an error message. * A workaround has to include checking for EMX,OS/2, two environment * variables,... */ if (!cmd) return; res...
0
[ "CWE-415" ]
gnuplot
052cbd17c3cbbc602ee080b2617d32a8417d7563
100,215,477,452,898,470,000,000,000,000,000,000,000
28
successive failures of "set print <foo>" could cause double-free Bug #2312
transformTableLikeClause(CreateStmtContext *cxt, TableLikeClause *table_like_clause) { AttrNumber parent_attno; Relation relation; TupleDesc tupleDesc; TupleConstr *constr; AclResult aclresult; char *comment; ParseCallbackState pcbstate; setup_parser_errposition_callback(&pcbstate, cxt->pstate, t...
0
[ "CWE-94" ]
postgres
5919bb5a5989cda232ac3d1f8b9d90f337be2077
250,722,968,053,676,100,000,000,000,000,000,000,000
235
In extensions, don't replace objects not belonging to the extension. Previously, if an extension script did CREATE OR REPLACE and there was an existing object not belonging to the extension, it would overwrite the object and adopt it into the extension. This is problematic, first because the overwrite is probably uni...
static int smack_ptrace_traceme(struct task_struct *ptp) { int rc; struct smk_audit_info ad; char *sp, *tsp; rc = cap_ptrace_traceme(ptp); if (rc != 0) return rc; smk_ad_init(&ad, __func__, LSM_AUDIT_DATA_TASK); smk_ad_setfield_u_tsk(&ad, ptp); sp = current_security(); tsp = task_security(ptp); /* we won...
0
[]
linux-2.6
ee18d64c1f632043a02e6f5ba5e045bb26a5465f
32,546,965,187,089,913,000,000,000,000,000,000,000
23
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...
check_autojoin_channels (server *serv) { int i = 0; session *sess; GSList *list = sess_list; GSList *sess_channels = NULL; /* joined channels that are not in the favorites list */ favchannel *fav; /* shouldn't really happen, the io tag is destroyed in server.c */ if (!is_server (serv)) { return FALSE; } ...
0
[ "CWE-22" ]
hexchat
4e061a43b3453a9856d34250c3913175c45afe9d
76,074,418,331,998,540,000,000,000,000,000,000,000
76
Clean up handling CAP LS
GF_Err name_box_size(GF_Box *s) { GF_NameBox *ptr = (GF_NameBox *)s; if (ptr->string) ptr->size += strlen(ptr->string) + 1; return GF_OK; }
0
[ "CWE-787" ]
gpac
388ecce75d05e11fc8496aa4857b91245007d26e
250,851,362,335,543,400,000,000,000,000,000,000,000
6
fixed #1587
static int ZEND_FASTCALL ZEND_FETCH_DIM_FUNC_ARG_SPEC_VAR_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS) { zend_op *opline = EX(opline); zend_free_op free_op1, free_op2; zval *dim = _get_zval_ptr_var(&opline->op2, EX(Ts), &free_op2 TSRMLS_CC); zval **container; if (ARG_SHOULD_BE_SENT_BY_REF(EX(fbc), opline->extended_valu...
0
[]
php-src
ce96fd6b0761d98353761bf78d5bfb55291179fd
142,320,395,308,066,770,000,000,000,000,000,000,000
35
- 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 ssize_t ext4_direct_IO(struct kiocb *iocb, struct iov_iter *iter) { struct file *file = iocb->ki_filp; struct inode *inode = file->f_mapping->host; size_t count = iov_iter_count(iter); loff_t offset = iocb->ki_pos; ssize_t ret; #ifdef CONFIG_EXT4_FS_ENCRYPTION if (ext4_encrypted_inode(inode) && S_ISREG(in...
0
[ "CWE-416" ]
linux
eb9b5f01c33adebc31cbc236c02695f605b0e417
191,474,019,043,741,400,000,000,000,000,000,000,000
31
ext4: bubble errors from ext4_find_inline_data_nolock() up to ext4_iget() If ext4_find_inline_data_nolock() returns an error it needs to get reflected up to ext4_iget(). In order to fix this, ext4_iget_extra_inode() needs to return an error (and not return void). This is related to "ext4: do not allow external inode...
qemuProcessGraphicsReservePorts(virDomainGraphicsDefPtr graphics, bool reconnect) { virDomainGraphicsListenDefPtr glisten; if (graphics->nListens <= 0) return 0; glisten = &graphics->listens[0]; if (glisten->type != VIR_DOMAIN_GRAPHICS_LISTEN_TYPE_ADDRESS && ...
0
[ "CWE-416" ]
libvirt
1ac703a7d0789e46833f4013a3876c2e3af18ec7
96,598,877,319,660,960,000,000,000,000,000,000,000
54
qemu: Add missing lock in qemuProcessHandleMonitorEOF qemuMonitorUnregister will be called in multiple threads (e.g. threads in rpc worker pool and the vm event thread). In some cases, it isn't protected by the monitor lock, which may lead to call g_source_unref more than one time and a use-after-free problem eventua...
struct dma_buf *ion_share_dma_buf(struct ion_client *client, struct ion_handle *handle) { DEFINE_DMA_BUF_EXPORT_INFO(exp_info); struct ion_buffer *buffer; struct dma_buf *dmabuf; bool valid_handle; mutex_lock(&client->lock); valid_handle = ion_handle_validate(client, handle); if (!valid_handle) { WARN(1...
0
[ "CWE-416", "CWE-284" ]
linux
9590232bb4f4cc824f3425a6e1349afbe6d6d2b7
119,152,513,019,505,600,000,000,000,000,000,000,000
32
staging/android/ion : fix a race condition in the ion driver There is a use-after-free problem in the ion driver. This is caused by a race condition in the ion_ioctl() function. A handle has ref count of 1 and two tasks on different cpus calls ION_IOC_FREE simultaneously. cpu 0 cpu ...
static int init_sig_algs(SSL *s, unsigned int context) { /* Clear any signature algorithms extension received */ OPENSSL_free(s->s3->tmp.peer_sigalgs); s->s3->tmp.peer_sigalgs = NULL; s->s3->tmp.peer_sigalgslen = 0; return 1; }
0
[ "CWE-476" ]
openssl
fb9fa6b51defd48157eeb207f52181f735d96148
151,730,697,196,553,380,000,000,000,000,000,000,000
9
ssl sigalg extension: fix NULL pointer dereference As the variable peer_sigalgslen is not cleared on ssl rehandshake, it's possible to crash an openssl tls secured server remotely by sending a manipulated hello message in a rehandshake. On such a manipulated rehandshake, tls1_set_shared_sigalgs() calls tls12_shared_s...
void h2_mplx_release_and_join(h2_mplx *m, apr_thread_cond_t *wait) { apr_status_t status; int i, wait_secs = 60; ap_log_cerror(APLOG_MARK, APLOG_TRACE2, 0, m->c, "h2_mplx(%ld): start release", m->id); /* How to shut down a h2 connection: * 0. abort and tell the workers that no mo...
0
[ "CWE-444" ]
mod_h2
825de6a46027b2f4c30d7ff5a0c8b852d639c207
56,003,820,835,203,430,000,000,000,000,000,000,000
63
* Fixed keepalives counter on slave connections.
static void encode_nfs4_seqid(struct xdr_stream *xdr, const struct nfs_seqid *seqid) { if (seqid != NULL) encode_uint32(xdr, seqid->sequence->counter); else encode_uint32(xdr, 0); }
0
[ "CWE-787" ]
linux
b4487b93545214a9db8cbf32e86411677b0cca21
306,138,728,654,644,540,000,000,000,000,000,000,000
8
nfs: Fix getxattr kernel panic and memory overflow Move the buffer size check to decode_attr_security_label() before memcpy() Only call memcpy() if the buffer is large enough Fixes: aa9c2669626c ("NFS: Client implementation of Labeled-NFS") Signed-off-by: Jeffrey Mitchell <jeffrey.mitchell@starlab.io> [Trond: clean u...
check_lnums_both(int do_curwin, int nested) { win_T *wp; tabpage_T *tp; FOR_ALL_TAB_WINDOWS(tp, wp) if ((do_curwin || wp != curwin) && wp->w_buffer == curbuf) { if (!nested) { // save the original cursor position and topline wp->w_save_cursor.w_cursor_save = wp->w_cursor; wp->w_save_curso...
0
[ "CWE-122", "CWE-787" ]
vim
5fa9f23a63651a8abdb074b4fc2ec9b1adc6b089
22,901,313,175,695,630,000,000,000,000,000,000,000
25
patch 9.0.0061: ml_get error with nested autocommand Problem: ml_get error with nested autocommand. Solution: Also check line numbers for a nested autocommand. (closes #10761)
static void unmount_autofs(Automount *a) { int r; assert(a); if (a->pipe_fd < 0) return; a->pipe_event_source = sd_event_source_unref(a->pipe_event_source); a->pipe_fd = safe_close(a->pipe_fd); /* If we reload/reexecute things we keep the mount point a...
0
[ "CWE-362" ]
systemd
e7d54bf58789545a9eb0b3964233defa0b007318
228,774,506,690,361,930,000,000,000,000,000,000,000
24
automount: ack automount requests even when already mounted (#5916) If a process accesses an autofs filesystem while systemd is in the middle of starting the mount unit on top of it, it is possible for the autofs_ptype_missing_direct request from the kernel to be received after the mount unit has been fully started...
xrdp_mm_get_value(struct xrdp_mm* self, char* aname, char* dest, int dest_len) { char* name; char* value; int index; int count; int rv; rv = 1; /* find the library name */ dest[0] = 0; count = self->login_names->count; for (index = 0; index < count; index++) { name = (char*)list_get_item(self...
0
[]
xrdp
d8f9e8310dac362bb9578763d1024178f94f4ecc
289,250,343,026,781,600,000,000,000,000,000,000,000
29
move temp files from /tmp to /tmp/.xrdp
int h2_make_htx_response(struct http_hdr *list, struct htx *htx, unsigned int *msgf, unsigned long long *body_len) { struct ist phdr_val[H2_PHDR_NUM_ENTRIES]; uint32_t fields; /* bit mask of H2_PHDR_FND_* */ uint32_t idx; int phdr; int ret; int i; uint32_t used = htx_used_space(htx); struct htx_sl *sl = NULL; ...
0
[ "CWE-74" ]
haproxy
146f53ae7e97dbfe496d0445c2802dd0a30b0878
210,447,434,272,270,600,000,000,000,000,000,000,000
129
BUG/MAJOR: h2: make header field name filtering stronger Tim D�sterhus found that the amount of sanitization we perform on HTTP header field names received in H2 is insufficient. Currently we reject upper case letters as mandated by RFC7540#8.1.2, but section 10.3 also requires that intermediaries translating streams ...
static int fts3SpecialInsert(Fts3Table *p, sqlite3_value *pVal){ int rc = SQLITE_ERROR; /* Return Code */ const char *zVal = (const char *)sqlite3_value_text(pVal); int nVal = sqlite3_value_bytes(pVal); if( !zVal ){ return SQLITE_NOMEM; }else if( nVal==8 && 0==sqlite3_strnicmp(zVal, "optimize",...
1
[ "CWE-787" ]
sqlite
c72f2fb7feff582444b8ffdc6c900c69847ce8a9
111,149,153,385,868,920,000,000,000,000,000,000,000
36
More improvements to shadow table corruption detection in FTS3. FossilOrigin-Name: 51525f9c3235967bc00a090e84c70a6400698c897aa4742e817121c725b8c99d
*/ void xmlXPathEvalExpr(xmlXPathParserContextPtr ctxt) { #ifdef XPATH_STREAMING xmlXPathCompExprPtr comp; #endif if (ctxt == NULL) return; #ifdef XPATH_STREAMING comp = xmlXPathTryStreamCompile(ctxt->context, ctxt->base); if (comp != NULL) { if (ctxt->comp != NULL) xmlXPathFreeCompExpr(...
0
[]
libxml2
03c6723043775122313f107695066e5744189a08
305,889,665,903,365,500,000,000,000,000,000,000,000
31
Handling of XPath function arguments in error case The XPath engine tries to guarantee that every XPath function can pop 'nargs' non-NULL values off the stack. libxslt, for example, relies on this assumption. But the check isn't thorough enough if there are errors during the evaluation of arguments. This can lead to s...
static int ZEND_FASTCALL ZEND_MUL_SPEC_VAR_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS) { zend_op *opline = EX(opline); zend_free_op free_op1; mul_function(&EX_T(opline->result.u.var).tmp_var, _get_zval_ptr_var(&opline->op1, EX(Ts), &free_op1 TSRMLS_CC), &opline->op2.u.constant TSRMLS_CC); if (free_op1.var) {zval_...
0
[]
php-src
ce96fd6b0761d98353761bf78d5bfb55291179fd
66,716,509,951,932,500,000,000,000,000,000,000,000
12
- 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
void Image::setIccProfile(Exiv2::DataBuf& iccProfile,bool bTestValid) { if ( bTestValid ) { if ( iccProfile.pData_ && ( iccProfile.size_ < (long) sizeof(long)) ) throw Error(kerInvalidIccProfile); long size = iccProfile.pData_ ? getULong(iccProfile.pData_, bigEndian): -1; ...
0
[ "CWE-835" ]
exiv2
ae49250942f4395639961abeed3c15920fcd7241
234,771,814,793,465,700,000,000,000,000,000,000,000
9
Check in Image::printIFDStructure if seek and reads are OK
void ZipOutputStream::close(Poco::UInt64& extraDataSize) { flush(); _buf.close(extraDataSize); }
0
[ "CWE-22" ]
poco
bb7e5feece68ccfd8660caee93da25c5c39a4707
107,456,762,254,304,270,000,000,000,000,000,000,000
5
merge zip entry absolute path vulnerability fix (#1968) from develop
static void __scalar32_min_max_lsh(struct bpf_reg_state *dst_reg, u64 umin_val, u64 umax_val) { /* We lose all sign bit information (except what we can pick * up from var_off) */ dst_reg->s32_min_value = S32_MIN; dst_reg->s32_max_value = S32_MAX; /* If we might shift our top bit out, then we know nothing...
0
[ "CWE-119", "CWE-681", "CWE-787" ]
linux
5b9fbeb75b6a98955f628e205ac26689bcb1383e
98,838,831,409,744,130,000,000,000,000,000,000,000
17
bpf: Fix scalar32_min_max_or bounds tracking Simon reported an issue with the current scalar32_min_max_or() implementation. That is, compared to the other 32 bit subreg tracking functions, the code in scalar32_min_max_or() stands out that it's using the 64 bit registers instead of 32 bit ones. This leads to bounds tra...
int sock_no_socketpair(struct socket *sock1, struct socket *sock2) { return -EOPNOTSUPP; }
0
[ "CWE-264" ]
linux-2.6
df0bca049d01c0ee94afb7cd5dfd959541e6c8da
217,327,734,410,328,300,000,000,000,000,000,000,000
4
net: 4 bytes kernel memory disclosure in SO_BSDCOMPAT gsopt try #2 In function sock_getsockopt() located in net/core/sock.c, optval v.val is not correctly initialized and directly returned in userland in case we have SO_BSDCOMPAT option set. This dummy code should trigger the bug: int main(void) { unsigned char buf...
Section* Binary::section_from_virtual_address(uint64_t address) { return const_cast<Section*>(static_cast<const Binary*>(this)->section_from_virtual_address(address)); }
0
[ "CWE-703" ]
LIEF
7acf0bc4224081d4f425fcc8b2e361b95291d878
310,050,616,015,616,900,000,000,000,000,000,000,000
3
Resolve #764
static GF_Node *lsr_read_radialGradient(GF_LASeRCodec *lsr) { GF_Node *elt = gf_node_new(lsr->sg, TAG_SVG_radialGradient); lsr_read_id(lsr, elt); lsr_read_rare(lsr, elt); lsr_read_fill(lsr, elt); lsr_read_stroke(lsr, elt); lsr_read_coordinate_ptr(lsr, elt, TAG_SVG_ATT_cx, 1, "cx"); lsr_read_coordinate_ptr(lsr, e...
0
[ "CWE-190" ]
gpac
faa75edde3dfeba1e2cf6ffa48e45a50f1042096
75,198,891,992,968,810,000,000,000,000,000,000,000
15
fixed #2213
struct sk_buff *udp4_gro_receive(struct list_head *head, struct sk_buff *skb) { struct udphdr *uh = udp_gro_udphdr(skb); if (unlikely(!uh) || !static_branch_unlikely(&udp_encap_needed_key)) goto flush; /* Don't bother verifying checksum if we're going to flush anyway. */ if (NAPI_GRO_CB(skb)->flush) goto skip...
0
[ "CWE-787" ]
net
4dd2b82d5adfbe0b1587ccad7a8f76d826120f37
144,858,904,294,136,470,000,000,000,000,000,000,000
25
udp: fix GRO packet of death syzbot was able to crash host by sending UDP packets with a 0 payload. TCP does not have this issue since we do not aggregate packets without payload. Since dev_gro_receive() sets gso_size based on skb_gro_len(skb) it seems not worth trying to cope with padded packets. BUG: KASAN: slab-...
u32 udp_flow_hashrnd(void) { static u32 hashrnd __read_mostly; net_get_random_once(&hashrnd, sizeof(hashrnd)); return hashrnd; }
0
[]
linux
a612769774a30e4fc143c4cb6395c12573415660
75,002,785,449,811,460,000,000,000,000,000,000,000
8
udp: prevent bugcheck if filter truncates packet too much If socket filter truncates an udp packet below the length of UDP header in udpv6_queue_rcv_skb() or udp_queue_rcv_skb(), it will trigger a BUG_ON in skb_pull_rcsum(). This BUG_ON (and therefore a system crash if kernel is configured that way) can be easily enfo...
static void test_bug19671() { MYSQL_RES *result; int rc; myheader("test_bug19671"); mysql_query(mysql, "set sql_mode=''"); rc= mysql_query(mysql, "drop table if exists t1"); myquery(rc); rc= mysql_query(mysql, "drop view if exists v1"); myquery(rc); rc= mysql_query(mysql, "create table t1(f1 int)")...
0
[ "CWE-284", "CWE-295" ]
mysql-server
3bd5589e1a5a93f9c224badf983cd65c45215390
2,373,254,571,622,660,000,000,000,000,000,000,000
32
WL#6791 : Redefine client --ssl option to imply enforced encryption # Changed the meaning of the --ssl=1 option of all client binaries to mean force ssl, not try ssl and fail over to eunecrypted # Added a new MYSQL_OPT_SSL_ENFORCE mysql_options() option to specify that an ssl connection is required. # Added a new macr...
static inline int task_fits_capacity(struct task_struct *p, long capacity) { return capacity * 1024 > task_util_est(p) * capacity_margin; }
0
[ "CWE-400", "CWE-703", "CWE-835" ]
linux
c40f7d74c741a907cfaeb73a7697081881c497d0
78,263,125,690,481,220,000,000,000,000,000,000,000
4
sched/fair: Fix infinite loop in update_blocked_averages() by reverting a9e7f6544b9c Zhipeng Xie, Xie XiuQi and Sargun Dhillon reported lockups in the scheduler under high loads, starting at around the v4.18 time frame, and Zhipeng Xie tracked it down to bugs in the rq->leaf_cfs_rq_list manipulation. Do a (manual) re...
inline void BroadcastMul(const uint8* input1_data, const Dims<4>& input1_dims, int32 input1_offset, const uint8* input2_data, const Dims<4>& input2_dims, int32 input2_offset, int32 output_offset, int32 output_multiplier, ...
0
[ "CWE-703", "CWE-835" ]
tensorflow
dfa22b348b70bb89d6d6ec0ff53973bacb4f4695
317,872,326,585,921,000,000,000,000,000,000,000,000
19
Prevent a division by 0 in average ops. PiperOrigin-RevId: 385184660 Change-Id: I7affd4554f9b336fca29ac68f633232c094d0bd3
proc_lambda(mrb_state *mrb, mrb_value self) { mrb_value blk; struct RProc *p; mrb_get_args(mrb, "&", &blk); if (mrb_nil_p(blk)) { mrb_raise(mrb, E_ARGUMENT_ERROR, "tried to create Proc object without a block"); } if (!mrb_proc_p(blk)) { mrb_raise(mrb, E_ARGUMENT_ERROR, "not a proc"); } p = mrb_...
0
[ "CWE-476", "CWE-190" ]
mruby
f5e10c5a79a17939af763b1dcf5232ce47e24a34
4,552,789,527,979,177,000,000,000,000,000,000,000
21
proc.c: add `mrb_state` argument to `mrb_proc_copy()`. The function may invoke the garbage collection and it requires `mrb_state` to run.
UnicodeString(UBool /*isTerminated*/, const UChar * /*text*/, int32_t textLength) : i(textLength) {(void)i;}
0
[ "CWE-190", "CWE-787" ]
icu
b7d08bc04a4296982fcef8b6b8a354a9e4e7afca
177,647,147,837,677,280,000,000,000,000,000,000,000
1
ICU-20958 Prevent SEGV_MAPERR in append See #971
mysql_execute_command(THD *thd) { int res= 0; int up_result= 0; LEX *lex= thd->lex; /* first SELECT_LEX (have special meaning for many of non-SELECTcommands) */ SELECT_LEX *select_lex= &lex->select_lex; /* first table of first SELECT_LEX */ TABLE_LIST *first_table= select_lex->table_list.first; /* lis...
0
[]
server
ba4927e520190bbad763bb5260ae154f29a61231
309,560,966,863,027,430,000,000,000,000,000,000,000
3,020
MDEV-19398: Assertion `item1->type() == Item::FIELD_ITEM ... Window Functions code tries to minimize the number of times it needs to sort the select's resultset by finding "compatible" OVER (PARTITION BY ... ORDER BY ...) clauses. This employs compare_order_elements(). That function assumed that the order expressions...
static OPJ_BOOL opj_tcd_dc_level_shift_decode(opj_tcd_t *p_tcd) { OPJ_UINT32 compno; opj_tcd_tilecomp_t * l_tile_comp = 00; opj_tccp_t * l_tccp = 00; opj_image_comp_t * l_img_comp = 00; opj_tcd_resolution_t* l_res = 00; opj_tcd_tile_t * l_tile; OPJ_UINT32 l_width, l_height, i, j; OPJ_INT...
0
[ "CWE-119", "CWE-787" ]
openjpeg
afb308b9ccbe129608c9205cf3bb39bbefad90b9
179,018,012,205,211,520,000,000,000,000,000,000,000
72
Encoder: grow buffer size in opj_tcd_code_block_enc_allocate_data() to avoid write heap buffer overflow in opj_mqc_flush (#982)
cdf_read_property_info(const cdf_stream_t *sst, const cdf_header_t *h, uint32_t offs, cdf_property_info_t **info, size_t *count, size_t *maxcount) { const cdf_section_header_t *shp; cdf_section_header_t sh; const uint8_t *p, *q, *e; int16_t s16; int32_t s32; uint32_t u32; int64_t s64; uint64_t u64; cdf_tim...
1
[ "CWE-703", "CWE-189" ]
php-src
7ba1409a1aee5925180de546057ddd84ff267947
305,814,938,004,888,260,000,000,000,000,000,000,000
197
Fix bug #67716 - Segfault in cdf.c
void CWebSock::FinishUserSessions(const CUser& User) { Sessions.m_mspSessions.FinishUserSessions(User); }
0
[ "CWE-22" ]
znc
a4a5aeeb17d32937d8c7d743dae9a4cc755ce773
259,272,191,787,438,980,000,000,000,000,000,000,000
3
Don't let web skin name ../../../../ access files outside of usual skins directories. Thanks for Jeriko One <jeriko.one@gmx.us> for finding and reporting this.
MagickExport char *DestroyString(char *string) { return((char *) RelinquishMagickMemory(string)); }
0
[ "CWE-190" ]
ImageMagick
be90a5395695f0d19479a5d46b06c678be7f7927
143,975,325,664,150,920,000,000,000,000,000,000,000
4
https://github.com/ImageMagick/ImageMagick/issues/1721
int ip6_mroute_setsockopt(struct sock *sk, int optname, char __user *optval, unsigned int optlen) { int ret, parent = 0; struct mif6ctl vif; struct mf6cctl mfc; mifi_t mifi; struct net *net = sock_net(sk); struct mr6_table *mrt; mrt = ip6mr_get_table(net, raw6_sk(sk)->ip6mr_table ? : RT6_TABLE_DFLT); if (!mrt)...
1
[ "CWE-20" ]
linux
99253eb750fda6a644d5188fb26c43bad8d5a745
146,139,831,631,328,310,000,000,000,000,000,000,000
145
ipv6: check sk sk_type and protocol early in ip_mroute_set/getsockopt Commit 5e1859fbcc3c ("ipv4: ipmr: various fixes and cleanups") fixed the issue for ipv4 ipmr: ip_mroute_setsockopt() & ip_mroute_getsockopt() should not access/set raw_sk(sk)->ipmr_table before making sure the socket is a raw socket, and prot...
qf_parse_line_nomatch(char_u *linebuf, int linelen, qffields_T *fields) { fields->namebuf[0] = NUL; // no match found, remove file name fields->lnum = 0; // don't jump to this line fields->valid = FALSE; return copy_nonerror_line(linebuf, linelen, fields); }
0
[ "CWE-416" ]
vim
4f1b083be43f351bc107541e7b0c9655a5d2c0bb
59,968,152,078,705,890,000,000,000,000,000,000,000
8
patch 9.0.0322: crash when no errors and 'quickfixtextfunc' is set Problem: Crash when no errors and 'quickfixtextfunc' is set. Solution: Do not handle errors if there aren't any.
static int unix_dgram_sendmsg(struct kiocb *kiocb, struct socket *sock, struct msghdr *msg, size_t len) { struct sock_iocb *siocb = kiocb_to_siocb(kiocb); struct sock *sk = sock->sk; struct net *net = sock_net(sk); struct unix_sock *u = unix_sk(sk); struct sockaddr_un *sunaddr=msg->msg_name; struct sock ...
1
[]
linux-2.6
6209344f5a3795d34b7f2c0061f49802283b6bdd
167,783,015,965,478,600,000,000,000,000,000,000,000
149
net: unix: fix inflight counting bug in garbage collector Previously I assumed that the receive queues of candidates don't change during the GC. This is only half true, nothing can be received from the queues (see comment in unix_gc()), but buffers could be added through the other half of the socket pair, which may s...
static netdev_tx_t brcmf_net_p2p_start_xmit(struct sk_buff *skb, struct net_device *ndev) { if (skb) dev_kfree_skb_any(skb); return NETDEV_TX_OK; }
0
[ "CWE-20" ]
linux
a4176ec356c73a46c07c181c6d04039fafa34a9f
120,784,494,739,231,770,000,000,000,000,000,000,000
8
brcmfmac: add subtype check for event handling in data path For USB there is no separate channel being used to pass events from firmware to the host driver and as such are passed over the data path. In order to detect mock event messages an additional check is needed on event subtype. This check is added conditionally...
static PHP_GINIT_FUNCTION(xml) { #if defined(COMPILE_DL_XML) && defined(ZTS) ZEND_TSRMLS_CACHE_UPDATE(); #endif xml_globals->default_encoding = (XML_Char*)"UTF-8"; }
0
[ "CWE-190" ]
php-src
57b997ebf99e0eb9a073e0dafd2ab100bd4a112d
183,947,420,236,947,900,000,000,000,000,000,000,000
7
Fix bug #71637: Multiple Heap Overflow due to integer overflows
parse_credentials (const char *beg, const char *end, char **user, char **passwd) { char *colon; const char *userend; if (beg == end) return false; /* empty user name */ colon = memchr (beg, ':', end - beg); if (colon == beg) return false; /* again empty user name */ if...
0
[]
wget
59b920874daa565a1323ffa1e756e80493190686
35,742,090,609,453,570,000,000,000,000,000,000,000
27
Support non-ASCII URLs * src/url.c [HAVE_ICONV]: Include iconv.h and langinfo.h. (convert_fname): New function. [HAVE_ICONV]: Convert file name from remote encoding to local encoding. (url_file_name): Call convert_fname. (filechr_table): Don't consider bytes in 128..159 as control characters. * tests/Test-ftp-iri.px:...
PHP_METHOD(PharFileInfo, __construct) { char *fname, *arch, *entry, *error; size_t fname_len; int arch_len, entry_len; phar_entry_object *entry_obj; phar_entry_info *entry_info; phar_archive_data *phar_data; zval *zobj = getThis(), arg1; if (zend_parse_parameters_throw(ZEND_NUM_ARGS(), "p", &fname, &fname_len)...
0
[ "CWE-20" ]
php-src
1e9b175204e3286d64dfd6c9f09151c31b5e099a
233,876,493,171,342,850,000,000,000,000,000,000,000
61
Fix bug #71860: Require valid paths for phar filenames
static int __init fdt_find_uefi_params(unsigned long node, const char *uname, int depth, void *data) { struct param_info *info = data; int i; for (i = 0; i < ARRAY_SIZE(dt_params); i++) { const char *subnode = dt_params[i].subnode; if (depth != 1 || strcmp(uname, dt_params[i].uname) != 0) { info-...
0
[]
linux
1957a85b0032a81e6482ca4aab883643b8dae06e
123,338,269,881,769,080,000,000,000,000,000,000,000
28
efi: Restrict efivar_ssdt_load when the kernel is locked down efivar_ssdt_load allows the kernel to import arbitrary ACPI code from an EFI variable, which gives arbitrary code execution in ring 0. Prevent that when the kernel is locked down. Signed-off-by: Matthew Garrett <mjg59@google.com> Acked-by: Ard Biesheuvel <...
CImg<T>& fillC(const unsigned int x, const unsigned int y, const unsigned int z, const double a0, ...) { const ulongT whd = (ulongT)_width*_height*_depth; if (x<_width && y<_height && z<_depth) _cimg_fill1(x,y,z,0,whd,_spectrum,double); return *this; }
0
[ "CWE-770" ]
cimg
619cb58dd90b4e03ac68286c70ed98acbefd1c90
277,975,414,366,749,800,000,000,000,000,000,000,000
5
CImg<>::load_bmp() and CImg<>::load_pandore(): Check that dimensions encoded in file does not exceed file size.
ref_param_requested(const gs_param_list * plist, gs_param_name pkey) { const iparam_list *const ciplist = (const iparam_list *)plist; ref kref; ref *ignore_value; if (!r_has_type(&ciplist->u.w.wanted, t_dictionary)) return -1; if (ref_param_key(ciplist, pkey, &kref) < 0) return -1; ...
0
[]
ghostpdl
bfa6b2ecbe48edc69a7d9d22a12419aed25960b8
107,967,970,041,601,200,000,000,000,000,000,000,000
12
Bug 697548: use the correct param list enumerator When we encountered dictionary in a ref_param_list, we were using the enumerator for the "parent" param_list, rather than the enumerator for the param_list we just created for the dictionary. That parent was usually the stack list enumerator, and caused a segfault. Us...
d_lite_day_fraction(VALUE self) { get_d1(self); if (simple_dat_p(dat)) return INT2FIX(0); return m_fr(dat); }
0
[]
date
3959accef8da5c128f8a8e2fd54e932a4fb253b0
237,369,801,548,629,300,000,000,000,000,000,000,000
7
Add length limit option for methods that parses date strings `Date.parse` now raises an ArgumentError when a given date string is longer than 128. You can configure the limit by giving `limit` keyword arguments like `Date.parse(str, limit: 1000)`. If you pass `limit: nil`, the limit is disabled. Not only `Date.parse`...
static int coroutine_fn bdrv_co_readv_em(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *iov) { return bdrv_co_io_em(bs, sector_num, nb_sectors, iov, false); }
0
[ "CWE-190" ]
qemu
8f4754ede56e3f9ea3fd7207f4a7c4453e59285b
5,124,554,579,189,478,000,000,000,000,000,000,000
6
block: Limit request size (CVE-2014-0143) Limiting the size of a single request to INT_MAX not only fixes a direct integer overflow in bdrv_check_request() (which would only trigger bad behaviour with ridiculously huge images, as in close to 2^64 bytes), but can also prevent overflows in all block drivers. Signed-off...
static elf_vrreg_t __user *sigcontext_vmx_regs(struct sigcontext __user *sc) { return (elf_vrreg_t __user *) (((unsigned long)sc->vmx_reserve + 15) & ~0xful); }
0
[ "CWE-20", "CWE-284", "CWE-369" ]
linux
d2b9d2a5ad5ef04ff978c9923d19730cb05efd55
264,300,736,550,967,420,000,000,000,000,000,000,000
4
powerpc/tm: Block signal return setting invalid MSR state Currently we allow both the MSR T and S bits to be set by userspace on a signal return. Unfortunately this is a reserved configuration and will cause a TM Bad Thing exception if attempted (via rfid). This patch checks for this case in both the 32 and 64 bit s...
_gcry_assert_failed (const char *expr, const char *file, int line, const char *func) { grub_fatal ("assertion %s at %s:%d (%s) failed\n", expr, file, line, func); }
0
[ "CWE-264" ]
grub
451d80e52d851432e109771bb8febafca7a5f1f2
72,520,218,511,492,885,000,000,000,000,000,000,000
6
Fix security issue when reading username and password This patch fixes two integer underflows at: * grub-core/lib/crypto.c * grub-core/normal/auth.c CVE-2015-8370 Signed-off-by: Hector Marco-Gisbert <hecmargi@upv.es> Signed-off-by: Ismael Ripoll-Ripoll <iripoll@disca.upv.es> Also-By: Andrey Borzenkov <arvidjaar@...
void Http2Stream::Destroy() { // Do nothing if this stream instance is already destroyed if (IsDestroyed()) return; if (session_->HasPendingRstStream(id_)) FlushRstStream(); flags_ |= NGHTTP2_STREAM_FLAG_DESTROYED; Debug(this, "destroying stream"); // Wait until the start of the next loop to delet...
0
[ "CWE-416" ]
node
7f178663ebffc82c9f8a5a1b6bf2da0c263a30ed
6,225,915,519,433,708,000,000,000,000,000,000,000
38
src: use unique_ptr for WriteWrap This commit attempts to avoid a use-after-free error by using unqiue_ptr and passing a reference to it. CVE-ID: CVE-2020-8265 Fixes: https://github.com/nodejs-private/node-private/issues/227 PR-URL: https://github.com/nodejs-private/node-private/pull/238 Reviewed-By: Michael Dawson <...
static char *validate_command_options( application_argument_t *argument) { GSList *copt; for (copt = argument->command_options; copt != NULL; copt = copt->next) { char *opt = (char *)copt->data; if (g_str_has_prefix(opt, "--use-compress-program")) { return opt; } } return NULL; }
0
[ "CWE-77" ]
amanda
29bae2e271093cd8d06ea98f73a474c685c5a314
153,635,445,881,404,230,000,000,000,000,000,000,000
15
* application-src/ambsdtar.c, application-src/amgtar.c, application-src/amstar.c: Filter option from COMMAND-OPTIONS * common-src/ammessage.c: Add message. git-svn-id: https://svn.code.sf.net/p/amanda/code/amanda/trunk@6483 a8d146d6-cc15-0410-8900-af154a0219e0
void mm_update_next_owner(struct mm_struct *mm) { struct task_struct *c, *g, *p = current; retry: if (!mm_need_new_owner(mm, p)) return; read_lock(&tasklist_lock); /* * Search in the children */ list_for_each_entry(c, &p->children, sibling) { if (c->mm == mm) goto assign_new_owner; } /* * Search ...
0
[ "CWE-20", "CWE-703", "CWE-400" ]
linux
b69f2292063d2caf37ca9aec7d63ded203701bf3
854,555,992,815,330,800,000,000,000,000,000,000
65
block: Fix io_context leak after failure of clone with CLONE_IO With CLONE_IO, parent's io_context->nr_tasks is incremented, but never decremented whenever copy_process() fails afterwards, which prevents exit_io_context() from calling IO schedulers exit functions. Give a task_struct to exit_io_context(), and call exi...
static const char * Indent (guint8 level) { return indent_buffer + (512 - 2 * (level)); }
0
[ "CWE-399", "CWE-119", "CWE-787" ]
wireshark
b8e0d416898bb975a02c1b55883342edc5b4c9c0
77,161,841,830,714,310,000,000,000,000,000,000,000
3
WBXML: add a basic sanity check for offset overflow This is a naive approach allowing to detact that something went wrong, without the need to replace all proto_tree_add_text() calls as what was done in master-2.0 branch. Bug: 12408 Change-Id: Ia14905005e17ae322c2fc639ad5e491fa08b0108 Reviewed-on: https://code.wiresh...
virDomainDiskSourcePRParse(xmlNodePtr node, xmlXPathContextPtr ctxt, virStoragePRDefPtr *pr) { VIR_XPATH_NODE_AUTORESTORE(ctxt); ctxt->node = node; if (!(ctxt->node = virXPathNode("./reservations", ctxt))) return 0; if (!(*pr = virStorageP...
0
[ "CWE-212" ]
libvirt
a5b064bf4b17a9884d7d361733737fb614ad8979
159,667,527,482,049,510,000,000,000,000,000,000,000
16
conf: Don't format http cookies unless VIR_DOMAIN_DEF_FORMAT_SECURE is used Starting with 3b076391befc3fe72deb0c244ac6c2b4c100b410 (v6.1.0-122-g3b076391be) we support http cookies. Since they may contain somewhat sensitive information we should not format them into the XML unless VIR_DOMAIN_DEF_FORMAT_SECURE is assert...
my_asnprintf (char *resultbuf, size_t *lengthp, const char *format, ...) { va_list args; char *ret; va_start (args, format); ret = vasnprintf (resultbuf, lengthp, format, args); va_end (args); return ret; }
0
[ "CWE-119", "CWE-787" ]
gnulib
278b4175c9d7dd47c1a3071554aac02add3b3c35
322,459,767,042,181,000,000,000,000,000,000,000,000
10
vasnprintf: Fix heap memory overrun bug. Reported by Ben Pfaff <blp@cs.stanford.edu> in <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>. * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of memory. * tests/test-vasnprintf.c (test_function): Add another test.
id3_skip (SF_PRIVATE * psf) { unsigned char buf [10] ; memset (buf, 0, sizeof (buf)) ; psf_binheader_readf (psf, "pb", 0, buf, 10) ; if (buf [0] == 'I' && buf [1] == 'D' && buf [2] == '3') { int offset = buf [6] & 0x7f ; offset = (offset << 7) | (buf [7] & 0x7f) ; offset = (offset << 7) | (buf [8] & 0x7f) ; ...
1
[ "CWE-119", "CWE-787" ]
libsndfile
f457b7b5ecfe91697ed01cfc825772c4d8de1236
161,644,378,791,936,260,000,000,000,000,000,000,000
27
src/id3.c : Improve error handling
TaskHandle_t xQueueGetMutexHolderFromISR( QueueHandle_t xSemaphore ) { TaskHandle_t pxReturn; configASSERT( xSemaphore ); /* Mutexes cannot be used in interrupt service routines, so the mutex * holder should not change in an ISR, and therefore a critical section is ...
0
[ "CWE-200", "CWE-190" ]
FreeRTOS-Kernel
47338393f1f79558f6144213409f09f81d7c4837
161,423,932,946,056,530,000,000,000,000,000,000,000
20
add assert for addition overflow on queue creation (#225)
static SVGInfo *DestroySVGInfo(SVGInfo *svg_info) { if (svg_info->size != (char *) NULL) svg_info->size=DestroyString(svg_info->size); if (svg_info->text != (char *) NULL) svg_info->text=DestroyString(svg_info->text); if (svg_info->scale != (double *) NULL) svg_info->scale=(double *) RelinquishMagickM...
0
[ "CWE-476" ]
ImageMagick
43dfb1894761c4929d5d5c98dc80ba4e59a0d114
80,535,039,618,634,310,000,000,000,000,000,000,000
14
Handle null pointer return from call to xmlCreatePushParserCtxt (#2624).
bool Item_func_int_div::fix_length_and_dec() { Item_result argtype= args[0]->result_type(); /* use precision only for the data type it is applicable for and valid */ uint32 char_length= args[0]->max_char_length() - (argtype == DECIMAL_RESULT || argtype == INT_RESULT ? ...
0
[ "CWE-120" ]
server
eca207c46293bc72dd8d0d5622153fab4d3fccf1
65,416,601,613,178,540,000,000,000,000,000,000,000
13
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...
nm_vpnc_plugin_init (NMVPNCPlugin *plugin) { NMVPNCPluginPrivate *priv = NM_VPNC_PLUGIN_GET_PRIVATE (plugin); priv->infd = -1; priv->out.fd = -1; priv->err.fd = -1; priv->server_message = g_string_sized_new (30); }
0
[]
NetworkManager-vpnc
07ac18a32b4e361a27ef48ac757d36cbb46e8e12
189,859,081,115,231,500,000,000,000,000,000,000,000
9
service: disallow newlinies in configuration values (CVE-2018-10900) The vpnc configuration format doesn't allow those. vpnc(8): The values start exactly one space after the keywords, and run to the end of line. This lets you put any kind of weird character (except CR, LF and NUL) in your strings We have no ch...
GF_Err gf_laser_decode_command_list(GF_LASeRCodec *codec, u16 ESID, u8 *data, u32 data_len, GF_List *com_list) { GF_Err e; u32 i; if (!codec || !data || !data_len) return GF_BAD_PARAM; codec->info = lsr_get_stream(codec, ESID); if (!codec->info) return GF_BAD_PARAM; codec->coord_bits = codec->info->cfg.coord_bit...
0
[ "CWE-190" ]
gpac
faa75edde3dfeba1e2cf6ffa48e45a50f1042096
93,235,132,356,079,030,000,000,000,000,000,000,000
38
fixed #2213
GF_Err gf_vvc_change_par(GF_VVCConfig *vvcc, s32 ar_n, s32 ar_d) { GF_VUIInfo vuii; memset(&vuii, 0, sizeof(GF_VUIInfo)); vuii.ar_num = ar_n; vuii.ar_den = ar_d; vuii.fullrange = -1; vuii.video_format = -1; vuii.color_prim = -1; vuii.color_tfc = -1; vuii.color_matrix = -1; return gf_vvc_change_vui(vvcc, &vuii...
0
[ "CWE-190" ]
gpac
0cd19f4db70615d707e0e6202933c2ea0c1d36df
301,476,786,919,398,700,000,000,000,000,000,000,000
13
fixed #2067
static int nft_setelem_parse_flags(const struct nft_set *set, const struct nlattr *attr, u32 *flags) { if (attr == NULL) return 0; *flags = ntohl(nla_get_be32(attr)); if (*flags & ~(NFT_SET_ELEM_INTERVAL_END | NFT_SET_ELEM_CATCHALL)) return -EOPNOTSUPP; if (!(set->flags & NFT_SET_INTERVAL) && *flag...
0
[ "CWE-665" ]
linux
ad9f151e560b016b6ad3280b48e42fa11e1a5440
271,568,845,082,532,030,000,000,000,000,000,000,000
15
netfilter: nf_tables: initialize set before expression setup nft_set_elem_expr_alloc() needs an initialized set if expression sets on the NFT_EXPR_GC flag. Move set fields initialization before expression setup. [4512935.019450] ================================================================== [4512935.019456] BUG: ...
FreeErrorData(ErrorData *edata) { if (edata->message) pfree(edata->message); if (edata->detail) pfree(edata->detail); if (edata->detail_log) pfree(edata->detail_log); if (edata->hint) pfree(edata->hint); if (edata->context) pfree(edata->context); if (edata->schema_name) pfree(edata->schema_name); if ...
0
[ "CWE-89" ]
postgres
2b3a8b20c2da9f39ffecae25ab7c66974fbc0d3b
77,927,283,325,863,300,000,000,000,000,000,000,000
26
Be more careful to not lose sync in the FE/BE protocol. If any error occurred while we were in the middle of reading a protocol message from the client, we could lose sync, and incorrectly try to interpret a part of another message as a new protocol message. That will usually lead to an "invalid frontend message" erro...
static int virtbt_flush(struct hci_dev *hdev) { return 0; }
0
[ "CWE-772" ]
linux
1d0688421449718c6c5f46e458a378c9b530ba18
33,541,772,134,040,280,000,000,000,000,000,000,000
4
Bluetooth: virtio_bt: fix memory leak in virtbt_rx_handle() On the reception of packets with an invalid packet type, the memory of the allocated socket buffers is never freed. Add a default case that frees these to avoid a memory leak. Fixes: afd2daa26c7a ("Bluetooth: Add support for virtio transport driver") Signed-...
static int srpt_parse_i_port_id(u8 i_port_id[16], const char *name) { const char *p; unsigned len, count, leading_zero_bytes; int ret, rc; p = name; if (strncasecmp(p, "0x", 2) == 0) p += 2; ret = -EINVAL; len = strlen(p); if (len % 2) goto out; count = min(len / 2, 16U); leading_zero_bytes = 16 - count;...
0
[ "CWE-200", "CWE-476" ]
linux
51093254bf879bc9ce96590400a87897c7498463
271,843,214,160,315,150,000,000,000,000,000,000,000
23
IB/srpt: Simplify srpt_handle_tsk_mgmt() Let the target core check task existence instead of the SRP target driver. Additionally, let the target core check the validity of the task management request instead of the ib_srpt driver. This patch fixes the following kernel crash: BUG: unable to handle kernel NULL pointer...
static int mb86a20s_get_blk_error(struct dvb_frontend *fe, unsigned layer, u32 *error, u32 *count) { struct mb86a20s_state *state = fe->demodulator_priv; int rc, val; u32 collect_rate; dev_dbg(&state->i2c->dev, "%s called.\n", __func__); if (layer >= NUM_LAYERS) return -EINVAL; /* Check if the P...
0
[ "CWE-119" ]
media_tree
eca2d34b9d2ce70165a50510659838e28ca22742
196,011,335,151,094,400,000,000,000,000,000,000,000
146
[media] mb86a20s: apply mask to val after checking for read failure Appling the mask 0x0f to the immediate return of the call to mb86a20s_readreg will always result in a positive value, meaning that the check of ret < 0 will never work. Instead, check for a -ve return value first, and then mask val with 0x0f. Kudos ...
Reprog *regcompx(void *(*alloc)(void *ctx, void *p, int n), void *ctx, const char *pattern, int cflags, const char **errorp) { struct cstate g; Renode *node; Reinst *split, *jump; int i, n; g.pstart = NULL; g.prog = NULL; if (setjmp(g.kaboom)) { if (errorp) *errorp = g.error; alloc(ctx, g.pstart, 0); al...
0
[ "CWE-400", "CWE-674", "CWE-787" ]
mujs
00d4606c3baf813b7b1c176823b2729bf51002a2
147,760,547,171,516,940,000,000,000,000,000,000,000
79
Bug 700937: Limit recursion in regexp matcher. Also handle negative return code as an error in the JS bindings.
JSObject::_setOwnIndexedImpl(Handle<JSObject>, Runtime *, uint32_t, Handle<>) { return false; }
0
[ "CWE-843", "CWE-125" ]
hermes
fe52854cdf6725c2eaa9e125995da76e6ceb27da
84,451,169,711,033,240,000,000,000,000,000,000,000
3
[CVE-2020-1911] Look up HostObject computed properties on the right object in the prototype chain. Summary: The change in the hermes repository fixes the security vulnerability CVE-2020-1911. This vulnerability only affects applications which allow evaluation of uncontrolled, untrusted JavaScript code not shipped wit...
void CtcpParser::query(CoreNetwork *net, const QString &bufname, const QString &ctcpTag, const QString &message) { QList<QByteArray> params; params << net->serverEncode(bufname) << lowLevelQuote(pack(net->serverEncode(ctcpTag), net->userEncode(bufname, message))); static const char *splitter = " .,-!?"; ...
1
[ "CWE-399" ]
quassel
b5e38970ffd55e2dd9f706ce75af9a8d7730b1b8
71,308,101,353,767,570,000,000,000,000,000,000,000
26
Improve the message-splitting algorithm for PRIVMSG and CTCP This introduces a new message splitting algorithm based on QTextBoundaryFinder. It works by first starting with the entire message to be sent, encoding it, and checking to see if it is over the maximum message length. If it is, it uses QTBF to find the wor...
static unsigned long account_pipe_buffers(struct user_struct *user, unsigned long old, unsigned long new) { return atomic_long_add_return(new - old, &user->pipe_bufs); }
0
[ "CWE-416" ]
linux
15fab63e1e57be9fdb5eec1bbc5916e9825e9acb
141,593,780,061,161,090,000,000,000,000,000,000,000
5
fs: prevent page refcount overflow in pipe_buf_get Change pipe_buf_get() to return a bool indicating whether it succeeded in raising the refcount of the page (if the thing in the pipe is a page). This removes another mechanism for overflowing the page refcount. All callers converted to handle a failure. Reported-by:...
hash(XML_Parser parser, KEY s) { unsigned long h = get_hash_secret_salt(parser); while (*s) h = CHAR_HASH(h, *s++); return h; }
0
[ "CWE-611" ]
libexpat
c4bf96bb51dd2a1b0e185374362ee136fe2c9d7f
196,792,524,509,805,880,000,000,000,000,000,000,000
7
xmlparse.c: Fix external entity infinite loop bug (CVE-2017-9233)
did_set_spell_option(int is_spellfile) { char_u *errmsg = NULL; win_T *wp; int l; if (is_spellfile) { l = (int)STRLEN(curwin->w_s->b_p_spf); if (l > 0 && (l < 4 || STRCMP(curwin->w_s->b_p_spf + l - 4, ".add") != 0)) errmsg = e_invarg; } if (errmsg == NULL) { FOR_ALL_W...
0
[ "CWE-20" ]
vim
d0b5138ba4bccff8a744c99836041ef6322ed39a
117,202,234,658,500,040,000,000,000,000,000,000,000
27
patch 8.0.0056 Problem: When setting 'filetype' there is no check for a valid name. Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
bool IsChromaSitingVertValueValid(uint64_t value) { switch (value) { case mkvmuxer::Colour::kUnspecifiedCsv: case mkvmuxer::Colour::kTopCollocated: case mkvmuxer::Colour::kHalfCsv: return true; } return false; }
0
[ "CWE-20" ]
libvpx
34d54b04e98dd0bac32e9aab0fbda0bf501bc742
1,772,174,114,654,494,400,000,000,000,000,000,000
9
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
static int io_uring_release(struct inode *inode, struct file *file) { struct io_ring_ctx *ctx = file->private_data; file->private_data = NULL; io_ring_ctx_wait_and_kill(ctx); return 0;
0
[ "CWE-667" ]
linux
3ebba796fa251d042be42b929a2d916ee5c34a49
12,434,270,522,499,575,000,000,000,000,000,000,000
8
io_uring: ensure that SQPOLL thread is started for exit If we create it in a disabled state because IORING_SETUP_R_DISABLED is set on ring creation, we need to ensure that we've kicked the thread if we're exiting before it's been explicitly disabled. Otherwise we can run into a deadlock where exit is waiting go park t...
lt_dladvise_global (lt_dladvise *padvise) { assert (padvise && *padvise); (*padvise)->is_symglobal = 1; return 0; }
0
[]
libtool
e91f7b960032074a55fc91273c1917e3082b5338
22,118,419,876,800,757,000,000,000,000,000,000,000
6
Don't load module.la from current directory by default. * libltdl/ltdl.c (try_dlopen): Do not attempt to load an unqualified module.la file from the current directory (by default) since doing so is insecure and is not compliant with the documentation. * tests/testsuite.at: Qualify access to module.la file in current d...
Item *Item_cache_temporal::convert_to_basic_const_item(THD *thd) { Item *new_item; DBUG_ASSERT(value_cached || example != 0); if (!value_cached) cache_value(); if (null_value) return new (thd->mem_root) Item_null(thd); else return make_literal(thd); return new_item; }
0
[ "CWE-416" ]
server
c02ebf3510850ba78a106be9974c94c3b97d8585
38,161,952,582,629,802,000,000,000,000,000,000,000
12
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.
mlx5_tx_eseg_dmin(struct mlx5_txq_data *restrict txq __rte_unused, struct mlx5_txq_local *restrict loc, struct mlx5_wqe *restrict wqe, unsigned int vlan, unsigned int olx) { struct mlx5_wqe_eseg *restrict es = &wqe->eseg; uint32_t csum; uint8_t *psrc, *pdst; /* * Calculate and set check sum flags...
0
[]
dpdk-stable
8b090f2664e9d014cd8fa0fde90597aaf4349e7e
59,028,221,272,167,000,000,000,000,000,000,000,000
57
net/mlx5: fix Rx queue recovery mechanism The local variables are getting inconsistent in data receiving routines after queue error recovery. Receive queue consumer index is getting wrong, need to reset one to the size of the queue (as RQ was fully replenished in recovery procedure). In MPRQ case, also the local cons...
tar_create_dir (GsfInfileTar *dir, const char *name) { TarChild c; c.offset = 0; c.length = 0; c.name = g_strdup (name); c.modtime = NULL; c.dir = g_object_new (GSF_INFILE_TAR_TYPE, NULL); /* * We set the source here, so gsf_infile_tar_constructor doesn't * start reading the tarfile recursively. */ gsf_...
0
[ "CWE-476" ]
libgsf
95a8351a75758cf10b3bf6abae0b6b461f90d9e5
125,666,097,393,450,100,000,000,000,000,000,000,000
22
tar: fix crash on broken tar file.
pretty_print_job (job_index, format, stream) int job_index, format; FILE *stream; { register PROCESS *p; /* Format only pid information about the process group leader? */ if (format == JLIST_PID_ONLY) { fprintf (stream, "%ld\n", (long)jobs[job_index]->pipe->pid); return; } if (fo...
0
[]
bash
955543877583837c85470f7fb8a97b7aa8d45e6c
286,496,338,469,995,670,000,000,000,000,000,000,000
36
bash-4.4-rc2 release
static void MSLNotationDeclaration(void *context,const xmlChar *name, const xmlChar *public_id,const xmlChar *system_id) { MSLInfo *msl_info; xmlParserCtxtPtr parser; /* What to do when a notation declaration has been parsed. */ (void) LogMagickEvent(CoderEvent,GetMagickModule(), " SAX.no...
0
[ "CWE-772", "CWE-787" ]
ImageMagick
e793eb203e5e0f91f5037aed6585e81b1e27395b
259,877,980,961,484,400,000,000,000,000,000,000,000
26
https://github.com/ImageMagick/ImageMagick/issues/636
void ff_rtmp_packet_destroy(RTMPPacket *pkt) { if (!pkt) return; av_freep(&pkt->data); pkt->size = 0; }
0
[ "CWE-20" ]
FFmpeg
ffcc82219cef0928bed2d558b19ef6ea35634130
165,000,085,322,348,820,000,000,000,000,000,000,000
7
avformat/rtmppkt: Convert ff_amf_get_field_value() to bytestream2 Fixes: out of array accesses Found-by: JunDong Xie of Ant-financial Light-Year Security Lab Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
gst_qtdemux_move_stream (GstQTDemux * qtdemux, QtDemuxStream * str, guint32 index) { /* no change needed */ if (index == str->sample_index) return; GST_DEBUG_OBJECT (qtdemux, "moving to sample %u of %u", index, str->n_samples); /* position changed, we have a discont */ str->sample_index = inde...
0
[ "CWE-125" ]
gst-plugins-good
d0949baf3dadea6021d54abef6802fed5a06af75
238,106,091,492,322,940,000,000,000,000,000,000,000
18
qtdemux: Fix out of bounds read in tag parsing code We can't simply assume that the length of the tag value as given inside the stream is correct but should also check against the amount of data we have actually available. https://bugzilla.gnome.org/show_bug.cgi?id=775451