func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
dns_zone_notify(dns_zone_t *zone) { isc_time_t now; REQUIRE(DNS_ZONE_VALID(zone)); LOCK_ZONE(zone); DNS_ZONE_SETFLAG(zone, DNS_ZONEFLG_NEEDNOTIFY); TIME_NOW(&now); zone_settimer(zone, &now); UNLOCK_ZONE(zone); }
0
[ "CWE-327" ]
bind9
f09352d20a9d360e50683cd1d2fc52ccedcd77a0
199,028,226,583,144,840,000,000,000,000,000,000,000
12
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.
static u32 nft_objname_hash(const void *data, u32 len, u32 seed) { const struct nft_object_hash_key *k = data; seed ^= hash_ptr(k->table, 32); return jhash(k->name, strlen(k->name), seed); }
0
[ "CWE-665" ]
linux
ad9f151e560b016b6ad3280b48e42fa11e1a5440
85,435,873,843,541,850,000,000,000,000,000,000,000
8
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: ...
psutil_net_io_counters(PyObject *self, PyObject *args) { DWORD dwRetVal = 0; #if (_WIN32_WINNT >= 0x0600) // Windows Vista and above MIB_IF_ROW2 *pIfRow = NULL; #else // Windows XP MIB_IFROW *pIfRow = NULL; #endif PIP_ADAPTER_ADDRESSES pAddresses = NULL; PIP_ADAPTER_ADDRESSES pCurrAddresses = NULL...
0
[ "CWE-415" ]
psutil
7d512c8e4442a896d56505be3e78f1156f443465
129,867,319,267,679,300,000,000,000,000,000,000,000
105
Use Py_CLEAR instead of Py_DECREF to also set the variable to NULL (#1616) These files contain loops that convert system data into python objects and during the process they create objects and dereference their refcounts after they have been added to the resulting list. However, in case of errors during the creat...
clear_string_option(char_u **pp) { if (*pp != empty_option) vim_free(*pp); *pp = empty_option; }
0
[ "CWE-20" ]
vim
d0b5138ba4bccff8a744c99836041ef6322ed39a
160,254,991,506,571,920,000,000,000,000,000,000,000
6
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'.
static Image *ReadOneMNGImage(MngInfo* mng_info, const ImageInfo *image_info, ExceptionInfo *exception) { char page_geometry[MagickPathExtent]; Image *image; MagickBooleanType logging; volatile int first_mng_object, object_id, term_chunk_found, skip_to_iend; volatile ssize...
0
[ "CWE-416" ]
ImageMagick
916d7bbd2c66a286d379dbd94bc6035c8fab937c
81,171,498,982,196,360,000,000,000,000,000,000,000
2,428
Removed invalid free reported in #1791.
xmlRelaxNGCleanupDoc(xmlRelaxNGParserCtxtPtr ctxt, xmlDocPtr doc) { xmlNodePtr root; /* * Extract the root */ root = xmlDocGetRootElement(doc); if (root == NULL) { xmlRngPErr(ctxt, (xmlNodePtr) doc, XML_RNGP_EMPTY, "xmlRelaxNGParse: %s is empty\n", ctxt->URL, NULL);...
0
[ "CWE-134" ]
libxml2
502f6a6d08b08c04b3ddfb1cd21b2f699c1b7f5b
329,260,851,459,249,850,000,000,000,000,000,000,000
16
More format string warnings with possible format string vulnerability For https://bugzilla.gnome.org/show_bug.cgi?id=761029 adds a new xmlEscapeFormatString() function to escape composed format strings
static void normalize_vpath(char **retval, size_t *retval_len, const char *vpath, size_t vpath_len, int persistent) /* {{{ */ { char *decoded_vpath = NULL; char *decoded_vpath_end; char *p; *retval = NULL; decoded_vpath = pestrndup(vpath, vpath_len, persistent); if (!decoded_vpath) { return; } decoded_vpat...
0
[]
php-src
2438490addfbfba51e12246a74588b2382caa08a
39,251,266,158,339,460,000,000,000,000,000,000,000
67
slim post data
static inline void *mmu_memory_cache_alloc_obj(struct kvm_mmu_memory_cache *mc, gfp_t gfp_flags) { gfp_flags |= mc->gfp_zero; if (mc->kmem_cache) return kmem_cache_alloc(mc->kmem_cache, gfp_flags); else return (void *)__get_free_page(gfp_flags); }
0
[ "CWE-401" ]
linux
f65886606c2d3b562716de030706dfe1bea4ed5e
208,551,157,684,426,700,000,000,000,000,000,000,000
10
KVM: fix memory leak in kvm_io_bus_unregister_dev() when kmalloc() fails in kvm_io_bus_unregister_dev(), before removing the bus, we should iterate over all other devices linked to it and call kvm_iodevice_destructor() for them Fixes: 90db10434b16 ("KVM: kvm_io_bus_unregister_dev() should never fail") Cc: stable@vger...
_dbus_get_real_time (long *tv_sec, long *tv_usec) { struct timeval t; gettimeofday (&t, NULL); if (tv_sec) *tv_sec = t.tv_sec; if (tv_usec) *tv_usec = t.tv_usec; }
0
[ "CWE-404" ]
dbus
872b085f12f56da25a2dbd9bd0b2dff31d5aea63
129,213,557,142,374,440,000,000,000,000,000,000,000
12
sysdeps-unix: On MSG_CTRUNC, close the fds we did receive MSG_CTRUNC indicates that we have received fewer fds that we should have done because the buffer was too small, but we were treating it as though it indicated that we received *no* fds. If we received any, we still have to make sure we close them, otherwise the...
CalcSlicePercent(cv, percent) struct canvas *cv; int percent; { int w, wsum, up; if (!cv || !cv->c_slback) return percent; up = CalcSlicePercent(cv->c_slback->c_slback, percent); w = cv->c_slweight; for (cv = cv->c_slback->c_slperp, wsum = 0; cv; cv = cv->c_slnext) wsum += cv->c_slweight; if (wsum =...
0
[]
screen
c5db181b6e017cfccb8d7842ce140e59294d9f62
100,721,741,870,740,310,000,000,000,000,000,000,000
15
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 ...
static int my_getpass(void *client, char *prompt, char *buffer, int buflen) { buffer[0] = '\0'; return 0; }
0
[ "CWE-119" ]
icecast-server
b21a7283bd1598c5af0bbb250a041ba8198f98f2
95,341,904,656,064,140,000,000,000,000,000,000,000
5
Fix: Fixed buffer overflows in URL auth code. See: #2342
smsg(const char *s, ...) { if (IObuff == NULL) { // Very early in initialisation and already something wrong, just // give the raw message so the user at least gets a hint. return msg((char *)s); } else { va_list arglist; va_start(arglist, s); vim_vsnprintf((char *)IObuff, IOSIZE, s, arglist)...
0
[ "CWE-416" ]
vim
9f1a39a5d1cd7989ada2d1cb32f97d84360e050f
199,253,844,369,059,540,000,000,000,000,000,000,000
18
patch 8.2.4040: keeping track of allocated lines is too complicated Problem: Keeping track of allocated lines in user functions is too complicated. Solution: Instead of freeing individual lines keep them all until the end.
void ipv4_pktinfo_prepare(const struct sock *sk, struct sk_buff *skb) { struct in_pktinfo *pktinfo = PKTINFO_SKB_CB(skb); bool prepare = (inet_sk(sk)->cmsg_flags & IP_CMSG_PKTINFO) || ipv6_sk_rxinfo(sk); if (prepare && skb_rtable(skb)) { /* skb->cb is overloaded: prior to this point it is IP{6}CB * wh...
0
[ "CWE-476" ]
net
425aa0e1d01513437668fa3d4a971168bbaa8515
125,298,143,758,151,670,000,000,000,000,000,000,000
31
ip_sockglue: Fix missing-check bug in ip_ra_control() In function ip_ra_control(), the pointer new_ra is allocated a memory space via kmalloc(). And it is used in the following codes. However, when there is a memory allocation error, kmalloc() fails. Thus null pointer dereference may happen. And it will cause the ker...
dissect_usb_vid_control_info(proto_tree *tree, tvbuff_t *tvb, int offset) { static const int *capability_bits[] = { &hf_usb_vid_control_info_D[0], &hf_usb_vid_control_info_D[1], &hf_usb_vid_control_info_D[2], &hf_usb_vid_control_info_D[3], &hf_usb_vid_control_info_D[4], ...
0
[ "CWE-476" ]
wireshark
2cb5985bf47bdc8bea78d28483ed224abdd33dc6
253,753,111,878,452,250,000,000,000,000,000,000,000
20
Make class "type" for USB conversations. USB dissectors can't assume that only their class type has been passed around in the conversation. Make explicit check that class type expected matches the dissector and stop/prevent dissection if there isn't a match. Bug: 12356 Change-Id: Ib23973a4ebd0fbb51952ffc118daf95e338...
_ocsp_resp_verify_direct(gnutls_ocsp_resp_t resp, gnutls_x509_crt_t signercert, unsigned int *verify, unsigned int flags) { gnutls_datum_t sig = { NULL }; gnutls_datum_t data = { NULL }; gnutls_pubkey_t pubkey = NULL; int sigalg; int rc; if (resp == NULL || signercert == NULL) { gnutls_assert(); retu...
0
[ "CWE-264" ]
gnutls
964632f37dfdfb914ebc5e49db4fa29af35b1de9
136,790,859,756,070,680,000,000,000,000,000,000,000
64
ocsp: corrected the comparison of the serial size in OCSP response Previously the OCSP certificate check wouldn't verify the serial length and could succeed in cases it shouldn't. Reported by Stefan Buehler.
Deploy(const char* packageName) { int deployStatus = DEPLOY_SUCCESS; char* command = NULL; int deploymentResult; char *nics; char* cleanupCommand; uint8 archiveType; // Move to IN PROGRESS state TransitionState(NULL, INPROGRESS); // Notify the vpx of customization in-progress state SetCu...
1
[ "CWE-362" ]
open-vm-tools
c1304ce8bfd9c0c33999e496bf7049d5c3d45821
178,333,553,276,901,400,000,000,000,000,000,000,000
155
randomly generate tmp directory name, and add StrUtil_ReplaceAll() function.
usm_session_init(netsnmp_session *in_session, netsnmp_session *session) { char *cp; size_t i; if (in_session->securityAuthProtoLen > 0) { session->securityAuthProto = snmp_duplicate_objid(in_session->securityAuthProto, in_session->securityAuthProtoLe...
0
[ "CWE-415" ]
net-snmp
5f881d3bf24599b90d67a45cae7a3eb099cd71c9
336,903,898,332,152,000,000,000,000,000,000,000,000
94
libsnmp, USM: Introduce a reference count in struct usmStateReference This patch fixes https://sourceforge.net/p/net-snmp/bugs/2956/.
static int receiver_wake_function(wait_queue_t *wait, unsigned int mode, int sync, void *key) { unsigned long bits = (unsigned long)key; /* * Avoid a wakeup if event not interesting for us */ if (bits && !(bits & (POLLIN | POLLERR))) return 0; return autoremove_wake_function(wait, mode, sync, key); }
0
[]
linux-2.6
77c1090f94d1b0b5186fb13a1b71b47b1343f87f
166,589,696,912,801,940,000,000,000,000,000,000,000
12
net: fix infinite loop in __skb_recv_datagram() Tommi was fuzzing with trinity and reported the following problem : commit 3f518bf745 (datagram: Add offset argument to __skb_recv_datagram) missed that a raw socket receive queue can contain skbs with no payload. We can loop in __skb_recv_datagram() with MSG_PEEK mode...
static void fuse_lib_destroy(void *data) { struct fuse *f = (struct fuse *) data; struct fuse_context_i *c = fuse_get_context_internal(); memset(c, 0, sizeof(*c)); c->ctx.fuse = f; fuse_fs_destroy(f->fs); f->fs = NULL; }
0
[]
ntfs-3g
fb28eef6f1c26170566187c1ab7dc913a13ea43c
97,378,725,090,339,500,000,000,000,000,000,000,000
10
Hardened the checking of directory offset requested by a readdir When asked for the next directory entries, make sure the chunk offset is within valid values, otherwise return no more entries in chunk.
xfs_attr_remove( struct xfs_inode *dp, const unsigned char *name, int flags) { struct xfs_mount *mp = dp->i_mount; struct xfs_da_args args; struct xfs_defer_ops dfops; xfs_fsblock_t firstblock; int error; XFS_STATS_INC(mp, xs_attr_remove); if (XFS_FORCED_SHUTDOWN(dp->i_mount)) return -EIO; error = ...
0
[ "CWE-241", "CWE-754" ]
linux
7b38460dc8e4eafba06c78f8e37099d3b34d473c
247,612,464,979,193,330,000,000,000,000,000,000,000
91
xfs: don't fail when converting shortform attr to long form during ATTR_REPLACE Kanda Motohiro reported that expanding a tiny xattr into a large xattr fails on XFS because we remove the tiny xattr from a shortform fork and then try to re-add it after converting the fork to extents format having not removed the ATTR_RE...
vhost_flush_dequeue_shadow_packed(struct virtio_net *dev, struct vhost_virtqueue *vq) { struct vring_used_elem_packed *used_elem = &vq->shadow_used_packed[0]; vq->desc_packed[vq->shadow_last_used_idx].id = used_elem->id; rte_smp_wmb(); vq->desc_packed[vq->shadow_last_used_idx].flags = used_elem->flags; vho...
0
[ "CWE-665" ]
dpdk
97ecc1c85c95c13bc66a87435758e93406c35c48
339,840,591,261,518,800,000,000,000,000,000,000,000
15
vhost: fix translated address not checked Malicious guest can construct desc with invalid address and zero buffer length. That will request vhost to check both translated address and translated data length. This patch will add missed address check. CVE-2020-10725 Fixes: 75ed51697820 ("vhost: add packed ring batch deq...
delegpt_create(struct regional* region) { struct delegpt* dp=(struct delegpt*)regional_alloc( region, sizeof(*dp)); if(!dp) return NULL; memset(dp, 0, sizeof(*dp)); return dp; }
0
[ "CWE-400" ]
unbound
ba0f382eee814e56900a535778d13206b86b6d49
212,282,227,494,015,450,000,000,000,000,000,000,000
9
- CVE-2020-12662 Unbound can be tricked into amplifying an incoming query into a large number of queries directed to a target. - CVE-2020-12663 Malformed answers from upstream name servers can be used to make Unbound unresponsive.
static struct btrfs_device *add_missing_dev(struct btrfs_fs_devices *fs_devices, u64 devid, u8 *dev_uuid) { struct btrfs_device *device; device = btrfs_alloc_device(NULL, &devid, dev_uuid); if (IS_ERR(device)) return device; list_add(&device->dev_list, &fs_devices->devices); device->fs_devices = fs_de...
0
[ "CWE-476", "CWE-284" ]
linux
09ba3bc9dd150457c506e4661380a6183af651c1
89,493,219,063,270,920,000,000,000,000,000,000,000
18
btrfs: merge btrfs_find_device and find_device Both btrfs_find_device() and find_device() does the same thing except that the latter does not take the seed device onto account in the device scanning context. We can merge them. Signed-off-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: David Sterba <dsterba@suse.c...
dissect_tcpopt_mptcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) { proto_item *item,*main_item; proto_tree *mptcp_tree; guint8 subtype; guint8 ipver; int offset = 0; int optlen = tvb_reported_length(tvb); int start_offset = offset; struct tcp_analysis *tcpd = NULL; ...
0
[ "CWE-354" ]
wireshark
7f3fe6164a68b76d9988c4253b24d43f498f1753
54,745,642,728,015,500,000,000,000,000,000,000,000
416
TCP: do not use an unknown status when the checksum is 0xffff Otherwise it triggers an assert when adding the column as the field is defined as BASE_NONE and not BASE_DEC or BASE_HEX. Thus an unknown value (not in proto_checksum_vals[)array) cannot be represented. Mark the checksum as bad even if we process the packet...
int mnt_optstr_set_option(char **optstr, const char *name, const char *value) { struct libmnt_optloc ol = MNT_INIT_OPTLOC; char *nameend; int rc = 1; if (!optstr || !name) return -EINVAL; if (*optstr) rc = mnt_optstr_locate_option(*optstr, name, &ol); if (rc < 0) return rc; /* parse error */ if (rc == ...
0
[ "CWE-552", "CWE-703" ]
util-linux
57202f5713afa2af20ffbb6ab5331481d0396f8d
335,670,422,700,510,000,000,000,000,000,000,000,000
36
libmount: fix UID check for FUSE umount [CVE-2021-3995] Improper UID check allows an unprivileged user to unmount FUSE filesystems of users with similar UID. Signed-off-by: Karel Zak <kzak@redhat.com>
nfp_flower_netdev_event(struct nfp_app *app, struct net_device *netdev, unsigned long event, void *ptr) { struct nfp_flower_priv *app_priv = app->priv; int ret; if (app_priv->flower_ext_feats & NFP_FL_FEATS_LAG) { ret = nfp_flower_lag_netdev_event(app_priv, netdev, event, ptr); if (ret & NOTIFY_STOP_MASK) ...
0
[ "CWE-400", "CWE-401" ]
linux
8572cea1461a006bce1d06c0c4b0575869125fa4
45,315,119,881,248,290,000,000,000,000,000,000,000
22
nfp: flower: prevent memory leak in nfp_flower_spawn_phy_reprs In nfp_flower_spawn_phy_reprs, in the for loop over eth_tbl if any of intermediate allocations or initializations fail memory is leaked. requiered releases are added. Fixes: b94524529741 ("nfp: flower: add per repr private data for LAG offload") Signed-of...
static inline void mpeg4_encode_block(MpegEncContext *s, int16_t *block, int n, int intra_dc, uint8_t *scan_table, PutBitContext *dc_pb, PutBitContext *ac_pb) { int i, last_non_zero; uint32_t *bits_...
0
[ "CWE-20" ]
FFmpeg
e1182fac1afba92a4975917823a5f644bee7e6e8
28,825,537,019,457,930,000,000,000,000,000,000,000
60
avcodec/mpeg4videoenc: Use 64 bit for times in mpeg4_encode_gop_header() Fixes truncation Fixes Assertion n <= 31 && value < (1U << n) failed at libavcodec/put_bits.h:169 Fixes: ffmpeg_crash_2.avi Found-by: Thuan Pham <thuanpv@comp.nus.edu.sg>, Marcel Böhme, Andrew Santosa and Alexandru RazvanCaciulescu with AFLSmart...
S_regcp_restore(pTHX_ regexp *rex, I32 ix, U32 *maxopenparen_p) { I32 tmpix = PL_savestack_ix; PL_savestack_ix = ix; regcppop(rex, maxopenparen_p); PL_savestack_ix = tmpix; }
0
[ "CWE-416" ]
perl5
22b433eff9a1ffa2454e18405a56650f07b385b5
90,056,886,359,890,420,000,000,000,000,000,000,000
7
PATCH [perl #123562] Regexp-matching "hangs" The regex engine got into an infinite loop because of the malformation. It is trying to back-up over a sequence of UTF-8 continuation bytes. But the character just before the sequence should be a start byte. If not, there is a malformation. I added a test to croak if that...
static void b43_chip_reset(struct work_struct *work) { struct b43_wldev *dev = container_of(work, struct b43_wldev, restart_work); struct b43_wl *wl = dev->wl; int err = 0; int prev_status; mutex_lock(&wl->mutex); prev_status = b43_status(dev); /* Bring the device down... */ if (prev_status >= B43_STAT_S...
0
[ "CWE-134" ]
wireless
9538cbaab6e8b8046039b4b2eb6c9d614dc782bd
38,360,224,392,731,115,000,000,000,000,000,000,000
52
b43: stop format string leaking into error msgs The module parameter "fwpostfix" is userspace controllable, unfiltered, and is used to define the firmware filename. b43_do_request_fw() populates ctx->errors[] on error, containing the firmware filename. b43err() parses its arguments as a format string. For systems with...
static void mspack_fmap_free(void *mem) { if(mem) { free(mem); mem = NULL; } return; }
0
[ "CWE-119", "CWE-787" ]
clamav-devel
a83773682e856ad6529ba6db8d1792e6d515d7f1
180,289,733,498,322,600,000,000,000,000,000,000,000
8
fixing potential OOB window write when unpacking chm files
answer_notify(struct worker* w, struct query_info* qinfo, struct edns_data* edns, sldns_buffer* pkt, struct comm_reply* repinfo) { int refused = 0; int rcode = LDNS_RCODE_NOERROR; uint32_t serial = 0; int has_serial; if(!w->env.auth_zones) return; has_serial = auth_zone_parse_notify_serial(pkt, &serial); if(au...
0
[ "CWE-613", "CWE-703" ]
unbound
f6753a0f1018133df552347a199e0362fc1dac68
256,564,651,097,347,800,000,000,000,000,000,000,000
47
- Fix the novel ghost domain issues CVE-2022-30698 and CVE-2022-30699.
template<typename t> CImg<_cimg_Tt> get_min(const CImg<t>& img) const { return CImg<_cimg_Tt>(*this,false).min(img);
0
[ "CWE-125" ]
CImg
10af1e8c1ad2a58a0a3342a856bae63e8f257abb
10,599,942,544,860,492,000,000,000,000,000,000,000
3
Fix other issues in 'CImg<T>::load_bmp()'.
inline int ValidateTensorIndexing(const TfLiteContext* context, int index, int max_size, const int* tensor_indices) { if (index >= 0 && index < max_size) { const int tensor_index = tensor_indices[index]; if (tensor_index != kTfLiteOptionalTensor) { return tensor_index; ...
0
[ "CWE-476", "CWE-369" ]
tensorflow
5b048e87e4e55990dae6b547add4dae59f4e1c76
141,187,260,223,359,030,000,000,000,000,000,000,000
10
Fix a null pointer exception in SVDF This is due to not checking that `GetVariableInput` returns non-null tensor. Also fix a potential null pointer exception in `GetVariableInput`. PiperOrigin-RevId: 385160147 Change-Id: Iadf3f0705b036a9014d27caa5a8bbd91f4c4c401
parseChars(FileInfo *nested, CharsString *result, CharsString *token) { int in = 0; int out = 0; int lastOutSize = 0; int lastIn; unsigned int ch = 0; int numBytes = 0; unsigned int utf32 = 0; int k; while (in < token->length) { ch = token->chars[in++] & 0xff; if (ch < 128) { if (ch == '\\') { /* escape...
0
[ "CWE-787" ]
liblouis
dbfa58bb128cae86729578ac596056b3385817ef
114,602,869,233,360,320,000,000,000,000,000,000,000
113
Check index before writing to result->chars Fixes #595
const uECC_word_t *uECC_curve_b(uECC_Curve curve) { return curve->b; }
0
[ "CWE-415" ]
micro-ecc
1b5f5cea5145c96dd8791b9b2c41424fc74c2172
207,700,993,698,740,060,000,000,000,000,000,000,000
3
Fix for #168
static void git_pack_config(void) { int indexversion_value; int limit; unsigned long packsizelimit_value; if (!git_config_get_ulong("pack.depth", &max_depth)) { if (max_depth > MAX_DEPTH) max_depth = MAX_DEPTH; } if (!git_config_get_int("pack.indexversion", &indexversion_value)) { pack_idx_opts.version = ...
0
[]
git
68061e3470210703cb15594194718d35094afdc0
297,606,445,641,307,530,000,000,000,000,000,000,000
26
fast-import: disallow "feature export-marks" by default The fast-import stream command "feature export-marks=<path>" lets the stream write marks to an arbitrary path. This may be surprising if you are running fast-import against an untrusted input (which otherwise cannot do anything except update Git objects and refs)...
int smb_vfs_call_fsync(struct vfs_handle_struct *handle, struct files_struct *fsp) { VFS_FIND(fsync); return handle->fns->fsync(handle, fsp); }
0
[ "CWE-22" ]
samba
bd269443e311d96ef495a9db47d1b95eb83bb8f4
199,799,717,466,253,000,000,000,000,000,000,000,000
6
Fix bug 7104 - "wide links" and "unix extensions" are incompatible. Change parameter "wide links" to default to "no". Ensure "wide links = no" if "unix extensions = yes" on a share. Fix man pages to refect this. Remove "within share" checks for a UNIX symlink set - even if widelinks = no. The server will not follow t...
check_uuid(const char *uuid) { const char *p; for (p = uuid; p[0]; p++) if ((!isalnum(*p)) && (*p != '-')) return EINA_FALSE; return EINA_TRUE; }
1
[]
enlightenment
cc7faeccf77fef8b0ae70e312a21e4cde087e141
219,496,946,470,425,100,000,000,000,000,000,000,000
8
enlightenment_sys - fix security hole CVE-2022-37706 https://github.com/MaherAzzouzi/CVE-2022-37706-LPE-exploit fixes that. @fix
static void assign_export_symbol_t(struct MACH0_(obj_t) *bin, const char *name, ut64 flags, ut64 offset, void *ctx) { RSymCtx *sym_ctx = (RSymCtx*) ctx; int j = sym_ctx->j; if (j < sym_ctx->symbols_count) { sym_ctx->symbols[j].offset = offset; sym_ctx->symbols[j].addr = offset_to_vaddr (bin, offset); if (inSym...
0
[ "CWE-125", "CWE-787" ]
radare2
0052500c1ed5bf8263b26b9fd7773dbdc6f170c4
82,861,484,431,935,865,000,000,000,000,000,000,000
15
Fix heap OOB read in macho.iterate_chained_fixups ##crash * Reported by peacock-doris via huntr.dev * Reproducer 'tests_65305' mrmacete: * Return early if segs_count is 0 * Initialize segs_count also for reconstructed fixups Co-authored-by: pancake <pancake@nopcode.org> Co-authored-by: Francesco Tamagni <mrm...
df_local_to_utc(int df, int of) { df -= of; if (df < 0) df += DAY_IN_SECONDS; else if (df >= DAY_IN_SECONDS) df -= DAY_IN_SECONDS; return df; }
0
[]
date
3959accef8da5c128f8a8e2fd54e932a4fb253b0
91,158,971,263,431,150,000,000,000,000,000,000,000
9
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 void S_regdump_intflags(pTHX_ const char *lead, const U32 flags) { int bit; int set=0; ASSUME(REG_INTFLAGS_NAME_SIZE <= sizeof(flags)*8); for (bit=0; bit<REG_INTFLAGS_NAME_SIZE; bit++) { if (flags & (1<<bit)) { if (!set++ && lead) Perl_re_printf( aTHX_ "%s",...
0
[ "CWE-190", "CWE-787" ]
perl5
897d1f7fd515b828e4b198d8b8bef76c6faf03ed
108,583,341,107,915,900,000,000,000,000,000,000,000
21
regcomp.c: Prevent integer overflow from nested regex quantifiers. (CVE-2020-10543) On 32bit systems the size calculations for nested regular expression quantifiers could overflow causing heap memory corruption. Fixes: Perl/perl5-security#125 (cherry picked from commit bfd31397db5dc1a5c5d3e0a1f753a4f89a736e71)
int sqlite3WindowRewrite(Parse *pParse, Select *p){ int rc = SQLITE_OK; if( p->pWin && p->pPrior==0 && (p->selFlags & SF_WinRewrite)==0 ){ Vdbe *v = sqlite3GetVdbe(pParse); sqlite3 *db = pParse->db; Select *pSub = 0; /* The subquery */ SrcList *pSrc = p->pSrc; Expr *pWhere = p->pWher...
1
[ "CWE-755" ]
sqlite
8654186b0236d556aa85528c2573ee0b6ab71be3
244,312,120,903,084,560,000,000,000,000,000,000,000
126
When an error occurs while rewriting the parser tree for window functions in the sqlite3WindowRewrite() routine, make sure that pParse->nErr is set, and make sure that this shuts down any subsequent code generation that might depend on the transformations that were implemented. This fixes a problem discovered by the Y...
ins_bs_one(colnr_T *vcolp) { dec_cursor(); getvcol(curwin, &curwin->w_cursor, vcolp, NULL, NULL); if (State & REPLACE_FLAG) { // Don't delete characters before the insert point when in // Replace mode if (curwin->w_cursor.lnum != Insstart.lnum || curwin->w_cursor.col >= Insstart.col) replace_d...
0
[]
vim
98a336dd497d3422e7efeef9f24cc9e25aeb8a49
127,955,498,999,435,460,000,000,000,000,000,000,000
15
patch 8.2.0133: invalid memory access with search command Problem: Invalid memory access with search command. Solution: When :normal runs out of characters in bracketed paste mode break out of the loop.(closes #5511)
static int ndpi_search_tls_udp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) { struct ndpi_packet_struct *packet = &flow->packet; u_int32_t handshake_len; u_int16_t p_len, processed; const u_int8_t *p; u_int8_t no_dtls = 0, change_cipher_found = 0; #ifdef DEBUG_TL...
0
[ "CWE-787" ]
nDPI
1ec621c85b9411cc611652fd57a892cfef478af3
50,929,155,796,275,400,000,000,000,000,000,000,000
95
Added further checks
i_wrapper(const UChar* name, const UChar* name_end, int ng, int* gs, onig_regex_t* reg ARG_UNUSED, void* arg) { i_wrap* warg = (i_wrap* )arg; return (*warg->func)(name, name_end, ng, gs, warg->reg, warg->arg); }
0
[ "CWE-125" ]
oniguruma
65a9b1aa03c9bc2dc01b074295b9603232cb3b78
246,973,424,522,632,000,000,000,000,000,000,000,000
7
onig-5.9.2
int xen_pirq_from_irq(unsigned irq) { return pirq_from_irq(irq); }
0
[ "CWE-400", "CWE-703" ]
linux
e99502f76271d6bc4e374fe368c50c67a1fd3070
292,615,806,374,183,730,000,000,000,000,000,000,000
4
xen/events: defer eoi in case of excessive number of events In case rogue guests are sending events at high frequency it might happen that xen_evtchn_do_upcall() won't stop processing events in dom0. As this is done in irq handling a crash might be the result. In order to avoid that, delay further inter-domain events...
string str() { return string("a\0", 2); }
0
[ "CWE-835" ]
mongo
0a076417d1d7fba3632b73349a1fd29a83e68816
197,621,857,299,143,500,000,000,000,000,000,000,000
3
SERVER-38070 fix infinite loop in agg expression
void KrecipesView::initializeData( const QString &host, const QString &dbName, const QString &user, const QString &pass, int port ) { kDebug(); RecipeDB * db = RecipeDB::createDatabase( dbType, host, user, pass, dbName, port, dbName ); if ( !db ) { kError() << i18n( "Code error. No DB support has been included. Ex...
0
[]
krecipes
cd1490fb5fe82cbe9172a43be13298001b446ecd
4,568,873,776,152,517,700,000,000,000,000,000,000
21
Use WebKit instead of KHTML for printing recipes, fixes sourceforge #2990118 and #2960140. svn path=/trunk/extragear/utils/krecipes/; revision=1137824
static void yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, void *yyscanner, YR_COMPILER* compiler) { YYUSE (yyvaluep); YYUSE (yyscanner); YYUSE (compiler); if (!yymsg) yymsg = "Deleting"; YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp); YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN switch...
0
[ "CWE-125" ]
yara
ab906da53ff2a68c6fd6d1fa73f2b7c7bf0bc636
323,361,391,764,108,000,000,000,000,000,000,000,000
72
Fix issue #597
void MirrorJob::SetOnChange(const char *oc) { on_change.set(oc); }
0
[ "CWE-20", "CWE-401" ]
lftp
a27e07d90a4608ceaf928b1babb27d4d803e1992
320,982,348,964,443,270,000,000,000,000,000,000,000
4
mirror: prepend ./ to rm and chmod arguments to avoid URL recognition (fix #452)
qtdemux_uuid_bytes_to_string (gconstpointer uuid_bytes) { const guint8 *uuid = (const guint8 *) uuid_bytes; return g_strdup_printf ("%02x%02x%02x%02x-%02x%02x-%02x%02x-" "%02x%02x-%02x%02x%02x%02x%02x%02x", uuid[0], uuid[1], uuid[2], uuid[3], uuid[4], uuid[5], uuid[6], uuid[7], uuid[8], uui...
0
[ "CWE-125" ]
gst-plugins-good
d0949baf3dadea6021d54abef6802fed5a06af75
112,996,544,699,199,020,000,000,000,000,000,000,000
11
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
com_status(String *buffer __attribute__((unused)), char *line __attribute__((unused))) { const char *status_str; char buff[40]; ulonglong id; MYSQL_RES *result; LINT_INIT(result); if (mysql_real_query_for_lazy( C_STRING_WITH_LEN("select DATABASE(), USER() limit 1"))) return 0; tee_puts("...
0
[]
server
383007c75d6ef5043fa5781956a6a02b24e2b79e
149,193,347,418,169,590,000,000,000,000,000,000,000
124
mysql cli: fix USE command quoting * use proper sql quoting rules for USE, while preserving as much of historical behavior as possible * short commands (\u) behave as before
void* X509_get_ext_d2i(X509* x, int nid, int* crit, int* idx) { // no extensions supported yet return 0; }
0
[ "CWE-254" ]
mysql-server
e7061f7e5a96c66cb2e0bf46bec7f6ff35801a69
91,014,496,949,951,270,000,000,000,000,000,000,000
5
Bug #22738607: YASSL FUNCTION X509_NAME_GET_INDEX_BY_NID IS NOT WORKING AS EXPECTED.
static PHP_NAMED_FUNCTION(zif_zip_close) { zval * zip; zip_rsrc *z_rsrc = NULL; if (zend_parse_parameters(ZEND_NUM_ARGS(), "r", &zip) == FAILURE) { return; } if ((z_rsrc = (zip_rsrc *)zend_fetch_resource(Z_RES_P(zip), le_zip_dir_name, le_zip_dir)) == NULL) { RETURN_FALSE; } /* really close the zip will br...
0
[ "CWE-190" ]
php-src
3b8d4de300854b3517c7acb239b84f7726c1353c
239,519,004,731,019,660,000,000,000,000,000,000,000
16
Fix bug #71923 - integer overflow in ZipArchive::getFrom*
struct key *request_key_auth_new(struct key *target, const void *callout_info, size_t callout_len, struct key *dest_keyring) { struct request_key_auth *rka, *irka; const struct cred *cred = current->cred; struct key *authkey = NULL; char desc[20]; int ret; kenter("%d,", target->serial); /* allocate a auth...
0
[ "CWE-476" ]
linux
c06cfb08b88dfbe13be44a69ae2fdc3a7c902d81
270,765,179,529,633,300,000,000,000,000,000,000,000
90
KEYS: Remove key_type::match in favour of overriding default by match_preparse A previous patch added a ->match_preparse() method to the key type. This is allowed to override the function called by the iteration algorithm. Therefore, we can just set a default that simply checks for an exact match of the key descripti...
static int samldb_prim_group_trigger(struct samldb_ctx *ac) { int ret; if (ac->req->operation == LDB_ADD) { ret = samldb_prim_group_set(ac); } else { ret = samldb_prim_group_change(ac); } return ret; }
0
[ "CWE-200" ]
samba
0a3aa5f908e351201dc9c4d4807b09ed9eedff77
71,658,212,656,472,040,000,000,000,000,000,000,000
12
CVE-2022-32746 ldb: Make use of functions for appending to an ldb_message This aims to minimise usage of the error-prone pattern of searching for a just-added message element in order to make modifications to it (and potentially finding the wrong element). BUG: https://bugzilla.samba.org/show_bug.cgi?id=15009 Signed...
ztype0_define_font(gs_font_dir * pdir, gs_font * pfont) { gs_font_type0 *const pfont0 = (gs_font_type0 *)pfont; gs_font **pdep = pfont0->data.FDepVector; int code = gs_type0_define_font(pdir, pfont); if (code < 0 || pfont0->data.FDepVector == pdep) return code; return ztype0_adjust_FDepVect...
0
[ "CWE-704" ]
ghostpdl
548bb434e81dadcc9f71adf891a3ef5bea8e2b4e
166,546,073,304,520,280,000,000,000,000,000,000,000
10
PS interpreter - add some type checking These were 'probably' safe anyway, since they mostly treat the objects as integers without checking, which at least can't result in a crash. Nevertheless, we ought to check. The return from comparedictkeys could be wrong if one of the keys had a value which was not an array, i...
void TestJlCompress::compressDir() { QFETCH(QString, zipName); QFETCH(QStringList, fileNames); QFETCH(QStringList, expected); QDir curDir; if (curDir.exists(zipName)) { if (!curDir.remove(zipName)) QFAIL("Can't remove zip file"); } if (!createTestFiles(fileNames, -1, "com...
0
[ "CWE-22" ]
quazip
5d2fc16a1976e5bf78d2927b012f67a2ae047a98
230,366,120,146,369,830,000,000,000,000,000,000,000
31
Fixed the Zip Slip vulnerability in JlCompress When extracting a file with a dangerous path like "../evil.exe" from a ZIP archive with JlCompress::extractDir(), the target file would be created outside of the target directory, potentially even overwriting an existing file there.
void br_multicast_stop(struct net_bridge *br) { struct net_bridge_mdb_htable *mdb; struct net_bridge_mdb_entry *mp; struct hlist_node *n; u32 ver; int i; del_timer_sync(&br->multicast_router_timer); del_timer_sync(&br->multicast_querier_timer); del_timer_sync(&br->multicast_query_timer); spin_lock_bh(&br->mu...
1
[]
linux
9f00b2e7cf241fa389733d41b615efdaa2cb0f5b
174,074,302,041,113,100,000,000,000,000,000,000,000
41
bridge: only expire the mdb entry when query is received Currently we arm the expire timer when the mdb entry is added, however, this causes problem when there is no querier sent out after that. So we should only arm the timer when a corresponding query is received, as suggested by Herbert. And he also mentioned "if...
static int mailimf_month_name_parse(const char * message, size_t length, size_t * indx, int * result) { size_t cur_token; int month; int guessed_month; int r; cur_token = * indx; guessed_month = guess_month(message, length, cur_token); if (guessed_month == -1) return MAILIMF_ERROR_PARSE; ...
0
[ "CWE-476" ]
libetpan
1fe8fbc032ccda1db9af66d93016b49c16c1f22d
309,045,189,946,303,100,000,000,000,000,000,000,000
27
Fixed crash #274
extern "C" int handler_rowid_filter_is_active(void *h_arg) { if (!h_arg) return false; handler *h= (handler*) h_arg; return h->rowid_filter_is_active; }
0
[ "CWE-416" ]
server
af810407f78b7f792a9bb8c47c8c532eb3b3a758
173,601,935,121,478,770,000,000,000,000,000,000,000
7
MDEV-28098 incorrect key in "dup value" error after long unique reset errkey after using it, so that it wouldn't affect the next error message in the next statement
static int partition_register(struct ldb_context *ldb, struct dsdb_control_current_partition *ctrl) { struct ldb_request *req; int ret; req = talloc_zero(NULL, struct ldb_request); if (req == NULL) { return ldb_oom(ldb); } req->operation = LDB_REQ_REGISTER_PARTITION; req->op.reg_partition.dn = ctrl->dn; ...
0
[ "CWE-200" ]
samba
0a3aa5f908e351201dc9c4d4807b09ed9eedff77
159,161,309,260,573,500,000,000,000,000,000,000,000
35
CVE-2022-32746 ldb: Make use of functions for appending to an ldb_message This aims to minimise usage of the error-prone pattern of searching for a just-added message element in order to make modifications to it (and potentially finding the wrong element). BUG: https://bugzilla.samba.org/show_bug.cgi?id=15009 Signed...
void qeth_core_get_ethtool_stats(struct net_device *dev, struct ethtool_stats *stats, u64 *data) { struct qeth_card *card = dev->ml_priv; data[0] = card->stats.rx_packets - card->perf_stats.initial_rx_packets; data[1] = card->perf_stats.bufs_rec; data[2] = card->stats.tx_packets - card->perf_stats.initial...
0
[ "CWE-200", "CWE-119" ]
linux
6fb392b1a63ae36c31f62bc3fc8630b49d602b62
117,590,950,099,776,800,000,000,000,000,000,000,000
48
qeth: avoid buffer overflow in snmp ioctl Check user-defined length in snmp ioctl request and allow request only if it fits into a qeth command buffer. Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com> Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com> Reviewed-by: Heiko Carstens <heicars2@linux.vnet.ibm.c...
static inline Quantum GetPixelRed(const Image *restrict image, const Quantum *restrict pixel) { return(pixel[image->channel_map[RedPixelChannel].offset]); }
0
[ "CWE-119", "CWE-787" ]
ImageMagick
450bd716ed3b9186dd10f9e60f630a3d9eeea2a4
200,719,121,977,406,170,000,000,000,000,000,000,000
5
void fuse_read_fill(struct fuse_req *req, struct file *file, loff_t pos, size_t count, int opcode) { struct fuse_read_in *inarg = &req->misc.read.in; struct fuse_file *ff = file->private_data; inarg->fh = ff->fh; inarg->offset = pos; inarg->size = count; inarg->flags = file->f_flags; req->in.h.opcode = op...
0
[]
linux-2.6
0bd87182d3ab18a32a8e9175d3f68754c58e3432
295,602,205,391,333,480,000,000,000,000,000,000,000
19
fuse: fix kunmap in fuse_ioctl_copy_user Looks like another victim of the confusing kmap() vs kmap_atomic() API differences. Reported-by: Todor Gyumyushev <yodor1@gmail.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com> Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Cc: Tejun Heo <tj@kernel.org> Cc: stable@kern...
set_context_in_map_cmd( expand_T *xp, char_u *cmd, char_u *arg, int forceit, /* TRUE if '!' given */ int isabbrev, /* TRUE if abbreviation */ int isunmap, /* TRUE if unmap/unabbrev command */ cmdidx_T cmdidx) { if (forceit && cmdidx != CMD_map && cmdidx != CMD_unmap) xp->xp_context =...
0
[ "CWE-78" ]
vim
53575521406739cf20bbe4e384d88e7dca11f040
244,561,115,850,446,000,000,000,000,000,000,000,000
75
patch 8.1.1365: source command doesn't check for the sandbox Problem: Source command doesn't check for the sandbox. (Armin Razmjou) Solution: Check for the sandbox when sourcing a file.
rdpdr_init() { rdpdr_channel = channel_register("rdpdr", CHANNEL_OPTION_INITIALIZED | CHANNEL_OPTION_COMPRESS_RDP, rdpdr_process); return (rdpdr_channel != NULL); }
0
[ "CWE-787" ]
rdesktop
766ebcf6f23ccfe8323ac10242ae6e127d4505d2
241,139,774,245,298,040,000,000,000,000,000,000,000
9
Malicious RDP server security fixes This commit includes fixes for a set of 21 vulnerabilities in rdesktop when a malicious RDP server is used. All vulnerabilities was identified and reported by Eyal Itkin. * Add rdp_protocol_error function that is used in several fixes * Refactor of process_bitmap_updates * Fix pos...
static inline void cpu_register_vulnerabilities(void) { }
0
[ "CWE-787" ]
linux
aa838896d87af561a33ecefea1caa4c15a68bc47
82,390,612,892,439,160,000,000,000,000,000,000,000
1
drivers core: Use sysfs_emit and sysfs_emit_at for show(device *...) functions Convert the various sprintf fmaily calls in sysfs device show functions to sysfs_emit and sysfs_emit_at for PAGE_SIZE buffer safety. Done with: $ spatch -sp-file sysfs_emit_dev.cocci --in-place --max-width=80 . And cocci script: $ cat s...
**/ const char *title() const { return _title?_title:"";
0
[ "CWE-125" ]
CImg
10af1e8c1ad2a58a0a3342a856bae63e8f257abb
336,061,441,728,192,980,000,000,000,000,000,000,000
3
Fix other issues in 'CImg<T>::load_bmp()'.
void OK() const { chk(ok()); } // throw MsgAssertionException if element DNE
0
[ "CWE-613" ]
mongo
64d8e9e1b12d16b54d6a592bae8110226c491b4e
267,801,617,580,859,900,000,000,000,000,000,000,000
3
SERVER-38984 Validate unique User ID on UserCache hit (cherry picked from commit e55d6e2292e5dbe2f97153251d8193d1cc89f5d7)
int test_mod_mul(BIO *bp, BN_CTX *ctx) { BIGNUM *a, *b, *c, *d, *e; int i, j; a = BN_new(); b = BN_new(); c = BN_new(); d = BN_new(); e = BN_new(); BN_one(a); BN_one(b); BN_zero(c); if (BN_mod_mul(e, a, b, c, ctx)) { fprintf(stderr, "BN_mod_mul with zero modulus suc...
0
[ "CWE-200" ]
openssl
d73cc256c8e256c32ed959456101b73ba9842f72
282,745,543,270,585,760,000,000,000,000,000,000,000
72
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 jpc_ppt_dumpparms(jpc_ms_t *ms, FILE *out) { jpc_ppt_t *ppt = &ms->parms.ppt; fprintf(out, "ind=%d; len = %"PRIuFAST32";\n", ppt->ind, ppt->len); if (ppt->len > 0) { fprintf(out, "data =\n"); jas_memdump(out, ppt->data, ppt->len); } return 0; }
0
[ "CWE-20", "CWE-399" ]
jasper
ba2b9d000660313af7b692542afbd374c5685865
273,230,105,073,625,840,000,000,000,000,000,000,000
10
Ensure that not all tiles lie outside the image area.
static int createFromTiffLines(TIFF *tif, gdImagePtr im, uint16 bps, uint16 photometric, char has_alpha, char is_bw, int extra) { uint16 planar; uint32 im_height, im_width, y; unsigned char *buffer; if (!TIFFGetField(tif, TIFFTAG_PLANARCONFIG, &planar)) { planar = PLANARCONFIG_CO...
0
[ "CWE-125" ]
libgd
4859d69e07504d4b0a4bdf9bcb4d9e3769ca35ae
75,471,589,490,265,610,000,000,000,000,000,000,000
67
Fix invalid read in gdImageCreateFromTiffPtr() tiff_invalid_read.tiff is corrupt, and causes an invalid read in gdImageCreateFromTiffPtr(), but not in gdImageCreateFromTiff(). The culprit is dynamicGetbuf(), which doesn't check for out-of-bound reads. In this case, dynamicGetbuf() is called with a negative dp->pos, bu...
void Compute(OpKernelContext* const context) override { core::RefCountPtr<BoostedTreesEnsembleResource> resource; // Get the resource. OP_REQUIRES_OK(context, LookupResource(context, HandleFromInput(context, 0), &resource)); // Get the inputs. OpInputLis...
0
[ "CWE-703", "CWE-197" ]
tensorflow
ca8c013b5e97b1373b3bb1c97ea655e69f31a575
312,526,837,460,171,630,000,000,000,000,000,000,000
123
Prevent integer truncation from 64 to 32 bits. The `tensorflow::Shard` functions last argument must be a 2 argument function where both arguments are `int64` (`long long`, 64 bits). However, there are usages where code passes in a function where arguments are `int` or `int32` (32 bits). In these cases, it is possible ...
static int fastrpc_init(void) { int ret; ret = platform_driver_register(&fastrpc_cb_driver); if (ret < 0) { pr_err("fastrpc: failed to register cb driver\n"); return ret; } ret = register_rpmsg_driver(&fastrpc_driver); if (ret < 0) { pr_err("fastrpc: failed to register rpmsg driver\n"); platform_driver_...
0
[ "CWE-400", "CWE-401" ]
linux
fc739a058d99c9297ef6bfd923b809d85855b9a9
306,153,134,510,467,500,000,000,000,000,000,000,000
19
misc: fastrpc: prevent memory leak in fastrpc_dma_buf_attach In fastrpc_dma_buf_attach if dma_get_sgtable fails the allocated memory for a should be released. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Link: https://lore.kernel.org/r/20190925152742.16258-1-navid.emamdoost@gmail.com Signed-off-by: Greg...
int X509_ocspid_print (BIO *bp, X509 *x) { unsigned char *der=NULL ; unsigned char *dertmp; int derlen; int i; unsigned char SHA1md[SHA_DIGEST_LENGTH]; /* display the hash of the subject as it would appear in OCSP requests */ if (BIO_printf(bp," Subject OCSP hash: ") <= 0) goto err; derlen = i2d_...
0
[]
openssl
c7235be6e36c4bef84594aa3b2f0561db84b63d8
51,680,324,403,154,370,000,000,000,000,000,000,000
44
RFC 3161 compliant time stamp request creation, response generation and response verification. Submitted by: Zoltan Glozik <zglozik@opentsa.org> Reviewed by: Ulf Moeller
void i40e_vsi_remove_pvid(struct i40e_vsi *vsi) { vsi->info.pvid = 0; i40e_vlan_stripping_disable(vsi); }
0
[ "CWE-400", "CWE-401" ]
linux
27d461333459d282ffa4a2bdb6b215a59d493a8f
157,669,412,973,899,830,000,000,000,000,000,000,000
6
i40e: prevent memory leak in i40e_setup_macvlans In i40e_setup_macvlans if i40e_setup_channel fails the allocated memory for ch should be released. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
rfbClientConnectionGone(rfbClientPtr cl) { #if defined(LIBVNCSERVER_HAVE_LIBZ) && defined(LIBVNCSERVER_HAVE_LIBJPEG) int i; #endif LOCK(rfbClientListMutex); if (cl->prev) cl->prev->next = cl->next; else cl->screen->clientHead = cl->next; if (cl->next) cl->next->prev = cl->p...
0
[ "CWE-200", "CWE-787" ]
libvncserver
09e8fc02f59f16e2583b34fe1a270c238bd9ffec
110,252,744,626,383,710,000,000,000,000,000,000,000
99
Limit lenght to INT_MAX bytes in rfbProcessFileTransferReadBuffer() This ammends 15bb719c03cc70f14c36a843dcb16ed69b405707 fix for a heap out-of-bound write access in rfbProcessFileTransferReadBuffer() when reading a transfered file content in a server. The former fix did not work on platforms with a 32-bit int type (e...
napi_status napi_get_all_property_names(napi_env env, napi_value object, napi_key_collection_mode key_mode, napi_key_filter key_filter, napi_key_conversion key_...
0
[ "CWE-191" ]
node
656260b4b65fec3b10f6da3fdc9f11fb941aafb5
145,528,373,759,246,980,000,000,000,000,000,000,000
78
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 int io_sendmsg(struct io_kiocb *req, unsigned int issue_flags) { struct io_async_msghdr iomsg, *kmsg; struct socket *sock; unsigned flags; int ret; sock = sock_from_file(req->file); if (unlikely(!sock)) return -ENOTSOCK; kmsg = req->async_data; if (!kmsg) { ret = io_sendmsg_copy_hdr(req, &iomsg); ...
0
[ "CWE-667" ]
linux
3ebba796fa251d042be42b929a2d916ee5c34a49
27,035,644,345,383,680,000,000,000,000,000,000,000
40
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...
static ssize_t ucma_reject(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) { struct rdma_ucm_reject cmd; struct ucma_context *ctx; int ret; if (copy_from_user(&cmd, inbuf, sizeof(cmd))) return -EFAULT; if (!cmd.reason) cmd.reason = IB_CM_REJ_CONSUMER_DEFINED; switch (cmd.re...
0
[ "CWE-416" ]
linux
f5449e74802c1112dea984aec8af7a33c4516af1
29,385,570,098,836,204,000,000,000,000,000,000,000
32
RDMA/ucma: Rework ucma_migrate_id() to avoid races with destroy ucma_destroy_id() assumes that all things accessing the ctx will do so via the xarray. This assumption violated only in the case the FD is being closed, then the ctx is reached via the ctx_list. Normally this is OK since ucma_destroy_id() cannot run concu...
ModuleExport size_t RegisterSFWImage(void) { MagickInfo *entry; entry=AcquireMagickInfo("SFW","SFW","Seattle Film Works"); entry->decoder=(DecodeImageHandler *) ReadSFWImage; entry->magick=(IsImageFormatHandler *) IsSFW; entry->flags^=CoderAdjoinFlag; (void) RegisterMagickInfo(entry); return(MagickIm...
1
[ "CWE-119" ]
ImageMagick
d4145e664aea3752ca6d3bf1ee825352b595dab5
250,532,926,658,788,360,000,000,000,000,000,000,000
12
https://github.com/ImageMagick/ImageMagick/issues/682
int __fatal_signal_pending(struct task_struct *tsk) { return sigismember(&tsk->pending.signal, SIGKILL); }
0
[]
linux-2.6
0083fc2c50e6c5127c2802ad323adf8143ab7856
245,424,322,872,008,460,000,000,000,000,000,000,000
4
do_sigaltstack: avoid copying 'stack_t' as a structure to user space Ulrich Drepper correctly points out that there is generally padding in the structure on 64-bit hosts, and that copying the structure from kernel to user space can leak information from the kernel stack in those padding bytes. Avoid the whole issue b...
GF_Err m4ds_box_dump(GF_Box *a, FILE * trace) { u32 i; GF_Descriptor *desc; GF_MPEG4ExtensionDescriptorsBox *p = (GF_MPEG4ExtensionDescriptorsBox *) a; gf_isom_box_dump_start(a, "MPEG4ExtensionDescriptorsBox", trace); gf_fprintf(trace, ">\n"); i=0; while ((desc = (GF_Descriptor *)gf_list_enum(p->descriptors, &i...
0
[ "CWE-787" ]
gpac
ea1eca00fd92fa17f0e25ac25652622924a9a6a0
204,403,971,204,260,080,000,000,000,000,000,000,000
19
fixed #2138
static void bpf_get_prog_name(const struct bpf_prog *prog, char *sym) { const char *end = sym + KSYM_NAME_LEN; BUILD_BUG_ON(sizeof("bpf_prog_") + sizeof(prog->tag) * 2 + /* name has been null terminated. * We should need +1 for the '_' preceding * the name. However, the null character ...
0
[ "CWE-120" ]
linux
050fad7c4534c13c8eb1d9c2ba66012e014773cb
293,561,503,140,574,650,000,000,000,000,000,000,000
22
bpf: fix truncated jump targets on heavy expansions Recently during testing, I ran into the following panic: [ 207.892422] Internal error: Accessing user space memory outside uaccess.h routines: 96000004 [#1] SMP [ 207.901637] Modules linked in: binfmt_misc [...] [ 207.966530] CPU: 45 PID: 2256 Comm: test_ve...
add_production(struct xkb_compose_table *table, struct scanner *s, const struct production *production) { unsigned lhs_pos; uint32_t curr; struct compose_node *node; curr = 0; node = &darray_item(table->nodes, curr); /* * Insert the sequence to the trie, creating new nodes ...
0
[ "CWE-835" ]
libxkbcommon
842e4351c2c97de6051cab6ce36b4a81e709a0e1
306,940,874,413,447,720,000,000,000,000,000,000,000
92
compose: fix infinite loop in parser on some inputs The parser would enter an infinite loop if an unterminated keysym literal occurs at EOF. Found with the afl fuzzer. Signed-off-by: Ran Benita <ran234@gmail.com>
zfs_ace_v0_abstract_size(void) { return (sizeof (zfs_oldace_t)); }
0
[ "CWE-200", "CWE-732" ]
zfs
716b53d0a14c72bda16c0872565dd1909757e73f
331,280,553,536,111,300,000,000,000,000,000,000,000
4
FreeBSD: Fix UNIX permissions checking Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Matt Macy <mmacy@FreeBSD.org> Closes #10727
static int final_server_name(SSL *s, unsigned int context, int sent) { int ret = SSL_TLSEXT_ERR_NOACK; int altmp = SSL_AD_UNRECOGNIZED_NAME; int was_ticket = (SSL_get_options(s) & SSL_OP_NO_TICKET) == 0; if (!ossl_assert(s->ctx != NULL) || !ossl_assert(s->session_ctx != NULL)) { SSLfatal(s, SSL...
0
[ "CWE-476" ]
openssl
fb9fa6b51defd48157eeb207f52181f735d96148
89,340,936,079,025,860,000,000,000,000,000,000,000
101
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...
vc4_wait_for_seqno(struct drm_device *dev, uint64_t seqno, uint64_t timeout_ns, bool interruptible) { struct vc4_dev *vc4 = to_vc4_dev(dev); int ret = 0; unsigned long timeout_expire; DEFINE_WAIT(wait); if (vc4->finished_seqno >= seqno) return 0; if (timeout_ns == 0) return -ETIME; timeout_expire = j...
0
[ "CWE-190", "CWE-703" ]
linux
0f2ff82e11c86c05d051cae32b58226392d33bbf
114,640,646,741,295,060,000,000,000,000,000,000,000
46
drm/vc4: Fix an integer overflow in temporary allocation layout. We copy the unvalidated ioctl arguments from the user into kernel temporary memory to run the validation from, to avoid a race where the user updates the unvalidate contents in between validating them and copying them into the validated BO. However, in ...
*/ void kvm_vcpu_halt(struct kvm_vcpu *vcpu) { bool halt_poll_allowed = !kvm_arch_no_poll(vcpu); bool do_halt_poll = halt_poll_allowed && vcpu->halt_poll_ns; ktime_t start, cur, poll_end; bool waited = false; u64 halt_ns; start = cur = poll_end = ktime_get(); if (do_halt_poll) { ktime_t stop = ktime_add_ns(s...
0
[ "CWE-459" ]
linux
683412ccf61294d727ead4a73d97397396e69a6b
221,884,381,136,261,730,000,000,000,000,000,000,000
66
KVM: SEV: add cache flush to solve SEV cache incoherency issues Flush the CPU caches when memory is reclaimed from an SEV guest (where reclaim also includes it being unmapped from KVM's memslots). Due to lack of coherency for SEV encrypted memory, failure to flush results in silent data corruption if userspace is mal...
static BOOL update_send_scrblt(rdpContext* context, const SCRBLT_ORDER* scrblt) { wStream* s; UINT32 offset; UINT32 headerLength; ORDER_INFO orderInfo; int inf; rdpUpdate* update = context->update; headerLength = update_prepare_order_info(context, &orderInfo, ORDER_TYPE_SCRBLT); inf = update_approximate_scrblt_...
0
[ "CWE-125" ]
FreeRDP
f8890a645c221823ac133dbf991f8a65ae50d637
190,503,495,509,643,400,000,000,000,000,000,000,000
27
Fixed #6005: Bounds checks in update_read_bitmap_data
ipmi_print_channel_cipher_suites(struct ipmi_intf *intf, const char *payload_type, uint8_t channel) { int rc; size_t i = 0; struct cipher_suite_info suites[MAX_CIPHER_SUITE_COUNT]; size_t nr_suites = sizeof(*suites); const char *header_str = "ID I...
0
[ "CWE-120" ]
ipmitool
9452be87181a6e83cfcc768b3ed8321763db50e4
72,750,590,699,135,430,000,000,000,000,000,000,000
32
channel: Fix buffer overflow Partial fix for CVE-2020-5208, see https://github.com/ipmitool/ipmitool/security/advisories/GHSA-g659-9qxw-p7cp The `ipmi_get_channel_cipher_suites` function does not properly check the final response’s `data_len`, which can lead to stack buffer overflow on the final copy.
mlx5_tx_descriptor_status(void *tx_queue, uint16_t offset) { struct mlx5_txq_data *restrict txq = tx_queue; uint16_t used; mlx5_tx_handle_completion(txq, 0); used = txq->elts_head - txq->elts_tail; if (offset < used) return RTE_ETH_TX_DESC_FULL; return RTE_ETH_TX_DESC_DONE; }
0
[]
dpdk-stable
8b090f2664e9d014cd8fa0fde90597aaf4349e7e
302,031,910,738,524,600,000,000,000,000,000,000,000
11
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...
void LibuvStreamWrap::AfterUvShutdown(uv_shutdown_t* req, int status) { LibuvShutdownWrap* req_wrap = static_cast<LibuvShutdownWrap*>( LibuvShutdownWrap::from_req(req)); CHECK_NOT_NULL(req_wrap); HandleScope scope(req_wrap->env()->isolate()); Context::Scope context_scope(req_wrap->env()->context()); req...
0
[ "CWE-416" ]
node
7f178663ebffc82c9f8a5a1b6bf2da0c263a30ed
321,535,601,172,868,850,000,000,000,000,000,000,000
8
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 <...
PHP_MINFO_FUNCTION(exif) { php_info_print_table_start(); php_info_print_table_row(2, "EXIF Support", "enabled"); php_info_print_table_row(2, "EXIF Version", PHP_EXIF_VERSION); php_info_print_table_row(2, "Supported EXIF Version", "0220"); php_info_print_table_row(2, "Supported filetypes", "JPEG, TIFF"); if (zend...
0
[ "CWE-416" ]
php-src
3fdde65617e9f954e2c964768aac8831005497e5
222,301,717,933,014,400,000,000,000,000,000,000,000
19
Fix #76409: heap use after free in _php_stream_free We must not close the stream in exif_read_from_impl(), since it is the responsibility of the (caller's) caller to do so, if it actually opened the stream. We simplify the reproduce script, which is actually about supplying a path to a directory (opposed to a regular...
gx_image_scale_mask_colors(gx_image_enum *penum, int component_index) { uint scale = 255 / ((1 << penum->bps) - 1); uint *values = &penum->mask_color.values[component_index * 2]; uint v0 = values[0] *= scale; uint v1 = values[1] *= scale; if (penum->map[component_index].decoding == sd_none && ...
0
[ "CWE-119" ]
ghostpdl
362ec9daadb9992b0def3520cd1dc6fa52edd1c4
200,563,527,496,678,500,000,000,000,000,000,000,000
14
Fix bug 697459 Buffer overflow in fill_threshold_buffer There was an overflow check for ht_buffer size, but none for the larger threshold_buffer. Note that this file didn't fail on Windows because the combination of the ht_buffer and the size of the (miscalculated due to overflow) threshold_buffer would have exceeded ...
m4_errprint (struct obstack *obs, int argc, token_data **argv) { if (bad_argc (argv[0], argc, 2, -1)) return; dump_args (obs, argc, argv, " ", false); obstack_1grow (obs, '\0'); debug_flush_files (); xfprintf (stderr, "%s", (char *) obstack_finish (obs)); fflush (stderr); }
0
[]
m4
5345bb49077bfda9fabd048e563f9e7077fe335d
172,730,516,335,655,330,000,000,000,000,000,000,000
10
Minor security fix: Quote output of mkstemp. * src/builtin.c (mkstemp_helper): Produce quoted output. * doc/m4.texinfo (Mkstemp): Update the documentation and tests. * NEWS: Document this change. Signed-off-by: Eric Blake <ebb9@byu.net> (cherry picked from commit bd9900d65eb9cd5add0f107e94b513fa267495ba)
TensorShape GetOutputShape(const TensorShape& input_shape, const TensorShape& segment_id_shape, const int64 num_segments) { TensorShape output_shape; output_shape.AddDim(num_segments); for (size_t index = segment_id_shape.dims(); index < input_shape.dims(); ...
0
[ "CWE-617", "CWE-703" ]
tensorflow
704866eabe03a9aeda044ec91a8d0c83fc1ebdbe
285,413,457,875,595,200,000,000,000,000,000,000,000
11
Fix overflow CHECK issue with `tf.raw_ops.UnsortedSegmentJoin`. PiperOrigin-RevId: 370766155 Change-Id: I33e7c6626224e1060a8a4ab51ad5d861c6d4c63e
static void perf_event_addr_filters_exec(struct perf_event *event, void *data) { struct perf_addr_filters_head *ifh = perf_event_addr_filters(event); struct perf_addr_filter *filter; unsigned int restart = 0, count = 0; unsigned long flags; if (!has_addr_filter(event)) return; raw_spin_lock_irqsave(&ifh->lock...
0
[ "CWE-362", "CWE-125" ]
linux
321027c1fe77f892f4ea07846aeae08cefbbb290
189,944,205,184,201,360,000,000,000,000,000,000,000
27
perf/core: Fix concurrent sys_perf_event_open() vs. 'move_group' race Di Shen reported a race between two concurrent sys_perf_event_open() calls where both try and move the same pre-existing software group into a hardware context. The problem is exactly that described in commit: f63a8daa5812 ("perf: Fix event->ctx...
Chapters::~Chapters() { while (m_editions_count > 0) { Edition& e = m_editions[--m_editions_count]; e.Clear(); } delete[] m_editions; }
0
[ "CWE-20" ]
libvpx
34d54b04e98dd0bac32e9aab0fbda0bf501bc742
168,519,261,820,355,170,000,000,000,000,000,000,000
7
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