func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
static int huf_unpack_enc_table(GetByteContext *gb, int32_t im, int32_t iM, uint64_t *hcode) { GetBitContext gbit; int ret = init_get_bits8(&gbit, gb->buffer, bytestream2_get_bytes_left(gb)); if (ret < 0) return ret; for (; im <= iM; im++) { uint64_t l = ...
0
[ "CWE-787" ]
FFmpeg
b0a8b40294ea212c1938348ff112ef1b9bf16bb3
152,711,793,731,501,170,000,000,000,000,000,000,000
39
avcodec/exr: skip bottom clearing loop when its outside the image Fixes: signed integer overflow: 1633771809 * 32960 cannot be represented in type 'int' Fixes: 26532/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_EXR_fuzzer-5613925708857344 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tr...
static BOOL update_send_cache_bitmap_v2(rdpContext* context, CACHE_BITMAP_V2_ORDER* cache_bitmap_v2) { wStream* s; size_t bm, em; BYTE orderType; int headerLength; UINT16 extraFlags; INT16 orderLength; rdpUpdate* update = context->update; extraFlags = 0; headerLength = 6; orderType = cache_bitmap_v2->compress...
0
[ "CWE-125" ]
FreeRDP
f8890a645c221823ac133dbf991f8a65ae50d637
328,215,503,371,111,300,000,000,000,000,000,000,000
47
Fixed #6005: Bounds checks in update_read_bitmap_data
void color_cmyk_to_rgb(opj_image_t *image) { float C, M, Y, K; float sC, sM, sY, sK; unsigned int w, h, max, i; w = image->comps[0].w; h = image->comps[0].h; if ( (image->numcomps < 4) || (image->comps[0].dx != image->comps[1].dx) || (image->comps[0].dx != image->comps[2].dx) || (image->comps[0].dx != ima...
0
[ "CWE-119", "CWE-284" ]
openjpeg
162f6199c0cd3ec1c6c6dc65e41b2faab92b2d91
254,754,733,971,663,800,000,000,000,000,000,000,000
57
Fix Heap Buffer Overflow in function color_cmyk_to_rgb Fix uclouvain/openjpeg#774
static bool _db_chain_lt(const struct db_arg_chain_tree *a, const struct db_arg_chain_tree *b) { return ((a->arg < b->arg) || ((a->arg == b->arg) && ((a->op < b->op) || ((a->op == b->op) && ((a->mask < b->mask) || ((a->mask == b->mask) && (a->datum < b->datum))))))); }
1
[]
libseccomp
c5bf78de480b32b324e0f511c88ce533ed280b37
233,839,770,499,045,170,000,000,000,000,000,000,000
11
db: fix 64-bit argument comparisons Our approach to doing 64-bit comparisons using 32-bit operators was just plain wrong, leading to a number of potential problems with filters that used the LT, GT, LE, or GE operators. This patch fixes this problem and a few other related issues that came to light in the course of f...
ecryptfs_decode_from_filename(unsigned char *dst, size_t *dst_size, const unsigned char *src, size_t src_size) { u8 current_bit_offset = 0; size_t src_byte_offset = 0; size_t dst_byte_offset = 0; if (dst == NULL) { (*dst_size) = ecryptfs_max_decoded_size(src_size); goto out; } while (src_byte_offset...
1
[ "CWE-703", "CWE-189" ]
linux
942080643bce061c3dd9d5718d3b745dcb39a8bc
115,936,620,141,390,200,000,000,000,000,000,000,000
43
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...
static void bt_for_each(struct blk_mq_hw_ctx *hctx, struct blk_mq_bitmap_tags *bt, unsigned int off, busy_iter_fn *fn, void *data, bool reserved) { struct request *rq; int bit, i; for (i = 0; i < bt->map_nr; i++) { struct blk_align_bitmap *bm = &bt->map[i]; for (bit = find_first_bit(&bm->word, bm->depth); ...
0
[ "CWE-362", "CWE-264" ]
linux
0048b4837affd153897ed1222283492070027aa9
130,877,368,389,356,160,000,000,000,000,000,000,000
21
blk-mq: fix race between timeout and freeing request Inside timeout handler, blk_mq_tag_to_rq() is called to retrieve the request from one tag. This way is obviously wrong because the request can be freed any time and some fiedds of the request can't be trusted, then kernel oops might be triggered[1]. Currently wrt. ...
bool ha_partition::is_crashed() const { handler **file= m_file; DBUG_ENTER("ha_partition::is_crashed"); do { if ((*file)->is_crashed()) DBUG_RETURN(TRUE); } while (*(++file)); DBUG_RETURN(FALSE); }
0
[]
mysql-server
be901b60ae59c93848c829d1b0b2cb523ab8692e
193,383,713,234,726,500,000,000,000,000,000,000,000
12
Bug#26390632: CREATE TABLE CAN CAUSE MYSQL TO EXIT. Analysis ======== CREATE TABLE of InnoDB table with a partition name which exceeds the path limit can cause the server to exit. During the preparation of the partition name, there was no check to identify whether the complete path name for partition exceeds the max ...
static void settings_changed(struct btd_adapter *adapter, uint32_t settings) { uint32_t changed_mask; changed_mask = adapter->current_settings ^ settings; adapter->current_settings = settings; adapter->pending_settings &= ~changed_mask; DBG("Changed settings: 0x%08x", changed_mask); DBG("Pending settings: 0x%0...
0
[ "CWE-862", "CWE-863" ]
bluez
b497b5942a8beb8f89ca1c359c54ad67ec843055
93,360,345,336,884,410,000,000,000,000,000,000,000
53
adapter: Fix storing discoverable setting discoverable setting shall only be store when changed via Discoverable property and not when discovery client set it as that be considered temporary just for the lifetime of the discovery.
TfLiteRegistration* Register_CAST() { static TfLiteRegistration r = {nullptr, nullptr, cast::Prepare, cast::Eval}; return &r; }
0
[ "CWE-125", "CWE-787" ]
tensorflow
1970c2158b1ffa416d159d03c3370b9a462aee35
137,122,673,654,795,100,000,000,000,000,000,000,000
4
[tflite]: Insert `nullptr` checks when obtaining tensors. As part of ongoing refactoring, `tflite::GetInput`, `tflite::GetOutput`, `tflite::GetTemporary` and `tflite::GetIntermediates` will return `nullptr` in some cases. Hence, we insert the `nullptr` checks on all usages. We also insert `nullptr` checks on usages o...
TPMS_CONTEXT_Unmarshal(TPMS_CONTEXT *target, BYTE **buffer, INT32 *size) { TPM_RC rc = TPM_RC_SUCCESS; INT32 orig_size = *size; // libtpms added if (rc == TPM_RC_SUCCESS) { rc = UINT64_Unmarshal(&target->sequence, buffer, size); } if (rc == TPM_RC_SUCCESS) { rc = TPMI_DH_SAVED_Unmarshal(&targ...
0
[ "CWE-787" ]
libtpms
5cc98a62dc6f204dcf5b87c2ee83ac742a6a319b
260,763,262,550,688,350,000,000,000,000,000,000,000
48
tpm2: Restore original value if unmarshalled value was illegal Restore the original value of the memory location where data from a stream was unmarshalled and the unmarshalled value was found to be illegal. The goal is to not keep illegal values in memory. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
xfs_attrmulti_attr_set( struct inode *inode, unsigned char *name, const unsigned char __user *ubuf, __uint32_t len, __uint32_t flags) { unsigned char *kbuf; int error = EFAULT; if (IS_IMMUTABLE(inode) || IS_APPEND(inode)) return EPERM; if (len > XATTR_SIZE_MAX) return EINVAL; kbuf = memdup_user(u...
0
[ "CWE-200" ]
linux-2.6
af24ee9ea8d532e16883251a6684dfa1be8eec29
182,738,207,519,520,340,000,000,000,000,000,000,000
23
xfs: zero proper structure size for geometry calls Commit 493f3358cb289ccf716c5a14fa5bb52ab75943e5 added this call to xfs_fs_geometry() in order to avoid passing kernel stack data back to user space: + memset(geo, 0, sizeof(*geo)); Unfortunately, one of the callers of that function passes the address of a smal...
void *bpf_map_area_alloc(u64 size, int numa_node) { return __bpf_map_area_alloc(size, numa_node, false); }
0
[ "CWE-307" ]
linux
350a5c4dd2452ea999cc5e1d4a8dbf12de2f97ef
28,337,867,239,682,155,000,000,000,000,000,000,000
4
bpf: Dont allow vmlinux BTF to be used in map_create and prog_load. The syzbot got FD of vmlinux BTF and passed it into map_create which caused crash in btf_type_id_size() when it tried to access resolved_ids. The vmlinux BTF doesn't have 'resolved_ids' and 'resolved_sizes' initialized to save memory. To avoid such is...
pdf_filter_s(fz_context *ctx, pdf_processor *proc) { pdf_filter_processor *p = (pdf_filter_processor*)proc; filter_flush(ctx, p, FLUSH_STROKE); if (p->chain->op_s) p->chain->op_s(ctx, p->chain); }
0
[ "CWE-125" ]
mupdf
97096297d409ec6f206298444ba00719607e8ba8
319,776,569,876,431,830,000,000,000,000,000,000,000
7
Bug 701292: Fix test for missing/empty string.
static void decode_smpte_tc(Mpeg4DecContext *ctx, GetBitContext *gb) { MpegEncContext *s = &ctx->m; skip_bits(gb, 16); /* Time_code[63..48] */ check_marker(s->avctx, gb, "after Time_code[63..48]"); skip_bits(gb, 16); /* Time_code[47..32] */ check_marker(s->avctx, gb, "after Time_code[47..32]"); ...
0
[ "CWE-476" ]
FFmpeg
2aa9047486dbff12d9e040f917e5f799ed2fd78b
306,479,054,761,871,950,000,000,000,000,000,000,000
14
avcodec/mpeg4videodec: Check read profile before setting it Fixes: null pointer dereference Fixes: ffmpeg_crash_7.avi Found-by: Thuan Pham, Marcel Böhme, Andrew Santosa and Alexandru Razvan Caciulescu with AFLSmart Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
xmlSchemaFormatItemForReport(xmlChar **buf, const xmlChar *itemDes, xmlSchemaBasicItemPtr item, xmlNodePtr itemNode) { xmlChar *str = NULL; int named = 1; if (*buf != NULL) { xmlFree(*buf); *buf = NULL; } if (itemDes != NULL) { *buf = xmlStrdup(itemDes); } else if (item...
0
[ "CWE-134" ]
libxml2
502f6a6d08b08c04b3ddfb1cd21b2f699c1b7f5b
142,013,704,493,321,680,000,000,000,000,000,000,000
204
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
find_finfo(proto_node *node, gpointer data) { field_info *fi = PNODE_FINFO(node); if (fi && fi->hfinfo) { if (fi->hfinfo->id == ((ffdata_t*)data)->id) { g_ptr_array_add(((ffdata_t*)data)->array, fi); } } /* Don't stop traversing. */ return FALSE; }
0
[ "CWE-401" ]
wireshark
a9fc769d7bb4b491efb61c699d57c9f35269d871
301,990,544,516,500,830,000,000,000,000,000,000,000
12
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 void pf_request(void) { if (pf_busy) return; repeat: if (!pf_req && !set_next_request()) return; pf_current = pf_req->rq_disk->private_data; pf_block = blk_rq_pos(pf_req); pf_run = blk_rq_sectors(pf_req); pf_count = blk_rq_cur_sectors(pf_req); if (pf_block + pf_count > get_capacity(pf_req->rq_disk))...
0
[ "CWE-476", "CWE-125" ]
linux
58ccd2d31e502c37e108b285bf3d343eb00c235b
170,194,403,958,797,850,000,000,000,000,000,000,000
33
paride/pf: Fix potential NULL pointer dereference Syzkaller report this: pf: pf version 1.04, major 47, cluster 64, nice 0 pf: No ATAPI disk detected kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] SMP KASAN PTI CPU: 0 PID: 9887...
static void parse_data_for_row_pseudocolor(TGAContext *ctx) { guchar *s = ctx->in->data; guint upper_bound = ctx->pbuf->width; guchar *p = ctx->pptr; for (; upper_bound; upper_bound--, s++) { *p++ = ctx->cmap->cols[*s].r; *p++ = ctx->cmap->cols[*s].g; *p++ = ctx->cmap->cols[*s].b; if (ctx->hdr->cmap_bpp ==...
1
[ "CWE-119" ]
gdk-pixbuf
edf6fb8d856574bc3bb3a703037f56533229267c
91,316,202,223,806,230,000,000,000,000,000,000,000
14
tga: Wrap TGAColormap struct in its own API Instead of poking into it directly.
bytesPerDeepLineTable (const Header &header, int minY, int maxY, const char* base, int xStride, int yStride, vector<size_t> &bytesPerLine) { const Box2i &dataWindow = header.dataWindow(); const Cha...
1
[ "CWE-190" ]
openexr
5db6f7aee79e3e75e8c3780b18b28699614dd08e
158,470,287,080,636,800,000,000,000,000,000,000,000
51
prevent overflow in bytesPerDeepLineTable (#1152) * prevent overflow in bytesPerDeepLineTable Signed-off-by: Peter Hillman <peterh@wetafx.co.nz> * restore zapped 'const' from ImfMisc Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
UnicodeStringTest::TestFindAndReplace() { UnicodeString test1("One potato, two potato, three potato, four\n"); UnicodeString test2("potato"); UnicodeString test3("MISSISSIPPI"); UnicodeString expectedValue; test1.findAndReplace(test2, test3); expectedValue = "One MISSISSIPPI, two MISSISSIPPI, ...
0
[ "CWE-190", "CWE-787" ]
icu
b7d08bc04a4296982fcef8b6b8a354a9e4e7afca
233,807,188,011,638,100,000,000,000,000,000,000,000
17
ICU-20958 Prevent SEGV_MAPERR in append See #971
flatpak_deploy_data_get_appdata_name (GBytes *deploy_data) { return flatpak_deploy_data_get_localed_string (deploy_data, "appdata-name"); }
0
[ "CWE-74" ]
flatpak
fb473cad801c6b61706353256cab32330557374a
42,201,794,420,260,160,000,000,000,000,000,000,000
4
dir: Pass environment via bwrap --setenv when running apply_extra This means we can systematically pass the environment variables through bwrap(1), even if it is setuid and thus is filtering out security-sensitive environment variables. bwrap ends up being run with an empty environment instead. As with the previous c...
static int am_handle_logout_request(request_rec *r, LassoLogout *logout, char *msg) { gint res = 0, rc = HTTP_OK; am_cache_entry_t *session = NULL; am_dir_cfg_rec *cfg = am_get_dir_cfg(r); /* Process the logout message. Ignore missing signature. */ res = lasso_l...
1
[]
mod_auth_mellon
6bdda9170a8f1757dabc5b109958657417728018
338,926,967,684,334,700,000,000,000,000,000,000,000
96
Fix segmentation fault when receiving badly formed logout message. If the logout message is badly formed, we won't get the entityID in `logout->parent.remote_providerID`. If we call `apr_hash_get()` with a null pointer, it will cause a segmentation fault. Add a check to validate that the entityID is correctly set.
_gnutls_server_name_recv_params (gnutls_session_t session, const opaque * data, size_t _data_size) { int i; const unsigned char *p; uint16_t len, type; ssize_t data_size = _data_size; int server_names = 0; if (session->security_parameters.entity == GNUTLS_SERVER) { DECR_LENGTH_RET (data_size...
0
[ "CWE-189" ]
gnutls
bc8102405fda11ea00ca3b42acc4f4bce9d6e97b
152,957,120,570,619,500,000,000,000,000,000,000,000
94
Fix GNUTLS-SA-2008-1 security vulnerabilities. See http://www.gnu.org/software/gnutls/security.html for updates.
CONF_VALUE *X509V3_conf_new() { CONF_VALUE *v = (CONF_VALUE *) OPENSSL_malloc(sizeof(CONF_VALUE)); if (!v) { v->section = v->name = v->value = NULL; } return v; }
0
[]
openssl
c7235be6e36c4bef84594aa3b2f0561db84b63d8
44,209,824,543,549,780,000,000,000,000,000,000,000
10
RFC 3161 compliant time stamp request creation, response generation and response verification. Submitted by: Zoltan Glozik <zglozik@opentsa.org> Reviewed by: Ulf Moeller
free_mem_region(struct virtio_net *dev) { uint32_t i; struct rte_vhost_mem_region *reg; struct vhost_virtqueue *vq; if (!dev || !dev->mem) return; if (dev->dequeue_zero_copy) { for (i = 0; i < dev->nr_vring; i++) { vq = dev->virtqueue[i]; if (vq) drain_zmbuf_list(vq); } } for (i = 0; i < dev->...
0
[]
dpdk
612e17cf6d7b2bf05a687d8a9ba7be582a744e50
6,696,483,518,359,305,000,000,000,000,000,000,000
25
vhost: fix possible denial of service on SET_VRING_NUM vhost_user_set_vring_num() performs multiple allocations without checking whether data were previously allocated. It may cause a denial of service because of the memory leaks that happen if a malicious vhost-user master keeps sending VHOST_USER_SET_VRING_NUM requ...
QPDFWriter::closeObject(int objid) { // Write a newline before endobj as it makes the file easier to // repair. writeString("\nendobj\n"); writeStringQDF("\n"); this->lengths[objid] = pipeline->getCount() - this->xref[objid].getOffset(); }
0
[ "CWE-399", "CWE-835" ]
qpdf
8249a26d69f72b9cda584c14cc3f12769985e481
19,222,625,818,047,285,000,000,000,000,000,000,000
8
Fix infinite loop in QPDFWriter (fixes #143)
mail_part_finalize (GObject *object) { EMailPart *part = E_MAIL_PART (object); EMailPartValidityPair *pair; g_free (part->priv->id); g_free (part->priv->cid); g_free (part->priv->mime_type); while ((pair = g_queue_pop_head (&part->validities)) != NULL) mail_part_validity_pair_free (pair); /* Chain up to par...
0
[ "CWE-347" ]
evolution
f66cd3e1db301d264563b4222a3574e2e58e2b85
64,350,814,534,825,020,000,000,000,000,000,000,000
15
eds-I#3 - [GPG] Mails that are not encrypted look encrypted Related to https://gitlab.gnome.org/GNOME/evolution-data-server/issues/3
static int usb_8dev_probe(struct usb_interface *intf, const struct usb_device_id *id) { struct net_device *netdev; struct usb_8dev_priv *priv; int i, err = -ENOMEM; u32 version; char buf[18]; struct usb_device *usbdev = interface_to_usbdev(intf); /* product id looks strange, better we also check iProduct st...
0
[ "CWE-415" ]
linux
3d3925ff6433f98992685a9679613a2cc97f3ce2
134,896,384,464,353,450,000,000,000,000,000,000,000
92
can: usb_8dev: usb_8dev_start_xmit(): fix double dev_kfree_skb() in error path There is no need to call dev_kfree_skb() when usb_submit_urb() fails because can_put_echo_skb() deletes original skb and can_free_echo_skb() deletes the cloned skb. Fixes: 0024d8ad1639 ("can: usb_8dev: Add support for USB2CAN interface fro...
void cil_destroy_blockinherit(struct cil_blockinherit *inherit) { if (inherit == NULL) { return; } if (inherit->block != NULL && inherit->block->bi_nodes != NULL) { struct cil_tree_node *node; struct cil_list_item *item; cil_list_for_each(item, inherit->block->bi_nodes) { node = item->data; if (node-...
0
[ "CWE-125" ]
selinux
340f0eb7f3673e8aacaf0a96cbfcd4d12a405521
10,767,474,130,931,636,000,000,000,000,000,000,000
21
libsepol/cil: Check for statements not allowed in optional blocks While there are some checks for invalid statements in an optional block when resolving the AST, there are no checks when building the AST. OSS-Fuzz found the following policy which caused a null dereference in cil_tree_get_next_path(). (blockinherit ...
lyd_create_anydata(struct lyd_node *parent, const struct lys_node *schema, void *value, LYD_ANYDATA_VALUETYPE value_type) { struct lyd_node *iter; struct lyd_node_anydata *ret; int len; ret = calloc(1, sizeof *ret); LY_CHECK_ERR_RETURN(!ret, LOGMEM(schema->module->ctx), NULL); ...
0
[ "CWE-119" ]
libyang
32fb4993bc8bb49e93e84016af3c10ea53964be5
244,097,621,510,774,000,000,000,000,000,000,000,000
72
schema tree BUGFIX do not check features while still resolving schema Fixes #723
static inline Quantum GetPixelIndex(const Image *restrict image, const Quantum *restrict pixel) { if (image->channel_map[IndexPixelChannel].traits == UndefinedPixelTrait) return((Quantum) 0); return(pixel[image->channel_map[IndexPixelChannel].offset]); }
0
[ "CWE-119", "CWE-787" ]
ImageMagick
450bd716ed3b9186dd10f9e60f630a3d9eeea2a4
21,898,012,185,220,160,000,000,000,000,000,000,000
7
static int parse_command_args(struct arglist *arglist, union node **argpp, const char **path) { struct strlist *sp = arglist->list; char *cp, c; for (;;) { sp = unlikely(sp->next) ? sp->next : fill_arglist(arglist, argpp); if (!sp) return 0; cp = sp->text; if (*cp++ != '-') break; if...
0
[]
dash
29d6f2148f10213de4e904d515e792d2cf8c968e
143,340,251,176,567,000,000,000,000,000,000,000,000
37
eval: Check nflag in evaltree instead of cmdloop This patch moves the nflag check from cmdloop into evaltree. This is so that nflag will be in force even if we enter the shell via a path other than cmdloop, e.g., through sh -c. Reported-by: Joey Hess <id@joeyh.name> Signed-off-by: Herbert Xu <herbert@gondor.apana.or...
__read_extent_tree_block(const char *function, unsigned int line, struct inode *inode, ext4_fsblk_t pblk, int depth, int flags) { struct buffer_head *bh; int err; bh = sb_getblk_gfp(inode->i_sb, pblk, __GFP_MOVABLE | GFP_NOFS); if (unlikely(!bh)) return ERR_PTR(-ENOMEM); if (!bh_uptodate_or_lock(bh...
0
[ "CWE-362" ]
linux
ea3d7209ca01da209cda6f0dea8be9cc4b7a933b
266,944,295,178,648,680,000,000,000,000,000,000,000
56
ext4: fix races between page faults and hole punching Currently, page faults and hole punching are completely unsynchronized. This can result in page fault faulting in a page into a range that we are punching after truncate_pagecache_range() has been called and thus we can end up with a page mapped to disk blocks that...
struct in6_addr *ndp_msg_opt_rdnss_addr(struct ndp_msg *msg, int offset, int addr_index) { static struct in6_addr addr; struct __nd_opt_rdnss *rdnss = ndp_msg_payload_opts_offset(msg, offset); size_t len = rdnss->nd_opt_rdnss_len << 3; /* convert to bytes */ len -= in_struct_offset(struct __nd_opt_rdnss, n...
0
[ "CWE-284" ]
libndp
a4892df306e0532487f1634ba6d4c6d4bb381c7f
108,477,034,227,071,610,000,000,000,000,000,000,000
15
libndp: validate the IPv6 hop limit None of the NDP messages should ever come from a non-local network; as stated in RFC4861's 6.1.1 (RS), 6.1.2 (RA), 7.1.1 (NS), 7.1.2 (NA), and 8.1. (redirect): - The IP Hop Limit field has a value of 255, i.e., the packet could not possibly have been forwarded by a router. T...
static inline void paravirt_alloc_p4d(struct mm_struct *mm, unsigned long pfn) { PVOP_VCALL2(mmu.alloc_p4d, mm, pfn); }
0
[ "CWE-276" ]
linux
cadfad870154e14f745ec845708bc17d166065f2
117,498,567,330,741,900,000,000,000,000,000,000,000
4
x86/ioperm: Fix io bitmap invalidation on Xen PV tss_invalidate_io_bitmap() wasn't wired up properly through the pvop machinery, so the TSS and Xen's io bitmap would get out of sync whenever disabling a valid io bitmap. Add a new pvop for tss_invalidate_io_bitmap() to fix it. This is XSA-329. Fixes: 22fe5b0439dd ("...
resolve_iffeature_getsizes(struct lys_iffeature *iffeat, unsigned int *expr_size, unsigned int *feat_size) { unsigned int e = 0, f = 0, r = 0; uint8_t op; assert(iffeat); if (!iffeat->expr) { goto result; } do { op = iff_getop(iffeat->expr, e++); switch (op) { ...
0
[ "CWE-119" ]
libyang
32fb4993bc8bb49e93e84016af3c10ea53964be5
256,508,322,048,917,540,000,000,000,000,000,000,000
44
schema tree BUGFIX do not check features while still resolving schema Fixes #723
static inline int is_arm_mapping_symbol(const char *str) { if (str[0] == '.' && str[1] == 'L') return true; return str[0] == '$' && strchr("axtd", str[1]) && (str[2] == '\0' || str[2] == '.'); }
0
[ "CWE-362", "CWE-347" ]
linux
0c18f29aae7ce3dadd26d8ee3505d07cc982df75
229,290,083,049,936,700,000,000,000,000,000,000,000
7
module: limit enabling module.sig_enforce Irrespective as to whether CONFIG_MODULE_SIG is configured, specifying "module.sig_enforce=1" on the boot command line sets "sig_enforce". Only allow "sig_enforce" to be set when CONFIG_MODULE_SIG is configured. This patch makes the presence of /sys/module/module/parameters/s...
OFCondition DcmSCP::loadAssociationCfgFile(const OFString &assocFile) { return m_cfg->loadAssociationCfgFile(assocFile); }
0
[ "CWE-264" ]
dcmtk
beaf5a5c24101daeeafa48c375120b16197c9e95
20,319,209,987,422,695,000,000,000,000,000,000,000
4
Make sure to handle setuid() return code properly. In some tools the return value of setuid() is not checked. In the worst case this could lead to privilege escalation since the process does not give up its root privileges and continue as root.
int netdev_set_master(struct net_device *slave, struct net_device *master) { struct net_device *old = slave->master; ASSERT_RTNL(); if (master) { if (old) return -EBUSY; dev_hold(master); } slave->master = master; synchronize_net(); if (old) dev_put(old); if (master) slave->flags |= IFF_SLAVE; ...
0
[ "CWE-399" ]
linux
6ec82562ffc6f297d0de36d65776cff8e5704867
48,627,769,929,215,150,000,000,000,000,000,000,000
27
veth: Dont kfree_skb() after dev_forward_skb() In case of congestion, netif_rx() frees the skb, so we must assume dev_forward_skb() also consume skb. Bug introduced by commit 445409602c092 (veth: move loopback logic to common location) We must change dev_forward_skb() to always consume skb, and veth to not double fr...
SPL_METHOD(MultipleIterator, __construct) { spl_SplObjectStorage *intern; long flags = MIT_NEED_ALL|MIT_KEYS_NUMERIC; zend_error_handling error_handling; zend_replace_error_handling(EH_THROW, spl_ce_InvalidArgumentException, &error_handling TSRMLS_CC); if (zend_parse_parameters(ZEND_NUM_ARGS...
0
[]
php-src
a374dfab567ff7f0ab0dc150f14cc891b0340b47
127,110,153,448,557,710,000,000,000,000,000,000,000
17
Fix bug #67492: unserialize() SPL ArrayObject / SPLObjectStorage Type Confusion
static void session_init_browsing(struct avrcp *session) { if (session->browsing_timer > 0) { timeout_remove(session->browsing_timer); session->browsing_timer = 0; } session->browsing_id = avctp_register_browsing_pdu_handler( session->conn, handle_browsing_pdu, session, destroy_brows...
0
[ "CWE-200" ]
bluez
e2b0f0d8d63e1223bb714a9efb37e2257818268b
50,647,047,776,198,300,000,000,000,000,000,000,000
13
avrcp: Fix not checking if params_len match number of received bytes This makes sure the number of bytes in the params_len matches the remaining bytes received so the code don't end up accessing invalid memory.
InputAKA() { char *s, *ss; int n; if (enter_window_name_mode == 1) return; enter_window_name_mode = 1; Input("Set window's title to: ", sizeof(fore->w_akabuf) - 1, INP_COOKED, AKAfin, NULL, 0); s = fore->w_title; if (!s) return; for (; *s; s++) { if ((*(unsigned char *)s & 0x7f) < 0x20 ...
0
[]
screen
c5db181b6e017cfccb8d7842ce140e59294d9f62
60,890,070,541,761,280,000,000,000,000,000,000,000
22
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 MP4_ReadBox_mehd( stream_t *p_stream, MP4_Box_t *p_box ) { MP4_READBOX_ENTER( MP4_Box_data_mehd_t ); MP4_GETVERSIONFLAGS( p_box->data.p_mehd ); if( p_box->data.p_mehd->i_version == 1 ) MP4_GET8BYTES( p_box->data.p_mehd->i_fragment_duration ); else /* version == 0 */ MP4_GET4B...
0
[ "CWE-120", "CWE-191", "CWE-787" ]
vlc
2e7c7091a61aa5d07e7997b393d821e91f593c39
34,822,487,721,916,710,000,000,000,000,000,000,000
18
demux: mp4: fix buffer overflow in parsing of string boxes. We ensure that pbox->i_size is never smaller than 8 to avoid an integer underflow in the third argument of the subsequent call to memcpy. We also make sure no truncation occurs when passing values derived from the 64 bit integer p_box->i_size to arguments of ...
static inline unsigned long read_cr2(void) { return PVOP_CALLEE0(unsigned long, mmu.read_cr2); }
0
[ "CWE-276" ]
linux
cadfad870154e14f745ec845708bc17d166065f2
292,252,331,110,809,520,000,000,000,000,000,000,000
4
x86/ioperm: Fix io bitmap invalidation on Xen PV tss_invalidate_io_bitmap() wasn't wired up properly through the pvop machinery, so the TSS and Xen's io bitmap would get out of sync whenever disabling a valid io bitmap. Add a new pvop for tss_invalidate_io_bitmap() to fix it. This is XSA-329. Fixes: 22fe5b0439dd ("...
static ssize_t cuse_class_abort_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) { struct cuse_conn *cc = dev_get_drvdata(dev); fuse_abort_conn(&cc->fc); return count; }
0
[ "CWE-399" ]
linux
2c5816b4beccc8ba709144539f6fdd764f8fa49c
227,312,286,445,491,000,000,000,000,000,000,000,000
9
cuse: fix memory leak The problem is that fuse_dev_alloc() acquires an extra reference to cc.fc, and the original ref count is never dropped. Reported-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Miklos Szeredi <miklos@szeredi.hu> Fixes: cc080e9e9be1 ("fuse: introduce per-instance fuse_dev structure")...
static void lo_lookup(fuse_req_t req, fuse_ino_t parent, const char *name) { struct fuse_entry_param e; int err; fuse_log(FUSE_LOG_DEBUG, "lo_lookup(parent=%" PRIu64 ", name=%s)\n", parent, name); if (is_empty(name)) { fuse_reply_err(req, ENOENT); return; } /* ...
0
[ "CWE-273" ]
qemu
449e8171f96a6a944d1f3b7d3627ae059eae21ca
157,230,312,264,161,320,000,000,000,000,000,000,000
29
virtiofsd: Drop membership of all supplementary groups (CVE-2022-0358) At the start, drop membership of all supplementary groups. This is not required. If we have membership of "root" supplementary group and when we switch uid/gid using setresuid/setsgid, we still retain membership of existing supplemntary groups. An...
void testSingleHostSuccess(const absl::optional<std::string>& authority) { std::string expected_host = cluster_->info_->name(); if (authority.has_value()) { expected_host = authority.value(); } setupServiceNameHC(authority); cluster_->prioritySet().getMockHostSet(0)->hosts_ = { mak...
0
[ "CWE-476" ]
envoy
9b1c3962172a972bc0359398af6daa3790bb59db
33,960,501,268,095,137,000,000,000,000,000,000,000
12
healthcheck: fix grpc inline removal crashes (#749) Signed-off-by: Matt Klein <mklein@lyft.com> Signed-off-by: Pradeep Rao <pcrao@google.com>
finished_read (void *vp, int *error) { struct command *command = vp; if (allocated || sparse_size == 0) { /* If sparseness detection (see below) is turned off then we write * the whole command. */ dst->ops->asynch_write (dst, command, (nbd_completion_callback) { ...
1
[ "CWE-252" ]
libnbd
8d444b41d09a700c7ee6f9182a649f3f2d325abb
169,239,589,274,475,780,000,000,000,000,000,000,000
109
copy: CVE-2022-0485: Fail nbdcopy if NBD read or write fails nbdcopy has a nasty bug when performing multi-threaded copies using asynchronous nbd calls - it was blindly treating the completion of an asynchronous command as successful, rather than checking the *error parameter. This can result in the silent creation o...
static int gemsafe_get_cert_len(sc_card_t *card) { int r; u8 ibuf[GEMSAFE_MAX_OBJLEN]; u8 *iptr; struct sc_path path; struct sc_file *file; size_t objlen, certlen; unsigned int ind, i=0; sc_format_path(GEMSAFE_PATH, &path); r = sc_select_file(card, &path, &file); if (r != SC_SUCCESS || !file) return SC_ER...
1
[ "CWE-415", "CWE-119" ]
OpenSC
360e95d45ac4123255a4c796db96337f332160ad
51,421,489,472,179,830,000,000,000,000,000,000,000
124
fixed out of bounds writes Thanks to Eric Sesterhenn from X41 D-SEC GmbH for reporting the problems.
line6_hwdep_read(struct snd_hwdep *hwdep, char __user *buf, long count, loff_t *offset) { struct usb_line6 *line6 = hwdep->private_data; long rv = 0; unsigned int out_count; if (mutex_lock_interruptible(&line6->messages.read_lock)) return -ERESTARTSYS; while (kfifo_len(&line6->messages.fifo) == 0) { mut...
0
[ "CWE-476" ]
linux
0b074ab7fc0d575247b9cc9f93bb7e007ca38840
184,467,704,540,452,630,000,000,000,000,000,000,000
35
ALSA: line6: Assure canceling delayed work at disconnection The current code performs the cancel of a delayed work at the late stage of disconnection procedure, which may lead to the access to the already cleared state. This patch assures to call cancel_delayed_work_sync() at the beginning of the disconnection proced...
static int select_pkcs15_app(sc_card_t * card) { sc_path_t app; int r; /* Regular PKCS#15 AID */ sc_format_path("A000000063504B43532D3135", &app); app.type = SC_PATH_TYPE_DF_NAME; r = sc_select_file(card, &app, NULL); return r; }
0
[ "CWE-125" ]
OpenSC
c3f23b836e5a1766c36617fe1da30d22f7b63de2
319,149,824,681,372,950,000,000,000,000,000,000,000
11
fixed UNKNOWN READ Reported by OSS-Fuzz https://oss-fuzz.com/testcase-detail/5681169970757632
BSONObj spec() { return BSON("$cmp" << BSON_ARRAY("z" << "a")); }
0
[ "CWE-835" ]
mongo
0a076417d1d7fba3632b73349a1fd29a83e68816
158,073,574,729,134,850,000,000,000,000,000,000,000
4
SERVER-38070 fix infinite loop in agg expression
errno_t sssctl_run_command(const char *command) { int ret; DEBUG(SSSDBG_TRACE_FUNC, "Running %s\n", command); ret = system(command); if (ret == -1) { DEBUG(SSSDBG_CRIT_FAILURE, "Unable to execute %s\n", command); ERROR("Error while executing external command\n"); return EFAULT;...
1
[ "CWE-78" ]
sssd
7ab83f97e1cbefb78ece17232185bdd2985f0bbe
203,370,821,124,043,900,000,000,000,000,000,000,000
20
TOOLS: replace system() with execvp() to avoid execution of user supplied command :relnote: A flaw was found in SSSD, where the sssctl command was vulnerable to shell command injection via the logs-fetch and cache-expire subcommands. This flaw allows an attacker to trick the root user into running a specially crafted ...
static int check_arg(int argc, char **argv, const char *argument, int strict) { int i; int found = 0; for (i = 1; i < argc; i++) { if (strict) { if (strcmp(argv[i], argument) == 0) { found = i; break; } } else { if (strncmp(argv[i], argument, strlen(argument)) == 0) { found = i; break;...
0
[ "CWE-269", "CWE-94" ]
firejail
27cde3d7d1e4e16d4190932347c7151dc2a84c50
13,200,880,500,513,444,000,000,000,000,000,000,000
26
fixing CVE-2022-31214
R_API void r_core_fini(RCore *c) { if (!c) { return; } r_core_task_break_all (&c->tasks); r_core_task_join (&c->tasks, NULL, -1); r_core_wait (c); /* TODO: it leaks as shit */ //update_sdb (c); // avoid double free r_list_free (c->ropchain); r_event_free (c->ev); free (c->cmdlog); free (c->lastsearch); R...
0
[ "CWE-415", "CWE-703" ]
radare2
cb8b683758edddae2d2f62e8e63a738c39f92683
120,305,734,667,673,750,000,000,000,000,000,000,000
63
Fix #16303 - c->table_query double free (#16318)
static int irda_connect(struct socket *sock, struct sockaddr *uaddr, int addr_len, int flags) { struct sock *sk = sock->sk; struct sockaddr_irda *addr = (struct sockaddr_irda *) uaddr; struct irda_sock *self = irda_sk(sk); int err; pr_debug("%s(%p)\n", __func__, self); lock_sock(sk); /* Don't allow connect ...
0
[]
linux
b024d949a3c24255a7ef1a470420eb478949aa4c
50,444,879,417,621,160,000,000,000,000,000,000,000
119
irda: do not leak initialized list.dev to userspace list.dev has not been initialized and so the copy_to_user is copying data from the stack back to user space which is a potential information leak. Fix this ensuring all of list is initialized to zero. Detected by CoverityScan, CID#1357894 ("Uninitialized scalar vari...
static void brcmf_msgbuf_release_pktids(struct brcmf_msgbuf *msgbuf) { if (msgbuf->rx_pktids) brcmf_msgbuf_release_array(msgbuf->drvr->bus_if->dev, msgbuf->rx_pktids); if (msgbuf->tx_pktids) brcmf_msgbuf_release_array(msgbuf->drvr->bus_if->dev, msgbuf->tx_pktids); }
0
[ "CWE-20" ]
linux
a4176ec356c73a46c07c181c6d04039fafa34a9f
127,983,194,272,478,120,000,000,000,000,000,000,000
9
brcmfmac: add subtype check for event handling in data path For USB there is no separate channel being used to pass events from firmware to the host driver and as such are passed over the data path. In order to detect mock event messages an additional check is needed on event subtype. This check is added conditionally...
void iwl_pcie_apm_stop_master(struct iwl_trans *trans) { int ret; /* stop device's busmaster DMA activity */ iwl_set_bit(trans, trans->trans_cfg->csr->addr_sw_reset, BIT(trans->trans_cfg->csr->flag_stop_master)); ret = iwl_poll_bit(trans, trans->trans_cfg->csr->addr_sw_reset, BIT(trans->trans_cfg->csr...
0
[ "CWE-476" ]
linux
8188a18ee2e48c9a7461139838048363bfce3fef
157,707,612,832,098,800,000,000,000,000,000,000,000
16
iwlwifi: pcie: fix rb_allocator workqueue allocation We don't handle failures in the rb_allocator workqueue allocation correctly. To fix that, move the code earlier so the cleanup is easier and we don't have to undo all the interrupt allocations in this case. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Sig...
ExprList *sqlite3ExprListAppendVector( Parse *pParse, /* Parsing context */ ExprList *pList, /* List to which to append. Might be NULL */ IdList *pColumns, /* List of names of LHS of the assignment */ Expr *pExpr /* Vector expression to be appended. Might be NULL */ ){ sqlite3 *d...
0
[ "CWE-476" ]
sqlite
57f7ece78410a8aae86aa4625fb7556897db384c
65,246,798,671,302,440,000,000,000,000,000,000,000
60
Fix a problem that comes up when using generated columns that evaluate to a constant in an index and then making use of that index in a join. FossilOrigin-Name: 8b12e95fec7ce6e0de82a04ca3dfcf1a8e62e233b7382aa28a8a9be6e862b1af
PHP_FUNCTION(openssl_encrypt) { zend_bool raw_output = 0; char *data, *method, *password, *iv = ""; int data_len, method_len, password_len, iv_len = 0, max_iv_len; const EVP_CIPHER *cipher_type; EVP_CIPHER_CTX cipher_ctx; int i = 0, outlen, keylen; unsigned char *outbuf, *key; zend_bool free_iv; if (zend_pars...
0
[ "CWE-200" ]
php-src
270a406ac94b5fc5cc9ef59fc61e3b4b95648a3e
315,258,762,293,768,320,000,000,000,000,000,000,000
72
Fix bug #61413 ext\openssl\tests\openssl_encrypt_crash.phpt fails 5.3 only
reply_all_rrsets_secure(struct reply_info* rep) { size_t i; for(i=0; i<rep->rrset_count; i++) { if( ((struct packed_rrset_data*)rep->rrsets[i]->entry.data) ->security != sec_status_secure ) return 0; } return 1; }
0
[ "CWE-787" ]
unbound
6c3a0b54ed8ace93d5b5ca7b8078dc87e75cd640
35,650,712,928,158,730,000,000,000,000,000,000,000
10
- Fix Out of Bound Write Compressed Names in rdata_copy(), reported by X41 D-Sec.
static int virtbt_open(struct hci_dev *hdev) { struct virtio_bluetooth *vbt = hci_get_drvdata(hdev); if (virtbt_add_inbuf(vbt) < 0) return -EIO; virtqueue_kick(vbt->vqs[VIRTBT_VQ_RX]); return 0; }
0
[ "CWE-772" ]
linux
1d0688421449718c6c5f46e458a378c9b530ba18
43,367,583,019,604,530,000,000,000,000,000,000,000
10
Bluetooth: virtio_bt: fix memory leak in virtbt_rx_handle() On the reception of packets with an invalid packet type, the memory of the allocated socket buffers is never freed. Add a default case that frees these to avoid a memory leak. Fixes: afd2daa26c7a ("Bluetooth: Add support for virtio transport driver") Signed-...
std::unique_ptr<GroupFromFirstDocumentTransformation> GroupFromFirstDocumentTransformation::create( const intrusive_ptr<ExpressionContext>& expCtx, const std::string& groupId, vector<pair<std::string, intrusive_ptr<Expression>>> accumulatorExprs) { return std::make_unique<GroupFromFirstDocumentTransform...
0
[]
mongo
14784757ff5e983ea40b21c14e661aba81dfc083
313,448,836,142,995,430,000,000,000,000,000,000,000
7
SERVER-60218 add initialize helper function for document_source_group (cherry picked from commit 867f52afbb79bc00e35c70f8e0681b7d602f97b2)
bool headers_get(JSContext *cx, unsigned argc, Value *vp) { METHOD_HEADER(0) JSObject *headers = RequestOrResponse::headers<Headers::Mode::ProxyToResponse>(cx, self); if (!headers) return false; args.rval().setObject(*headers); return true; }
0
[ "CWE-94" ]
js-compute-runtime
65524ffc962644e9fc39f4b368a326b6253912a9
56,782,382,237,305,320,000,000,000,000,000,000,000
10
use rangom_get instead of arc4random as arc4random does not work correctly with wizer wizer causes the seed in arc4random to be the same between executions which is not random
PHP_MINIT_FUNCTION(curl) { le_curl = zend_register_list_destructors_ex(_php_curl_close, NULL, "curl", module_number); le_curl_multi_handle = zend_register_list_destructors_ex(_php_curl_multi_close, NULL, "curl_multi", module_number); le_curl_share_handle = zend_register_list_destructors_ex(_php_curl_share_close, NUL...
0
[]
php-src
124fb22a13fafa3648e4e15b4f207c7096d8155e
150,064,942,912,521,230,000,000,000,000,000,000,000
620
Fixed bug #68739 #68740 #68741
TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_reliable_all_data300kb) { PubSubReader<Data1mbType> reader(TEST_TOPIC_NAME); PubSubWriter<Data1mbType> writer(TEST_TOPIC_NAME); PropertyPolicy pub_part_property_policy, sub_part_property_policy, pub_property_policy, sub_property_policy; ...
0
[ "CWE-284" ]
Fast-DDS
d2aeab37eb4fad4376b68ea4dfbbf285a2926384
156,027,446,643,300,960,000,000,000,000,000,000,000
75
check remote permissions (#1387) * Refs 5346. Blackbox test Signed-off-by: Iker Luengo <ikerluengo@eprosima.com> * Refs 5346. one-way string compare Signed-off-by: Iker Luengo <ikerluengo@eprosima.com> * Refs 5346. Do not add partition separator on last partition Signed-off-by: Iker Luengo <ikerluengo@e...
fr_archive_start_cb (FrArchive *archive, FrAction action, FrWindow *window) { char *description; description = get_action_description (window, action, fr_archive_get_file (archive)); fr_archive_message_cb (archive, description, window); g_free (description); }
0
[ "CWE-22" ]
file-roller
b147281293a8307808475e102a14857055f81631
295,798,653,780,451,500,000,000,000,000,000,000,000
11
libarchive: sanitize filenames before extracting
static void temac_adjust_link(struct net_device *ndev) { struct temac_local *lp = netdev_priv(ndev); struct phy_device *phy = ndev->phydev; u32 mii_speed; int link_state; unsigned long flags; /* hash together the state values to decide if something has changed */ link_state = phy->speed | (phy->duplex << 1) | p...
0
[ "CWE-120", "CWE-787" ]
linux
c364df2489b8ef2f5e3159b1dff1ff1fdb16040d
84,057,716,603,506,550,000,000,000,000,000,000,000
30
net: ll_temac: Fix TX BD buffer overwrite Just as the initial check, we need to ensure num_frag+1 buffers available, as that is the number of buffers we are going to use. This fixes a buffer overflow, which might be seen during heavy network load. Complete lockup of TEMAC was reproducible within about 10 minutes of a...
inline JS::Result<mozilla::Ok> base64Decode3to2(std::string_view input, std::string &output) { uint8_t w, x, y; // 8.1 Find the code point pointed to by position in the second column of Table 1: The Base 64 // Alphabet of RFC 4648. Let n be the number given in the first cell of the same row. [RFC4648] if (!base...
0
[ "CWE-94" ]
js-compute-runtime
65524ffc962644e9fc39f4b368a326b6253912a9
259,793,992,318,425,850,000,000,000,000,000,000,000
17
use rangom_get instead of arc4random as arc4random does not work correctly with wizer wizer causes the seed in arc4random to be the same between executions which is not random
__libxml2_xzclose(xzFile file) { int ret; xz_statep state; /* get internal structure */ if (file == NULL) return LZMA_DATA_ERROR; state = (xz_statep) file; /* free memory and close file */ if (state->size) { lzma_end(&(state->strm)); #ifdef HAVE_ZLIB_H if (state->in...
0
[ "CWE-399" ]
libxml2
f0709e3ca8f8947f2d91ed34e92e38a4c23eae63
211,055,067,414,840,400,000,000,000,000,000,000,000
26
CVE-2015-8035 Fix XZ compression support loop For https://bugzilla.gnome.org/show_bug.cgi?id=757466 DoS when parsing specially crafted XML document if XZ support is compiled in (which wasn't the case for 2.9.2 and master since Nov 2013, fixed in next commit !)
ZEND_API zval* zend_object_proxy_get(zval *property TSRMLS_DC) { zend_proxy_object *probj = zend_object_store_get_object(property TSRMLS_CC); if (Z_OBJ_HT_P(probj->object) && Z_OBJ_HT_P(probj->object)->read_property) { return Z_OBJ_HT_P(probj->object)->read_property(probj->object, probj->property, BP_VAR_R, 0 TSRM...
0
[ "CWE-119", "CWE-787" ]
php-src
6a7cc8ff85827fa9ac715b3a83c2d9147f33cd43
292,834,839,616,995,600,000,000,000,000,000,000,000
12
Fix bug #73052 - Memory Corruption in During Deserialized-object Destruction
inline std::shared_ptr<Ope> ign(const std::shared_ptr<Ope> &ope) { return std::make_shared<Ignore>(ope); }
0
[ "CWE-125" ]
cpp-peglib
b3b29ce8f3acf3a32733d930105a17d7b0ba347e
254,673,444,406,717,900,000,000,000,000,000,000,000
3
Fix #122
static int dn_confirm_accept(struct sock *sk, long *timeo, gfp_t allocation) { struct dn_scp *scp = DN_SK(sk); DEFINE_WAIT(wait); int err; if (scp->state != DN_CR) return -EINVAL; scp->state = DN_CC; scp->segsize_loc = dst_metric_advmss(__sk_dst_get(sk)); dn_send_conn_conf(sk, allocation); prepare_to_wait(...
0
[]
net
79462ad02e861803b3840cc782248c7359451cd9
307,543,239,325,415,300,000,000,000,000,000,000,000
41
net: add validation for the socket syscall protocol argument 郭永刚 reported that one could simply crash the kernel as root by using a simple program: int socket_fd; struct sockaddr_in addr; addr.sin_port = 0; addr.sin_addr.s_addr = INADDR_ANY; addr.sin_family = 10; socket_fd = socket(10,3,0x40000000); connect(s...
static inline u32 smca_misc_reg(int bank) { return MSR_AMD64_SMCA_MCx_MISC(bank); }
0
[ "CWE-362" ]
linux
b3b7c4795ccab5be71f080774c45bbbcc75c2aaf
214,652,761,745,977,960,000,000,000,000,000,000,000
4
x86/MCE: Serialize sysfs changes The check_interval file in /sys/devices/system/machinecheck/machinecheck<cpu number> directory is a global timer value for MCE polling. If it is changed by one CPU, mce_restart() broadcasts the event to other CPUs to delete and restart the MCE polling timer and __mcheck_cpu_init_ti...
static int e1000_post_load(void *opaque, int version_id) { E1000State *s = opaque; NetClientState *nc = qemu_get_queue(s->nic); if (!chkflag(MIT)) { s->mac_reg[ITR] = s->mac_reg[RDTR] = s->mac_reg[RADV] = s->mac_reg[TADV] = 0; s->mit_irq_level = false; } s->mit_ide = 0; ...
0
[ "CWE-835" ]
qemu
1caff0340f49c93d535c6558a5138d20d475315c
161,507,954,157,922,830,000,000,000,000,000,000,000
36
e1000: switch to use qemu_receive_packet() for loopback This patch switches to use qemu_receive_packet() which can detect reentrancy and return early. This is intended to address CVE-2021-3416. Cc: Prasad J Pandit <ppandit@redhat.com> Cc: qemu-stable@nongnu.org Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>...
cpl_fdchk (fd) int fd; { struct cpelement *cpe; for (cpe = coproc_list.head; cpe; cpe = cpe->next) coproc_checkfd (cpe->coproc, fd); }
0
[]
bash
955543877583837c85470f7fb8a97b7aa8d45e6c
55,376,534,991,004,560,000,000,000,000,000,000,000
8
bash-4.4-rc2 release
static u32 cookie_hash(__be32 saddr, __be32 daddr, __be16 sport, __be16 dport, u32 count, int c) { __u32 *tmp = __get_cpu_var(ipv4_cookie_scratch); memcpy(tmp + 4, syncookie_secret[c], sizeof(syncookie_secret[c])); tmp[0] = (__force u32)saddr; tmp[1] = (__force u32)daddr; tmp[2] = ((__force u32)sport << ...
0
[ "CWE-362" ]
linux-2.6
f6d8bd051c391c1c0458a30b2a7abcd939329259
101,412,937,839,411,800,000,000,000,000,000,000,000
14
inet: add RCU protection to inet->opt We lack proper synchronization to manipulate inet->opt ip_options Problem is ip_make_skb() calls ip_setup_cork() and ip_setup_cork() possibly makes a copy of ipc->opt (struct ip_options), without any protection against another thread manipulating inet->opt. Another thread can ch...
} void dynstr_append_sorted(DYNAMIC_STRING* ds, DYNAMIC_STRING *ds_input) { unsigned i; char *start= ds_input->str; DYNAMIC_ARRAY lines; DBUG_ENTER("dynstr_append_sorted"); if (!*start) DBUG_VOID_RETURN; /* No input */ my_init_dynamic_array(&lines, sizeof(const char*), 32, 32); /* First line is r...
0
[ "CWE-284", "CWE-295" ]
mysql-server
3bd5589e1a5a93f9c224badf983cd65c45215390
152,257,129,228,321,330,000,000,000,000,000,000,000
50
WL#6791 : Redefine client --ssl option to imply enforced encryption # Changed the meaning of the --ssl=1 option of all client binaries to mean force ssl, not try ssl and fail over to eunecrypted # Added a new MYSQL_OPT_SSL_ENFORCE mysql_options() option to specify that an ssl connection is required. # Added a new macr...
const u32 *gf_isom_get_brands(GF_ISOFile *movie) { if (!movie || !movie->brand) return NULL; return movie->brand->altBrand; }
0
[ "CWE-476" ]
gpac
ebfa346eff05049718f7b80041093b4c5581c24e
166,072,781,837,964,640,000,000,000,000,000,000,000
5
fixed #1706
static int open_cred_file(char *file_name, struct parsed_mount_info *parsed_info) { char *line_buf = NULL; char *temp_val = NULL; FILE *fs = NULL; int i; const int line_buf_size = 4096; const int min_non_white = 10; i = toggle_dac_capability(0, 1); if (i) goto return_i; i = access(file_name, R_OK); if ...
1
[ "CWE-200", "CWE-668" ]
cifs-utils
8acc963a2e7e9d63fe1f2e7f73f5a03f83d9c379
268,075,259,256,057,800,000,000,000,000,000,000,000
85
mount.cifs: fix verbose messages on option parsing When verbose logging is enabled, invalid credentials file lines may be dumped to stderr. This may lead to information disclosure in particular conditions when the credentials file given is sensitive and contains '=' signs. Bug: https://bugzilla.samba.org/show_bug.cgi...
xmlXPathTrailing (xmlNodeSetPtr nodes1, xmlNodeSetPtr nodes2) { if (xmlXPathNodeSetIsEmpty(nodes2)) return(nodes1); if (xmlXPathNodeSetIsEmpty(nodes1)) return(xmlXPathNodeSetCreate(NULL)); xmlXPathNodeSetSort(nodes1); xmlXPathNodeSetSort(nodes2); return(xmlXPathNodeTrailingSorted(nodes1, ...
0
[ "CWE-119" ]
libxml2
91d19754d46acd4a639a8b9e31f50f31c78f8c9c
212,039,640,192,733,300,000,000,000,000,000,000,000
10
Fix the semantic of XPath axis for namespace/attribute context nodes The processing of namespace and attributes nodes was not compliant to the XPath-1.0 specification
int ip6_output(struct net *net, struct sock *sk, struct sk_buff *skb) { struct net_device *dev = skb_dst(skb)->dev; struct inet6_dev *idev = ip6_dst_idev(skb_dst(skb)); if (unlikely(idev->cnf.disable_ipv6)) { IP6_INC_STATS(net, idev, IPSTATS_MIB_OUTDISCARDS); kfree_skb(skb); return 0; } return NF_HOOK_COND...
0
[ "CWE-125" ]
linux
2423496af35d94a87156b063ea5cedffc10a70a1
298,991,690,460,979,900,000,000,000,000,000,000,000
16
ipv6: Prevent overrun when parsing v6 header options The KASAN warning repoted below was discovered with a syzkaller program. The reproducer is basically: int s = socket(AF_INET6, SOCK_RAW, NEXTHDR_HOP); send(s, &one_byte_of_data, 1, MSG_MORE); send(s, &more_than_mtu_bytes_data, 2000, 0); The socket() call set...
static bool slot_rmap_walk_okay(struct slot_rmap_walk_iterator *iterator) { return !!iterator->rmap; }
0
[ "CWE-476" ]
linux
9f46c187e2e680ecd9de7983e4d081c3391acc76
91,760,797,001,329,880,000,000,000,000,000,000,000
4
KVM: x86/mmu: fix NULL pointer dereference on guest INVPCID With shadow paging enabled, the INVPCID instruction results in a call to kvm_mmu_invpcid_gva. If INVPCID is executed with CR0.PG=0, the invlpg callback is not set and the result is a NULL pointer dereference. Fix it trivially by checking for mmu->invlpg befo...
OJPEGFixupTags(TIFF* tif) { (void) tif; return(1); }
0
[ "CWE-369" ]
libtiff
43bc256d8ae44b92d2734a3c5bc73957a4d7c1ec
8,723,458,518,184,387,000,000,000,000,000,000,000
5
* libtiff/tif_ojpeg.c: make OJPEGDecode() early exit in case of failure in OJPEGPreDecode(). This will avoid a divide by zero, and potential other issues. Reported by Agostino Sarubbo. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2611
static void device_release(struct kobject *kobj) { struct device *dev = kobj_to_dev(kobj); struct device_private *p = dev->p; /* * Some platform devices are driven without driver attached * and managed resources may have been acquired. Make sure * all resources are released. * * Drivers still can add res...
0
[ "CWE-787" ]
linux
aa838896d87af561a33ecefea1caa4c15a68bc47
161,458,926,545,787,360,000,000,000,000,000,000,000
27
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...
R_API void r_bin_java_print_name_and_type_cp_summary(RBinJavaCPTypeObj *obj) { if (obj == NULL) { eprintf ("Attempting to print an invalid RBinJavaCPTypeObj* Name_And_Type.\n"); return; } Eprintf ("Name_And_Type ConstantPool Type (%d) ", obj->metas->ord); Eprintf (" Offset: 0x%08"PFMT64x "", obj->file_offset)...
0
[ "CWE-787" ]
radare2
9650e3c352f675687bf6c6f65ff2c4a3d0e288fa
198,055,389,297,449,700,000,000,000,000,000,000,000
10
Fix oobread segfault in java arith8.class ##crash * Reported by Cen Zhang via huntr.dev
ffi_clear_cache (void *start, void *end) { #if defined (__clang__) && defined (__APPLE__) sys_icache_invalidate (start, (char *)end - (char *)start); #elif defined (__GNUC__) __builtin___clear_cache (start, end); #else #error "Missing builtin to flush instruction cache" #endif }
0
[ "CWE-787" ]
libffi
44a6c28545186d78642487927952844156fc7ab5
53,385,250,097,445,850,000,000,000,000,000,000,000
10
aarch64: Flush code mapping in addition to data mapping (#471) This needs a new function, ffi_data_to_code_pointer, to translate from data pointers to code pointers. Fixes issue #470.
cJSON *cJSON_Parse( const char *value ) { cJSON *c; ep = 0; if ( ! ( c = cJSON_New_Item() ) ) return 0; /* memory fail */ if ( ! parse_value( c, skip( value ) ) ) { cJSON_Delete( c ); return 0; } return c; }
1
[ "CWE-120", "CWE-119", "CWE-787" ]
iperf
91f2fa59e8ed80dfbf400add0164ee0e508e412a
266,678,036,300,689,630,000,000,000,000,000,000,000
13
Fix a buffer overflow / heap corruption issue that could occur if a malformed JSON string was passed on the control channel. This issue, present in the cJSON library, was already fixed upstream, so was addressed here in iperf3 by importing a newer version of cJSON (plus local ESnet modifications). Discovered and repo...
static void dns_server_hash_func(const DnsServer *s, struct siphash *state) { assert(s); siphash24_compress(&s->family, sizeof(s->family), state); siphash24_compress(&s->address, FAMILY_ADDRESS_SIZE(s->family), state); siphash24_compress(&s->ifindex, sizeof(s->ifindex), state); }
0
[ "CWE-416" ]
systemd
904dcaf9d4933499f8334859f52ea8497f2d24ff
166,384,170,513,296,230,000,000,000,000,000,000,000
7
resolved: take particular care when detaching DnsServer from its default stream DnsStream and DnsServer have a symbiotic relationship: one DnsStream is the current "default" stream of the server (and thus reffed by it), but each stream also refs the server it is connected to. This cyclic dependency can result in weird...
static unsigned readChunk_PLTE(LodePNGColorMode* color, const unsigned char* data, size_t chunkLength) { unsigned pos = 0, i; free(color->palette); color->palettesize = chunkLength / 3; color->palette = (unsigned char*)malloc(4 * color->palettesize); if(!color->palette && color->palettesize) { color->pa...
0
[ "CWE-401" ]
FreeRDP
9fee4ae076b1ec97b97efb79ece08d1dab4df29a
81,019,727,813,822,710,000,000,000,000,000,000,000
23
Fixed #5645: realloc return handling
static inline void php_sqlite_strtolower(char *s) { while (*s!='\0') { *s = tolower(*s); s++; } }
0
[]
php-src
ce96fd6b0761d98353761bf78d5bfb55291179fd
15,827,253,315,132,796,000,000,000,000,000,000,000
7
- fix #39863, do not accept paths with NULL in them. See http://news.php.net/php.internals/50191, trunk will have the patch later (adding a macro and/or changing (some) APIs. Patch by Rasmus
static int netlink_unicast_kernel(struct sock *sk, struct sk_buff *skb, struct sock *ssk) { int ret; struct netlink_sock *nlk = nlk_sk(sk); ret = -ECONNREFUSED; if (nlk->netlink_rcv != NULL) { /* We could do a netlink_deliver_tap(skb) here as well * but since this is intended for the kernel only, we ...
0
[ "CWE-20", "CWE-269" ]
linux
f3d3342602f8bcbf37d7c46641cb9bca7618eb1c
194,976,049,829,403,340,000,000,000,000,000,000,000
24
net: rework recvmsg handler msg_name and msg_namelen logic This patch now always passes msg->msg_namelen as 0. recvmsg handlers must set msg_namelen to the proper size <= sizeof(struct sockaddr_storage) to return msg_name to the user. This prevents numerous uninitialized memory leaks we had in the recvmsg handlers an...
static void MSLElementDeclaration(void *context,const xmlChar *name,int type, xmlElementContentPtr content) { MSLInfo *msl_info; xmlParserCtxtPtr parser; /* An element definition has been parsed. */ (void) LogMagickEvent(CoderEvent,GetMagickModule(), " SAX.elementDecl(%s, %d, ...)",name,t...
0
[ "CWE-772", "CWE-787" ]
ImageMagick
e793eb203e5e0f91f5037aed6585e81b1e27395b
266,057,029,981,737,400,000,000,000,000,000,000,000
24
https://github.com/ImageMagick/ImageMagick/issues/636
uint32_t ndp_msg_opt_dnssl_lifetime(struct ndp_msg *msg, int offset) { struct __nd_opt_dnssl *dnssl = ndp_msg_payload_opts_offset(msg, offset); return ntohl(dnssl->nd_opt_dnssl_lifetime); }
0
[ "CWE-284" ]
libndp
a4892df306e0532487f1634ba6d4c6d4bb381c7f
59,408,288,649,377,300,000,000,000,000,000,000,000
7
libndp: validate the IPv6 hop limit None of the NDP messages should ever come from a non-local network; as stated in RFC4861's 6.1.1 (RS), 6.1.2 (RA), 7.1.1 (NS), 7.1.2 (NA), and 8.1. (redirect): - The IP Hop Limit field has a value of 255, i.e., the packet could not possibly have been forwarded by a router. T...
MagickPrivate void OpenCLTerminus() { DumpOpenCLProfileData(); if (cache_directory != (char *) NULL) cache_directory=DestroyString(cache_directory); if (cache_directory_lock != (SemaphoreInfo *) NULL) RelinquishSemaphoreInfo(&cache_directory_lock); if (default_CLEnv != (MagickCLEnv) NULL) default_CL...
0
[ "CWE-476" ]
ImageMagick
cca91aa1861818342e3d072bb0fad7dc4ffac24a
298,183,031,637,861,140,000,000,000,000,000,000,000
18
https://github.com/ImageMagick/ImageMagick/issues/790
int module_load( YR_SCAN_CONTEXT* context, YR_OBJECT* module_object, void* module_data, size_t module_data_size) { set_integer(1, module_object, "constants.one"); set_integer(2, module_object, "constants.two"); set_string("foo", module_object, "constants.foo"); set_string("", module_object, "con...
1
[ "CWE-119", "CWE-787" ]
yara
4a342f01e5439b9bb901aff1c6c23c536baeeb3f
90,635,323,034,820,140,000,000,000,000,000,000,000
31
Fix heap overflow (reported by Jurriaan Bremer) When setting a new array item with yr_object_array_set_item() the array size is doubled if the index for the new item is larger than the already allocated ones. No further checks were made to ensure that the index fits into the array after doubling its capacity. If the a...
xsltCompilerNodePush(xsltCompilerCtxtPtr cctxt, xmlNodePtr node) { xsltCompilerNodeInfoPtr inode, iprev; if ((cctxt->inode != NULL) && (cctxt->inode->next != NULL)) { inode = cctxt->inode->next; } else if ((cctxt->inode == NULL) && (cctxt->inodeList != NULL)) { inode = cctxt->inodeList; } else { /* ...
0
[]
libxslt
e03553605b45c88f0b4b2980adfbbb8f6fca2fd6
320,467,927,717,929,760,000,000,000,000,000,000,000
94
Fix security framework bypass xsltCheckRead and xsltCheckWrite return -1 in case of error but callers don't check for this condition and allow access. With a specially crafted URL, xsltCheckRead could be tricked into returning an error because of a supposedly invalid URL that would still be loaded succesfully later on...
http_ClrHeader(struct http *to) { CHECK_OBJ_NOTNULL(to, HTTP_MAGIC); to->nhd = HTTP_HDR_FIRST; to->status = 0; to->protover = 0; to->conds = 0; memset(to->hd, 0, sizeof *to->hd * to->shd); }
0
[]
Varnish-Cache
29870c8fe95e4e8a672f6f28c5fbe692bea09e9c
118,178,681,077,227,420,000,000,000,000,000,000,000
10
Check for duplicate Content-Length headers in requests If a duplicate CL header is in the request, we fail the request with a 400 (Bad Request) Fix a test case that was sending duplicate CL by misstake and would not fail because of that.
static inline void tcp_mib_init(struct net *net) { /* See RFC 2012 */ TCP_ADD_STATS_USER(net, TCP_MIB_RTOALGORITHM, 1); TCP_ADD_STATS_USER(net, TCP_MIB_RTOMIN, TCP_RTO_MIN*1000/HZ); TCP_ADD_STATS_USER(net, TCP_MIB_RTOMAX, TCP_RTO_MAX*1000/HZ); TCP_ADD_STATS_USER(net, TCP_MIB_MAXCONN, -1); }
0
[]
linux
7bced397510ab569d31de4c70b39e13355046387
233,270,227,671,387,600,000,000,000,000,000,000,000
8
net_dma: simple removal Per commit "77873803363c net_dma: mark broken" net_dma is no longer used and there is no plan to fix it. This is the mechanical removal of bits in CONFIG_NET_DMA ifdef guards. Reverting the remainder of the net_dma induced changes is deferred to subsequent patches. Marked for stable due to Ro...
static void rfx_write_message_context(RFX_CONTEXT* context, wStream* s) { UINT16 properties; Stream_Write_UINT16(s, WBT_CONTEXT); /* CodecChannelT.blockType (2 bytes) */ Stream_Write_UINT32(s, 13); /* CodecChannelT.blockLen (4 bytes) */ Stream_Write_UINT8(s, 1); /* CodecChannelT.codecId (1...
0
[ "CWE-125" ]
FreeRDP
3a06ce058f690b7fc1edad2f352c453376c2ebfe
149,281,095,621,082,900,000,000,000,000,000,000,000
18
Fixed oob read in rfx_process_message_tileset Check input data length Thanks to hac425 CVE-2020-11043