func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
pk_rd_pa_reply_dh(krb5_context context, const heim_octet_string *indata, const heim_oid *dataType, const char *realm, krb5_pk_init_ctx ctx, krb5_enctype etype, const krb5_krbhst_info *hi, const DHNonce *c_n, const DHNonce *k_n, unsigned nonce, PA_DATA ...
0
[ "CWE-320" ]
heimdal
2f7f3d9960aa6ea21358bdf3687cee5149aa35cf
272,991,885,824,485,400,000,000,000,000,000,000,000
195
CVE-2019-12098: krb5: always confirm PA-PKINIT-KX for anon PKINIT RFC8062 Section 7 requires verification of the PA-PKINIT-KX key excahnge when anonymous PKINIT is used. Failure to do so can permit an active attacker to become a man-in-the-middle. Introduced by a1ef548600c5bb51cf52a9a9ea12676506ede19f. First tagged...
static void tun_free_netdev(struct net_device *dev) { struct tun_struct *tun = netdev_priv(dev); sock_put(tun->sk); }
0
[ "CWE-119" ]
linux-2.6
3c8a9c63d5fd738c261bd0ceece04d9c8357ca13
183,905,483,182,841,000,000,000,000,000,000,000,000
6
tun/tap: Fix crashes if open() /dev/net/tun and then poll() it. Fix NULL pointer dereference in tun_chr_pool() introduced by commit 33dccbb050bbe35b88ca8cf1228dcf3e4d4b3554 ("tun: Limit amount of queued packets per device") and triggered by this code: int fd; struct pollfd pfd; fd = open("/dev/net/tun", O_RDWR); ...
int X509V3_add_value_int(const char *name, const ASN1_INTEGER *aint, STACK_OF(CONF_VALUE) **extlist) { char *strtmp; int ret; if (!aint) return 1; if ((strtmp = i2s_ASN1_INTEGER(NULL, aint)) == NULL) return 0; ret = X509V3_add_value(name, strtmp, extlist); ...
0
[ "CWE-125" ]
openssl
bb4d2ed4091408404e18b3326e3df67848ef63d0
116,976,227,356,552,100,000,000,000,000,000,000,000
14
Fix append_ia5 function to not assume NUL terminated strings ASN.1 strings may not be NUL terminated. Don't assume they are. CVE-2021-3712 Reviewed-by: Viktor Dukhovni <viktor@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org>
static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm) { struct vm_area_struct *mpnt, *tmp, *prev, **pprev; struct rb_node **rb_link, *rb_parent; int retval; unsigned long charge; struct mempolicy *pol; uprobe_start_dup_mmap(); down_write(&oldmm->mmap_sem); flush_cache_dup_mm(oldmm); uprobe_dup_mm...
0
[ "CWE-284", "CWE-264" ]
linux
e66eded8309ebf679d3d3c1f5820d1f2ca332c71
222,780,120,169,987,650,000,000,000,000,000,000,000
137
userns: Don't allow CLONE_NEWUSER | CLONE_FS Don't allowing sharing the root directory with processes in a different user namespace. There doesn't seem to be any point, and to allow it would require the overhead of putting a user namespace reference in fs_struct (for permission checks) and incrementing that reference...
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { AnsiContext *s = avctx->priv_data; uint8_t *buf = avpkt->data; int buf_size = avpkt->size; const uint8_t *buf_end = buf+buf_size; int ret, i, count;...
0
[ "CWE-190" ]
FFmpeg
d42ec8433c687fcbccefa51a7716d81920218e4f
204,803,760,614,125,080,000,000,000,000,000,000,000
112
avcodec/ansi: fix integer overflow Fixes out of array read Fixes: 5f9698e86d92f19bb08d54ff0d57027f-signal_sigsegv_b30756_3795_cov_2693691257_ansi256.ans Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
double frame_rate() const { return frame_rate_; }
0
[ "CWE-20" ]
libvpx
f00890eecdf8365ea125ac16769a83aa6b68792d
10,299,736,636,409,873,000,000,000,000,000,000,000
1
update libwebm to libwebm-1.0.0.27-352-g6ab9fcf https://chromium.googlesource.com/webm/libwebm/+log/af81f26..6ab9fcf Change-Id: I9d56e1fbaba9b96404b4fbabefddc1a85b79c25d
static int analyze_from_code_buffer(RAnal *anal, RAnalFunction *fcn, ut64 addr, const ut8 *code_buf, ut64 code_length) { char gen_name[1025]; RListIter *bb_iter; RAnalBlock *bb; ut64 actual_size = 0; RAnalState *state = NULL; int result = R_ANAL_RET_ERROR; RAnalJavaLinearSweep *nodes; free (fcn->name); free (...
0
[ "CWE-125" ]
radare2
224e6bc13fa353dd3b7f7a2334588f1c4229e58d
153,022,017,619,162,840,000,000,000,000,000,000,000
43
Fix #10296 - Heap out of bounds read in java_switch_op()
static void fts3InsertDocsize( int *pRC, /* Result code */ Fts3Table *p, /* Table into which to insert */ u32 *aSz /* Sizes of each column, in tokens */ ){ char *pBlob; /* The BLOB encoding of the document size */ int nBlob; ...
0
[ "CWE-787" ]
sqlite
c72f2fb7feff582444b8ffdc6c900c69847ce8a9
248,519,250,475,192,800,000,000,000,000,000,000,000
28
More improvements to shadow table corruption detection in FTS3. FossilOrigin-Name: 51525f9c3235967bc00a090e84c70a6400698c897aa4742e817121c725b8c99d
auth_line_is_begin (guint8 *line) { guint8 next_char; if (!g_str_has_prefix ((char *)line, AUTH_BEGIN)) return FALSE; /* dbus-daemon accepts either nothing, or a whitespace followed by anything as end of auth */ next_char = line[strlen (AUTH_BEGIN)]; return (next_char == 0 || next_char == ' ' ...
0
[ "CWE-284", "CWE-436" ]
flatpak
52346bf187b5a7f1c0fe9075b328b7ad6abe78f6
7,727,582,447,798,795,000,000,000,000,000,000,000
13
Fix vulnerability in dbus proxy During the authentication all client data is directly forwarded to the dbus daemon as is, until we detect the BEGIN command after which we start filtering the binary dbus protocol. Unfortunately the detection of the BEGIN command in the proxy did not exactly match the detection in the ...
int r_jwe_advanced_parsen(jwe_t * jwe, const char * jwe_str, size_t jwe_str_len, uint32_t parse_flags, int x5u_flags) { int ret; char * str = (char *)jwe_str; if (jwe != NULL && str != NULL && jwe_str_len) { while(isspace((unsigned char)*str) && jwe_str_len) { str++; jwe_str_len--; } if ...
0
[ "CWE-787" ]
rhonabwy
b4c2923a1ba4fabf9b55a89244127e153a3e549b
172,029,393,906,757,230,000,000,000,000,000,000,000
22
Fix buffer overflow on r_jwe_aesgcm_key_unwrap
bool ms_can_fast_dispatch(const Message *m) const override { switch (m->get_type()) { case CEPH_MSG_OSD_OP: return true; default: return false; } }
0
[ "CWE-287", "CWE-284" ]
ceph
5ead97120e07054d80623dada90a5cc764c28468
142,826,072,308,695,720,000,000,000,000,000,000,000
8
auth/cephx: add authorizer challenge Allow the accepting side of a connection to reject an initial authorizer with a random challenge. The connecting side then has to respond with an updated authorizer proving they are able to decrypt the service's challenge and that the new authorizer was produced for this specific ...
static size_t intel_vgpu_reg_rw_opregion(struct intel_vgpu *vgpu, char *buf, size_t count, loff_t *ppos, bool iswrite) { unsigned int i = VFIO_PCI_OFFSET_TO_INDEX(*ppos) - VFIO_PCI_NUM_REGIONS; void *base = vgpu->vdev.region[i].data; loff_t pos = *ppos & VFIO_PCI_OFFSET_MASK; if (pos >= vgpu->vdev.region[i].s...
0
[ "CWE-20" ]
linux
51b00d8509dc69c98740da2ad07308b630d3eb7d
302,600,407,840,985,700,000,000,000,000,000,000,000
17
drm/i915/gvt: Fix mmap range check This is to fix missed mmap range check on vGPU bar2 region and only allow to map vGPU allocated GMADDR range, which means user space should support sparse mmap to get proper offset for mmap vGPU aperture. And this takes care of actual pgoff in mmap request as original code always doe...
**/ inline int system(const char *const command, const char *const module_name=0) { cimg::unused(module_name); #ifdef cimg_no_system_calls return -1; #else #if cimg_OS==1 const unsigned int l = (unsigned int)std::strlen(command); if (l) { char *const ncommand = new char[l + 24]; ...
0
[ "CWE-125" ]
CImg
10af1e8c1ad2a58a0a3342a856bae63e8f257abb
174,266,517,397,762,380,000,000,000,000,000,000,000
36
Fix other issues in 'CImg<T>::load_bmp()'.
mrb_define_module_function(mrb_state *mrb, struct RClass *c, const char *name, mrb_func_t func, mrb_aspec aspec) { mrb_define_class_method(mrb, c, name, func, aspec); mrb_define_method(mrb, c, name, func, aspec); }
0
[ "CWE-476", "CWE-415" ]
mruby
faa4eaf6803bd11669bc324b4c34e7162286bfa3
88,699,905,861,345,900,000,000,000,000,000,000,000
5
`mrb_class_real()` did not work for `BasicObject`; fix #4037
static int msg_fetch_header(struct Context *ctx, struct ImapHeader *h, char *buf, FILE *fp) { unsigned int bytes; int rc = -1; /* default now is that string isn't FETCH response */ int parse_rc; struct ImapData *idata = ctx->data; if (buf[0] != '*') return rc; /* skip to message number */ buf = ima...
0
[ "CWE-119", "CWE-787" ]
neomutt
1b0f0d0988e6df4e32e9f4bf8780846ea95d4485
220,025,089,706,728,820,000,000,000,000,000,000,000
58
Don't overflow stack buffer in msg_parse_fetch
const HeaderString& key() const override { return key_; }
0
[]
envoy
2c60632d41555ec8b3d9ef5246242be637a2db0f
211,817,228,589,680,640,000,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...
int oe_iov_sync( const struct oe_iovec* iov, int iovcnt, const void* buf_, size_t buf_size) { struct oe_iovec* buf = (struct oe_iovec*)buf_; int ret = -1; int i; size_t n; /* Reject invalid parameters. */ if (iovcnt < 0 || (iovcnt > 0 && !iov)) goto done; /* Synchro...
0
[ "CWE-200", "CWE-552" ]
openenclave
bcac8e7acb514429fee9e0b5d0c7a0308fd4d76b
101,184,337,732,421,530,000,000,000,000,000,000,000
65
Merge pull request from GHSA-525h-wxcc-f66m Signed-off-by: Ming-Wei Shih <mishih@microsoft.com>
static void sp_setup(struct net_device *dev) { /* Finish setting up the DEVICE info. */ dev->netdev_ops = &sp_netdev_ops; dev->needs_free_netdev = true; dev->mtu = SIXP_MTU; dev->hard_header_len = AX25_MAX_HEADER_LEN; dev->header_ops = &ax25_header_ops; dev->addr_len = AX25_ADDR_LEN; dev->type = ARPHRD_AX...
1
[ "CWE-416" ]
linux
81b1d548d00bcd028303c4f3150fa753b9b8aa71
32,606,482,603,558,500,000,000,000,000,000,000,000
19
hamradio: remove needs_free_netdev to avoid UAF The former patch "defer 6pack kfree after unregister_netdev" reorders the kfree of two buffer after the unregister_netdev to prevent the race condition. It also adds free_netdev() function in sixpack_close(), which is a direct copy from the similar code in mkiss_close()....
static void change_notify_remove_request(struct smbd_server_connection *sconn, struct notify_change_request *remove_req) { files_struct *fsp; struct notify_change_request *req; /* * Paranoia checks, the fsp referenced must must have the request in * its list of pending requests */ fsp = remove_req->fs...
0
[ "CWE-266" ]
samba
5dd4c789c13035b805fdd2c3a9c38721657b05b3
113,917,000,493,755,920,000,000,000,000,000,000,000
28
s3: smbd: Ensure change notifies can't get set unless the directory handle is open for SEC_DIR_LIST. Remove knownfail entry. CVE-2020-14318 BUG: https://bugzilla.samba.org/show_bug.cgi?id=14434 Signed-off-by: Jeremy Allison <jra@samba.org>
telnet_parse(netdissect_options *ndo, const u_char *sp, u_int length, int print) { int i, x; u_int c; const u_char *osp, *p; #define FETCH(c, sp, length) \ do { \ if (length < 1) \ goto pktend; \ ND_TCHECK(*sp); \ c = *sp++; \ length--; \ } while (0) osp = sp; FETCH(c, sp, length); if (c != IAC) ...
0
[ "CWE-125", "CWE-787" ]
tcpdump
8934a7d6307267d301182f19ed162563717e29e3
141,632,603,430,704,920,000,000,000,000,000,000,000
117
CVE-2017-12988/TELNET: Add a missing bounds check. This fixes a buffer over-read discovered by Forcepoint's security researchers Otto Airamo & Antti Levomäki. Add a test using the capture file supplied by the reporter(s).
trace_ignore_this_task(struct trace_pid_list *filtered_pids, struct task_struct *task) { /* * Return false, because if filtered_pids does not exist, * all pids are good to trace. */ if (!filtered_pids) return false; return !trace_find_filtered_pid(filtered_pids, task->pid); }
0
[ "CWE-415" ]
linux
4397f04575c44e1440ec2e49b6302785c95fd2f8
118,549,325,870,734,670,000,000,000,000,000,000,000
11
tracing: Fix possible double free on failure of allocating trace buffer Jing Xia and Chunyan Zhang reported that on failing to allocate part of the tracing buffer, memory is freed, but the pointers that point to them are not initialized back to NULL, and later paths may try to free the freed memory again. Jing and Chu...
type_kind(agooErr err, gqlDoc doc, gqlCobj obj, gqlField field, gqlSel sel, gqlValue result, int depth) { const char *kind = NULL; const char *key = sel->name; switch (((gqlType)obj->ptr)->kind) { case GQL_SCHEMA: kind = "SCHEMA"; break; case GQL_OBJECT: kind = "OBJECT"; break; case GQL_INPUT: ...
0
[ "CWE-703" ]
agoo
ecb72fa66f3d846b724b4fa1d7648669cebabe0c
97,316,160,099,594,220,000,000,000,000,000,000,000
22
Protect against recursive fragment in schema Really a error on the developers part but this catches the error.
rsock_getfamily(rb_io_t *fptr) { union_sockaddr ss; socklen_t sslen = (socklen_t)sizeof(ss); int cached = fptr->mode & FMODE_SOCK; if (cached) { switch (cached) { #ifdef AF_UNIX case FMODE_UNIX: return AF_UNIX; #endif case FMODE_INET: return AF_INET; case FMODE_INET6: return AF_I...
0
[ "CWE-908" ]
ruby
61b7f86248bd121be2e83768be71ef289e8e5b90
230,533,018,246,090,200,000,000,000,000,000,000,000
30
ext/socket/init.c: do not return uninitialized buffer Resize string buffer only if some data is received in BasicSocket#read_nonblock and some methods. Co-Authored-By: Samuel Williams <samuel.williams@oriontransfer.co.nz>
ds_append (dynamic_string *s, int c) { ds_resize (s); s->ds_string[s->ds_idx] = c; if (c) { s->ds_idx++; ds_resize (s); s->ds_string[s->ds_idx] = 0; } }
0
[ "CWE-190" ]
cpio
dd96882877721703e19272fe25034560b794061b
167,472,513,145,393,150,000,000,000,000,000,000,000
11
Rewrite dynamic string support. * src/dstring.c (ds_init): Take a single argument. (ds_free): New function. (ds_resize): Take a single argument. Use x2nrealloc to expand the storage. (ds_reset,ds_append,ds_concat,ds_endswith): New function. (ds_fgetstr): Rewrite. In particular, this fixes integer overflow. * src/dst...
make_windows( int count, int vertical UNUSED) /* split windows vertically if TRUE */ { int maxcount; int todo; if (vertical) { /* Each windows needs at least 'winminwidth' lines and a separator * column. */ maxcount = (curwin->w_width + curwin->w_vsep_width - (p_wiw - p_wmw))...
0
[ "CWE-416" ]
vim
ec66c41d84e574baf8009dbc0bd088d2bc5b2421
199,505,431,418,828,670,000,000,000,000,000,000,000
59
patch 8.1.2136: using freed memory with autocmd from fuzzer Problem: using freed memory with autocmd from fuzzer. (Dhiraj Mishra, Dominique Pelle) Solution: Avoid using "wp" after autocommands. (closes #5041)
static void diff_flush_checkdiff(struct diff_filepair *p, struct diff_options *o) { if (diff_unmodified_pair(p)) return; if ((DIFF_FILE_VALID(p->one) && S_ISDIR(p->one->mode)) || (DIFF_FILE_VALID(p->two) && S_ISDIR(p->two->mode))) return; /* no tree diffs in patch format */ run_checkdiff(p, o); }
0
[ "CWE-119" ]
git
fd55a19eb1d49ae54008d932a65f79cd6fda45c9
43,566,646,794,586,850,000,000,000,000,000,000,000
12
Fix buffer overflow in git diff If PATH_MAX on your system is smaller than a path stored, it may cause buffer overflow and stack corruption in diff_addremove() and diff_change() functions when running git-diff Signed-off-by: Dmitry Potapov <dpotapov@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
void sctp_transport_put(struct sctp_transport *transport) { if (atomic_dec_and_test(&transport->refcnt)) sctp_transport_destroy(transport); }
0
[]
linux
196d67593439b03088913227093e374235596e33
135,196,563,539,823,030,000,000,000,000,000,000,000
5
sctp: Add support to per-association statistics via a new SCTP_GET_ASSOC_STATS call The current SCTP stack is lacking a mechanism to have per association statistics. This is an implementation modeled after OpenSolaris' SCTP_GET_ASSOC_STATS. Userspace part will follow on lksctp if/when there is a general ACK on this. ...
static int build_open_gop_key_points(AVStream *st) { int k; int sample_id = 0; uint32_t cra_index; MOVStreamContext *sc = st->priv_data; if (st->codecpar->codec_id != AV_CODEC_ID_HEVC || !sc->sync_group_count) return 0; /* Build an unrolled index of the samples */ sc->sample_offset...
1
[ "CWE-703" ]
FFmpeg
c953baa084607dd1d84c3bfcce3cf6a87c3e6e05
201,473,938,080,232,100,000,000,000,000,000,000,000
54
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>
g_next(struct seq_file *m, void *v, loff_t *pos) { (*pos)++; return __g_next(m, pos); }
0
[ "CWE-703" ]
linux
6a76f8c0ab19f215af2a3442870eeb5f0e81998d
263,013,680,672,550,670,000,000,000,000,000,000,000
5
tracing: Fix possible NULL pointer dereferences Currently set_ftrace_pid and set_graph_function files use seq_lseek for their fops. However seq_open() is called only for FMODE_READ in the fops->open() so that if an user tries to seek one of those file when she open it for writing, it sees NULL seq_file and then panic...
static void rds_conn_info(struct socket *sock, unsigned int len, struct rds_info_iterator *iter, struct rds_info_lengths *lens) { rds_for_each_conn_info(sock, len, iter, lens, rds_conn_info_visitor, sizeof(struct rds_info_connection)); }
0
[ "CWE-703" ]
linux
74e98eb085889b0d2d4908f59f6e00026063014f
88,764,374,443,856,950,000,000,000,000,000,000,000
8
RDS: verify the underlying transport exists before creating a connection There was no verification that an underlying transport exists when creating a connection, this would cause dereferencing a NULL ptr. It might happen on sockets that weren't properly bound before attempting to send a message, which will cause a N...
static int nfs_refresh_inode_locked(struct inode *inode, struct nfs_fattr *fattr) { if (nfs_inode_attrs_need_update(inode, fattr)) return nfs_update_inode(inode, fattr); return nfs_check_inode_attributes(inode, fattr); }
0
[ "CWE-703" ]
linux
dc0b027dfadfcb8a5504f7d8052754bf8d501ab9
205,152,457,840,993,840,000,000,000,000,000,000,000
6
NFSv4: Convert the open and close ops to use fmode Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
static void mem_cgroup_usage_unregister_event(struct cgroup *cgrp, struct cftype *cft, struct eventfd_ctx *eventfd) { struct mem_cgroup *memcg = mem_cgroup_from_cont(cgrp); struct mem_cgroup_thresholds *thresholds; struct mem_cgroup_threshold_ary *new; int type = MEMFILE_TYPE(cft->private); u64 usage; int i, j, ...
1
[ "CWE-476", "CWE-415" ]
linux
371528caec553785c37f73fa3926ea0de84f986f
150,547,022,864,118,160,000,000,000,000,000,000,000
75
mm: memcg: Correct unregistring of events attached to the same eventfd There is an issue when memcg unregisters events that were attached to the same eventfd: - On the first call mem_cgroup_usage_unregister_event() removes all events attached to a given eventfd, and if there were no events left, thresholds->prima...
find_duplicate (GtkWidget * widget, gpointer user_data) { struct dup_data * data = (struct dup_data *) user_data; NMDevice *device; const guchar * hash; guint32 hash_len = 0; g_return_if_fail (data); g_return_if_fail (data->hash); if (data->found || !NM_IS_NETWORK_MENU_ITEM (widget)) return; device = g_obj...
0
[ "CWE-310" ]
network-manager-applet
4020594dfbf566f1852f0acb36ad631a9e73a82b
236,005,920,290,422,740,000,000,000,000,000,000,000
24
core: fix CA cert mishandling after cert file deletion (deb #560067) (rh #546793) If a connection was created with a CA certificate, but the user later moved or deleted that CA certificate, the applet would simply provide the connection to NetworkManager without any CA certificate. This could cause NM to connect to t...
void SplashOutputDev::clearModRegion() { splash->clearModRegion(); }
0
[ "CWE-369" ]
poppler
b224e2f5739fe61de9fa69955d016725b2a4b78d
188,030,105,312,532,050,000,000,000,000,000,000,000
3
SplashOutputDev::tilingPatternFill: Fix crash on broken file Issue #802
static inline struct nlmsghdr *__nlmsg_put(struct sk_buff *skb, u32 pid, u32 seq, int type, int payload, int flags) { struct nlmsghdr *nlh; nlh = (struct nlmsghdr *) skb_put(skb, nlmsg_total_size(payload)); nlh->nlmsg_type = type; nlh->nlmsg_len = nlmsg_msg_size(payload); nlh->nlmsg_flags = flags;...
0
[]
linux-2.6
1045b03e07d85f3545118510a587035536030c1c
243,629,034,353,239,780,000,000,000,000,000,000,000
18
netlink: fix overrun in attribute iteration kmemcheck reported this: kmemcheck: Caught 16-bit read from uninitialized memory (f6c1ba30) 0500110001508abf050010000500000002017300140000006f72672e66726565 i i i i i i i i i i i i i u u u u u u u u u u u u u u u u u u u ^ Pid: 3...
read_xwd_header (FILE *ifp, L_XWDFILEHEADER *xwdhdr) { gint j, err; L_CARD32 *cp; cp = (L_CARD32 *) xwdhdr; /* Read in all 32-bit values of the header and check for byte order */ for (j = 0; j < sizeof (L_XWDFILEHEADER) / sizeof(xwdhdr->l_file_version); j++) { *(cp...
0
[ "CWE-787" ]
gimp
0b35f6a082a0b3c372c568ea6bde39a4796acde2
19,153,824,400,061,154,000,000,000,000,000,000,000
20
Bug 687392 - Memory corruption vulnerability when reading XWD files Applied and enhanced patch from andres which makes file-xwd detect this kind of file corruption and abort loading with an error message.
static int l_channel_write (lua_State *L) { return channel_write(L, 0, 0); }
0
[ "CWE-415" ]
nmap
350bbe0597d37ad67abe5fef8fba984707b4e9ad
220,856,471,111,886,470,000,000,000,000,000,000,000
3
Avoid a crash (double-free) when SSH connection fails
dnssec_log(dns_zone_t *zone, int level, const char *fmt, ...) { va_list ap; va_start(ap, fmt); dns_zone_logv(zone, DNS_LOGCATEGORY_DNSSEC, level, NULL, fmt, ap); va_end(ap); }
0
[ "CWE-327" ]
bind9
f09352d20a9d360e50683cd1d2fc52ccedcd77a0
193,967,135,864,790,770,000,000,000,000,000,000,000
7
Update keyfetch_done compute_tag check If in keyfetch_done the compute_tag fails (because for example the algorithm is not supported), don't crash, but instead ignore the key.
hufUnpackEncTable (const char** pcode, // io: ptr to packed table (updated) int ni, // i : input size (in bytes) int im, // i : min hcode index int iM, // i : max hcode index Int64* hcode) // o: encoding table [HUF_ENCSIZE] { memset (hcode, 0, sizeof (Int64) * HUF_ENCSIZE); co...
0
[ "CWE-125" ]
openexr
e79d2296496a50826a15c667bf92bdc5a05518b4
74,522,080,816,860,310,000,000,000,000,000,000,000
53
fix memory leaks and invalid memory accesses Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
check_colors(TERMTYPE2 *tp) { char *value; if ((max_colors > 0) != (max_pairs > 0) || ((max_colors > max_pairs) && (initialize_pair == 0))) _nc_warning("inconsistent values for max_colors (%d) and max_pairs (%d)", max_colors, max_pairs); PAIRED(set_foreground, set_background); PAIRED(set_a_for...
0
[]
ncurses
790a85dbd4a81d5f5d8dd02a44d84f01512ef443
8,544,882,110,666,707,000,000,000,000,000,000,000
62
ncurses 6.2 - patch 20200531 + correct configure version-check/warnng for g++ to allow for 10.x + re-enable "bel" in konsole-base (report by Nia Huang) + add linux-s entry (patch by Alexandre Montaron). + drop long-obsolete convert_configure.pl + add test/test_parm.c, for checking tparm changes. + improve parameter-ch...
close_extra_fds (void *data, int fd) { int *extra_fds = (int *) data; int i; for (i = 0; extra_fds[i] != -1; i++) if (fd == extra_fds[i]) return 0; if (fd <= 2) return 0; close (fd); return 0; }
0
[ "CWE-20", "CWE-703" ]
bubblewrap
d7fc532c42f0e9bf427923bab85433282b3e5117
2,690,817,135,203,351,000,000,000,000,000,000,000
15
Call setsid() before executing sandboxed code (CVE-2017-5226) This prevents the sandboxed code from getting a controlling tty, which in turn prevents it from accessing the TIOCSTI ioctl and hence faking terminal input. Fixes: #142 Closes: #143 Approved by: cgwalters
ews_backend_constructed (GObject *object) { EBackend *backend; ESource *source; ESourceAuthentication *auth_extension; const gchar *extension_name; gchar *host = NULL; guint16 port = 0; /* Chain up to parent's constructed() method. */ G_OBJECT_CLASS (e_ews_backend_parent_class)->constructed (object); backend...
0
[ "CWE-295" ]
evolution-ews
915226eca9454b8b3e5adb6f2fff9698451778de
299,954,639,128,062,450,000,000,000,000,000,000,000
46
I#27 - SSL Certificates are not validated This depends on https://gitlab.gnome.org/GNOME/evolution-data-server/commit/6672b8236139bd6ef41ecb915f4c72e2a052dba5 too. Closes https://gitlab.gnome.org/GNOME/evolution-ews/issues/27
static int kvm_create_dirty_bitmap(struct kvm_memory_slot *memslot) { unsigned long dirty_bytes = 2 * kvm_dirty_bitmap_bytes(memslot); memslot->dirty_bitmap = kvzalloc(dirty_bytes, GFP_KERNEL); if (!memslot->dirty_bitmap) return -ENOMEM; return 0; }
0
[ "CWE-416", "CWE-362" ]
linux
cfa39381173d5f969daf43582c95ad679189cbc9
95,510,484,517,163,840,000,000,000,000,000,000,000
10
kvm: fix kvm_ioctl_create_device() reference counting (CVE-2019-6974) kvm_ioctl_create_device() does the following: 1. creates a device that holds a reference to the VM object (with a borrowed reference, the VM's refcount has not been bumped yet) 2. initializes the device 3. transfers the reference to the device t...
showhelp(argv) char **argv; { if (phase == PHASE_INITIALIZE) { usage(); exit(0); } return 0; }
0
[ "CWE-415", "CWE-119" ]
ppp
7658e8257183f062dc01f87969c140707c7e52cb
274,336,313,937,014,200,000,000,000,000,000,000,000
9
pppd: Eliminate potential integer overflow in option parsing When we are reading in a word from an options file, we maintain a count of the length we have seen so far in 'len', which is an int. When len exceeds MAXWORDLEN - 1 (i.e. 1023) we cease storing characters in the buffer but we continue to increment len. Sin...
policies_exit_policy_append_reject_star(smartlist_t **dest) { append_exit_policy_string(dest, "reject *4:*"); append_exit_policy_string(dest, "reject *6:*"); }
0
[]
tor
1afc2ed956a35b40dfd1d207652af5b50c295da7
269,761,622,888,762,220,000,000,000,000,000,000,000
5
Fix policies.c instance of the "if (r=(a-b)) return r" pattern I think this one probably can't underflow, since the input ranges are small. But let's not tempt fate. This patch also replaces the "cmp" functions here with just "eq" functions, since nothing actually checked for anything besides 0 and nonzero. Related...
static inline void dec_slabs_node(struct kmem_cache *s, int node, int objects) { struct kmem_cache_node *n = get_node(s, node); atomic_long_dec(&n->nr_slabs); atomic_long_sub(objects, &n->total_objects); }
0
[ "CWE-189" ]
linux
f8bd2258e2d520dff28c855658bd24bdafb5102d
231,844,384,924,920,600,000,000,000,000,000,000,000
7
remove div_long_long_rem x86 is the only arch right now, which provides an optimized for div_long_long_rem and it has the downside that one has to be very careful that the divide doesn't overflow. The API is a little akward, as the arguments for the unsigned divide are signed. The signed version also doesn't handle ...
dirserv_compute_bridge_flag_thresholds(void) { digestmap_t *omit_as_sybil = digestmap_new(); dirserv_compute_performance_thresholds(omit_as_sybil); digestmap_free(omit_as_sybil, NULL); }
0
[]
tor
02e05bd74dbec614397b696cfcda6525562a4675
22,552,783,779,317,117,000,000,000,000,000,000,000
6
When examining descriptors as a dirserver, reject ones with bad versions This is an extra fix for bug 21278: it ensures that these descriptors and platforms will never be listed in a legit consensus.
static __poll_t hiddev_poll(struct file *file, poll_table *wait) { struct hiddev_list *list = file->private_data; poll_wait(file, &list->hiddev->wait, wait); if (list->head != list->tail) return EPOLLIN | EPOLLRDNORM; if (!list->hiddev->exist) return EPOLLERR | EPOLLHUP; return 0; }
0
[ "CWE-416" ]
linux
6d4472d7bec39917b54e4e80245784ea5d60ce49
124,078,309,103,079,280,000,000,000,000,000,000,000
11
HID: hiddev: do cleanup in failure of opening a device Undo what we did for opening before releasing the memory slice. Reported-by: syzbot <syzbot+62a1e04fd3ec2abf099e@syzkaller.appspotmail.com> Cc: Andrey Konovalov <andreyknvl@google.com> Signed-off-by: Hillf Danton <hdanton@sina.com> Signed-off-by: Jiri Kosina <jko...
execute_intern_function (name, funcdef) WORD_DESC *name; FUNCTION_DEF *funcdef; { SHELL_VAR *var; if (check_identifier (name, posixly_correct) == 0) { if (posixly_correct && interactive_shell == 0) { last_command_exit_value = EX_BADUSAGE; jump_to_top_level (ERREXIT); } return (EXE...
0
[]
bash
863d31ae775d56b785dc5b0105b6d251515d81d5
88,465,706,200,136,070,000,000,000,000,000,000,000
39
commit bash-20120224 snapshot
static int io_rsrc_data_alloc(struct io_ring_ctx *ctx, rsrc_put_fn *do_put, u64 __user *utags, unsigned nr, struct io_rsrc_data **pdata) { struct io_rsrc_data *data; int ret = -ENOMEM; unsigned i; data = kzalloc(sizeof(*data), GFP_KERNEL); if (!data) return -ENOMEM; data->tags = (u64 **)io_a...
0
[ "CWE-125" ]
linux
89c2b3b74918200e46699338d7bcc19b1ea12110
159,338,132,039,517,920,000,000,000,000,000,000,000
39
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...
const EVP_CIPHER *EVP_aes_128_cbc_hmac_sha1(void) { return(OPENSSL_ia32cap_P[1]&AESNI_CAPABLE? &aesni_128_cbc_hmac_sha1_cipher:NULL); }
0
[ "CWE-310" ]
openssl
746c6f3a533b1eb50b909147b35fa1b0e5c61f59
237,187,178,699,071,400,000,000,000,000,000,000,000
5
e_aes_cbc_hmac_sha1.c: align calculated MAC at cache line.
static ssize_t sof_dfsentry_read(struct file *file, char __user *buffer, size_t count, loff_t *ppos) { struct snd_sof_dfsentry *dfse = file->private_data; struct snd_sof_dev *sdev = dfse->sdev; loff_t pos = *ppos; size_t size_ret; int skip = 0; int size; u8 *buf; #if IS_ENABLED(CONFIG_SND_SOC_SOF_DEBUG_IPC...
0
[ "CWE-400", "CWE-401" ]
linux
c0a333d842ef67ac04adc72ff79dc1ccc3dca4ed
161,419,829,357,699,410,000,000,000,000,000,000,000
103
ASoC: SOF: Fix memory leak in sof_dfsentry_write In the implementation of sof_dfsentry_write() memory allocated for string is leaked in case of an error. Go to error handling path if the d_name.name is not valid. Fixes: 091c12e1f50c ("ASoC: SOF: debug: add new debugfs entries for IPC flood test") Signed-off-by: Navid...
int test_sqrt(BIO *bp, BN_CTX *ctx) { BN_GENCB cb; BIGNUM *a, *p, *r; int i, j; int ret = 0; a = BN_new(); p = BN_new(); r = BN_new(); if (a == NULL || p == NULL || r == NULL) goto err; BN_GENCB_set(&cb, genprime_cb, NULL); for (i = 0; i < 16; i++) { if (i < 8)...
0
[ "CWE-200" ]
openssl
d73cc256c8e256c32ed959456101b73ba9842f72
204,230,239,651,092,850,000,000,000,000,000,000,000
92
bn/asm/x86_64-mont5.pl: fix carry propagating bug (CVE-2015-3193). Reviewed-by: Richard Levitte <levitte@openssl.org> (cherry picked from commit e7c078db57908cbf16074c68034977565ffaf107)
static int canon(Rune c) { Rune u = toupperrune(c); if (c >= 128 && u < 128) return c; return u; }
0
[ "CWE-703", "CWE-674" ]
mujs
160ae29578054dc09fd91e5401ef040d52797e61
122,110,370,700,087,210,000,000,000,000,000,000,000
7
Issue #162: Check stack overflow during regexp compilation. Only bother checking during the first compilation pass that counts the size of the program.
static int rtsx_usb_ms_drv_remove(struct platform_device *pdev) { struct rtsx_usb_ms *host = platform_get_drvdata(pdev); struct memstick_host *msh = host->msh; int err; host->eject = true; cancel_work_sync(&host->handle_req); mutex_lock(&host->host_mutex); if (host->req) { dev_dbg(ms_dev(host), "%s: Contr...
1
[ "CWE-416" ]
linux
42933c8aa14be1caa9eda41f65cde8a3a95d3e39
251,538,097,616,710,970,000,000,000,000,000,000,000
40
memstick: rtsx_usb_ms: fix UAF This patch fixes the following issues: 1. memstick_free_host() will free the host, so the use of ms_dev(host) after it will be a problem. To fix this, move memstick_free_host() after when we are done with ms_dev(host). 2. In rtsx_usb_ms_drv_remove(), pm need to be disabled before we remo...
void Insert(BoundsCheckKey* key, BoundsCheckBbData* data, Zone* zone) { Lookup(key, key->Hash(), true, ZoneAllocationPolicy(zone))->value = data; }
0
[]
node
fd80a31e0697d6317ce8c2d289575399f4e06d21
30,256,472,627,570,867,000,000,000,000,000,000,000
3
deps: backport 5f836c from v8 upstream Original commit message: Fix Hydrogen bounds check elimination When combining bounds checks, they must all be moved before the first load/store that they are guarding. BUG=chromium:344186 LOG=y R=svenpanne@chromium.org Review URL: https://coderevie...
ALWAYS_INLINE void MulAdd3Way(const Packet a1, const Packet a2, const Packet a3, const float** inp1, const float** inp2, const float** inp3, float** out) { auto c = LOAD(*out); const auto b1 = LOAD(*inp1); *inp1 += kNumOperands; const auto b2 = LOAD(*i...
0
[ "CWE-125" ]
tensorflow
e6cf28c72ba2eb949ca950d834dd6d66bb01cfae
311,893,967,843,355,770,000,000,000,000,000,000,000
16
Validate that matrix dimension sizes in SparseMatMul are positive. PiperOrigin-RevId: 401149683 Change-Id: Ib33eafc561a39c8741ece80b2edce6d4aae9a57d
PHP_FUNCTION(imagewbmp) { _php_image_output_ctx(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_WBM, "WBMP", gdImageWBMPCtx); }
0
[ "CWE-703", "CWE-189" ]
php-src
2938329ce19cb8c4197dec146c3ec887c6f61d01
87,598,968,500,137,840,000,000,000,000,000,000,000
4
Fixed bug #66356 (Heap Overflow Vulnerability in imagecrop()) And also fixed the bug: arguments are altered after some calls
peerflag_bits( peer_node *pn ) { int peerflags; attr_val *option; /* translate peerflags options to bits */ peerflags = 0; option = HEAD_PFIFO(pn->peerflags); for (; option != NULL; option = option->link) { switch (option->value.i) { default: NTP_INSIST(0); break; case T_Autokey: peerflags |= ...
0
[ "CWE-20" ]
ntp
52e977d79a0c4ace997e5c74af429844da2f27be
178,721,580,604,804,160,000,000,000,000,000,000,000
53
[Bug 1773] openssl not detected during ./configure. [Bug 1774] Segfaults if cryptostats enabled and built without OpenSSL.
string communication_hint() const { return communication_hint_; }
0
[ "CWE-416" ]
tensorflow
ca38dab9d3ee66c5de06f11af9a4b1200da5ef75
64,107,174,800,856,250,000,000,000,000,000,000,000
1
Fix undefined behavior in CollectiveReduceV2 and others We should not call done after it's moved. PiperOrigin-RevId: 400838185 Change-Id: Ifc979740054b8f8c6f4d50acc89472fe60c4fdb1
void crypto_unregister_skcipher(struct skcipher_alg *alg) { crypto_unregister_alg(&alg->base); }
0
[ "CWE-476", "CWE-703" ]
linux
9933e113c2e87a9f46a40fde8dafbf801dca1ab9
107,573,980,593,262,370,000,000,000,000,000,000,000
4
crypto: skcipher - Add missing API setkey checks The API setkey checks for key sizes and alignment went AWOL during the skcipher conversion. This patch restores them. Cc: <stable@vger.kernel.org> Fixes: 4e6c3df4d729 ("crypto: skcipher - Add low-level skcipher...") Reported-by: Baozeng <sploving1@gmail.com> Signed-of...
static UINT drive_process_irp_close(DRIVE_DEVICE* drive, IRP* irp) { void* key; DRIVE_FILE* file; if (!drive || !irp || !irp->Complete || !irp->output) return ERROR_INVALID_PARAMETER; file = drive_get_file_by_id(drive, irp->FileId); key = (void*)(size_t)irp->FileId; if (!file) irp->IoStatus = STATUS_UNSUCC...
0
[ "CWE-125" ]
FreeRDP
6b485b146a1b9d6ce72dfd7b5f36456c166e7a16
15,735,438,404,398,830,000,000,000,000,000,000,000
26
Fixed oob read in irp_write and similar
blosc2_context* blosc2_create_cctx(blosc2_cparams cparams) { blosc2_context* context = (blosc2_context*)my_malloc(sizeof(blosc2_context)); /* Populate the context, using zeros as default values */ memset(context, 0, sizeof(blosc2_context)); context->do_compress = 1; /* meant for compression */ context->com...
0
[ "CWE-787" ]
c-blosc2
c4c6470e88210afc95262c8b9fcc27e30ca043ee
339,539,519,930,346,580,000,000,000,000,000,000,000
28
Fixed asan heap buffer overflow when not enough space to write compressed block size.
unsigned uECC_curve_num_n_words(uECC_Curve curve) { return BITS_TO_WORDS(curve->num_n_bits); }
0
[ "CWE-415" ]
micro-ecc
1b5f5cea5145c96dd8791b9b2c41424fc74c2172
251,610,022,329,456,200,000,000,000,000,000,000,000
3
Fix for #168
static BOOL autodetect_recv_netchar_result(rdpRdp* rdp, wStream* s, AUTODETECT_REQ_PDU* autodetectReqPdu) { BOOL success = TRUE; switch (autodetectReqPdu->requestType) { case 0x0840: /* baseRTT and averageRTT fields are present (bandwidth field is not) */ if ((aut...
0
[ "CWE-125" ]
FreeRDP
f5e73cc7c9cd973b516a618da877c87b80950b65
129,515,073,967,912,800,000,000,000,000,000,000,000
48
Fixed #6009: Bounds checks in autodetect_recv_bandwidth_measure_results
get_xdg_dir_from_prefix (const char *prefix, const char **where, const char **dir) { if (strcmp (prefix, "xdg-data") == 0) { if (where) *where = "data"; if (dir) *dir = g_get_user_data_dir (); return TRUE; } if (strcmp (pre...
0
[ "CWE-94", "CWE-74" ]
flatpak
6e5ae7a109cdfa9735ea7ccbd8cb79f9e8d3ae8b
273,986,980,132,834,750,000,000,000,000,000,000,000
30
context: Add --env-fd option This allows environment variables to be added to the context without making their values visible to processes running under a different uid, which might be significant if the variable's value is a token or some other secret value. Signed-off-by: Simon McVittie <smcv@collabora.com> Part-of...
Status AuthorizationSession::checkAuthForDelete(OperationContext* txn, const NamespaceString& ns, const BSONObj& query) { if (!isAuthorizedForActionsOnNamespace(ns, ActionType::remove)) { return Status(ErrorCodes...
0
[ "CWE-613" ]
mongo
64d8e9e1b12d16b54d6a592bae8110226c491b4e
37,151,219,920,035,540,000,000,000,000,000,000,000
9
SERVER-38984 Validate unique User ID on UserCache hit (cherry picked from commit e55d6e2292e5dbe2f97153251d8193d1cc89f5d7)
multi_schedule_context_wakeup(struct multi_context *m, struct multi_instance *mi) { /* calculate an absolute wakeup time */ ASSERT(!openvpn_gettimeofday(&mi->wakeup, NULL)); tv_add(&mi->wakeup, &mi->context.c2.timeval); /* tell scheduler to wake us up at some point in the future */ schedule_add_ent...
0
[ "CWE-362", "CWE-476" ]
openvpn
37bc691e7d26ea4eb61a8a434ebd7a9ae76225ab
318,302,460,198,998,150,000,000,000,000,000,000,000
12
Fix illegal client float (CVE-2020-11810) There is a time frame between allocating peer-id and initializing data channel key (which is performed on receiving push request or on async push-reply) in which the existing peer-id float checks do not work right. If a "rogue" data channel packet arrives during that time fra...
nm_utils_machine_id_is_fake(void) { return _machine_id_get(TRUE)->is_fake; }
0
[ "CWE-20" ]
NetworkManager
420784e342da4883f6debdfe10cde68507b10d27
57,672,706,072,973,020,000,000,000,000,000,000,000
4
core: fix crash in nm_wildcard_match_check() It's not entirely clear how to treat %NULL. Clearly "match.interface-name=eth0" should not match with an interface %NULL. But what about "match.interface-name=!eth0"? It's now implemented that negative matches still succeed against %NULL. What about "match.interface-name=*"...
static int ipip6_tunnel_get_prl(struct ip_tunnel *t, struct ip_tunnel_prl __user *a) { struct ip_tunnel_prl kprl, *kp; struct ip_tunnel_prl_entry *prl; unsigned int cmax, c = 0, ca, len; int ret = 0; if (copy_from_user(&kprl, a, sizeof(kprl))) return -EFAULT; cmax = kprl.datalen / sizeof(kprl); if (cmax >...
0
[]
linux-2.6
d5aa407f59f5b83d2c50ec88f5bf56d40f1f8978
322,643,528,692,906,900,000,000,000,000,000,000,000
62
tunnels: fix netns vs proto registration ordering Same stuff as in ip_gre patch: receive hook can be called before netns setup is done, oopsing in net_generic(). Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
static int ecryptfs_write_headers_virt(char *page_virt, size_t max, size_t *size, struct ecryptfs_crypt_stat *crypt_stat, struct dentry *ecryptfs_dentry) { int rc; size_t written; size_t offset; offset = ECRYPTFS_FILE_SIZE_BYTES; write_ecryptfs_marker((page_virt + offset), &writte...
0
[ "CWE-703", "CWE-189" ]
linux
942080643bce061c3dd9d5718d3b745dcb39a8bc
280,746,062,749,615,870,000,000,000,000,000,000,000
30
eCryptfs: Remove buggy and unnecessary write in file name decode routine Dmitry Chernenkov used KASAN to discover that eCryptfs writes past the end of the allocated buffer during encrypted filename decoding. This fix corrects the issue by getting rid of the unnecessary 0 write when the current bit offset is 2. Signed...
qint64 RemoteFsDevice::freeSpace() { if (!isConnected()) { // || !details.isLocalFile()) { return 0; } spaceInfo.setPath(mountPoint(details, false)); if (isOldSshfs()) { return 0; } return spaceInfo.size()-spaceInfo.used(); }
0
[ "CWE-20", "CWE-22" ]
cantata
afc4f8315d3e96574925fb530a7004cc9e6ce3d3
154,833,650,509,938,900,000,000,000,000,000,000,000
12
Remove internal Samba shre mounting code, this had some privilege escalation issues, and is not well tested
inkcoreapi extern ink_time_t ink_cluster_time(void); inline void HttpTransact::update_stat(State* s, int stat, ink_statval_t increment) { if (s->current_stats->next_insert >= StatBlockEntries) { // This a rare operation and we want to avoid the // code bloat of inlining it everywhere so // it's a fun...
0
[ "CWE-119" ]
trafficserver
8b5f0345dade6b2822d9b52c8ad12e63011a5c12
34,777,537,695,141,675,000,000,000,000,000,000,000
14
Fix the internal buffer sizing. Thanks to Sudheer for helping isolating this bug
static int check_stack_write(struct bpf_verifier_env *env, struct bpf_func_state *state, /* func where register points to */ int off, int size, int value_regno, int insn_idx) { struct bpf_func_state *cur; /* state of the current function */ int i, slot = -off - 1, spi = slot / BPF_REG_SIZE, err; u32 ...
0
[]
linux
9b00f1b78809309163dda2d044d9e94a3c0248a3
260,485,043,559,703,300,000,000,000,000,000,000,000
127
bpf: Fix truncation handling for mod32 dst reg wrt zero Recently noticed that when mod32 with a known src reg of 0 is performed, then the dst register is 32-bit truncated in verifier: 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 0: (b7) r0 = 0 1: R0_w=inv0 R1=ctx(id=0,off=0,imm=0) R10=fp0 1: (b7) r1 = -1 2: R0_w=inv...
qb_rb_create_from_file(int32_t fd, uint32_t flags) { ssize_t n_read; size_t n_required; size_t total_read = 0; uint32_t read_pt; uint32_t write_pt; struct qb_ringbuffer_s *rb; uint32_t word_size = 0; uint32_t version = 0; uint32_t hash = 0; uint32_t calculated_hash = 0; if (fd < 0) { return NULL; } /* ...
0
[ "CWE-59" ]
libqb
e322e98dc264bc5911d6fe1d371e55ac9f95a71e
53,861,177,202,314,290,000,000,000,000,000,000,000
109
ipc: use O_EXCL on SHM files, and randomize the names Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
napi_status napi_reference_unref(napi_env env, napi_ref ref, uint32_t* result) { // Omit NAPI_PREAMBLE and GET_RETURN_STATUS because V8 calls here cannot throw // JS exceptions. CHECK_ENV(env); CHECK_ARG(env, ref); v8impl::Reference* reference = reinterpret_cast<v8impl::Reference*>(ref); if (reference->Re...
0
[ "CWE-191" ]
node
656260b4b65fec3b10f6da3fdc9f11fb941aafb5
243,978,676,467,147,850,000,000,000,000,000,000,000
20
napi: fix memory corruption vulnerability Fixes: https://hackerone.com/reports/784186 CVE-ID: CVE-2020-8174 PR-URL: https://github.com/nodejs-private/node-private/pull/195 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com> Reviewed-By: Michael Dawson <michael_da...
static inline void xfrm_dst_set_child(struct xfrm_dst *xdst, struct dst_entry *child) { xdst->child = child; }
0
[ "CWE-416" ]
linux
dbb2483b2a46fbaf833cfb5deb5ed9cace9c7399
203,506,311,663,724,170,000,000,000,000,000,000,000
4
xfrm: clean up xfrm protocol checks In commit 6a53b7593233 ("xfrm: check id proto in validate_tmpl()") I introduced a check for xfrm protocol, but according to Herbert IPSEC_PROTO_ANY should only be used as a wildcard for lookup, so it should be removed from validate_tmpl(). And, IPSEC_PROTO_ANY is expected to only m...
void sendBidiData(FakeHttpConnectionPtr& fake_upstream_connection, bool send_goaway = false) { // Send some data from downstream to upstream, and make sure it goes through. ASSERT_TRUE(tcp_client_->write("hello", false)); ASSERT_TRUE(upstream_request_->waitForData(*dispatcher_, 5)); if (send_goaway) ...
0
[ "CWE-416" ]
envoy
ce0ae309057a216aba031aff81c445c90c6ef145
68,778,122,722,733,590,000,000,000,000,000,000,000
12
CVE-2021-43826 Signed-off-by: Yan Avlasov <yavlasov@google.com>
ptvcursor_add_text_with_subtree(ptvcursor_t *ptvc, gint length, gint ett_subtree, const char *format, ...) { proto_item *pi; va_list ap; header_field_info *hfinfo; proto_tree *tree; tree = ptvcursor_tree(ptvc); CHECK_FOR_NULL_TREE(tree); TRY_TO_FAKE_THIS_ITEM(tree, hf_text_only, h...
0
[ "CWE-401" ]
wireshark
a9fc769d7bb4b491efb61c699d57c9f35269d871
158,532,053,622,700,300,000,000,000,000,000,000,000
25
epan: Fix a memory leak. Make sure _proto_tree_add_bits_ret_val allocates a bits array using the packet scope, otherwise we leak memory. Fixes #17032.
static int jpc_pi_nextrpcl(register jpc_pi_t *pi) { int rlvlno; jpc_pirlvl_t *pirlvl; jpc_pchg_t *pchg; int prchind; int prcvind; int *prclyrno; int compno; jpc_picomp_t *picomp; int xstep; int ystep; uint_fast32_t r; uint_fast32_t rpx; uint_fast32_t rpy; uint_fast32_t trx0; uint_fast32_t try0; pchg = ...
1
[ "CWE-125" ]
jasper
f25486c3d4aa472fec79150f2c41ed4333395d3d
97,090,129,311,800,940,000,000,000,000,000,000,000
101
Fixed a bug in the packet iterator code. Added a new regression test case.
static void mem_cgroup_usage_unregister_event(struct cgroup *cgrp, struct cftype *cft, struct eventfd_ctx *eventfd) { struct mem_cgroup *memcg = mem_cgroup_from_cont(cgrp); struct mem_cgroup_thresholds *thresholds; struct mem_cgroup_threshold_ary *new; int type = MEMFILE_TYPE(cft->private); u64 usage; int i, j, ...
0
[ "CWE-264" ]
linux-2.6
1a5a9906d4e8d1976b701f889d8f35d54b928f25
9,959,220,832,390,136,000,000,000,000,000,000,000
78
mm: thp: fix pmd_bad() triggering in code paths holding mmap_sem read mode In some cases it may happen that pmd_none_or_clear_bad() is called with the mmap_sem hold in read mode. In those cases the huge page faults can allocate hugepmds under pmd_none_or_clear_bad() and that can trigger a false positive from pmd_bad(...
Formattable::getString(UErrorCode& status) { if (fType != kString) { setError(status, U_INVALID_FORMAT_ERROR); return *getBogus(); } if (fValue.fString == NULL) { setError(status, U_MEMORY_ALLOCATION_ERROR); return *getBogus(); } return *fValue.fString; }
0
[ "CWE-190" ]
icu
53d8c8f3d181d87a6aa925b449b51c4a2c922a51
4,015,253,648,118,452,000,000,000,000,000,000,000
12
ICU-20246 Fixing another integer overflow in number parsing.
alloc_handle (HandleData *handles, MonoObject *obj, gboolean track) { gint slot, i; guint32 res; lock_handles (handles); if (!handles->size) { handles->size = 32; if (handles->type > HANDLE_WEAK_TRACK) { handles->entries = mono_gc_alloc_fixed (sizeof (gpointer) * handles->size, mono_gc_make_root_descr_all_re...
0
[ "CWE-399", "CWE-264" ]
mono
8eb1189099e02372fd45ca1c67230eccf1edddc0
207,004,265,580,574,250,000,000,000,000,000,000,000
100
Implement a reference queue API. * gc.c: A reference queue allows one to queue callbcks for when objects are collected. It allows for safe cleanup of objects that can only be done when it is effectively collected. The major difference with regular finalization is that the collector makes sure the object was col...
disp_blocked_fn(ev, data) struct event *ev; char *data; { struct win *p; display = (struct display *)data; debug1("blocked timeout %s\n", D_usertty); if (D_obufp - D_obuf > D_obufmax + D_blocked_fuzz) { debug("stopping output to display\n"); D_blocked = 1; /* re-enable all windows */ ...
0
[]
screen
c5db181b6e017cfccb8d7842ce140e59294d9f62
150,324,310,103,844,380,000,000,000,000,000,000,000
21
ansi: add support for xterm OSC 11 It allows for getting and setting the background color. Notably, Vim uses OSC 11 to learn whether it's running on a light or dark colored terminal and choose a color scheme accordingly. Tested with gnome-terminal and xterm. When called with "?" argument the current background color ...
void free_underlaid_joins(THD *thd, SELECT_LEX *select) { for (SELECT_LEX_UNIT *unit= select->first_inner_unit(); unit; unit= unit->next_unit()) unit->cleanup(); }
0
[]
server
ff77a09bda884fe6bf3917eb29b9d3a2f53f919b
273,861,763,020,787,900,000,000,000,000,000,000,000
7
MDEV-22464 Server crash on UPDATE with nested subquery Uninitialized ref_pointer_array[] because setup_fields() got empty fields list. mysql_multi_update() for some reason does that by substituting the fields list with empty total_list for the mysql_select() call (looks like wrong merge since total_list is not used a...
static int check_func_call(struct bpf_verifier_env *env, struct bpf_insn *insn, int *insn_idx) { struct bpf_verifier_state *state = env->cur_state; struct bpf_func_state *caller, *callee; int i, subprog, target_insn; if (state->curframe + 1 >= MAX_CALL_FRAMES) { verbose(env, "the call stack of %d frames is...
0
[ "CWE-125" ]
linux
b799207e1e1816b09e7a5920fbb2d5fcf6edd681
262,047,891,670,146,950,000,000,000,000,000,000,000
67
bpf: 32-bit RSH verification must truncate input before the ALU op When I wrote commit 468f6eafa6c4 ("bpf: fix 32-bit ALU op verification"), I assumed that, in order to emulate 64-bit arithmetic with 32-bit logic, it is sufficient to just truncate the output to 32 bits; and so I just moved the register size coercion t...
static void __net_exit addrconf_exit_net(struct net *net) { #ifdef CONFIG_SYSCTL __addrconf_sysctl_unregister(net->ipv6.devconf_dflt); __addrconf_sysctl_unregister(net->ipv6.devconf_all); #endif if (!net_eq(net, &init_net)) { kfree(net->ipv6.devconf_dflt); kfree(net->ipv6.devconf_all); } }
0
[]
net
4b08a8f1bd8cb4541c93ec170027b4d0782dab52
218,726,153,125,886,100,000,000,000,000,000,000,000
11
ipv6: remove max_addresses check from ipv6_create_tempaddr Because of the max_addresses check attackers were able to disable privacy extensions on an interface by creating enough autoconfigured addresses: <http://seclists.org/oss-sec/2012/q4/292> But the check is not actually needed: max_addresses protects the kerne...
int imap_close_message (CONTEXT *ctx, MESSAGE *msg) { return safe_fclose (&msg->fp); }
0
[ "CWE-787" ]
mutt
3287534daa3beac68e2e83ca4b4fe8a3148ff870
160,979,394,954,075,550,000,000,000,000,000,000,000
4
Don't overflow tmp in msg_parse_fetch. Ensure INTERNALDATE and RFC822.SIZE field sizes fit temp buffer. Thanks to Jeriko One for the bug report and patch, which this patch is based upon.
static int __udp_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) { int rc; if (inet_sk(sk)->inet_daddr) { sock_rps_save_rxhash(sk, skb); sk_mark_napi_id(sk, skb); } rc = sock_queue_rcv_skb(sk, skb); if (rc < 0) { int is_udplite = IS_UDPLITE(sk); /* Note that an ENOMEM error is charged twice */ if ...
0
[ "CWE-20" ]
net
bceaa90240b6019ed73b49965eac7d167610be69
163,934,563,645,289,640,000,000,000,000,000,000,000
26
inet: prevent leakage of uninitialized memory to user in recv syscalls Only update *addr_len when we actually fill in sockaddr, otherwise we can return uninitialized memory from the stack to the caller in the recvfrom, recvmmsg and recvmsg syscalls. Drop the the (addr_len == NULL) checks because we only get called wit...
int do_remount_sb(struct super_block *sb, int flags, void *data, int force) { int retval; int remount_ro; if (sb->s_writers.frozen != SB_UNFROZEN) return -EBUSY; #ifdef CONFIG_BLOCK if (!(flags & MS_RDONLY) && bdev_read_only(sb->s_bdev)) return -EACCES; #endif if (flags & MS_RDONLY) acct_auto_close(sb); ...
0
[ "CWE-17" ]
linux
eee5cc2702929fd41cce28058dc6d6717f723f87
306,734,223,324,053,000,000,000,000,000,000,000,000
64
get rid of s_files and files_lock The only thing we need it for is alt-sysrq-r (emergency remount r/o) and these days we can do just as well without going through the list of files. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
void smb2cli_req_set_notify_async(struct tevent_req *req) { struct smbXcli_req_state *state = tevent_req_data(req, struct smbXcli_req_state); state->smb2.notify_async = true; }
0
[ "CWE-20" ]
samba
a819d2b440aafa3138d95ff6e8b824da885a70e9
124,059,131,031,609,700,000,000,000,000,000,000,000
8
CVE-2015-5296: libcli/smb: make sure we require signing when we demand encryption on a session BUG: https://bugzilla.samba.org/show_bug.cgi?id=11536 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
static int exif_process_IFD_in_JPEG(image_info_type *ImageInfo, char *dir_start, char *offset_base, size_t IFDlength, size_t displacement, int section_index TSRMLS_DC) { int de; int NumDirEntries; int NextDirOffset; #ifdef EXIF_DEBUG exif_error_docref(NULL EXIFERR_CC, ImageInfo, E_NOTICE, "Process %s (x%04X(=%d))"...
1
[ "CWE-119" ]
php-src
1366c0362f1fa85e82bde9c0b393bd3bb3d32892
295,310,977,457,457,800,000,000,000,000,000,000,000
64
Fix bug #72094 - Out of bounds heap read access in exif header processing
static int ZEND_FASTCALL ZEND_FETCH_OBJ_IS_SPEC_UNUSED_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS) { return zend_fetch_property_address_read_helper_SPEC_UNUSED_TMP(BP_VAR_IS, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU); }
0
[]
php-src
ce96fd6b0761d98353761bf78d5bfb55291179fd
158,359,825,155,254,600,000,000,000,000,000,000,000
4
- fix #39863, do not accept paths with NULL in them. See http://news.php.net/php.internals/50191, trunk will have the patch later (adding a macro and/or changing (some) APIs. Patch by Rasmus
int hugetlb_reserve_pages(struct inode *inode, long from, long to, struct vm_area_struct *vma, vm_flags_t vm_flags) { long ret, chg, add = -1; struct hstate *h = hstate_inode(inode); struct hugepage_subpool *spool = subpool_inode(inode); struct resv_map *resv_map; struct hugetlb_cgroup *h_cg = NULL;...
0
[ "CWE-362" ]
linux
17743798d81238ab13050e8e2833699b54e15467
195,765,031,239,521,620,000,000,000,000,000,000,000
148
mm/hugetlb: fix a race between hugetlb sysctl handlers There is a race between the assignment of `table->data` and write value to the pointer of `table->data` in the __do_proc_doulongvec_minmax() on the other thread. CPU0: CPU1: proc_sys_write ...
static int getAPPNAMELen(msg_t *pM, sbool bLockMutex) { assert(pM != NULL); prepareAPPNAME(pM, bLockMutex); return (pM->pCSAPPNAME == NULL) ? 0 : rsCStrLen(pM->pCSAPPNAME); }
0
[ "CWE-772" ]
rsyslog
8083bd1433449fd2b1b79bf759f782e0f64c0cd2
88,310,268,704,707,620,000,000,000,000,000,000,000
6
backporting abort condition fix from 5.7.7
static void set_origin(struct vc_data *vc) { WARN_CONSOLE_UNLOCKED(); if (!con_is_visible(vc) || !vc->vc_sw->con_set_origin || !vc->vc_sw->con_set_origin(vc)) vc->vc_origin = (unsigned long)vc->vc_screenbuf; vc->vc_visible_origin = vc->vc_origin; vc->vc_scr_end = vc->vc_origin + vc->vc_screenbuf_size; ...
0
[ "CWE-416", "CWE-362" ]
linux
ca4463bf8438b403596edd0ec961ca0d4fbe0220
48,791,795,075,987,140,000,000,000,000,000,000,000
12
vt: vt_ioctl: fix VT_DISALLOCATE freeing in-use virtual console The VT_DISALLOCATE ioctl can free a virtual console while tty_release() is still running, causing a use-after-free in con_shutdown(). This occurs because VT_DISALLOCATE considers a virtual console's 'struct vc_data' to be unused as soon as the correspond...
void __mmdrop(struct mm_struct *mm) { BUG_ON(mm == &init_mm); mm_free_pgd(mm); destroy_context(mm); mmu_notifier_mm_destroy(mm); free_mm(mm); }
0
[ "CWE-264" ]
linux-2.6
2d5516cbb9daf7d0e342a2e3b0fc6f8c39a81205
118,157,844,552,102,420,000,000,000,000,000,000,000
8
copy_process: fix CLONE_PARENT && parent_exec_id interaction CLONE_PARENT can fool the ->self_exec_id/parent_exec_id logic. If we re-use the old parent, we must also re-use ->parent_exec_id to make sure exit_notify() sees the right ->xxx_exec_id's when the CLONE_PARENT'ed task exits. Also, move down the "p->parent_ex...
static int snd_ctl_remove_user_ctl(struct snd_ctl_file * file, struct snd_ctl_elem_id *id) { struct snd_card *card = file->card; struct snd_kcontrol *kctl; int idx, ret; down_write(&card->controls_rwsem); kctl = snd_ctl_find_id(card, id); if (kctl == NULL) { ret = -ENOENT; goto error; } if (!(kctl->...
0
[ "CWE-190", "CWE-189" ]
linux
ac902c112d90a89e59916f751c2745f4dbdbb4bd
329,646,835,496,806,480,000,000,000,000,000,000,000
30
ALSA: control: Handle numid overflow Each control gets automatically assigned its numids when the control is created. The allocation is done by incrementing the numid by the amount of allocated numids per allocation. This means that excessive creation and destruction of controls (e.g. via SNDRV_CTL_IOCTL_ELEM_ADD/REMO...
ldns_rdf_get_type(const ldns_rdf *rd) { assert(rd != NULL); return rd->_type; }
0
[ "CWE-415" ]
ldns
070b4595981f48a21cc6b4f5047fdc2d09d3da91
31,975,104,135,587,500,000,000,000,000,000,000,000
5
CAA and URI
bool BitTestMatchExpression::performBitTest(long long eValue) const { const MatchType mt = matchType(); switch (mt) { case BITS_ALL_SET: return (eValue & _bitMask) == _bitMask; case BITS_ALL_CLEAR: return (~eValue & _bitMask) == _bitMask; case BITS_ANY_SET: ...
0
[]
mongo
b0ef26c639112b50648a02d969298650fbd402a4
201,789,183,266,801,540,000,000,000,000,000,000,000
16
SERVER-51083 Reject invalid UTF-8 from $regex match expressions